Class for browsing cubes.
More...
#include <BrowseDialog.h>
|
void | displayCube () |
| This method is called after the user has selected a file either by double clicking on the file name or by pressing the 'view' button.
|
|
void | done (int r) |
| This is an overridden method from QDialog.
|
|
|
| BrowseDialog (QString title, QStringList &filterList, QDir &dir, QWidget *parent=0) |
| BrowseDialog constructor.
|
|
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.
|
|
|
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.
|
|
|
bool | eventFilter (QObject *o, QEvent *e) |
| This event filter is installed on the parent of this window.
|
|
Class for browsing cubes.
- Author
- ????-??-?? Stacy Alley
◆ BrowseDialog()
Isis::BrowseDialog::BrowseDialog |
( |
QString | title, |
|
|
QStringList & | filterList, |
|
|
QDir & | directory, |
|
|
QWidget * | parent = 0 ) |
◆ cancel
void Isis::FileDialog::cancel |
( |
| ) |
|
|
protectedslotinherited |
Called when user presses cancel.
Referenced by FileDialog().
◆ closeEvent()
void Isis::FileDialog::closeEvent |
( |
QCloseEvent * | event | ) |
|
|
inherited |
This method is overridden so that we can be sure to write the current settings of the Main window.
- Parameters
-
References writeSettings().
◆ displayCube
void Isis::BrowseDialog::displayCube |
( |
| ) |
|
|
slot |
This method is called after the user has selected a file either by double clicking on the file name or by pressing the 'view' button.
A signal is emitted which eventually calls the addBrowseView function from the Workspace object.
References Isis::FileDialog::fileSelected().
Referenced by BrowseDialog(), and done().
◆ done [1/2]
void Isis::BrowseDialog::done |
( |
int | r | ) |
|
|
slot |
This is an overridden method from QDialog.
QDialog closes the dialog. We want to leave the box open and display the cube in the view port.
- Parameters
-
References displayCube().
◆ done [2/2]
void Isis::FileDialog::done |
( |
| ) |
|
|
protectedslotinherited |
◆ eventFilter()
bool Isis::FileDialog::eventFilter |
( |
QObject * | o, |
|
|
QEvent * | e ) |
|
protectedinherited |
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
-
- Returns
- bool
References writeSettings().
◆ fileSelected
void Isis::FileDialog::fileSelected |
( |
QString | | ) |
|
|
signalinherited |
◆ filterSelected
void Isis::FileDialog::filterSelected |
( |
QString | | ) |
|
|
signalinherited |
◆ readSettings()
void Isis::FileDialog::readSettings |
( |
| ) |
|
|
inherited |
◆ saveFilter
void Isis::FileDialog::saveFilter |
( |
| ) |
|
|
protectedslotinherited |
This is where we actually set the user editable filters and remember them.
Referenced by FileDialog().
◆ sendSignal
void Isis::FileDialog::sendSignal |
( |
| ) |
|
|
protectedslotinherited |
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.
References fileSelected().
Referenced by done(), and FileDialog().
◆ writeSettings()
void Isis::FileDialog::writeSettings |
( |
| ) |
|
|
inherited |
The documentation for this class was generated from the following files: