Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ExtTypeWindow.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2014 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 // Qt
26 #include <QMainWindow>
27 #include <QString>
28 #include <QList>
29 
30 #include "ParameterWidget.h"
31 #include "RemovableLineEdit.h"
32 
33 #include "ExtensionWindow.h"
34 // The inclusion is needed as ExtTypeWindow uses the ExtTypeType enumeration.
35 //class ExtensionWindow;
36 
37 // Include GUI automatically generated from the file
38 // MedicalViewer.ui (to be modified via QtDesigner).
39 #include "ui_ExtTypeWindow.h"
40 
41 #ifndef EXTTYPEWINDOW_H
42 #define EXTTYPEWINDOW_H
43 
44 class ExtTypeWindow : public QMainWindow {
45  Q_OBJECT
46 
47 
48 public:
50 
51  void removeParameter(ParameterWidget * param);
53 
54 public slots:
55  virtual void okClicked();
56  virtual void cancelClicked();
57  virtual void addTagClicked();
58  virtual void addParameterClicked();
59  virtual void componentComboBoxChanged(QString);
60 
61 protected:
62 
63  void personnalizeInterface();
64  bool makeActionXML();
65  bool makeApplicationXML();
66  bool makeComponentXML();
67  bool makeViewerXML();
68 
69 private:
70  Ui_ExtTypeWindow ui;
71 
73  QString typeStr;
76  QList<ParameterWidget *> parameters;
77  QList<RemovableLineEdit *> tags;
78 
79  QString className;
80 
81 
82 
83 };
84 #endif
Definition: ParameterWidget.h:35
bool makeApplicationXML()
bool makeComponentXML()
ExtTypeType type
Definition: ExtTypeWindow.h:72
ExtensionWindow * dad
Definition: ExtTypeWindow.h:74
void personnalizeInterface()
ExtTypeType
Definition: ExtensionWindow.h:38
QString typeStr
Definition: ExtTypeWindow.h:73
void removeLineEdit(RemovableLineEdit *tag)
void removeParameter(ParameterWidget *param)
Definition: ExtensionWindow.h:45
bool makeViewerXML()
QList< RemovableLineEdit * > tags
Definition: ExtTypeWindow.h:77
Definition: ExtTypeWindow.h:44
QString className
Definition: ExtTypeWindow.h:79
Ui_ExtTypeWindow ui
Definition: ExtTypeWindow.h:70
ExtTypeWindow(ExtensionWindow *dad, QString workingDirectory, ExtTypeType type)
QList< ParameterWidget * > parameters
Definition: ExtTypeWindow.h:76
virtual void okClicked()
bool makeActionXML()
virtual void cancelClicked()
virtual void componentComboBoxChanged(QString)
Definition: RemovableLineEdit.h:35
virtual void addParameterClicked()
virtual void addTagClicked()
QString workingDirectory
Definition: ExtTypeWindow.h:75