Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ActionCreationState.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2012 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 #ifndef ACTIONCREATIONSTATE_H
26 #define ACTIONCREATIONSTATE_H
27 
28 #include <QState>
29 #include <QWidget>
30 
31 class DorothyMainWindow;
33 
34 // Sub-states
42 class ActionSummaryState;
43 
44 // Dependency from cepcoreschema
45 // Declaration here to avoid declaration in dependant projects.
46 namespace cepcoreschema {
47  class ActionExtension;
48  class Action;
49  class Cep;
50 }
51 
59 class ActionCreationState : public QState {
60 
61  Q_OBJECT;
62 
63 public:
64  ActionCreationState(QString name, DorothyMainWindow * mainWidnow, cepcoreschema::Cep * domCep, ActionExtensionCreationState * parent);
66 
67  void resetDomActionExtension(cepcoreschema::ActionExtension * domActionExtension);
68 
69 signals:
70  void nextACS();
71 
72 public slots:
73  virtual void actionFinished();
74  virtual void actionCancelled();
75 
76 protected:
79  virtual void onEntry ( QEvent * event );
80 
81  virtual void onExit ( QEvent * event );
83 
93 
94 
95 private:
96  void createSubStates(DorothyMainWindow * mainWindow);
97 
98  bool cancelled;
99  QString name;
100  cepcoreschema::ActionExtension * domActionExtension;
102  cepcoreschema::Cep * domCep;
103 
104 };
105 #endif
QString name
Definition: ActionCreationState.h:99
TODO Celine please comment here.
Definition: ActionAddParameterWidget.h:44
virtual void actionCancelled()
ActionSummaryState * actionSummaryState
Definition: ActionCreationState.h:92
TODO Celine please comment here.
Definition: ActionSummaryWidget.h:42
TODO Celine please comment here.
Definition: ActionClassificationState.h:46
cepcoreschema::Action * domAction
Definition: ActionCreationState.h:101
virtual void onEntry(QEvent *event)
Reimplemented from QState.
TODO Celine please comment here.
Definition: ActionDescriptionState.h:48
TODO Celine please comment here.
Definition: ActionAddParameterState.h:49
TODO Celine please comment here.
Definition: ActionSummaryState.h:45
TODO Celine please comment here.
Definition: ActionDescriptionWidget.h:41
bool cancelled
Definition: ActionCreationState.h:98
TODO Celine please comment here.
Definition: ActionCreationState.h:59
virtual void actionFinished()
ActionClassificationWidget * actionClassificationWidget
Definition: ActionCreationState.h:89
ActionDescriptionState * actionDescriptionState
Definition: ActionCreationState.h:86
TODO Celine please comment here.
Definition: ActionClassificationWidget.h:43
ActionAddParameterWidget * actionAddParameterWidget
Definition: ActionCreationState.h:87
cepcoreschema::ActionExtension * domActionExtension
Definition: ActionCreationState.h:100
void createSubStates(DorothyMainWindow *mainWindow)
ActionDescriptionWidget * actionDescriptionWidget
Substates (to be updated with domAction at each entry)
Definition: ActionCreationState.h:85
ActionAddParameterState * actionAddParameterState
Definition: ActionCreationState.h:88
TODO Celine please comment here.
Definition: DorothyMainWindow.h:44
virtual void onExit(QEvent *event)
ActionClassificationState * actionClassificationState
Definition: ActionCreationState.h:90
Definition: ExtensionWindow.h:39
void resetDomActionExtension(cepcoreschema::ActionExtension *domActionExtension)
cepcoreschema::Cep * domCep
Definition: ActionCreationState.h:102
TODO Celine please comment here.
Definition: ActionExtensionCreationState.h:57
ActionCreationState(QString name, DorothyMainWindow *mainWidnow, cepcoreschema::Cep *domCep, ActionExtensionCreationState *parent)
ActionSummaryWidget * actionSummaryWidget
Definition: ActionCreationState.h:91