umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

toolbarstatefactory.h
Go to the documentation of this file.
1 /***************************************************************************
2 * *
3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. *
7 * *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef TOOLBARSTATEFACTORY_H
13 #define TOOLBARSTATEFACTORY_H
14
15 #include "toolbarstate.h"
16
17 #include "worktoolbar.h"
18
19 #include <QPointer>
20 #define NR_OF_TOOLBAR_STATES 5
21
22
23
33 class ToolBarStateFactory
34 {
35 public:
36 // constructor.
37 ToolBarStateFactory();
38
39 // Destructor
40 virtual ~ToolBarStateFactory();
41
42 ToolBarState* getState(const WorkToolBar::ToolBar_Buttons &toolbarButton, UMLScene* umlScene);
43
44 protected:
45 int getKey(const WorkToolBar::ToolBar_Buttons &toolbarButton) const;
46
47 protected:
48 QPointer<ToolBarState> m_states[NR_OF_TOOLBAR_STATES];
49 };
50
51 #endif //TOOLBARSTATEFACTORY_H
WorkToolBar::tbb_Child2Category
@ tbb_Child2Category
Definition: worktoolbar.h:125
toolbarstatemessages.h
WorkToolBar::tbb_Coll_Message_Synchronous
@ tbb_Coll_Message_Synchronous
Definition: worktoolbar.h:65
WorkToolBar::tbb_Category2Parent
@ tbb_Category2Parent
Definition: worktoolbar.h:124
toolbarstatefactory.h
WorkToolBar::tbb_Association
@ tbb_Association
Definition: worktoolbar.h:63
WorkToolBar::tbb_Relationship
@ tbb_Relationship
Definition: worktoolbar.h:76
umlview.h
ToolBarStateArrow
Definition: toolbarstatearrow.h:31
WorkToolBar::tbb_Port
@ tbb_Port
Definition: worktoolbar.h:110
WorkToolBar::tbb_Containment
@ tbb_Containment
Definition: worktoolbar.h:64
WorkToolBar::tbb_State_Transition
@ tbb_State_Transition
Definition: worktoolbar.h:78
toolbarstateassociation.h
ToolBarStatePool
Definition: toolbarstatepool.h:23
WorkToolBar::tbb_Seq_Message_Creation
@ tbb_Seq_Message_Creation
Definition: worktoolbar.h:67
WorkToolBar::tbb_Arrow
@ tbb_Arrow
Definition: worktoolbar.h:59
WorkToolBar::tbb_Dependency
@ tbb_Dependency
Definition: worktoolbar.h:62
WorkToolBar::tbb_Composition
@ tbb_Composition
Definition: worktoolbar.h:75
ToolBarStateFactory
Definition: toolbarstatefactory.h:34
worktoolbar.h
WorkToolBar::tbb_UniAssociation
@ tbb_UniAssociation
Definition: worktoolbar.h:77
WorkToolBar::ToolBar_Buttons
ToolBar_Buttons
Definition: worktoolbar.h:57
ToolBarStateFactory::getState
ToolBarState * getState(const WorkToolBar::ToolBar_Buttons &toolbarButton, UMLScene *umlScene)
Definition: toolbarstatefactory.cpp:40
WorkToolBar::tbb_Seq_Message_Destroy
@ tbb_Seq_Message_Destroy
Definition: worktoolbar.h:68
WorkToolBar::tbb_Anchor
@ tbb_Anchor
Definition: worktoolbar.h:83
ToolBarStateFactory::getKey
int getKey(const WorkToolBar::ToolBar_Buttons &toolbarButton) const
Definition: toolbarstatefactory.cpp:67
ToolBarStateMessages
Definition: toolbarstatemessages.h:51
WorkToolBar::tbb_Aggregation
@ tbb_Aggregation
Definition: worktoolbar.h:61
WorkToolBar::tbb_Seq_Message_Synchronous
@ tbb_Seq_Message_Synchronous
Definition: worktoolbar.h:69
WorkToolBar::tbb_Activity_Transition
@ tbb_Activity_Transition
Definition: worktoolbar.h:79
toolbarstate.h
ToolBarStateFactory::~ToolBarStateFactory
virtual ~ToolBarStateFactory()
Definition: toolbarstatefactory.cpp:30
WorkToolBar::tbb_Seq_Precondition
@ tbb_Seq_Precondition
Definition: worktoolbar.h:74
ToolBarStateAssociation
Definition: toolbarstateassociation.h:39
toolbarstatearrow.h
toolbarstatepool.h
NR_OF_TOOLBAR_STATES
#define NR_OF_TOOLBAR_STATES
Definition: toolbarstatefactory.h:20
ToolBarStateFactory::m_states
QPointer< ToolBarState > m_states[NR_OF_TOOLBAR_STATES]
Definition: toolbarstatefactory.h:48
toolbarstateonewidget.h
WorkToolBar::tbb_Coll_Message_Asynchronous
@ tbb_Coll_Message_Asynchronous
Definition: worktoolbar.h:66
WorkToolBar::tbb_Seq_Message_Lost
@ tbb_Seq_Message_Lost
Definition: worktoolbar.h:72
ToolBarStateOneWidget
Definition: toolbarstateonewidget.h:24
ToolBarStateFactory::ToolBarStateFactory
ToolBarStateFactory()
Definition: toolbarstatefactory.cpp:22
ToolBarStateOther
Definition: toolbarstateother.h:26
UMLScene
Definition: umlscene.h:69
toolbarstateother.h
WorkToolBar::tbb_Exception
@ tbb_Exception
Definition: worktoolbar.h:120
WorkToolBar::tbb_Generalization
@ tbb_Generalization
Definition: worktoolbar.h:60
WorkToolBar::tbb_Seq_Message_Found
@ tbb_Seq_Message_Found
Definition: worktoolbar.h:71
WorkToolBar::tbb_Seq_Message_Asynchronous
@ tbb_Seq_Message_Asynchronous
Definition: worktoolbar.h:70
WorkToolBar::tbb_Pin
@ tbb_Pin
Definition: worktoolbar.h:109
ToolBarState
Definition: toolbarstate.h:70