53 vector<GUICommand*>::iterator i =
commands_.begin();
70 vector<GUICommand*>::iterator i =
commands_.begin();
72 if ((*i)->id() ==
id) {
88 vector<GUICommand*>::iterator i =
commands_.begin();
90 if ((*i)->name() == name) {
139 vector<GUICommand*>::const_iterator i =
commands_.begin();
141 if ((*i)->name() == name) {
156 vector<GUICommand*>::const_iterator i =
commands_.begin();
158 if ((*i)->name() == name) {
174 vector<GUICommand*>::const_iterator i =
commands_.begin();
176 if ((*i)->id() ==
id) {
192 vector<GUICommand*>::const_iterator i =
commands_.begin();
194 if ((*i)->name() == name) {
195 return (*i)->shortName();
211 vector<GUICommand*>::iterator i =
commands_.begin();
213 if ((*i)->name() == command) {
214 return (*i)->isEnabled();
bool isEnabled(const std::string command)
GUICommand * firstCommand()
GUICommand * nextCommand()
GUICommand * createCommand(const int id)
int commandId(const std::string name) const
std::vector< GUICommand * > commands_
Commands in the registry.
std::string commandIcon(const std::string name) const
std::string commandName(int id) const
std::vector< GUICommand * >::iterator iterator_
The position of the iteration. Used by the firstCommand() and nextCommand().
std::string commandShortName(const std::string name) const
virtual GUICommand * create() const =0
virtual int id() const =0