Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
loaddialog.h
Go to the documentation of this file.
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef LOADDIALOG_H
22 #define LOADDIALOG_H
23 
24 #include <QDialog>
25 #include <QProgressBar>
26 #include <QHBoxLayout>
27 
29 #include "project/loadthread.h"
30 
38 class LoadDialog : public QDialog
39 {
40  Q_OBJECT
41 public:
49  LoadDialog(QWidget* parent);
50 
51 public slots:
61  void setValue(int i);
62 signals:
68  void cancel();
69 private:
73  QProgressBar* bar;
74 };
75 
76 #endif // LOADDIALOG_H
void setValue(int i)
Set the progress bar value.
Definition: loaddialog.cpp:60
The LoadDialog class.
Definition: loaddialog.h:38
QProgressBar * bar
Progress bar widget.
Definition: loaddialog.h:73
LoadDialog(QWidget *parent)
LoadDialog Constructor.
Definition: loaddialog.cpp:34
void cancel()
Signal emitted when the cancel button is clicked.