ToolBarStateFactory Class Reference
The ToolBarStateFactory keeps track of all the toolbar states. More...
#include <toolbarstatefactory.h>
Public Member Functions | |
| ToolBarStateFactory (UMLView *umlView) | |
| ToolBarState * | getState (const WorkToolBar::ToolBar_Buttons &toolbarButton) |
Protected Member Functions | |
| int | getKey (const WorkToolBar::ToolBar_Buttons &toolbarButton) const |
Protected Attributes | |
| ToolBarState * | states [NR_OF_TOOLBAR_STATES] |
| UMLView * | m_pUMLView |
Detailed Description
The ToolBarStateFactory keeps track of all the toolbar states.For the first request, the factory creates a new state object. The next requests to this object, this factory will return the existing object.
States that inherit from the ToolBarStatePool share multiple toolbar states. Therefore the setButton function is called. Internally the shared state object determines the exact behavior by itself.
Definition at line 33 of file toolbarstatefactory.h.
The documentation for this class was generated from the following files:
