Computer Assited Medical Intervention Tool Kit  version 4.1
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-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 #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);
50 
52  ~ActionClassificationWidget() override = default;
53 
54  void setToDefault();
55 
56  QString getFamily();
57 
58  void removeTag(ActionTagWidget* widget);
59  QList<ActionTagWidget*> getTagWidgets();
60 
61 
62 public slots:
63  virtual void nextButtonClicked();
64  virtual void previousButtonClicked();
65  virtual void cancelButtonClicked();
66  virtual void addTagClicked();
67 
68 signals:
69  void next();
70  void previous();
71  void cancel();
72 
73 private:
74 
75  bool isOneNonAsciiTag();
76 
77  Ui::ActionClassificationWidget ui;
78  QList<ActionTagWidget*> list;
79 };
80 #endif
void setToDefault()
Definition: ActionClassificationWidget.cpp:40
QList< ActionTagWidget * > list
Definition: ActionClassificationWidget.h:78
~ActionClassificationWidget() override=default
Destructor.
virtual void previousButtonClicked()
Definition: ActionClassificationWidget.cpp:89
bool isOneNonAsciiTag()
Definition: ActionClassificationWidget.cpp:98
ActionClassificationWidget(QWidget *parent)
Constructor.
Definition: ActionClassificationWidget.cpp:35
QList< ActionTagWidget * > getTagWidgets()
Definition: ActionClassificationWidget.cpp:130
void removeTag(ActionTagWidget *widget)
Definition: ActionClassificationWidget.cpp:122
Widget to class the action and to attribute a tag to it.
Definition: ActionClassificationWidget.h:43
virtual void cancelButtonClicked()
Definition: ActionClassificationWidget.cpp:94
Ui::ActionClassificationWidget ui
Definition: ActionClassificationWidget.h:77
virtual void addTagClicked()
Definition: ActionClassificationWidget.cpp:112
Widget to define tag to an action.
Definition: ActionTagWidget.h:45
QString getFamily()
Definition: ActionClassificationWidget.cpp:118
virtual void nextButtonClicked()
Definition: ActionClassificationWidget.cpp:55