ConfigState Class Reference

#include <config.h>

List of all members.

Public Slots

void toggle ()
virtual void setOn (bool)

Signals

void toggled ()

Public Member Functions

 ConfigState (bool init=false)
bool isOn () const
virtual QAction * addTo (QMenu *w, QString menu_text)
 operator bool () const
void set (bool)

Protected Member Functions

void update ()

Protected Attributes

bool state
QAction * item

Friends

class Config

Constructor & Destructor Documentation

ConfigState::ConfigState ( bool  init = false  ) 

Member Function Documentation

QAction * ConfigState::addTo ( QMenu *  w,
QString  menu_text 
) [virtual]

References assert(), item, toggle(), and update().

bool ConfigState::isOn (  )  const

References state.

Referenced by SongSelectorLogic::toggle_temporange().

ConfigState::operator bool (  )  const [inline]

References state.

void ConfigState::set ( bool  new_state  ) 
void ConfigState::setOn ( bool  new_state  )  [virtual, slot]
void ConfigState::toggle (  )  [slot]

References setOn(), and state.

Referenced by addTo().

void ConfigState::toggled (  )  [signal]

Referenced by setOn().

void ConfigState::update (  )  [protected]

References item, and state.

Referenced by addTo(), and setOn().


Friends And Related Function Documentation

friend class Config [friend]

Member Data Documentation

QAction* ConfigState::item [protected]

Referenced by addTo(), and update().

bool ConfigState::state [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2