This class is a part of the popup menu management system. More...
#include <QtxPopupMgr.h>

Public Member Functions | |
| QtxPopupSelection () | |
| Constructor. | |
| virtual | ~QtxPopupSelection () |
| Destructor. | |
| virtual int | count () const =0 |
| Get number of the selected objects. | |
| virtual QVariant | parameter (const QString &) const |
| Get the parameter value. | |
| virtual QVariant | parameter (const int, const QString &) const =0 |
| Get value of the parameter which is of list type. | |
| QString | option (const QString &) const |
| Get an option value. | |
| void | setOption (const QString &, const QString &) |
| Set an option value. | |
Private Types | |
| typedef QMap< QString, QString > | OptionsMap |
Private Member Functions | |
| QString | equalityParam () const |
| Get symbol which detects the name of the parameter list. | |
| QString | selCountParam () const |
| Get name of the parameter, specifing number of selected objects. | |
Private Attributes | |
| OptionsMap | myOptions |
The QtxPopupSelection class is used as back-end for getting value of each parameter found in the rule by the expression parser.
For example, it can be used for the analyzing of the currently selected objects and defining the values of the parameters used in the rules syntax expression. Rules, in their turn, define each action state - visibility, enabled and toggled state.
typedef QMap<QString, QString> QtxPopupSelection.OptionsMap [private] |
| QtxPopupSelection::QtxPopupSelection | ( | ) |
| QtxPopupSelection::~QtxPopupSelection | ( | ) | [virtual] |
| int QtxPopupSelection::count | ( | ) | const [pure virtual] |
Implemented in LightApp_Selection.
| QVariant QtxPopupSelection::parameter | ( | const QString & | str | ) | const [virtual] |
| str | parameter name |
Reimplemented in LightApp_Selection.
References QtxEvalSetSets.add(), count(), equalityParam(), and selCountParam().
| QVariant QtxPopupSelection::parameter | ( | const int | idx, |
| const QString & | name | ||
| ) | const [pure virtual] |
| idx | parameter index |
| name | parameter name |
Implemented in LightApp_Selection.
| QString QtxPopupSelection::option | ( | const QString & | optName | ) | const |
| optName | option name |
References myOptions.
| void QtxPopupSelection::setOption | ( | const QString & | optName, |
| const QString & | opt | ||
| ) |
| optName | option name |
| opt | option value |
References myOptions.
| QString QtxPopupSelection::equalityParam | ( | ) | const [private] |
References option().
| QString QtxPopupSelection::selCountParam | ( | ) | const [private] |
References option().
OptionsMap QtxPopupSelection.myOptions [private] |