Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ComponentExtensionCreationState.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 COMPONENTEXTENSIONCREATIONSTATE_H
26 #define COMPONENTEXTENSIONCREATIONSTATE_H
27 
28 #include <QState>
29 #include <QWidget>
30 
31 class DorothyMainWindow;
32 // Sub States
38 class DependenciesWidget;
42 
43 // Dependency from cepcoreschema
44 // Declaration here to avoid declaration in dependant projects.
45 namespace cepcoreschema {
46  class Cep;
47  class ComponentExtension;
48 }
49 
57 class ComponentExtensionCreationState : public QState {
58 
59  Q_OBJECT;
60 
61 public:
62  ComponentExtensionCreationState(QString name, DorothyMainWindow * mainWidnow, cepcoreschema::Cep * domCep);
64 
65 signals:
66  void next();
67 
68 public slots:
69  virtual void extensionFinished();
70  virtual void extensionCancelled();
71 
72 protected:
75  virtual void onEntry ( QEvent * event );
76 
77  virtual void onExit ( QEvent * event );
79 
80 private:
81 
82  bool cancelled;
83 
84  // Sub States
94 
95 
96  void createSubStates(DorothyMainWindow * mainWindow);
97 
98  QString name;
99  cepcoreschema::Cep * domCep;
100  cepcoreschema::ComponentExtension * domComponentExtension;
101 
102 };
103 #endif
cepcoreschema::ComponentExtension * domComponentExtension
Definition: ComponentExtensionCreationState.h:100
TODO Celine please comment here.
Definition: DependenciesWidget.h:43
ComponentCreationState * componentCreationState
Definition: ComponentExtensionCreationState.h:89
TODO Celine please comment here.
Definition: ComponentExtensionDependenciesState.h:45
TODO Celine please comment here.
Definition: ComponentsCreationState.h:46
bool cancelled
Definition: ComponentExtensionCreationState.h:82
ComponentExtensionDependenciesState * componentExtensionDependenciesState
Definition: ComponentExtensionCreationState.h:91
ExtensionSummaryWidget * componentExtensionSummaryWidget
Definition: ComponentExtensionCreationState.h:92
TODO Celine please comment here.
Definition: ComponentsCreationWidget.h:42
ComponentsCreationWidget * componentsCreationWidget
Definition: ComponentExtensionCreationState.h:87
ComponentExtensionDescriptionWidget * componentExtensionDescriptionWidget
Definition: ComponentExtensionCreationState.h:85
TODO Celine please comment here.
Definition: ComponentExtensionCreationState.h:57
cepcoreschema::Cep * domCep
Definition: ComponentExtensionCreationState.h:99
virtual void onExit(QEvent *event)
TODO Celine please comment here.
Definition: ComponentExtensionDescriptionState.h:46
ComponentsCreationState * componentsCreationState
Definition: ComponentExtensionCreationState.h:88
QString name
Definition: ComponentExtensionCreationState.h:98
TODO Celine please comment here.
Definition: ComponentExtensionDescriptionWidget.h:41
ExtensionSummaryState * componentExtensionSummaryState
Definition: ComponentExtensionCreationState.h:93
TODO Celine please comment here.
Definition: ExtensionSummaryWidget.h:42
virtual void onEntry(QEvent *event)
Reimplemented from QState.
TODO Celine please comment here.
Definition: ComponentCreationState.h:56
ComponentExtensionDescriptionState * componentExtensionDescriptionState
Definition: ComponentExtensionCreationState.h:86
ComponentExtensionCreationState(QString name, DorothyMainWindow *mainWidnow, cepcoreschema::Cep *domCep)
TODO Celine please comment here.
Definition: DorothyMainWindow.h:44
TODO Celine please comment here.
Definition: ExtensionSummaryState.h:46
void createSubStates(DorothyMainWindow *mainWindow)
DependenciesWidget * componentExtensionDependenciesWidget
Definition: ComponentExtensionCreationState.h:90