Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
LibraryCreationState.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 LIBRARYCREATIONSTATE_H
26 #define LIBRARYCREATIONSTATE_H
27 
28 #include <QState>
29 #include <QWidget>
30 
31 class DorothyMainWindow;
32 // Sub States
37 class DependenciesWidget;
39 
40 // Dependency from cepcoreschema
41 // Declaration here to avoid declaration in dependant projects.
42 namespace cepcoreschema {
43  class Cep;
44  class Library;
45 }
46 
54 class LibraryCreationState : public QState {
55 
56  Q_OBJECT;
57 
58 public:
59  LibraryCreationState(QString name, DorothyMainWindow * mainWidnow, cepcoreschema::Cep * domCep, QMap<QString, QStringList> *libraryFilesMap);
61 
62 signals:
63  void next();
64 
65 public slots:
66  virtual void extensionFinished();
67  virtual void extensionCancelled();
68 
69 protected:
72  virtual void onEntry ( QEvent * event );
73 
74  virtual void onExit ( QEvent * event );
76 
77  // Sub States
84 
85 private:
86 
87  bool cancelled;
88 
89  void createSubStates(DorothyMainWindow * mainWindow);
90 
91  QString name;
92  cepcoreschema::Cep * domCep;
93  cepcoreschema::Library * domLibrary;
94 
95  QMap<QString, QStringList> *libraryFilesMap;
96 
97 };
98 #endif
LibraryCopyFilesWidget * libraryCopyFilesWidget
Definition: LibraryCreationState.h:80
TODO Celine please comment here.
Definition: DependenciesWidget.h:43
TODO Celine please comment here.
Definition: LibraryDescriptionWidget.h:41
virtual void extensionCancelled()
virtual void onExit(QEvent *event)
TODO Celine please comment here.
Definition: LibraryCopyFilesState.h:46
TODO Celine please comment here.
Definition: LibraryDependenciesState.h:45
DependenciesWidget * libraryDependenciesWidget
Definition: LibraryCreationState.h:82
LibraryCreationState(QString name, DorothyMainWindow *mainWidnow, cepcoreschema::Cep *domCep, QMap< QString, QStringList > *libraryFilesMap)
LibraryDescriptionState * libraryDescriptionState
Definition: LibraryCreationState.h:79
LibraryDependenciesState * libraryDependenciesState
Definition: LibraryCreationState.h:83
TODO Celine please comment here.
Definition: LibraryCreationState.h:54
Definition: ActionExtensionGenerator.h:36
cepcoreschema::Cep * domCep
Definition: LibraryCreationState.h:92
QString name
Definition: LibraryCreationState.h:91
void createSubStates(DorothyMainWindow *mainWindow)
virtual void extensionFinished()
TODO Celine please comment here.
Definition: LibraryDescriptionState.h:46
QMap< QString, QStringList > * libraryFilesMap
Definition: LibraryCreationState.h:95
TODO Celine please comment here.
Definition: DorothyMainWindow.h:44
cepcoreschema::Library * domLibrary
Definition: LibraryCreationState.h:93
LibraryCopyFilesState * libraryCopyFilesState
Definition: LibraryCreationState.h:81
LibraryDescriptionWidget * libraryDescriptionWidget
Definition: LibraryCreationState.h:78
virtual void onEntry(QEvent *event)
Reimplemented from QState.
bool cancelled
Definition: LibraryCreationState.h:87
TODO Celine please comment here.
Definition: LibraryCopyFilesWidget.h:42