Computer Assited Medical Intervention Tool Kit  version 5.0
ViewerDescriptionWidget.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 VIEWERDESCRIPTIONWIDGET_H
26 #define VIEWERDESCRIPTIONWIDGET_H
27 
28 // Include GUI automatically generated file
29 #include "ui_ViewerDescriptionWidget.h"
30 
31 // includes from Qt
32 #include <QWidget>
33 
34 #include <ViewerType.hxx>
35 
43 class ViewerDescriptionWidget : public QWidget {
44 
45  Q_OBJECT;
46 
47 public:
49  ViewerDescriptionWidget(QWidget* parent);
50 
52  ~ViewerDescriptionWidget() override = default;
53 
54  void setToDefault(QString viewerExtensionName);
55 
56  void setName(QString name);
57  void setDescription(QString description);
58 
59  QString getViewerName();
60  QString getViewerDescription();
61  cepcoreschema::ViewerType getType();
62 
63 public slots:
64  virtual void nextButtonClicked();
65  virtual void cancelButtonClicked();
66 
67 signals:
68  void next();
69  void cancel();
70 
71 private:
72  Ui::ViewerDescriptionWidget ui;
73 
74  QString viewerExtensionName;
75 };
76 #endif
defaultBeforeGoingFurther
static const QString defaultBeforeGoingFurther
Definition: DefaultGUIText.h:31
ViewerDescriptionWidget::setDescription
void setDescription(QString description)
Definition: ViewerDescriptionWidget.cpp:130
ViewerDescriptionWidget
Widget to describe action.
Definition: ViewerDescriptionWidget.h:43
defaultAscii
static const QString defaultAscii
Definition: DefaultGUIText.h:38
defaultRealViewerDescription
static const QString defaultRealViewerDescription
Definition: DefaultGUIText.h:173
defaultViewerDescription
static const QString defaultViewerDescription
Definition: DefaultGUIText.h:170
ViewerDescriptionWidget::viewerExtensionName
QString viewerExtensionName
Definition: ViewerDescriptionWidget.h:97
defaultViewerExtensionName
static const QString defaultViewerExtensionName
Definition: DefaultGUIText.h:132
normalStyle
static const QString normalStyle
Definition: DefaultGUIText.h:34
ViewerDescriptionWidget::next
void next()
ViewerDescriptionWidget::cancel
void cancel()
ViewerDescriptionWidget::setToDefault
void setToDefault(QString viewerExtensionName)
Definition: ViewerDescriptionWidget.cpp:115
DefaultGUIText.h
ViewerDescriptionWidget.h
ViewerDescriptionWidget::nextButtonClicked
virtual void nextButtonClicked()
Definition: ViewerDescriptionWidget.cpp:41
defaultViewerName
static const QString defaultViewerName
Definition: DefaultGUIText.h:169
description
const char * description
Definition: applications/cepgenerator/main.cpp:38
defaultRealViewerName
static const QString defaultRealViewerName
Definition: DefaultGUIText.h:172
ViewerDescriptionWidget::ui
Ui::ViewerDescriptionWidget ui
Definition: ViewerDescriptionWidget.h:95
ViewerDescriptionWidget::getViewerDescription
QString getViewerDescription()
Definition: ViewerDescriptionWidget.cpp:102
enhancedStyle
static const QString enhancedStyle
Definition: DefaultGUIText.h:35
ViewerDescriptionWidget::~ViewerDescriptionWidget
~ViewerDescriptionWidget() override=default
Destructor.
ViewerDescriptionWidget::ViewerDescriptionWidget
ViewerDescriptionWidget(QWidget *parent)
Constructor *.
Definition: ViewerDescriptionWidget.cpp:36
ViewerDescriptionWidget::getType
cepcoreschema::ViewerType getType()
Definition: ViewerDescriptionWidget.cpp:106
defaultViewerNameAndExtension
static const QString defaultViewerNameAndExtension
Definition: DefaultGUIText.h:174
ViewerDescriptionWidget::setName
void setName(QString name)
Definition: ViewerDescriptionWidget.cpp:126
ViewerDescriptionWidget::cancelButtonClicked
virtual void cancelButtonClicked()
Definition: ViewerDescriptionWidget.cpp:93
ViewerDescriptionWidget::getViewerName
QString getViewerName()
Definition: ViewerDescriptionWidget.cpp:98