gui::FileOption Class Reference

Widget to edit option by typing or picking a file. More...

#include <fileoption.h>

Inheritance diagram for gui::FileOption:
gui::DialogOption gui::Option

List of all members.

Public Member Functions

 FileOption (const QString &_key=0, QWidget *parent=0, const QString &defValue=0)
virtual void dialog (QString &value)
virtual ~FileOption ()

Detailed Description

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


Constructor & Destructor Documentation

gui::FileOption::FileOption ( const QString &  _key = 0,
QWidget *  parent = 0,
const QString &  defValue = 0 
)

Default constructor of FileOption item

Parameters:
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


Member Function Documentation

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

Parameters:
value Reference to edited string

Implements gui::DialogOption.


The documentation for this class was generated from the following files: