Olive
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 "io/loadthread.h"
30 
31 class LoadDialog : public QDialog
32 {
33  Q_OBJECT
34 public:
35  LoadDialog(QWidget* parent, bool autorecovery);
36 private slots:
37  void cancel();
38  void die();
39  void thread_done();
40 private:
41  QProgressBar* bar;
42  QPushButton* cancel_button;
43  QHBoxLayout* hboxLayout;
45 };
46 
47 #endif // LOADDIALOG_H
Definition: loadthread.h:33
LoadThread * lt
Definition: loaddialog.h:44
void die()
Definition: loaddialog.cpp:72
QPushButton * cancel_button
Definition: loaddialog.h:42
Definition: loaddialog.h:31
LoadDialog(QWidget *parent, bool autorecovery)
Definition: loaddialog.cpp:35
QHBoxLayout * hboxLayout
Definition: loaddialog.h:43
QProgressBar * bar
Definition: loaddialog.h:41
void thread_done()
Definition: loaddialog.cpp:77
void cancel()
Definition: loaddialog.cpp:66