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 |
This class is a part of the popup menu management system.
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 | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Get number of the selected objects.
Implemented in LightApp_Selection.
|
private |
Get symbol which detects the name of the parameter list.
References option().
QString QtxPopupSelection::option | ( | const QString & | optName | ) | const |
Get an option value.
optName | option name |
References myOptions.
|
pure virtual |
Get value of the parameter which is of list type.
idx | parameter index |
name | parameter name |
Implemented in LightApp_Selection.
|
virtual |
Get the parameter value.
str | parameter name |
Reimplemented in LightApp_Selection.
References QtxEvalSetSets::add(), count(), equalityParam(), QtxPopupMgr::parameter(), popupMgr(), and selCountParam().
QtxPopupMgr * QtxPopupSelection::popupMgr | ( | ) | const |
References myPopupMgr.
|
private |
Get name of the parameter, specifing number of selected objects.
References option().
void QtxPopupSelection::setOption | ( | const QString & | optName, |
const QString & | opt | ||
) |
void QtxPopupSelection::setPopupMgr | ( | QtxPopupMgr * | pm | ) |
References myPopupMgr.
|
private |
|
private |