casa
5.7.0-16
|
Widget for choosing a file. More...
#include <QtEditingWidget.qo.h>
Public Member Functions | |
QtFileWidget (bool chooseDirectory, bool saveFile, QWidget *parent=NULL) | |
Constructor which takes a flag for whether the file is a directory or not (for the file chooser), a flag for whether the file is for saving (and thus doesn't need to exist, for the file chooser), and an optional parent widget. More... | |
~QtFileWidget () | |
Destructor. More... | |
casacore::String | getFile () const |
Gets/Sets the currently set file. More... | |
void | setFile (const casacore::String &file) |
Public Member Functions inherited from casa::QtEditingWidget | |
QtEditingWidget (QWidget *parent=NULL) | |
Constructor which takes an optional parent widget. More... | |
virtual | ~QtEditingWidget () |
Destructor. More... | |
virtual void | addRadioButtonsToGroup (QButtonGroup *group) const |
Adds any radio buttons in the widget to the given button group. More... | |
Private Slots | |
void | browse () |
Slot to show a file chooser and set the result in the line edit. More... | |
void | fileChanged () |
Slot for when the set file changes. More... | |
void | trimFileName () |
Private Attributes | |
bool | isDirectory_ |
casacore::File chooser directory flag. More... | |
bool | isSave_ |
casacore::File chooser save file flag. More... | |
casacore::String | itsFile_ |
Last set file. More... | |
Additional Inherited Members | |
Signals inherited from casa::QtEditingWidget | |
void | changed () |
This signal should be emitted whenever the user changes any value settings in the GUI. More... | |
void | differentFromSet () |
This signal should be emitted when the user changes any value settings in the GUI AND the new value is different from the last set value. More... | |
void | editDone () |
to change widget focus when editing done More... | |
Widget for choosing a file.
Definition at line 104 of file QtEditingWidget.qo.h.
casa::QtFileWidget::QtFileWidget | ( | bool | chooseDirectory, |
bool | saveFile, | ||
QWidget * | parent = NULL |
||
) |
Constructor which takes a flag for whether the file is a directory or not (for the file chooser), a flag for whether the file is for saving (and thus doesn't need to exist, for the file chooser), and an optional parent widget.
casa::QtFileWidget::~QtFileWidget | ( | ) |
Destructor.
|
privateslot |
Slot to show a file chooser and set the result in the line edit.
|
privateslot |
Slot for when the set file changes.
casacore::String casa::QtFileWidget::getFile | ( | ) | const |
Gets/Sets the currently set file.
void casa::QtFileWidget::setFile | ( | const casacore::String & | file | ) |
|
privateslot |
|
private |
casacore::File chooser directory flag.
Definition at line 125 of file QtEditingWidget.qo.h.
|
private |
casacore::File chooser save file flag.
Definition at line 128 of file QtEditingWidget.qo.h.
|
private |
Last set file.
Definition at line 131 of file QtEditingWidget.qo.h.