#include <LightApp_Selection.h>
Public Member Functions | |
LightApp_Selection () | |
virtual | ~LightApp_Selection () |
virtual void | init (const QString &, LightApp_SelectionMgr *) |
virtual bool | processOwner (const LightApp_DataOwner *) |
virtual int | count () const |
virtual QVariant | parameter (const QString &) const |
virtual QVariant | parameter (const int, const QString &) const |
void | setModuleName (const QString) |
Public Member Functions inherited from QtxPopupSelection | |
QtxPopupSelection () | |
Constructor. More... | |
virtual | ~QtxPopupSelection () |
Destructor. 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 *) |
Protected Types | |
enum | ObjectInformation { OI_Entry, OI_Reference, OI_User } |
Protected Member Functions | |
QString | entry (const int) const |
bool | isReference (const int) const |
LightApp_Study * | study () const |
QString | activeViewType () const |
SUIT_ViewWindow * | activeVW () const |
virtual QString | referencedToEntry (const QString &) const |
QVariant | objectInfo (const int, const int) const |
void | setObjectInfo (const int, const int, const QVariant &) |
Private Types | |
typedef QMap< int, QVariant > | ObjectInfo |
typedef QVector< ObjectInfo > | ObjectInfoVector |
Private Attributes | |
LightApp_Study * | myStudy |
QString | myContext |
ObjectInfoVector | myObjects |
Custom selection class, allowing to build popup with rules on the base of owners selected in all selectors (popup client has more priority). It is able to return values of standard object properties (isVisible,isComponent,canBeDisplayed,isReference, etc)
|
private |
|
private |
|
protected |
LightApp_Selection::LightApp_Selection | ( | ) |
Constructor
|
virtual |
Destructor.
|
protected |
Gets type of active view manager.
References activeVW(), SUIT_ViewManager::getType(), and SUIT_ViewWindow::getViewManager().
|
protected |
Gets active view window.
References SUIT_Session::activeApplication(), SUIT_Desktop::activeWindow(), app, SUIT_Application::desktop(), and SUIT_Session::session().
|
virtual |
|
protected |
Gets entry with index index.
References objectInfo(), and OI_Entry.
|
virtual |
Initialization.
References SUIT_Application::activeStudy(), LightApp_SelectionMgr::application(), LightApp_DataOwner::entry(), entry(), SUIT_Selector::isEnabled(), myContext, myObjects, myStudy, OI_Entry, OI_Reference, processOwner(), referencedToEntry(), SUIT_SelectionMgr::selected(), SUIT_Selector::selected(), SUIT_SelectionMgr::selectors(), setObjectInfo(), and SUIT_Selector::type().
|
protected |
Returns true if i-th selected object was reference to object with entry( i )
References objectInfo(), and OI_Reference.
Gets specified information about object with index idx.
References myObjects.
|
virtual |
Gets global parameters.
Gets the object parameter.
Gets global parameters. client, isActiveView, activeView etc.
Reimplemented from QtxPopupSelection.
References CAM_Application::activeModule(), activeViewType(), activeVW(), app, SUIT_Study::application(), myContext, myStudy, CAM_Module::name(), and QtxPopupSelection::parameter().
Gets the object parameter.
Implements QtxPopupSelection.
References app, SUIT_Study::application(), LightApp_Displayer::canBeDisplayed(), LightApp_Study::componentDataType(), entry(), LightApp_Displayer::FindDisplayer(), LightApp_Study::isComponent(), LightApp_Displayer::IsDisplayed(), isReference(), CAM_Application::moduleTitle(), and myStudy.
|
virtual |
Perform additional processing of the selected item (to be redefined by successors if necessary). Returns true
by default. Note: if this method returns false
, the item will be removed from the items list and not taken into account when showing popup menu.
owner | a data owner being processed |
true
if the owner should be collected and false
otherwise
|
protectedvirtual |
References myStudy, and LightApp_Study::referencedToEntry().
void LightApp_Selection::setModuleName | ( | const QString | ) |
|
protected |
Sets specified information about object with index idx.
References myObjects.
|
inlineprotected |
Gets study.
|
private |
|
private |
|
private |