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_ |
| File chooser directory flag. | |
| bool | isSave_ |
| File chooser save file flag. | |
| String | itsFile_ |
| Last set file. | |
Widget for choosing a file.
Definition at line 101 of file QtEditingWidget.qo.h.
| casa::QtFileWidget::QtFileWidget | ( | bool | chooseDirectory, | |
| bool | saveFile, | |||
| QWidget * | parent = NULL | |||
| ) |
| casa::QtFileWidget::~QtFileWidget | ( | ) |
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] |
File chooser directory flag.
Definition at line 122 of file QtEditingWidget.qo.h.
bool casa::QtFileWidget::isSave_ [private] |
File chooser save file flag.
Definition at line 125 of file QtEditingWidget.qo.h.
String casa::QtFileWidget::itsFile_ [private] |
Last set file.
Definition at line 128 of file QtEditingWidget.qo.h.
1.6.1