|
ParaView
|
pqFileDialogRecentDirsModel is a model which used by file dialog (pqFileDialog) to populate the list showing the recent directory locations. More...
#include <pqFileDialogRecentDirsModel.h>
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< pqFileDialogModel > | FileDialogModel |
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.
| 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 | ( | ) |
| 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
return header data
| void pqFileDialogRecentDirsModel::setChosenFiles | ( | const QList< QStringList > & | files | ) | [slot] |
QStringList pqFileDialogRecentDirsModel::Directories [protected] |
Definition at line 77 of file pqFileDialogRecentDirsModel.h.
QString pqFileDialogRecentDirsModel::SettingsKey [protected] |
Definition at line 78 of file pqFileDialogRecentDirsModel.h.
QPointer<pqFileDialogModel> pqFileDialogRecentDirsModel::FileDialogModel [protected] |
Definition at line 79 of file pqFileDialogRecentDirsModel.h.
1.7.5.1