ParaView
Public Slots | Public Member Functions | Protected Attributes
pqFileDialogRecentDirsModel Class Reference

pqFileDialogRecentDirsModel is a model which used by file dialog (pqFileDialog) to populate the list showing the recent directory locations. More...

#include <pqFileDialogRecentDirsModel.h>

List of all members.

Public Slots

void setChosenFiles (const QList< QStringList > &files)

Public Member Functions

 pqFileDialogRecentDirsModel (pqFileDialogModel *model, pqServer *server, QObject *parent)
 server is the server for which we need the listing.
 ~pqFileDialogRecentDirsModel ()
void setChosenDir (const QString &dir)
 Set the directory chosen by the user so that it gets added to the recent list.
QString filePath (const QModelIndex &) const
 returns the path.
QVariant data (const QModelIndex &idx, int role) const
 returns the data for an item
int rowCount (const QModelIndex &idx) const
 return the number of rows in the model
QVariant headerData (int section, Qt::Orientation, int role) const
 return header data

Protected Attributes

QStringList Directories
QString SettingsKey
QPointer< pqFileDialogModelFileDialogModel

Detailed Description

pqFileDialogRecentDirsModel is a model which used by file dialog (pqFileDialog) to populate the list showing the recent directory locations.

This is per server based, since the locations are connection dependent.

Definition at line 46 of file pqFileDialogRecentDirsModel.h.


Constructor & Destructor Documentation

pqFileDialogRecentDirsModel::pqFileDialogRecentDirsModel ( pqFileDialogModel model,
pqServer server,
QObject *  parent 
)

server is the server for which we need the listing.

if the server is NULL, we get file listings locally (i.e. builtin server). pqFileDialogModel is used to test the validity of directories.

pqFileDialogRecentDirsModel::~pqFileDialogRecentDirsModel ( )

Member Function Documentation

void pqFileDialogRecentDirsModel::setChosenDir ( const QString &  dir)

Set the directory chosen by the user so that it gets added to the recent list.

QString pqFileDialogRecentDirsModel::filePath ( const QModelIndex &  ) const

returns the path.

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

returns the data for an item

int pqFileDialogRecentDirsModel::rowCount ( const QModelIndex &  idx) const

return the number of rows in the model

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

return header data

void pqFileDialogRecentDirsModel::setChosenFiles ( const QList< QStringList > &  files) [slot]

Member Data Documentation

Definition at line 77 of file pqFileDialogRecentDirsModel.h.

Definition at line 78 of file pqFileDialogRecentDirsModel.h.

Definition at line 79 of file pqFileDialogRecentDirsModel.h.


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