gui::BoolOption Class Reference

Widget to edit boolean option. More...

#include <booloption.h>

Inheritance diagram for gui::BoolOption:
gui::Option

List of all members.

Public Member Functions

 BoolOption (const QString &_key, QWidget *parent=0, bool _defValue=false)
virtual ~BoolOption ()
virtual QSize sizeHint () const
virtual void writeValue ()
virtual void readValue ()

Protected Slots

void boolChange ()

Protected Member Functions

virtual void resizeEvent (QResizeEvent *e)

Protected Attributes

QCheckBox * ed
bool defValue

Detailed Description

Widget to edit boolean option.

Class for widget containing one editable setting of type bool
Used as one item type in option window


Constructor & Destructor Documentation

gui::BoolOption::BoolOption ( const QString &  _key,
QWidget *  parent = 0,
bool  _defValue = false 
)

Default constructor of BoolOption item

Parameters:
parent parent Option Editor containing this control
_key Key in settings for this option
_defValue Default value if option not found
gui::BoolOption::~BoolOption (  )  [virtual]

default destructor


Member Function Documentation

void gui::BoolOption::boolChange (  )  [protected, slot]

Called when clicked on the checkbox

References ed.

void gui::BoolOption::readValue (  )  [virtual]

read value from settings for editing

Implements gui::Option.

void gui::BoolOption::resizeEvent ( QResizeEvent *  e  )  [protected, virtual]

Called on resizing of this option editing control

Parameters:
e resize event parameters
QSize gui::BoolOption::sizeHint (  )  const [virtual]

return size hint of this control

Returns:
preferred size of this control

References ed.

void gui::BoolOption::writeValue (  )  [virtual]

write edited value to settings

Implements gui::Option.

References ed.


Member Data Documentation

bool gui::BoolOption::defValue [protected]

Default value if option not found

QCheckBox* gui::BoolOption::ed [protected]

checkbox used for editing the value

Referenced by boolChange(), sizeHint(), and writeValue().


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