Computer Assited Medical Intervention Tool Kit  version 5.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-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, 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);
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
defaultBeforeGoingFurther
static const QString defaultBeforeGoingFurther
Definition: DefaultGUIText.h:31
defaultAscii
static const QString defaultAscii
Definition: DefaultGUIText.h:38
ActionClassificationWidget::previous
void previous()
ActionClassificationWidget.h
ActionClassificationWidget::ActionClassificationWidget
ActionClassificationWidget(QWidget *parent)
Constructor.
Definition: ActionClassificationWidget.cpp:35
defaultFamily
static const QString defaultFamily
Definition: DefaultGUIText.h:188
ActionClassificationWidget::getTagWidgets
QList< ActionTagWidget * > getTagWidgets()
Definition: ActionClassificationWidget.cpp:130
ActionClassificationWidget::list
QList< ActionTagWidget * > list
Definition: ActionClassificationWidget.h:78
normalStyle
static const QString normalStyle
Definition: DefaultGUIText.h:34
ActionClassificationWidget::removeTag
void removeTag(ActionTagWidget *widget)
Definition: ActionClassificationWidget.cpp:122
ActionClassificationWidget::~ActionClassificationWidget
~ActionClassificationWidget() override=default
Destructor.
DefaultGUIText.h
ActionClassificationWidget::next
void next()
ActionClassificationWidget::cancelButtonClicked
virtual void cancelButtonClicked()
Definition: ActionClassificationWidget.cpp:94
ActionClassificationWidget::cancel
void cancel()
defaultRealFamily
static const QString defaultRealFamily
Definition: DefaultGUIText.h:189
enhancedStyle
static const QString enhancedStyle
Definition: DefaultGUIText.h:35
ActionClassificationWidget::addTagClicked
virtual void addTagClicked()
Definition: ActionClassificationWidget.cpp:112
ActionTagWidget
Widget to define tag to an action.
Definition: ActionTagWidget.h:45
ActionClassificationWidget::ui
Ui::ActionClassificationWidget ui
Definition: ActionClassificationWidget.h:77
ActionClassificationWidget::previousButtonClicked
virtual void previousButtonClicked()
Definition: ActionClassificationWidget.cpp:89
ActionClassificationWidget
Widget to class the action and to attribute a tag to it.
Definition: ActionClassificationWidget.h:43
ActionClassificationWidget::isOneNonAsciiTag
bool isOneNonAsciiTag()
Definition: ActionClassificationWidget.cpp:98
ActionTagWidget.h
ActionClassificationWidget::getFamily
QString getFamily()
Definition: ActionClassificationWidget.cpp:118
ActionClassificationWidget::nextButtonClicked
virtual void nextButtonClicked()
Definition: ActionClassificationWidget.cpp:55
ActionClassificationWidget::setToDefault
void setToDefault()
Definition: ActionClassificationWidget.cpp:40