Stg::Option Class Reference

#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
 

Detailed Description

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$

Constructor & Destructor Documentation

◆ Option()

Option::Option ( const std::string &  n,
const std::string &  tok,
const std::string &  key,
bool  v,
World world 
)

Member Function Documentation

◆ createMenuItem()

void Option::createMenuItem ( Fl_Menu_Bar *  menu,
std::string  path 
)

◆ invert()

void Stg::Option::invert ( )
inline

◆ isEnabled()

bool Stg::Option::isEnabled ( ) const
inline

◆ Load()

void Option::Load ( Worldfile wf,
int  section 
)

◆ menuCallback()

void Option::menuCallback ( Fl_Callback *  cb,
Fl_Widget *  w 
)

◆ name()

const std::string Stg::Option::name ( ) const
inline

◆ operator bool()

Stg::Option::operator bool ( )
inline

◆ operator<()

bool Stg::Option::operator< ( const Option rhs) const
inline

◆ Save()

void Option::Save ( Worldfile wf,
int  section 
)

◆ set()

void Option::set ( bool  val)

◆ toggleCb()

void Option::toggleCb ( Fl_Widget *  w,
void *  p 
)
static

◆ val()

bool Stg::Option::val ( ) const
inline

Member Data Documentation

◆ htname

std::string Stg::Option::htname

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