Computer Assited Medical Intervention Tool Kit  version 5.0
ViewerSummaryWidget.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 VIEWERSUMMARYWIDGET_H
26 #define VIEWERSUMMARYWIDGET_H
27 
28 // Include GUI automatically generated file
29 #include "ui_ViewerSummaryWidget.h"
30 
31 // includes from Qt
32 #include <QWidget>
33 #include <QStringList>
34 
35 namespace cepcoreschema {
36 class Viewer;
37 class ViewerExtension;
38 class ViewerType;
39 class Cep;
40 }
41 
49 class ViewerSummaryWidget : public QWidget {
50 
51  Q_OBJECT;
52 
53 public:
55  ViewerSummaryWidget(QWidget* parent);
56 
58  ~ViewerSummaryWidget() override = default;
59 
60  void setToDefault();
61  void setSummary(QString name, QString description, cepcoreschema::ViewerType type);
62 
63 public slots:
64  virtual void nextButtonClicked();
65  virtual void cancelButtonClicked();
66  virtual void previousButtonClicked();
67 
68 signals:
69  void next();
70  void previous();
71  void cancel();
72 
73 private:
74  Ui::ViewerSummaryWidget ui;
75 
76 };
77 #endif
ViewerSummaryWidget::cancelButtonClicked
virtual void cancelButtonClicked()
Definition: ViewerSummaryWidget.cpp:45
ViewerSummaryWidget::setSummary
void setSummary(QString name, QString description, cepcoreschema::ViewerType type)
Definition: ViewerSummaryWidget.cpp:53
ViewerSummaryWidget::previous
void previous()
ViewerSummaryWidget::cancel
void cancel()
ViewerSummaryWidget::next
void next()
ViewerSummaryWidget::previousButtonClicked
virtual void previousButtonClicked()
Definition: ViewerSummaryWidget.cpp:49
ViewerSummaryWidget::nextButtonClicked
virtual void nextButtonClicked()
Definition: ViewerSummaryWidget.cpp:41
ViewerSummaryWidget::~ViewerSummaryWidget
~ViewerSummaryWidget() override=default
Destructor.
DefaultGUIText.h
description
const char * description
Definition: applications/cepgenerator/main.cpp:38
ViewerSummaryWidget.h
ViewerSummaryWidget::ViewerSummaryWidget
ViewerSummaryWidget(QWidget *parent)
Constructor.
Definition: ViewerSummaryWidget.cpp:33
defaultViewerSummary
static const QString defaultViewerSummary
Definition: DefaultGUIText.h:260
ViewerSummaryWidget
Widget to summarize the created action.
Definition: ViewerSummaryWidget.h:49
ViewerSummaryWidget::ui
Ui::ViewerSummaryWidget ui
Definition: ViewerSummaryWidget.h:74
cepcoreschema
Definition: ActionExtensionGenerator.h:36
ViewerSummaryWidget::setToDefault
void setToDefault()
Definition: ViewerSummaryWidget.cpp:37