Isis 3.0 Object Programmers' Reference |
Home |
Class for browsing cubes. More...
#include <FileDialog.h>
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. | |
Private Attributes | |
QList< QComboBox * > | p_comboBoxes |
QList< QPushButton * > | p_allPButtons |
QString | p_appName |
QDialog * | p_mainDialog |
QWidget * | p_parent |
QPushButton * | p_filterButton |
QLineEdit * | p_filterLine |
QStringList & | p_filterList |
QDir & | p_dir |
Class for browsing cubes.
2008-01-18 Stacy Alley - Changed the constructor to accept a QStringList which serves as the default filters for the file dialog boxes.
2008-01-28 Stacy Alley - Changed the constructor again to accept a QDir which is the default directory the file dialog box should point to.
2011-07-28 Steven Lambright - Now connects to the buttons' clicked signals instead of pressed, clicked is the appropriate signal. Fixes #270
Definition at line 28 of file FileDialog.h.
Isis::FileDialog::FileDialog | ( | QString | title, |
QStringList & | filterList, | ||
QDir & | directory, | ||
QWidget * | parent = 0 |
||
) |
I had to disconnect this buttons signal because I overwrote the
Definition at line 11 of file FileDialog.cpp.
References cancel(), done(), readSettings(), saveFilter(), and sendSignal().
|
protectedslot |
Called when user presses cancel.
Definition at line 127 of file FileDialog.cpp.
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.
event |
Definition at line 106 of file FileDialog.cpp.
References writeSettings().
|
protectedslot |
Called when the user presses OK.
Definition at line 116 of file FileDialog.cpp.
References sendSignal().
Referenced by FileDialog().
|
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.
o | |
e |
Definition at line 187 of file FileDialog.cpp.
References writeSettings().
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.
Definition at line 137 of file FileDialog.cpp.
Referenced by FileDialog().
|
protectedslot |
This is where we actually set the user editable filters and remember them.
Definition at line 71 of file FileDialog.cpp.
Referenced by FileDialog().
|
protectedslot |
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 86 of file FileDialog.cpp.
Referenced by done(), and 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.
Definition at line 158 of file FileDialog.cpp.
Referenced by closeEvent(), and eventFilter().