|
Isis 3.0 Object Programmers' Reference |
Home |
#include <BrowseDialog.h>
Inheritance diagram for Qisis::BrowseDialog:


For internal use only.
Definition at line 28 of file BrowseDialog.h.
Public Slots | |
| 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. | |
Signals | |
| void | fileSelected (QString) |
| void | filterSelected (QString) |
Public Member Functions | |
| 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. | |
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. | |
Private Attributes | |
| QDir & | p_dir |
| The directory to open the dialog with. | |
| Qisis::BrowseDialog::BrowseDialog | ( | QString | title, | |
| QStringList & | filterList, | |||
| QDir & | directory, | |||
| QWidget * | parent = 0 | |||
| ) |
BrowseDialog constructor.
| title | ||
| filterList | ||
| directory | ||
| parent |
Definition at line 17 of file BrowseDialog.cpp.
References displayCube().
| void Qisis::FileDialog::cancel | ( | ) | [protected, slot, inherited] |
Called when user presses cancel.
Definition at line 121 of file FileDialog.cpp.
References Qisis::FileDialog::p_dir.
Referenced by Qisis::FileDialog::FileDialog().
| void Qisis::FileDialog::closeEvent | ( | QCloseEvent * | event | ) | [inherited] |
This method is overridden so that we can be sure to write the current settings of the Main window.
| event |
Definition at line 100 of file FileDialog.cpp.
References Qisis::FileDialog::writeSettings().
| void Qisis::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.
Definition at line 43 of file BrowseDialog.cpp.
References p_dir.
Referenced by BrowseDialog(), and done().
| void Qisis::FileDialog::done | ( | ) | [protected, slot, inherited] |
Called when the user presses OK.
Definition at line 110 of file FileDialog.cpp.
References Qisis::FileDialog::sendSignal().
Referenced by Qisis::FileDialog::FileDialog().
| void Qisis::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.
| r |
Definition at line 67 of file BrowseDialog.cpp.
References displayCube().
| bool Qisis::FileDialog::eventFilter | ( | QObject * | o, | |
| QEvent * | e | |||
| ) | [protected, inherited] |
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.
| o | ||
| e |
Definition at line 179 of file FileDialog.cpp.
References Qisis::FileDialog::writeSettings().
| void Qisis::FileDialog::readSettings | ( | ) | [inherited] |
This method is called from the constructor so that when the Main window is created, it know's it's size and location.
Definition at line 131 of file FileDialog.cpp.
References Isis::Filename::Expanded(), Qisis::FileDialog::p_appName, pos, and size.
Referenced by Qisis::FileDialog::FileDialog().
| void Qisis::FileDialog::saveFilter | ( | ) | [protected, slot, inherited] |
This is where we actually set the user editable filters and remember them.
Definition at line 65 of file FileDialog.cpp.
References Qisis::FileDialog::p_allPButtons, Qisis::FileDialog::p_comboBoxes, and Qisis::FileDialog::p_filterList.
Referenced by Qisis::FileDialog::FileDialog().
| void Qisis::FileDialog::sendSignal | ( | ) | [protected, slot, inherited] |
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.
Definition at line 80 of file FileDialog.cpp.
References Qisis::FileDialog::p_dir.
Referenced by Qisis::FileDialog::done(), and Qisis::FileDialog::FileDialog().
| void Qisis::FileDialog::writeSettings | ( | ) | [inherited] |
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.
Definition at line 151 of file FileDialog.cpp.
References Isis::Filename::Expanded(), Qisis::FileDialog::p_appName, pos, and size.
Referenced by Qisis::FileDialog::closeEvent(), and Qisis::FileDialog::eventFilter().
QDir& Qisis::BrowseDialog::p_dir [private] |
The directory to open the dialog with.
Reimplemented from Qisis::FileDialog.
Definition at line 38 of file BrowseDialog.h.
Referenced by displayCube().