OpenMS  2.8.0
Public Member Functions | Private Attributes | List of all members
TOPPViewMenu::ActionRequirement_ Struct Reference
Collaboration diagram for TOPPViewMenu::ActionRequirement_:
[legend]

Public Member Functions

 ActionRequirement_ (QAction *action, const FS_TV &needs, const FS_LAYER layer_set)
 
 ActionRequirement_ (QAction *action, const TV_STATUS &needs, const FS_LAYER layer_set)
 
void enableAction (const FS_TV status, const LayerDataBase::DataType layer_type)
 

Private Attributes

QAction * action_
 
FS_TV needs_
 
FS_LAYER layer_set_
 

Constructor & Destructor Documentation

◆ ActionRequirement_() [1/2]

ActionRequirement_ ( QAction *  action,
const FS_TV needs,
const FS_LAYER  layer_set 
)
inline

◆ ActionRequirement_() [2/2]

ActionRequirement_ ( QAction *  action,
const TV_STATUS needs,
const FS_LAYER  layer_set 
)
inline

Member Function Documentation

◆ enableAction()

void enableAction ( const FS_TV  status,
const LayerDataBase::DataType  layer_type 
)

check if an ActionRequirement is fulfilled by the arguments i.e. status is a superset of needs_ and layer_type is a superset of layer_set_ (or layer_set_ is empty) If yes, the the action to enabled, or disable it otherwise

Member Data Documentation

◆ action_

QAction* action_
private

◆ layer_set_

FS_LAYER layer_set_
private

◆ needs_

FS_TV needs_
private