OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Gui::SharedStateButton Class Reference

A button that applies its own state changes to other widgets, to do this you define it as part of a ButtonGroup. More...

#include <sharedstatebutton.hpp>

Inheritance diagram for Gui::SharedStateButton:
Collaboration diagram for Gui::SharedStateButton:

Public Member Functions

 SharedStateButton ()
 
void shareStateWith (ButtonGroup shared)
 
void setStateSelected (bool _value)
 Set button selected state. More...
 

Static Public Member Functions

static void createButtonGroup (ButtonGroup group)
 

Protected Member Functions

void updateButtonState ()
 
virtual void onMouseButtonPressed (int _left, int _top, MyGUI::MouseButton _id)
 
virtual void onMouseButtonReleased (int _left, int _top, MyGUI::MouseButton _id)
 
virtual void onMouseSetFocus (MyGUI::Widget *_old)
 
virtual void onMouseLostFocus (MyGUI::Widget *_new)
 
virtual void baseUpdateEnable ()
 
virtual void shutdownOverride ()
 
bool _setState (const std::string &_value)
 

Private Attributes

ButtonGroup mSharedWith
 
bool mIsMousePressed
 
bool mIsMouseFocus
 

Detailed Description

A button that applies its own state changes to other widgets, to do this you define it as part of a ButtonGroup.

Constructor & Destructor Documentation

Gui::SharedStateButton::SharedStateButton ( )

Member Function Documentation

bool Gui::SharedStateButton::_setState ( const std::string &  _value)
protected

Here is the caller graph for this function:

void Gui::SharedStateButton::baseUpdateEnable ( )
protectedvirtual

Here is the call graph for this function:

void Gui::SharedStateButton::createButtonGroup ( ButtonGroup  group)
static
Note
The ButtonGroup connection will be destroyed when any widget in the group gets destroyed.

Here is the caller graph for this function:

void Gui::SharedStateButton::onMouseButtonPressed ( int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
protectedvirtual

Here is the call graph for this function:

void Gui::SharedStateButton::onMouseButtonReleased ( int  _left,
int  _top,
MyGUI::MouseButton  _id 
)
protectedvirtual

Here is the call graph for this function:

void Gui::SharedStateButton::onMouseLostFocus ( MyGUI::Widget *  _new)
protectedvirtual

Here is the call graph for this function:

void Gui::SharedStateButton::onMouseSetFocus ( MyGUI::Widget *  _old)
protectedvirtual

Here is the call graph for this function:

void Gui::SharedStateButton::setStateSelected ( bool  _value)

Set button selected state.

Here is the call graph for this function:

Here is the caller graph for this function:

void Gui::SharedStateButton::shareStateWith ( ButtonGroup  shared)
void Gui::SharedStateButton::shutdownOverride ( )
protectedvirtual
void Gui::SharedStateButton::updateButtonState ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool Gui::SharedStateButton::mIsMouseFocus
private
bool Gui::SharedStateButton::mIsMousePressed
private
ButtonGroup Gui::SharedStateButton::mSharedWith
private

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