USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::FileDialog Class Reference

Class for browsing cubes. More...

#include <FileDialog.h>

Inherits QFileDialog.

Inherited by Isis::BrowseDialog, and Isis::SaveAsDialog.

List of all members.

Signals

void fileSelected (QString)
void filterSelected (QString)

Public Member Functions

 FileDialog (QString title, QStringList &filterList, QDir &directory, QWidget *parent=0)
void closeEvent (QCloseEvent *event)
 This method is overridden so that we can be sure to write the current settings of the Main window.
void readSettings ()
 This method is called from the constructor so that when the Main window is created, it know's it's size and location.
void writeSettings ()
 This method is called when the File Dialog is closed or hidden to write the size and location settings to a config file in the user's home directory.

Protected Slots

void sendSignal ()
 This saves the directory that the user selected the file from so it can open to this directory next time.
void done ()
 Called when the user presses OK.
void cancel ()
 Called when user presses cancel.
void saveFilter ()
 This is where we actually set the user editable filters and remember them.

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e)
 This event filter is installed on the parent of this window.

Detailed Description

Class for browsing cubes.

Author:
????-??-?? Stacy Alley

Constructor & Destructor Documentation

Isis::FileDialog::FileDialog ( QString  title,
QStringList &  filterList,
QDir &  directory,
QWidget parent = 0 
)

Member Function Documentation

void Isis::FileDialog::cancel (  )  [protected, slot]

Called when user presses cancel.

Referenced by FileDialog().

void Isis::FileDialog::closeEvent ( QCloseEvent *  event  ) 

This method is overridden so that we can be sure to write the current settings of the Main window.

Parameters:
event 

Referenced by FileDialog().

void Isis::FileDialog::done (  )  [protected, slot]

Called when the user presses OK.

Referenced by FileDialog().

bool Isis::FileDialog::eventFilter ( QObject o,
QEvent *  e 
) [protected]

This event filter is installed on the parent of this window.

When the user closes the main window of the application, the FileDialog will write their settings even though they did not receive the close event themselves.

Parameters:
o 
e 
Returns:
bool

Referenced by FileDialog().

void Isis::FileDialog::fileSelected ( QString  _t1  )  [signal]

Referenced by FileDialog().

void Isis::FileDialog::filterSelected ( QString  _t1  )  [signal]
void Isis::FileDialog::readSettings (  ) 

This method is called from the constructor so that when the Main window is created, it know's it's size and location.

Referenced by FileDialog().

void Isis::FileDialog::saveFilter (  )  [protected, slot]

This is where we actually set the user editable filters and remember them.

Referenced by FileDialog().

void Isis::FileDialog::sendSignal (  )  [protected, slot]

This saves the directory that the user selected the file from so it can open to this directory next time.

Also, emits the signal to open the selected file.

Referenced by FileDialog().

void Isis::FileDialog::writeSettings (  ) 

This method is called when the File Dialog is closed or hidden to write the size and location settings to a config file in the user's home directory.

Referenced by FileDialog().


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