![]() |
VR-Forces 4.1.1 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. | |
Public Member Functions inherited from DtEventHandler | |
| DtEventHandler () | |
| Default Constructor. | |
| virtual | ~DtEventHandler () |
| Destructor. | |
| virtual void | setEventController (DtEventController *) |
| virtual void | setInitialSelection (const QVector< DtModelKey > &d) |
| virtual QWidget * | dialog (bool createIfMissing=true, QWidget *parent=NULL) |
| If createIfMissing is true, will create the dialog based on the supplied parent window, else will simply return the dialog pointer. | |
| virtual void | reset () |
| virtual DtBaseWindow * | baseWindow () const |
| Returns the base window of the event controller. | |
| virtual void | activate () |
| Called when this event handler first becomes active. | |
| virtual void | deactivate () |
| Called when this event handler is removed as the current event. | |
| virtual void | setBaseWindow (DtBaseWindow *w) |
| Called when the base window is set for the event controller. | |
| virtual void | init () |
| Called when the handler is first created, initialize context. | |
| void | setSuspended (bool) |
| Set when something wants to suspend some aspect of this handler without deactivating it. | |
| bool | suspended () const |
| virtual void | dialogDestroyedEvent () |
| Called when dialog is destroyed. | |
Public Member Functions inherited from DtArchivableObject | |
| DtArchivableObject (QString name, DtArchivableObjectCreator fcn) | |
| This constructor will add this object to the archivable object factory. | |
| DtArchivableObject (QString name) | |
| DtArchivableObject () | |
| virtual | ~DtArchivableObject () |
| virtual QString | name () const |
| DtArchiver * | archiver () |
| Returns the archiver of this object. | |
| virtual void | read (QTextStream &s) |
| Reads/writes archiver. | |
| virtual void | write (QTextStream &s) |
| virtual void | setLevel (int i) |
| virtual int | level () const |
| virtual DtArchivableObject * | clone () |
| Allows for cloning of this object. | |
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 |
Protected Attributes inherited from DtEventHandler | |
| QWidget * | myEventDlg |
| DtEventController * | myEventController |
| bool | mySuspended |
Protected Attributes inherited from DtArchivableObject | |
| DtArchiver * | myArchiver |
Private Slots | |
| void | performThreadCheck () |
Additional Inherited Members | |
Public Slots inherited from DtEventHandler | |
| virtual bool | mouseEvent (DtTMMapArea *, QMouseEvent *evnt, const DtPoint &pnt) |
| virtual bool | keyboardEvent (DtTMMapArea *, QKeyEvent *evnt) |
| virtual bool | symbolsSelected (DtTMMapArea *area, DtSymbolList *sl) |
| virtual bool | selectionUpdated (DtTMMapArea *area, const QVector< DtModelKey > &d) |
| virtual bool | selectionInProgress (DtTMMapArea *area, DtSymbolSelector &d) |
| virtual bool | focusEvent (DtTMMapArea *, QEvent *evnt) |
| virtual bool | enterEvent (DtTMMapArea *area, QEvent *evnt) |
| virtual bool | leaveEvent (DtTMMapArea *area, QEvent *evnt) |
| virtual bool | dropEvent (DtTMMapArea *area, QDropEvent *evnt) |
| virtual bool | dragEnterEvent (DtTMMapArea *area, QDragEnterEvent *evnt) |
| virtual bool | dragMoveEvent (DtTMMapArea *area, QDragMoveEvent *evnt) |
| virtual bool | dragLeaveEvent (DtTMMapArea *area, QDragLeaveEvent *evnt) |
| virtual bool | userDefinedAction (DtUserDefinedType iAction, void *usr) |
| virtual bool | aboutToDraw (DtTMMapArea *area, QPainter *) |
| virtual bool | mapActivated (DtTMMapArea *area) |
| virtual bool | selectedModelDataUpdated (DtTMMapArea *area) |
| virtual bool | symbolAdded (DtTMMapArea *area, const DtModelKey &) |
| virtual bool | symbolRemoved (DtTMMapArea *area, const DtModelKey &) |
| virtual bool | disconnecting (DtTMMapArea *area) |
| Called when a map is being disconnect from an event handler. | |
| virtual bool | connecting (DtTMMapArea *area) |
| Called when a map is being connected to an event handler. | |
| virtual void | tick () |
| virtual void | clearDialog () |
Signals inherited from DtEventHandler | |
| void | closedDialog () |
| DtFileDialogHandler::DtFileDialogHandler | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
inline |
References myAccepted.
|
inline |
Returns the filename that was selected to open.
References myFilename.
|
inline |
Returns the starting directory of this dialog or the last directory referenced.
References myStartingDirectory.
|
inline |
References myStartingDirectory.
|
inline |
Returns the selected filter inside the dialog.
References mySelectedFilter.
|
inline |
References mySelectedFilter.
Creates the dialog associated with this handler (if there is one)
Reimplemented from DtEventHandler.
|
virtual |
Reimplemented in DtOpenDatabaseHandler, DtSaveDatabaseHandler, DtEntityEditorOpenHandler, and DtEntityEditorSaveHandler.
|
virtual |
Reimplemented from DtEventHandler.
|
inline |
Set to true to use only as a dialog to choose a file.
References myChooseOnly.
|
protectedpure virtual |
Creates the list of open valid file types that can be put into the open dialog.
Implemented in DtOpenDatabaseHandler, DtSaveDatabaseHandler, DtEntityEditorOpenHandler, and DtEntityEditorSaveHandler.
|
protectedvirtual |
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.
|
protectedvirtual |
Called if the users chooses to cancel the open dialog.
|
protectedpure virtual |
Implemented in DtOpenDatabaseHandler, DtSaveDatabaseHandler, DtEntityEditorOpenHandler, and DtEntityEditorSaveHandler.
|
inlineprotectedvirtual |
Reimplemented in DtOpenDatabaseHandler, and DtSaveDatabaseHandler.
References DtFileOpenDialogWidgetEvent.
|
privateslot |
|
protected |
Referenced by accepted().
|
protected |
Referenced by filename().
|
protected |
Referenced by setStartingDirectory(), and startingDirectory().
|
protected |
Referenced by setChooseOnly().
|
protected |
Referenced by selectedFilter(), and setSelectedFilter().