#include <option.hh>
Public Member Functions | |
| void | createMenuItem (Fl_Menu_Bar *menu, std::string path) |
| void | invert () |
| bool | isEnabled () const |
| void | Load (Worldfile *wf, int section) |
| void | menuCallback (Fl_Callback *cb, Fl_Widget *w) |
| const std::string | name () const |
| operator bool () | |
| bool | operator< (const Option &rhs) const |
| Option (const std::string &n, const std::string &tok, const std::string &key, bool v, World *world) | |
| void | Save (Worldfile *wf, int section) |
| void | set (bool val) |
| bool | val () const |
Static Public Member Functions | |
| static void | toggleCb (Fl_Widget *w, void *p) |
Public Attributes | |
| std::string | htname |
Private Attributes | |
| World * | _world |
| Fl_Menu_ * | menu |
| Fl_Callback * | menuCb |
| Fl_Widget * | menuCbWidget |
| int | menuIndex |
| std::string | optName |
| std::string | shortcut |
| bool | value |
| std::string | wf_token |
Friends | |
| bool | compare (const Option *lhs, const Option *rhs) |
option.hh Class that encapsulates a boolean and pairs it with a string description Used to pass settings between the GUI and the drawing classes
Author: Jeremy Asher, Richard Vaughan SVN: $Id$
| Option::Option | ( | const std::string & | n, |
| const std::string & | tok, | ||
| const std::string & | key, | ||
| bool | v, | ||
| World * | world | ||
| ) |
| void Option::createMenuItem | ( | Fl_Menu_Bar * | menu, |
| std::string | path | ||
| ) |
| void Stg::Option::invert | ( | ) | [inline] |
| bool Stg::Option::isEnabled | ( | ) | const [inline] |
| void Option::Load | ( | Worldfile * | wf, |
| int | section | ||
| ) |
| void Option::menuCallback | ( | Fl_Callback * | cb, |
| Fl_Widget * | w | ||
| ) |
| const std::string Stg::Option::name | ( | ) | const [inline] |
| bool Stg::Option::operator< | ( | const Option & | rhs | ) | const [inline] |
| void Option::Save | ( | Worldfile * | wf, |
| int | section | ||
| ) |
| void Option::set | ( | bool | val | ) |
| void Option::toggleCb | ( | Fl_Widget * | w, |
| void * | p | ||
| ) | [static] |
| bool Stg::Option::val | ( | ) | const [inline] |
World* Stg::Option::_world [private] |
| std::string Stg::Option::htname |
Fl_Menu_* Stg::Option::menu [private] |
Fl_Callback* Stg::Option::menuCb [private] |
Fl_Widget* Stg::Option::menuCbWidget [private] |
int Stg::Option::menuIndex [private] |
std::string Stg::Option::optName [private] |
std::string Stg::Option::shortcut [private] |
bool Stg::Option::value [private] |
std::string Stg::Option::wf_token [private] |