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 ( 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

void Callback ( )
slot

QT callback for the QAction.

Member Data Documentation

QAction* action

Action for this view.

std::string checkRequest

Name of the request to send when checked.

bool globalEnable

True if the view visualization is enabled globally.

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

State of all the models for this view.

ModelRightMenu* parent

Pointer to the ModelRightMenu.

std::string uncheckRequest

Name of the request to send when unchecked.


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