Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
pqFileDialogLocationModel Class Reference

pqFileDialogLocationModel lists "special" locations, either remote from a connected ParaView server's filesystem, or the local file system. More...

#include <pqFileDialogLocationModel.h>

Inherits QAbstractListModel.

Collaboration diagram for pqFileDialogLocationModel:
Collaboration graph
[legend]

Classes

struct  pqFileDialogLocationModelFileInfo
 

Public Member Functions

 pqFileDialogLocationModel (pqFileDialogModel *model, pqServer *server, QObject *Parent)
 server is the server for which we need the listing. More...
 
 ~pqFileDialogLocationModel () override=default
 
QString filePath (const QModelIndex &) const
 return the path to the item More...
 
bool isDirectory (const QModelIndex &) const
 return whether this item is a directory More...
 
QVariant data (const QModelIndex &idx, int role) const override
 returns the data for an item More...
 
int rowCount (const QModelIndex &idx) const override
 return the number of rows in the model More...
 
QVariant headerData (int section, Qt::Orientation, int role) const override
 return header data More...
 
virtual void resetToDefault ()
 Resets to the system default. More...
 

Static Public Attributes

static bool AddExamplesInLocations
 Flag to indicate if the ParaView Examples directory should be added to the list. More...
 

Protected Member Functions

void LoadSpecialsFromSystem ()
 

Protected Attributes

QPointer< pqFileDialogModelFileDialogModel
 
pqServerServer = nullptr
 
QList< pqFileDialogLocationModelFileInfoLocationList
 

Detailed Description

pqFileDialogLocationModel lists "special" locations, either remote from a connected ParaView server's filesystem, or the local file system.

See also
pqFileDialog, pqFileDialogModel

Definition at line 25 of file pqFileDialogLocationModel.h.

Constructor & Destructor Documentation

◆ pqFileDialogLocationModel()

pqFileDialogLocationModel::pqFileDialogLocationModel ( pqFileDialogModel model,
pqServer server,
QObject *  Parent 
)

server is the server for which we need the listing.

if the server is nullptr, we get file listings from the builtin server

◆ ~pqFileDialogLocationModel()

pqFileDialogLocationModel::~pqFileDialogLocationModel ( )
overridedefault

Member Function Documentation

◆ filePath()

QString pqFileDialogLocationModel::filePath ( const QModelIndex &  ) const

return the path to the item

◆ isDirectory()

bool pqFileDialogLocationModel::isDirectory ( const QModelIndex &  ) const

return whether this item is a directory

◆ data()

QVariant pqFileDialogLocationModel::data ( const QModelIndex &  idx,
int  role 
) const
override

returns the data for an item

◆ rowCount()

int pqFileDialogLocationModel::rowCount ( const QModelIndex &  idx) const
override

return the number of rows in the model

◆ headerData()

QVariant pqFileDialogLocationModel::headerData ( int  section,
Qt::Orientation  ,
int  role 
) const
override

return header data

◆ resetToDefault()

virtual void pqFileDialogLocationModel::resetToDefault ( )
virtual

Resets to the system default.

◆ LoadSpecialsFromSystem()

void pqFileDialogLocationModel::LoadSpecialsFromSystem ( )
protected

Member Data Documentation

◆ AddExamplesInLocations

bool pqFileDialogLocationModel::AddExamplesInLocations
static

Flag to indicate if the ParaView Examples directory should be added to the list.

Definition at line 71 of file pqFileDialogLocationModel.h.

◆ FileDialogModel

QPointer<pqFileDialogModel> pqFileDialogLocationModel::FileDialogModel
protected

Definition at line 83 of file pqFileDialogLocationModel.h.

◆ Server

pqServer* pqFileDialogLocationModel::Server = nullptr
protected

Definition at line 84 of file pqFileDialogLocationModel.h.

◆ LocationList

QList<pqFileDialogLocationModelFileInfo> pqFileDialogLocationModel::LocationList
protected

Definition at line 85 of file pqFileDialogLocationModel.h.


The documentation for this class was generated from the following file: