Computer Assited Medical Intervention Tool Kit  version 5.0
LibraryCopyFilesWidget.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 LIBRARYCOPYFILEWIDGET_H
26 #define LIBRARYCOPYFILEWIDGET_H
27 
28 // Include GUI automatically generated file
29 #include "ui_LibraryCopyFilesWidget.h"
30 
31 // includes from Qt
32 #include <QWidget>
33 #include <QStringList>
34 
42 class LibraryCopyFilesWidget : public QWidget {
43 
44  Q_OBJECT;
45 
46 public:
48  LibraryCopyFilesWidget(QWidget* parent);
50  ~LibraryCopyFilesWidget() override = default;
51 
52  void setToDefault();
53 
54  void addFile(QString file);
55 
56  void addLibraryName(QString libraryFileName);
57  QStringList getFileNames();
58  void emptyFileNames();
59 
60 public slots:
61  virtual void nextButtonClicked();
62  virtual void previousButtonClicked();
63  virtual void cancelButtonClicked();
64  virtual void addFileClicked();
65 
66 signals:
67  void next();
68  void previous();
69  void cancel();
70 
71 private:
72  QStringList filenames;
73  QString fileNamesString;
74 
75  Ui::LibraryCopyFilesWidget ui;
76 };
77 #endif
LibraryCopyFilesWidget::previous
void previous()
LibraryCopyFilesWidget::previousButtonClicked
virtual void previousButtonClicked()
Definition: LibraryCopyFilesWidget.cpp:47
defaultCopiedFiles
static const QString defaultCopiedFiles
Definition: DefaultGUIText.h:378
LibraryCopyFilesWidget::next
void next()
LibraryCopyFilesWidget::getFileNames
QStringList getFileNames()
Definition: LibraryCopyFilesWidget.cpp:71
LibraryCopyFilesWidget::addFile
void addFile(QString file)
Definition: LibraryCopyFilesWidget.cpp:55
LibraryCopyFilesWidget::LibraryCopyFilesWidget
LibraryCopyFilesWidget(QWidget *parent)
Constructor.
Definition: LibraryCopyFilesWidget.cpp:34
LibraryCopyFilesWidget::cancel
void cancel()
LibraryCopyFilesWidget::addFileClicked
virtual void addFileClicked()
Definition: LibraryCopyFilesWidget.cpp:64
LibraryCopyFilesWidget::fileNamesString
QString fileNamesString
Definition: LibraryCopyFilesWidget.h:96
LibraryCopyFilesWidget::emptyFileNames
void emptyFileNames()
Definition: LibraryCopyFilesWidget.cpp:75
LibraryCopyFilesWidget::addLibraryName
void addLibraryName(QString libraryFileName)
Definition: LibraryCopyFilesWidget.cpp:81
DefaultGUIText.h
LibraryCopyFilesWidget::ui
Ui::LibraryCopyFilesWidget ui
Definition: LibraryCopyFilesWidget.h:98
LibraryCopyFilesWidget::setToDefault
void setToDefault()
Definition: LibraryCopyFilesWidget.cpp:39
LibraryCopyFilesWidget
Widget to copy files to library.
Definition: LibraryCopyFilesWidget.h:42
defaultCopyFilesExplanation
static const QString defaultCopyFilesExplanation
Definition: DefaultGUIText.h:360
LibraryCopyFilesWidget::~LibraryCopyFilesWidget
~LibraryCopyFilesWidget() override=default
Destructor.
LibraryCopyFilesWidget::cancelButtonClicked
virtual void cancelButtonClicked()
Definition: LibraryCopyFilesWidget.cpp:51
LibraryCopyFilesWidget::filenames
QStringList filenames
Definition: LibraryCopyFilesWidget.h:95
LibraryCopyFilesWidget.h
LibraryCopyFilesWidget::nextButtonClicked
virtual void nextButtonClicked()
Definition: LibraryCopyFilesWidget.cpp:43