20#ifndef MOUSEMODEPARAMS_H
21#define MOUSEMODEPARAMS_H
53 const char *
const *
GetIcon(
string name)
const
55 auto itr = _modes.cbegin();
56 for (; itr != _modes.cend(); ++itr)
57 if (itr->name == name)
break;
81 for (
auto itr = _modes.cbegin(); itr != _modes.cend(); ++itr) { v.push_back(itr->name); }
94 static const string _currentMouseModeTag;
96 vector<MouseMode> _modes;
A class for describing mouse modes in use in VAPOR.
const char *const * GetIcon(string name) const
method identifies pixmap icon for each mode
vector< string > GetAllMouseModes()
Return a vector of all registered mouse mode names.
static string GetClassType()
static string GetNavigateModeName()
void SetCurrentMouseMode(string name)
int GetNumMouseModes()
method indicates how many mouse modes are available.
virtual ~MouseModeParams()
string GetCurrentMouseMode() const
static string GetRegionModeName()
MouseModeParams(VAPoR::ParamsBase::StateSave *ssave)
Create a MouseModeParams object from scratch.
MouseModeParams(VAPoR::ParamsBase::StateSave *ssave, VAPoR::XmlNode *node)
Create a MouseModeParams object from an existing XmlNode tree.
Nodes with state in Xml tree representation.
virtual string GetValueString(const string tag, string defaultVal) const