Widget to edit option by typing or picking a file. More...
#include <fileoption.h>
Public Member Functions | |
| FileOption (const QString &_key=0, QWidget *parent=0, const QString &defValue=0) | |
| virtual void | dialog (QString &value) |
| virtual | ~FileOption () |
Widget to edit option by typing or picking a file.
FileOption - class for widget containing one editable string setting, while allowing to either type the name, or use dialog to pick the filename. User's choice
Used as one item type in option window
| gui::FileOption::FileOption | ( | const QString & | _key = 0, |
|
| QWidget * | parent = 0, |
|||
| const QString & | defValue = 0 | |||
| ) |
Default constructor of FileOption item
| parent | parent Option Editor containing this control | |
| _key | Key in settings for this option | |
| defValue | Default value if option not found in configuration |
| gui::FileOption::~FileOption | ( | ) | [virtual] |
default destructor
| void gui::FileOption::dialog | ( | QString & | value | ) | [virtual] |
Invoke the dialog to alter the edited value Reference to edited value is passed as parameter. This function should return after the dialog ended and may update the value as it seems approprieate based on user's interaction with the dialog
| value | Reference to edited string |
Implements gui::DialogOption.