Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ActionDescriptionWidget.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 ACTIONDESCRIPTIONWIDGET_H
26 #define ACTIONDESCRIPTIONWIDGET_H
27 
28 // Include GUI automatically generated file
29 #include "ui_ActionDescriptionWidget.h"
30 
31 // includes from Qt
32 #include <QWidget>
33 
41 class ActionDescriptionWidget : public QWidget {
42 
43  Q_OBJECT;
44 
45 public:
46  ActionDescriptionWidget(QWidget * parent);
48 
49  void setToDefault(QString actionExtensionName);
50  void addPossibleComponent(QString possibleComponent);
51 
52  void setName(QString name);
53  void setDescription(QString description);
54  void setComponent(QString component);
55 
56  QString getActionName();
57  QString getActionDescription();
58  QString getComponentName();
59  bool isItkFilter();
60  QString getOutputType();
61 
62 public slots:
63  virtual void nextButtonClicked();
64  virtual void cancelButtonClicked();
65  virtual void componentChanged(QString);
66  virtual void itkFilterClicked(bool);
67 
68 signals:
69  void next();
70  void cancel();
71 
72 private:
73  QStringList possibleComponents;
74  Ui::ActionDescriptionWidget ui;
75 
77 };
78 #endif
virtual void nextButtonClicked()
Definition: ActionDescriptionWidget.cpp:43
void addPossibleComponent(QString possibleComponent)
Definition: ActionDescriptionWidget.cpp:107
void setToDefault(QString actionExtensionName)
Definition: ActionDescriptionWidget.cpp:124
QString getOutputType()
Definition: ActionDescriptionWidget.cpp:103
virtual void cancelButtonClicked()
Definition: ActionDescriptionWidget.cpp:82
Ui::ActionDescriptionWidget ui
Definition: ActionDescriptionWidget.h:74
const char * description
Definition: applications/cepgenerator/main.cpp:37
string name
Definition: select.cpp:111
virtual void itkFilterClicked(bool)
Definition: ActionDescriptionWidget.cpp:113
void setDescription(QString description)
Definition: ActionDescriptionWidget.cpp:148
QString getActionDescription()
Definition: ActionDescriptionWidget.cpp:91
TODO Celine please comment here.
Definition: ActionDescriptionWidget.h:41
QString getActionName()
Definition: ActionDescriptionWidget.cpp:87
QString actionExtensionName
Definition: ActionDescriptionWidget.h:76
ActionDescriptionWidget(QWidget *parent)
Constructor.
Definition: ActionDescriptionWidget.cpp:36
void setName(QString name)
Definition: ActionDescriptionWidget.cpp:144
QStringList possibleComponents
Definition: ActionDescriptionWidget.h:73
void setComponent(QString component)
Definition: ActionDescriptionWidget.cpp:152
QString getComponentName()
Definition: ActionDescriptionWidget.cpp:95
bool isItkFilter()
Definition: ActionDescriptionWidget.cpp:99
virtual void componentChanged(QString)
Definition: ActionDescriptionWidget.cpp:156
~ActionDescriptionWidget()
Destructor.
Definition: ActionDescriptionWidget.cpp:41