ViewState Class Reference

A class for managing view visualization states. More...

#include <ModelRightMenu.hh>

Inherits QObject.

Public Slots

void Callback ()
 QT callback for the QAction. More...
 

Public Member Functions

 ViewState (ModelRightMenu *_parent, const std::string &_checkRequest, const std::string &_uncheckRequest)
 Constructor. More...
 

Public Attributes

QAction * action
 Action for this view. More...
 
std::string checkRequest
 Name of the request to send when checked. More...
 
bool globalEnable
 True if the view visualization is enabled globally. More...
 
std::map< std::string, bool > modelStates
 State of all the models for this view. More...
 
ModelRightMenuparent
 Pointer to the ModelRightMenu. More...
 
std::string uncheckRequest
 Name of the request to send when unchecked. More...
 

Detailed Description

A class for managing view visualization states.

Used by ModelRightMenu.

Constructor & Destructor Documentation

§ ViewState()

ViewState ( ModelRightMenu _parent,
const std::string &  _checkRequest,
const std::string &  _uncheckRequest 
)

Constructor.

Parameters
[in]_parentPointer to the MOdelRightMenu
[in]_checkRequestName of the request to send when checked.
[in]_uncheckRequestName of the request to send when unchecked.

Member Function Documentation

§ Callback

void Callback ( )
slot

QT callback for the QAction.

Member Data Documentation

§ action

QAction* action

Action for this view.

§ checkRequest

std::string checkRequest

Name of the request to send when checked.

§ globalEnable

bool globalEnable

True if the view visualization is enabled globally.

§ modelStates

std::map<std::string, bool> modelStates

State of all the models for this view.

§ parent

ModelRightMenu* parent

Pointer to the ModelRightMenu.

§ uncheckRequest

std::string uncheckRequest

Name of the request to send when unchecked.


The documentation for this class was generated from the following file: