![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtFileDialogHandler () | |
| Default Constructor. | |
| virtual | ~DtFileDialogHandler () |
| Destructor. | |
| bool | accepted () const |
| const QString & | filename () const |
| Returns the filename that was selected to open. | |
| const QString & | startingDirectory () const |
| Returns the starting directory of this dialog or the last directory referenced. | |
| void | setStartingDirectory (const QString &) |
| const QString & | selectedFilter () const |
| Returns the selected filter inside the dialog. | |
| void | setSelectedFilter (const QString &) |
| virtual QWidget * | createDialog (QWidget *parent) |
| Creates the dialog associated with this handler (if there is one) | |
| virtual QWidget * | createOpenDialog (QWidget *parent) |
| virtual void | initFileDialog (QFileDialog *) |
| virtual void | showDialog (bool b) |
| void | setChooseOnly (bool b) |
| Set to true to use only as a dialog to choose a file. | |
Protected Member Functions | |
| virtual QString | createFilterList ()=0 |
| Creates the list of open valid file types that can be put into the open dialog. | |
| virtual void | accept () |
| Called when the user presses the OK button. | |
| virtual void | cancel () |
| Called if the users chooses to cancel the open dialog. | |
| virtual bool | completeOpen ()=0 |
| virtual const char * | eventSignalName () |
Protected Attributes | |
| bool | myAccepted |
| QString | myFilename |
| QString | myStartingDirectory |
| bool | myChooseOnly |
| QString | mySelectedFilter |
Private Slots | |
| void | performThreadCheck () |
Default Constructor.
| virtual DtFileDialogHandler::~DtFileDialogHandler | ( | ) | [virtual] |
Destructor.
| bool DtFileDialogHandler::accepted | ( | ) | const [inline] |
References myAccepted.
| const QString & DtFileDialogHandler::filename | ( | ) | const [inline] |
Returns the filename that was selected to open.
References myFilename.
| const QString & DtFileDialogHandler::startingDirectory | ( | ) | const [inline] |
Returns the starting directory of this dialog or the last directory referenced.
References myStartingDirectory.
| void DtFileDialogHandler::setStartingDirectory | ( | const QString & | s | ) | [inline] |
References myStartingDirectory.
| const QString & DtFileDialogHandler::selectedFilter | ( | ) | const [inline] |
Returns the selected filter inside the dialog.
References mySelectedFilter.
| void DtFileDialogHandler::setSelectedFilter | ( | const QString & | s | ) | [inline] |
References mySelectedFilter.
| virtual QWidget* DtFileDialogHandler::createDialog | ( | QWidget * | w | ) | [virtual] |
Creates the dialog associated with this handler (if there is one)
Reimplemented from DtEventHandler.
| virtual QWidget* DtFileDialogHandler::createOpenDialog | ( | QWidget * | parent | ) | [virtual] |
| virtual void DtFileDialogHandler::initFileDialog | ( | QFileDialog * | ) | [virtual] |
Reimplemented in DtOpenDatabaseHandler, DtSaveDatabaseHandler, DtEntityEditorOpenHandler, and DtEntityEditorSaveHandler.
| virtual void DtFileDialogHandler::showDialog | ( | bool | b | ) | [virtual] |
Reimplemented from DtEventHandler.
| void DtFileDialogHandler::setChooseOnly | ( | bool | b | ) | [inline] |
Set to true to use only as a dialog to choose a file.
References myChooseOnly.
| virtual QString DtFileDialogHandler::createFilterList | ( | ) | [protected, pure virtual] |
Creates the list of open valid file types that can be put into the open dialog.
Implemented in DtOpenDatabaseHandler, DtSaveDatabaseHandler, DtEntityEditorOpenHandler, and DtEntityEditorSaveHandler.
| virtual void DtFileDialogHandler::accept | ( | ) | [protected, virtual] |
Called when the user presses the OK button.
Sets myFilename and myStartingDirectory based on what's in the dialog. Sets myAccepted to true. If myChooseOnly is false, it signals a DtFrontPreOpenComplete, calls completeOpen(), and then signals a DtFrontEndOpenCompleted.
| virtual void DtFileDialogHandler::cancel | ( | ) | [protected, virtual] |
Called if the users chooses to cancel the open dialog.
| virtual bool DtFileDialogHandler::completeOpen | ( | ) | [protected, pure virtual] |
Implemented in DtOpenDatabaseHandler, DtSaveDatabaseHandler, DtEntityEditorOpenHandler, and DtEntityEditorSaveHandler.
| virtual const char* DtFileDialogHandler::eventSignalName | ( | ) | [inline, protected, virtual] |
Reimplemented in DtOpenDatabaseHandler, and DtSaveDatabaseHandler.
References DtFileOpenDialogWidgetEvent.
| void DtFileDialogHandler::performThreadCheck | ( | ) | [private, slot] |
bool DtFileDialogHandler::myAccepted [protected] |
Referenced by accepted().
QString DtFileDialogHandler::myFilename [protected] |
Referenced by filename().
QString DtFileDialogHandler::myStartingDirectory [protected] |
Referenced by setStartingDirectory(), and startingDirectory().
bool DtFileDialogHandler::myChooseOnly [protected] |
Referenced by setChooseOnly().
QString DtFileDialogHandler::mySelectedFilter [protected] |
Referenced by selectedFilter(), and setSelectedFilter().