Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ExtensionWindow.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 <QStringList>
29 
30 #include "RemovableLineEdit.h"
31 // Include GUI automatically generated from the file
32 // ExtensionWindow.ui (to be modified via QtDesigner).
33 #include "ui_ExtensionWindow.h"
34 
35 #ifndef EXTENSIONWINDOW_H
36 #define EXTENSIONWINDOW_H
37 
39  Action = 1,
41  Component = 3,
42  Viewer =4
43 };
44 
45 class ExtensionWindow : public QMainWindow {
46  Q_OBJECT
47 
48 
49 public:
50  ExtensionWindow(QMainWindow * dad, QString workingDirectory, ExtTypeType extType);
51 
52  void addExtTypeFile(QString extTypeFileName);
53  void removeExtTypeFile(RemovableLineEdit * extTypeRLE);
54  QString getExtensionClassName();
55  void rleToggle(RemovableLineEdit * rle, bool res);
56  void addItkDependency();
57 
58 
59 public slots:
60  virtual void addExtTypeButtonClicked();
61  virtual void addExtFileButtonClicked();
62  virtual void okClicked();
63  virtual void cancelClicked();
64 
65 private:
66 
67  void personnalizeInterface();
68 
69  Ui_ExtensionWindow ui;
70 
72 
73  QMainWindow * dad;
75  QList<RemovableLineEdit *> extTypeFiles;
76  QList<RemovableLineEdit *> fileExts;
77 
78 };
79 #endif
QString workingDirectory
Definition: ExtensionWindow.h:74
void rleToggle(RemovableLineEdit *rle, bool res)
QList< RemovableLineEdit * > extTypeFiles
Definition: ExtensionWindow.h:75
void addItkDependency()
ExtTypeType extType
Definition: ExtensionWindow.h:71
ExtTypeType
Definition: ExtensionWindow.h:38
void personnalizeInterface()
void removeExtTypeFile(RemovableLineEdit *extTypeRLE)
QString getExtensionClassName()
virtual void cancelClicked()
Definition: ExtensionWindow.h:40
Definition: ExtensionWindow.h:45
Definition: ExtensionWindow.h:42
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
QMainWindow * dad
Definition: ExtensionWindow.h:73
Ui_ExtensionWindow ui
Definition: ExtensionWindow.h:69
void addExtTypeFile(QString extTypeFileName)
ExtensionWindow(QMainWindow *dad, QString workingDirectory, ExtTypeType extType)
virtual void addExtFileButtonClicked()
virtual void addExtTypeButtonClicked()
Definition: RemovableLineEdit.h:35
Definition: ExtensionWindow.h:39
virtual void okClicked()
QList< RemovableLineEdit * > fileExts
Definition: ExtensionWindow.h:76