This class is a part of the popup menu management system. More...
#include <QtxPopupMgr.h>
Public Member Functions | |
QtxPopupSelection () | |
Constructor. More... | |
virtual | ~QtxPopupSelection () |
Destructor. More... | |
virtual int | count () const =0 |
Get number of the selected objects. More... | |
virtual QVariant | parameter (const QString &) const |
Get the parameter value. More... | |
virtual QVariant | parameter (const int, const QString &) const =0 |
Get value of the parameter which is of list type. More... | |
QString | option (const QString &) const |
Get an option value. More... | |
void | setOption (const QString &, const QString &) |
Set an option value. More... | |
QtxPopupMgr * | popupMgr () const |
void | setPopupMgr (QtxPopupMgr *) |
Private Types | |
typedef QMap< QString, QString > | OptionsMap |
typedef QPointer< QtxPopupMgr > | PopupMgrPtr |
Private Member Functions | |
QString | equalityParam () const |
Get symbol which detects the name of the parameter list. More... | |
QString | selCountParam () const |
Get name of the parameter, specifing number of selected objects. More... | |
Private Attributes | |
OptionsMap | myOptions |
PopupMgrPtr | myPopupMgr |
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.
|
private |
|
private |
QtxPopupSelection::QtxPopupSelection | ( | ) |
|
virtual |
|
pure virtual |
Implemented in LightApp_Selection.
|
private |
References option().
QString QtxPopupSelection::option | ( | const QString & | optName | ) | const |
optName | option name |
References myOptions.
|
virtual |
str | parameter name |
Reimplemented in LightApp_Selection.
References QtxEvalSetSets::add(), count(), equalityParam(), QtxPopupMgr::parameter(), popupMgr(), and selCountParam().
idx | parameter index |
name | parameter name |
Implemented in LightApp_Selection.
QtxPopupMgr * QtxPopupSelection::popupMgr | ( | ) | const |
References myPopupMgr.
|
private |
References option().
optName | option name |
opt | option value |
References myOptions.
void QtxPopupSelection::setPopupMgr | ( | QtxPopupMgr * | pm | ) |
References myPopupMgr.
|
private |
|
private |