Computer Assisted Medical Intervention Tool Kit  version 5.2
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-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
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);
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;
79 };
80 #endif
Widget to class the action and to attribute a tag to it.
Definition: ActionClassificationWidget.h:43
void removeTag(ActionTagWidget *widget)
Definition: ActionClassificationWidget.cpp:122
QString getFamily()
Definition: ActionClassificationWidget.cpp:118
virtual void cancelButtonClicked()
Definition: ActionClassificationWidget.cpp:94
void setToDefault()
Definition: ActionClassificationWidget.cpp:40
~ActionClassificationWidget() override=default
Destructor.
virtual void nextButtonClicked()
Definition: ActionClassificationWidget.cpp:55
QList< ActionTagWidget * > getTagWidgets()
Definition: ActionClassificationWidget.cpp:130
virtual void previousButtonClicked()
Definition: ActionClassificationWidget.cpp:89
ActionClassificationWidget(QWidget *parent)
Constructor.
Definition: ActionClassificationWidget.cpp:35
virtual void addTagClicked()
Definition: ActionClassificationWidget.cpp:112
Widget to define tag to an action.
Definition: ActionTagWidget.h:45