#include <QtxPagePrefMgr.h>

Public Member Functions | |
| QtxPagePrefSliderItem (const QString &, QtxPreferenceItem *=0, const QString &=QString(), const QString &=QString()) | |
| Constructor. | |
| virtual | ~QtxPagePrefSliderItem () |
| Destructor. | |
| int | singleStep () const |
| Get slider preference item step value. | |
| int | pageStep () const |
| Get slider preference item step value. | |
| int | minimum () const |
| Get slider preference item minimum value. | |
| int | maximum () const |
| Get slider preference item maximum value. | |
| QList< QIcon > | icons () const |
| Get the list of the icons associated with the selection widget items. | |
| void | setSingleStep (const int &) |
| Set slider preference item step value. | |
| void | setPageStep (const int &) |
| Set slider preference item step value. | |
| void | setMinimum (const int &) |
| Set slider preference item minimum value. | |
| void | setMaximum (const int &) |
| Set slider preference item maximum value. | |
| void | setIcons (const QList< QIcon > &) |
| Set the list of the icons to the selection widget items. | |
| virtual void | store () |
| Store preference item to the resource manager. | |
| virtual void | retrieve () |
| Retrieve preference item from the resource manager. | |
| virtual void | setTitle (const QString &) |
| Set preference title. | |
| QWidget * | widget () const |
| Get preference item editor widget. | |
| virtual void | activate () |
| void | ensureVisible () |
| int | id () const |
| Get unique item identifier. | |
| virtual int | rtti () const |
| Get unique item type identifier. | |
| QtxPreferenceItem * | rootItem () const |
| Get root preference item. | |
| QtxPreferenceItem * | parentItem () const |
| Get parent preference item. | |
| QList< QtxPreferenceItem * > | childItems (const bool=false) const |
| Get all child preference items. | |
| int | depth () const |
| Get preference item depth. | |
| int | count () const |
| Get child preference items number. | |
| virtual bool | isEmpty () const |
| Check if the item has children. | |
| void | appendItem (QtxPreferenceItem *) |
| Append child preference item. | |
| void | removeItem (QtxPreferenceItem *) |
| Remove child preference item. | |
| void | insertItem (QtxPreferenceItem *, QtxPreferenceItem *=0) |
| Insert child preference item before specified item. If the before item is 0 then new item is appended. | |
| QIcon | icon () const |
| Get preference item icon. | |
| QString | title () const |
| Get preference item title. | |
| void | resource (QString &, QString &) const |
| Get resource file settings associated to the preference item. | |
| virtual void | setIcon (const QIcon &) |
| Set prefence item icon. | |
| virtual void | setResource (const QString &, const QString &) |
| Assign resource file settings to the preference item. | |
| virtual void | updateContents () |
| Update preference item. | |
| QVariant | option (const QString &) const |
| Get preference item option value. | |
| void | setOption (const QString &, const QVariant &) |
| Set preference item option value. | |
| bool | isEvaluateValues () const |
| void | setEvaluateValues (const bool) |
| QString | resourceValue () const |
| Get the value of the associated resource file setting. | |
| void | setResourceValue (const QString &) |
| Get the value of the associated resource file setting. | |
| QtxPreferenceItem * | findItem (const int, const bool=false) const |
| Find the item by the specified identifier. | |
| QtxPreferenceItem * | findItem (const QString &, const bool=false) const |
| Find the item by the specified title. | |
| QtxPreferenceItem * | findItem (const QString &, const int, const bool=false) const |
| Find the item by the specified title and identifier. | |
| virtual QtxResourceMgr * | resourceMgr () const |
| Get the resources manager. | |
| virtual QtxPreferenceMgr * | preferenceMgr () const |
| Get the parent preferences manager. | |
Static Public Member Functions | |
| static void | adjustLabels (QtxPagePrefItem *) |
| static int | RTTI () |
| Specify unique item class identifier. | |
Protected Types | |
| typedef QList < QtxPreferenceItem * > | ItemList |
Protected Member Functions | |
| virtual QVariant | optionValue (const QString &) const |
| Get preference item option value. | |
| virtual void | setOptionValue (const QString &, const QVariant &) |
| Set preference item option value. | |
| QLabel * | label () const |
| Get label widget corresponding to the preference item. | |
| QWidget * | control () const |
| Get control widget corresponding to the preference item. | |
| void | setControl (QWidget *) |
| Set control widget corresponding to the preference item. | |
| void | setWidget (QWidget *) |
| Set preference item editor widget. | |
| virtual void | itemAdded (QtxPreferenceItem *) |
| Callback function which is called when the child preference item is added. | |
| virtual void | itemRemoved (QtxPreferenceItem *) |
| Callback function which is called when the child preference item is removed. | |
| virtual void | itemChanged (QtxPreferenceItem *) |
| Callback function which is called when the child preference item is modified. | |
| void | pageChildItems (QList< QtxPagePrefItem * > &, const bool=false) const |
| Find all child items of the QtxPagePrefItem type. | |
| virtual void | widgetShown () |
| Invoked when preference item widget is shown. | |
| virtual void | widgetHided () |
| Invoked when preference item widget is hided. | |
| virtual void | ensureVisible (QtxPreferenceItem *) |
| int | getInteger (const int=0) const |
| Get integer resources value corresponding to the item. | |
| double | getDouble (const double=0.0) const |
| Get double resources value corresponding to the item. | |
| bool | getBoolean (const bool=false) const |
| Get boolean resources value corresponding to the item. | |
| QColor | getColor (const QColor &=QColor()) const |
| Get color resources value corresponding to the item. | |
| QFont | getFont (const QFont &=QFont()) const |
| Get font resources value corresponding to the item. | |
| QString | getString (const QString &=QString()) const |
| Get string resources value corresponding to the item. | |
| void | setInteger (const int) |
| Set integer resources value corresponding to the item. | |
| void | setDouble (const double) |
| Set double resources value corresponding to the item. | |
| void | setBoolean (const bool) |
| Set boolean resources value corresponding to the item. | |
| void | setColor (const QColor &) |
| Set color resources value corresponding to the item. | |
| void | setFont (const QFont &) |
| Set font resources value corresponding to the item. | |
| void | setString (const QString &) |
| Set string resources value corresponding to the item. | |
| void | sendItemChanges () |
| Initiate item changing call back operation. | |
| virtual void | triggerUpdate () |
| Initiate item updating. | |
Private Slots | |
| void | setIcon (int) |
Private Member Functions | |
| void | updateSlider () |
| Update slider widget. | |
| void | setIcons (const QVariant &) |
| Set the list of the icons from the resource manager. | |
Private Attributes | |
| QSlider * | mySlider |
| QLabel * | myLabel |
| QList< QIcon > | myIcons |
typedef QList<QtxPreferenceItem*> QtxPreferenceItem.ItemList [protected, inherited] |
| QtxPagePrefSliderItem::QtxPagePrefSliderItem | ( | const QString & | title, |
| QtxPreferenceItem * | parent = 0, |
||
| const QString & | sect = QString(), |
||
| const QString & | param = QString() |
||
| ) |
Creates preference item with slider widget
| title | preference item title |
| parent | parent preference item |
| sect | resource file section associated with the preference item |
| param | resource file parameter associated with the preference item |
References Horizontal, myLabel, mySlider, QtxPageNamedPrefItem.setControl(), setIcon(), setMaximum(), setMinimum(), setPageStep(), setSingleStep(), updateSlider(), and QtxPagePrefItem.widget().
| QtxPagePrefSliderItem::~QtxPagePrefSliderItem | ( | ) | [virtual] |
| int QtxPagePrefSliderItem::singleStep | ( | ) | const |
| int QtxPagePrefSliderItem::pageStep | ( | ) | const |
| int QtxPagePrefSliderItem::minimum | ( | ) | const |
| int QtxPagePrefSliderItem::maximum | ( | ) | const |
| QList< QIcon > QtxPagePrefSliderItem::icons | ( | ) | const |
| void QtxPagePrefSliderItem::setSingleStep | ( | const int & | step | ) |
| void QtxPagePrefSliderItem::setPageStep | ( | const int & | step | ) |
| void QtxPagePrefSliderItem::setMinimum | ( | const int & | min | ) |
| void QtxPagePrefSliderItem::setMaximum | ( | const int & | max | ) |
| void QtxPagePrefSliderItem::setIcons | ( | const QList< QIcon > & | icns | ) |
| void QtxPagePrefSliderItem::store | ( | ) | [virtual] |
Reimplemented from QtxPagePrefItem.
References mySlider, and QtxPreferenceItem.setInteger().
| void QtxPagePrefSliderItem::retrieve | ( | ) | [virtual] |
Reimplemented from QtxPagePrefItem.
References QtxPreferenceItem.getInteger(), and mySlider.
| QVariant QtxPagePrefSliderItem::optionValue | ( | const QString & | name | ) | const [protected, virtual] |
| name | option name |
Reimplemented from QtxPreferenceItem.
References icons(), maximum(), minimum(), pageStep(), and singleStep().
| void QtxPagePrefSliderItem::setOptionValue | ( | const QString & | name, |
| const QVariant & | val | ||
| ) | [protected, virtual] |
| name | option name |
| val | new property value |
Reimplemented from QtxPreferenceItem.
References setIcons(), setMaximum(), setMinimum(), setPageStep(), and setSingleStep().
| void QtxPagePrefSliderItem::setIcon | ( | int | pos | ) | [private, slot] |
| void QtxPagePrefSliderItem::updateSlider | ( | ) | [private] |
| void QtxPagePrefSliderItem::setIcons | ( | const QVariant & | var | ) | [private] |
| var | new icons list |
References setIcons().
| void QtxPageNamedPrefItem::setTitle | ( | const QString & | txt | ) | [virtual, inherited] |
| txt | new preference title. |
Reimplemented from QtxPreferenceItem.
References QtxPreferenceItem.isEmpty(), QtxPageNamedPrefItem.label(), and QtxPreferenceItem.title().
| void QtxPageNamedPrefItem::adjustLabels | ( | QtxPagePrefItem * | parent | ) | [static, inherited] |
References QtxPreferenceItem.childItems(), and QtxPageNamedPrefItem.label().
| QLabel * QtxPageNamedPrefItem::label | ( | ) | const [protected, inherited] |
References QtxPageNamedPrefItem.myLabel.
| QWidget * QtxPageNamedPrefItem::control | ( | ) | const [protected, inherited] |
| void QtxPageNamedPrefItem::setControl | ( | QWidget * | wid | ) | [protected, inherited] |
| wid | control widget |
References QtxPageNamedPrefItem.myControl, and QtxPagePrefItem.widget().
| QWidget * QtxPagePrefItem::widget | ( | ) | const [inherited] |
| void QtxPagePrefItem::activate | ( | ) | [virtual, inherited] |
Reimplemented from QtxPreferenceItem.
References QtxPagePrefItem.widget().
| void QtxPagePrefItem::setWidget | ( | QWidget * | wid | ) | [protected, inherited] |
| wid | editor widget |
References QtxPagePrefItem.myListener, QtxPagePrefItem.myWidget, and QtxPreferenceItem.sendItemChanges().
| void QtxPagePrefItem::itemAdded | ( | QtxPreferenceItem * | ) | [protected, virtual, inherited] |
| item | child item being added |
Reimplemented from QtxPreferenceItem.
References QtxPagePrefItem.contentChanged().
| void QtxPagePrefItem::itemRemoved | ( | QtxPreferenceItem * | ) | [protected, virtual, inherited] |
| item | child item being removed |
Reimplemented from QtxPreferenceItem.
References QtxPagePrefItem.contentChanged().
| void QtxPagePrefItem::itemChanged | ( | QtxPreferenceItem * | ) | [protected, virtual, inherited] |
| item | child item being modified |
Reimplemented from QtxPreferenceItem.
References QtxPagePrefItem.contentChanged().
| void QtxPagePrefItem::pageChildItems | ( | QList< QtxPagePrefItem * > & | list, |
| const bool | rec = false |
||
| ) | const [protected, inherited] |
| list | used to return list of child items |
| rec | if true, perform recursive search |
References QtxPreferenceItem.childItems().
| void QtxPagePrefItem::widgetShown | ( | ) | [protected, virtual, inherited] |
Reimplemented in QtxPagePrefListItem, QtxPagePrefFrameItem, and QtxPagePrefGroupItem.
| void QtxPagePrefItem::widgetHided | ( | ) | [protected, virtual, inherited] |
| void QtxPagePrefItem::ensureVisible | ( | QtxPreferenceItem * | i | ) | [protected, virtual, inherited] |
Reimplemented from QtxPreferenceItem.
Reimplemented in QtxPagePrefListItem, QtxPagePrefToolBoxItem, and QtxPagePrefTabsItem.
References QtxPreferenceItem.ensureVisible(), and QtxPagePrefItem.widget().
| void QtxPreferenceItem::ensureVisible | ( | ) | [inherited] |
References QtxPreferenceItem.ensureVisible(), and QtxPreferenceItem.parentItem().
| int QtxPreferenceItem::id | ( | ) | const [inherited] |
References QtxPreferenceItem.myId.
| int QtxPreferenceItem::rtti | ( | ) | const [virtual, inherited] |
References QtxPreferenceItem.RTTI().
| QtxPreferenceItem * QtxPreferenceItem::rootItem | ( | ) | const [inherited] |
References QtxPreferenceItem.parentItem().
| QtxPreferenceItem * QtxPreferenceItem::parentItem | ( | ) | const [inherited] |
References QtxPreferenceItem.myParent.
| QList< QtxPreferenceItem * > QtxPreferenceItem::childItems | ( | const bool | rec = false | ) | const [inherited] |
| rec | recursion boolean flag |
References QtxPreferenceItem.myChildren.
| int QtxPreferenceItem::depth | ( | ) | const [inherited] |
References QtxPreferenceItem.depth(), and QtxPreferenceItem.parentItem().
| int QtxPreferenceItem::count | ( | ) | const [inherited] |
| bool QtxPreferenceItem::isEmpty | ( | ) | const [virtual, inherited] |
true if item does not have children References QtxPreferenceItem.myChildren.
| void QtxPreferenceItem::appendItem | ( | QtxPreferenceItem * | item | ) | [inherited] |
Removes (if necessary) the item from the previous parent.
| item | item to be added |
References QtxPreferenceItem.insertItem().
| void QtxPreferenceItem::removeItem | ( | QtxPreferenceItem * | item | ) | [inherited] |
| item | item to be removed |
References QtxPreferenceItem.itemRemoved(), QtxPreferenceItem.myChildren, and QtxPreferenceItem.myParent.
| void QtxPreferenceItem::insertItem | ( | QtxPreferenceItem * | item, |
| QtxPreferenceItem * | before = 0 |
||
| ) | [inherited] |
Removes (if necessary) the item from the previous parent.
| item | item to be added |
| before | item before which is inserted new |
References QtxPreferenceItem.itemAdded(), QtxPreferenceItem.myChildren, QtxPreferenceItem.myParent, QtxPreferenceItem.parentItem(), and QtxPreferenceItem.removeItem().
| QIcon QtxPreferenceItem::icon | ( | ) | const [inherited] |
| QString QtxPreferenceItem::title | ( | ) | const [inherited] |
| void QtxPreferenceItem::resource | ( | QString & | sec, |
| QString & | param | ||
| ) | const [inherited] |
| sec | used to return resource file section name |
| param | used to return resource file parameter name |
References QtxPreferenceItem.myParameter, and QtxPreferenceItem.mySection.
| void QtxPreferenceItem::setIcon | ( | const QIcon & | ico | ) | [virtual, inherited] |
| ico | new item icon |
References QtxPreferenceItem.myIcon, and QtxPreferenceItem.sendItemChanges().
| void QtxPreferenceItem::setResource | ( | const QString & | sec, |
| const QString & | param | ||
| ) | [virtual, inherited] |
| sec | resource file section name |
| param | resource file parameter name |
Reimplemented in QtxPagePrefGroupItem.
References QtxPreferenceItem.myParameter, and QtxPreferenceItem.mySection.
| void QtxPreferenceItem::updateContents | ( | ) | [virtual, inherited] |
Reimplemented in QtxPagePrefMgr, QtxPagePrefListItem, QtxPagePrefToolBoxItem, QtxPagePrefTabsItem, QtxPagePrefFrameItem, and QtxPagePrefGroupItem.
References QtxPreferenceItem.Updater.instance(), and QtxPreferenceItem.Updater.removeItem().
| QVariant QtxPreferenceItem::option | ( | const QString & | name | ) | const [inherited] |
| name | option name |
References QtxPreferenceItem.optionValue().
| void QtxPreferenceItem::setOption | ( | const QString & | name, |
| const QVariant & | val | ||
| ) | [inherited] |
| name | option name |
| val | new property value |
References QtxPreferenceItem.optionValue(), QtxPreferenceItem.sendItemChanges(), and QtxPreferenceItem.setOptionValue().
| bool QtxPreferenceItem::isEvaluateValues | ( | ) | const [inherited] |
References QtxPreferenceItem.myEval.
| void QtxPreferenceItem::setEvaluateValues | ( | const bool | on | ) | [inherited] |
References QtxPreferenceItem.myEval.
| QString QtxPreferenceItem::resourceValue | ( | ) | const [inherited] |
References QtxPreferenceItem.getString().
| void QtxPreferenceItem::setResourceValue | ( | const QString & | val | ) | [inherited] |
| val | new associated resource file setting value |
References QtxPreferenceItem.setString().
| QtxPreferenceItem * QtxPreferenceItem::findItem | ( | const int | id, |
| const bool | rec = false |
||
| ) | const [inherited] |
| id | child item ID |
| rec | if true recursive search is done |
References QtxPreferenceItem.findItem(), QtxPreferenceItem.id(), and QtxPreferenceItem.myChildren.
| QtxPreferenceItem * QtxPreferenceItem::findItem | ( | const QString & | title, |
| const bool | rec = false |
||
| ) | const [inherited] |
| title | child item title |
| rec | if true recursive search is done |
References QtxPreferenceItem.findItem(), QtxPreferenceItem.myChildren, and QtxPreferenceItem.title().
| QtxPreferenceItem * QtxPreferenceItem::findItem | ( | const QString & | title, |
| const int | id, | ||
| const bool | rec = false |
||
| ) | const [inherited] |
| title | child item title |
| id | child item ID |
| rec | if true recursive search is done |
References QtxPreferenceItem.findItem(), QtxPreferenceItem.id(), QtxPreferenceItem.myChildren, and QtxPreferenceItem.title().
| QtxResourceMgr * QtxPreferenceItem::resourceMgr | ( | ) | const [virtual, inherited] |
Reimplemented in QtxPreferenceMgr.
References QtxPreferenceItem.preferenceMgr(), and QtxPreferenceMgr.resourceMgr().
| QtxPreferenceMgr * QtxPreferenceItem::preferenceMgr | ( | ) | const [virtual, inherited] |
Reimplemented in QtxPreferenceMgr.
References QtxPreferenceItem.parentItem(), and QtxPreferenceItem.preferenceMgr().
| int QtxPreferenceItem::RTTI | ( | ) | [static, inherited] |
| int QtxPreferenceItem::getInteger | ( | const int | val = 0 | ) | const [protected, inherited] |
| val | default value (returned if there is no such resource) |
References QtxResourceMgr.integerValue(), QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, and QtxPreferenceItem.resourceMgr().
| double QtxPreferenceItem::getDouble | ( | const double | val = 0.0 | ) | const [protected, inherited] |
| val | default value (returned if there is no such resource) |
References QtxResourceMgr.doubleValue(), QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, and QtxPreferenceItem.resourceMgr().
| bool QtxPreferenceItem::getBoolean | ( | const bool | val = false | ) | const [protected, inherited] |
| val | default value (returned if there is no such resource) |
References QtxResourceMgr.booleanValue(), QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, and QtxPreferenceItem.resourceMgr().
| QColor QtxPreferenceItem::getColor | ( | const QColor & | val = QColor() | ) | const [protected, inherited] |
| val | default value (returned if there is no such resource) |
References QtxResourceMgr.colorValue(), QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, and QtxPreferenceItem.resourceMgr().
| QFont QtxPreferenceItem::getFont | ( | const QFont & | val = QFont() | ) | const [protected, inherited] |
| val | default value (returned if there is no such resource) |
References QtxResourceMgr.fontValue(), QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, and QtxPreferenceItem.resourceMgr().
| QString QtxPreferenceItem::getString | ( | const QString & | val = QString() | ) | const [protected, inherited] |
| val | default value (returned if there is no such resource) |
References QtxPreferenceItem.isEvaluateValues(), QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, QtxPreferenceItem.resourceMgr(), and QtxResourceMgr.value().
| void QtxPreferenceItem::setInteger | ( | const int | val | ) | [protected, inherited] |
| val | new value |
References QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, QtxPreferenceItem.resourceMgr(), and QtxResourceMgr.setValue().
| void QtxPreferenceItem::setDouble | ( | const double | val | ) | [protected, inherited] |
| val | new value |
References QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, QtxPreferenceItem.resourceMgr(), and QtxResourceMgr.setValue().
| void QtxPreferenceItem::setBoolean | ( | const bool | val | ) | [protected, inherited] |
| val | new value |
References QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, QtxPreferenceItem.resourceMgr(), and QtxResourceMgr.setValue().
| void QtxPreferenceItem::setColor | ( | const QColor & | val | ) | [protected, inherited] |
| val | new value |
References QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, QtxPreferenceItem.resourceMgr(), and QtxResourceMgr.setValue().
| void QtxPreferenceItem::setFont | ( | const QFont & | val | ) | [protected, inherited] |
| val | new value |
References QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, QtxPreferenceItem.resourceMgr(), and QtxResourceMgr.setValue().
| void QtxPreferenceItem::setString | ( | const QString & | val | ) | [protected, inherited] |
| val | new value |
References QtxPreferenceItem.myParameter, QtxPreferenceItem.mySection, QtxPreferenceItem.resourceMgr(), and QtxResourceMgr.setValue().
| void QtxPreferenceItem::sendItemChanges | ( | ) | [protected, inherited] |
References QtxPreferenceItem.itemChanged(), and QtxPreferenceItem.parentItem().
| void QtxPreferenceItem::triggerUpdate | ( | ) | [protected, virtual, inherited] |
QSlider* QtxPagePrefSliderItem.mySlider [private] |
QLabel* QtxPagePrefSliderItem.myLabel [private] |
Reimplemented from QtxPageNamedPrefItem.
QList<QIcon> QtxPagePrefSliderItem.myIcons [private] |