VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots
DtFileDialogHandler Class Reference
Inheritance diagram for DtFileDialogHandler:
Inheritance graph
[legend]

List of all members.

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 QWidgetcreateDialog (QWidget *parent)
 Creates the dialog associated with this handler (if there is one)
virtual QWidgetcreateOpenDialog (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 ()

Constructor & Destructor Documentation

Default Constructor.

Destructor.


Member Function Documentation

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]
virtual void DtFileDialogHandler::showDialog ( bool  b) [virtual]

Reimplemented from DtEventHandler.

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]
virtual const char* DtFileDialogHandler::eventSignalName ( ) [inline, protected, virtual]
void DtFileDialogHandler::performThreadCheck ( ) [private, slot]

Member Data Documentation

Referenced by accepted().

QString DtFileDialogHandler::myFilename [protected]

Referenced by filename().

Referenced by setChooseOnly().


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)