toolbarstatefactory.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef TOOLBARSTATEFACTORY_H
00013 #define TOOLBARSTATEFACTORY_H
00014
00015 #include "toolbarstate.h"
00016
00017 #include "worktoolbar.h"
00018
00019 #define NR_OF_TOOLBAR_STATES 4
00020
00021 class UMLView;
00022
00023
00033 class ToolBarStateFactory
00034 {
00035 public:
00036
00037 ToolBarStateFactory(UMLView* umlView);
00038
00039
00040 virtual ~ToolBarStateFactory();
00041
00042 ToolBarState* getState(const WorkToolBar::ToolBar_Buttons &toolbarButton);
00043
00044 protected:
00045 int getKey(const WorkToolBar::ToolBar_Buttons &toolbarButton) const;
00046
00047 protected:
00048 ToolBarState* states[NR_OF_TOOLBAR_STATES];
00049
00050 UMLView* m_pUMLView;
00051 };
00052
00053 #endif //TOOLBARSTATEFACTORY_H
This file is part of the documentation for umbrello Version 3.1.0.