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
35namespace cepcoreschema {
36class Viewer;
37class ViewerExtension;
38class ViewerType;
39class Cep;
40}
41
49class ViewerSummaryWidget : public QWidget {
50
51 Q_OBJECT;
52
53public:
55 ViewerSummaryWidget(QWidget* parent);
56
58 ~ViewerSummaryWidget() override = default;
59
60 void setToDefault();
61 void setSummary(QString name, QString description, cepcoreschema::ViewerType type);
62
63public slots:
64 virtual void nextButtonClicked();
65 virtual void cancelButtonClicked();
66 virtual void previousButtonClicked();
67
68signals:
69 void next();
70 void previous();
71 void cancel();
72
73private:
74 Ui::ViewerSummaryWidget ui;
75
76};
77#endif
const char * description
Definition: applications/cepgenerator/main.cpp:38
Widget to summarize the created action.
Definition: ViewerSummaryWidget.h:49
virtual void previousButtonClicked()
Definition: ViewerSummaryWidget.cpp:49
Ui::ViewerSummaryWidget ui
Definition: ViewerSummaryWidget.h:74
void setSummary(QString name, QString description, cepcoreschema::ViewerType type)
Definition: ViewerSummaryWidget.cpp:53
virtual void nextButtonClicked()
Definition: ViewerSummaryWidget.cpp:41
void setToDefault()
Definition: ViewerSummaryWidget.cpp:37
virtual void cancelButtonClicked()
Definition: ViewerSummaryWidget.cpp:45
~ViewerSummaryWidget() override=default
Destructor.
ViewerSummaryWidget(QWidget *parent)
Constructor.
Definition: ViewerSummaryWidget.cpp:33
Definition: ActionExtensionGenerator.h:36