Computer Assited Medical Intervention Tool Kit  version 4.1
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-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
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() override=default
Destructor.
virtual void cancelButtonClicked()
Definition: LibraryCopyFilesWidget.cpp:53
QStringList filenames
Definition: LibraryCopyFilesWidget.h:72
virtual void nextButtonClicked()
Definition: LibraryCopyFilesWidget.cpp:45
LibraryCopyFilesWidget(QWidget *parent)
Constructor.
Definition: LibraryCopyFilesWidget.cpp:36
virtual void addFileClicked()
Definition: LibraryCopyFilesWidget.cpp:66
virtual void previousButtonClicked()
Definition: LibraryCopyFilesWidget.cpp:49
QStringList getFileNames()
Definition: LibraryCopyFilesWidget.cpp:73
void addFile(QString file)
Definition: LibraryCopyFilesWidget.cpp:57
Ui::LibraryCopyFilesWidget ui
Definition: LibraryCopyFilesWidget.h:75
void emptyFileNames()
Definition: LibraryCopyFilesWidget.cpp:77
QString fileNamesString
Definition: LibraryCopyFilesWidget.h:73
void addLibraryName(QString libraryFileName)
Definition: LibraryCopyFilesWidget.cpp:83
Widget to copy files to library.
Definition: LibraryCopyFilesWidget.h:42
void setToDefault()
Definition: LibraryCopyFilesWidget.cpp:41