Computer Assited Medical Intervention Tool Kit  version 4.0
ActionClassificationWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2016 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 #ifndef ACTIONCLASSIFICATIONWIDGET_H
26 #define ACTIONCLASSIFICATIONWIDGET_H
27 
28 // Include GUI automatically generated file
29 #include "ui_ActionClassificationWidget.h"
30 
31 // includes from Qt
32 #include <QWidget>
33 
34 class ActionTagWidget;
35 
43 class ActionClassificationWidget : public QWidget {
44 
45  Q_OBJECT;
46 
47 public:
49  ActionClassificationWidget(QWidget * parent);
52 
53  void setToDefault();
54 
55  QString getFamily();
56 
57  void removeTag(ActionTagWidget * widget);
58  QList<ActionTagWidget *> getTagWidgets();
59 
60 
61 public slots:
62  virtual void nextButtonClicked();
63  virtual void previousButtonClicked();
64  virtual void cancelButtonClicked();
65  virtual void addTagClicked();
66 
67 signals:
68  void next();
69  void previous();
70  void cancel();
71 
72 private:
73 
74  bool isOneNonAsciiTag();
75 
76  Ui::ActionClassificationWidget ui;
77  QList<ActionTagWidget *> list;
78 };
79 #endif
void setToDefault()
Definition: ActionClassificationWidget.cpp:42
QList< ActionTagWidget * > list
Definition: ActionClassificationWidget.h:77
virtual void previousButtonClicked()
Definition: ActionClassificationWidget.cpp:82
bool isOneNonAsciiTag()
Definition: ActionClassificationWidget.cpp:91
ActionClassificationWidget(QWidget *parent)
Constructor.
Definition: ActionClassificationWidget.cpp:35
QList< ActionTagWidget * > getTagWidgets()
Definition: ActionClassificationWidget.cpp:124
void removeTag(ActionTagWidget *widget)
Definition: ActionClassificationWidget.cpp:116
Widget to class the action and to attribute a tag to it.
Definition: ActionClassificationWidget.h:43
virtual void cancelButtonClicked()
Definition: ActionClassificationWidget.cpp:87
Ui::ActionClassificationWidget ui
Definition: ActionClassificationWidget.h:76
virtual void addTagClicked()
Definition: ActionClassificationWidget.cpp:105
Widget to define tag to an action.
Definition: ActionTagWidget.h:45
QString getFamily()
Definition: ActionClassificationWidget.cpp:112
virtual void nextButtonClicked()
Definition: ActionClassificationWidget.cpp:57
~ActionClassificationWidget()
Destructor.
Definition: ActionClassificationWidget.cpp:40