casa
$Rev:20696$
|
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. | |
~QtFileWidget () | |
Destructor. | |
String | getFile () const |
Gets/Sets the currently set file. | |
void | setFile (const String &file) |
Private Slots | |
void | browse () |
Slot to show a file chooser and set the result in the line edit. | |
void | fileChanged () |
Slot for when the set file changes. | |
void | trimFileName () |
Private Attributes | |
bool | isDirectory_ |
bool | isSave_ |
File chooser save file flag. | |
String | itsFile_ |
Last set file. |
Widget for choosing a file.
Definition at line 103 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.
Destructor.
void casa::QtFileWidget::browse | ( | ) | [private, slot] |
Slot to show a file chooser and set the result in the line edit.
void casa::QtFileWidget::fileChanged | ( | ) | [private, slot] |
Slot for when the set file changes.
String casa::QtFileWidget::getFile | ( | ) | const |
Gets/Sets the currently set file.
void casa::QtFileWidget::setFile | ( | const String & | file | ) |
void casa::QtFileWidget::trimFileName | ( | ) | [private, slot] |
bool casa::QtFileWidget::isDirectory_ [private] |
bool casa::QtFileWidget::isSave_ [private] |
File chooser save file flag.
Definition at line 127 of file QtEditingWidget.qo.h.
String casa::QtFileWidget::itsFile_ [private] |
Last set file.
Definition at line 130 of file QtEditingWidget.qo.h.