umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <toolbarstatefactory.h>
Public Member Functions | |
ToolBarStateFactory () | |
virtual | ~ToolBarStateFactory () |
ToolBarState * | getState (const WorkToolBar::ToolBar_Buttons &toolbarButton, UMLScene *umlScene) |
Protected Member Functions | |
int | getKey (const WorkToolBar::ToolBar_Buttons &toolbarButton) const |
Protected Attributes | |
QPointer< ToolBarState > | m_states [NR_OF_TOOLBAR_STATES] |
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.
ToolBarStateFactory::ToolBarStateFactory | ( | ) |
|
virtual |
|
protected |
ToolBarState * ToolBarStateFactory::getState | ( | const WorkToolBar::ToolBar_Buttons & | toolbarButton, |
UMLScene * | umlScene | ||
) |
|
protected |