Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ConfigurationEditor::NamedEnumerationEditor Class Reference

based on a string input control for easier mixing with other primitives (which just use a basic string input control as an editor) More...

#include <ConfigurationEditor.h>

Inheritance diagram for ConfigurationEditor::NamedEnumerationEditor:

Detailed Description

based on a string input control for easier mixing with other primitives (which just use a basic string input control as an editor)

If selected, provides a submenu with symbolic options to better prompt the user with valid values

Definition at line 130 of file ConfigurationEditor.h.

List of all members.

Public Member Functions

 NamedEnumerationEditor (const std::string &n, const std::string &prompt, plist::NamedEnumerationBase &target)
 constructor
virtual void refresh ()
 called when the child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed
virtual void deactivate ()
 purposely clearing slots on deactivate to avoid having sub-menus -- don't want to appear as a collection
virtual ControlBasedoSelect ()
 handles selecting one of the symbolic values
virtual void setHilights (const std::vector< unsigned int > &hi)
 override to only allow one hilight (first in the list)

Protected Attributes

plist::NamedEnumerationBasetgt
 the value being edited

Private Member Functions

 NamedEnumerationEditor (const NamedEnumerationEditor &)
 not supported
NamedEnumerationEditoroperator= (const NamedEnumerationEditor &)
 not supported

Constructor & Destructor Documentation

ConfigurationEditor::NamedEnumerationEditor::NamedEnumerationEditor ( const std::string &  n,
const std::string &  prompt,
plist::NamedEnumerationBase target 
)

constructor

Definition at line 133 of file ConfigurationEditor.h.

ConfigurationEditor::NamedEnumerationEditor::NamedEnumerationEditor ( const NamedEnumerationEditor  )  [private]

not supported


Member Function Documentation

virtual void ConfigurationEditor::NamedEnumerationEditor::deactivate (  )  [virtual]

purposely clearing slots on deactivate to avoid having sub-menus -- don't want to appear as a collection

Reimplemented from ControlBase.

Definition at line 136 of file ConfigurationEditor.h.

ControlBase * ConfigurationEditor::NamedEnumerationEditor::doSelect (  )  [virtual]

handles selecting one of the symbolic values

Reimplemented from ControlBase.

Definition at line 241 of file ConfigurationEditor.cc.

NamedEnumerationEditor& ConfigurationEditor::NamedEnumerationEditor::operator= ( const NamedEnumerationEditor  )  [private]

not supported

void ConfigurationEditor::NamedEnumerationEditor::refresh (  )  [virtual]

called when the child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed

Reimplemented from StringInputControl.

Definition at line 228 of file ConfigurationEditor.cc.

virtual void ConfigurationEditor::NamedEnumerationEditor::setHilights ( const std::vector< unsigned int > &  hi  )  [virtual]

override to only allow one hilight (first in the list)

Reimplemented from ControlBase.

Definition at line 140 of file ConfigurationEditor.h.


Member Data Documentation

the value being edited

Definition at line 147 of file ConfigurationEditor.h.

Referenced by doSelect(), and refresh().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:06 2016 by Doxygen 1.6.3