Computer Assited Medical Intervention Tool Kit  version 4.1
SettingsDialog.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2018 Univ. Grenoble Alpes, 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 
26 #ifndef SETTINGS_DIALOG_H
27 #define SETTINGS_DIALOG_H
28 
29 // -- Core stuff
30 #include "CamiTKAPI.h"
31 namespace Ui {
32 class ui_Settings;
33 }
34 
35 // -- QT stuff
36 #include <QDialog>
37 #include <QMap>
38 
39 namespace camitk {
40 
41 // -- Core stuff classes
42 class ObjectController;
43 
54 class CAMITK_API SettingsDialog : public QDialog {
55  Q_OBJECT
56 
57 public:
58 
62 
64  ~SettingsDialog() override;
65 
67  void editSettings(QObject*);
68 
69 private slots:
85  virtual void on_objectList_itemSelectionChanged();
86 
87  virtual void on_resetConfigurationButton_released();
88 
89  virtual void on_addComponentExtensionButton_released();
90 
91  virtual void on_removeComponentExtensionButton_released();
92 
93  virtual void on_componentExtensionList_cellClicked(int, int);
94 
95  virtual void on_addActionExtensionButton_released();
96 
97  virtual void on_removeActionExtensionButton_released();
98 
99  virtual void on_actionExtensionList_cellClicked(int, int);
100 
101 private:
103  void accept() override;
104 
106  void updateComponentExtensionList();
107 
109  void updateActionExtensionList();
110 
113 
115  QMap<QString, QObject*> editedObjectMap;
116 
118  Ui::ui_Settings* myUI;
119 
121  QStringList userComponents;
122 
124  QStringList userActions;
125 
127  void readUserExtensions();
128 
130  void writeUserExtensions();
131 };
132 }
133 
134 #endif
Definition: SettingsDialog.h:31
This class controls the settings dialog user interface.
Definition: SettingsDialog.h:54
Definition: Action.cpp:36
QStringList userActions
the list of user action extension locations
Definition: SettingsDialog.h:124
QMap< QString, QObject * > editedObjectMap
the map to get an edited object from its name
Definition: SettingsDialog.h:115
#define CAMITK_API
Definition: CamiTKAPI.h:49
ObjectController * objectController
the property editor
Definition: SettingsDialog.h:112
QStringList userComponents
the list of user component extension locations
Definition: SettingsDialog.h:121
Definition: objectcontroller.h:47
Ui::ui_Settings * myUI
Qt ui designed in Qt Designer.
Definition: SettingsDialog.h:118
The object controller class.
Definition: ObjectController.h:162