Olive
proxydialog.h
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 PROXYDIALOG_H
22 #define PROXYDIALOG_H
23 
24 #include <QDialog>
25 #include <QVector>
26 #include <QComboBox>
27 
28 struct Footage;
29 
30 class ProxyDialog : public QDialog {
31  Q_OBJECT
32 public:
33  ProxyDialog(QWidget* parent, const QVector<Footage*>& footage);
34 public slots:
35  // called if user clicks "OK" on the dialog
36  virtual void accept() override;
37 private:
38  // user's desired dimensions
39  QComboBox* size_combobox;
40 
41  // user's desired proxy format
42  QComboBox* format_combobox;
43 
44  // allows users to set the location to store proxies
45  QComboBox* location_combobox;
46 
47  // stores the custom location to store proxies if the user sets a custom location
48  QString custom_location;
49 
50  // stores the subdirectory to be made next to the source (dependent on the user's language)
51  QString proxy_folder_name;
52 
53  // list of footage to make proxies for
54  QVector<Footage*> selected_footage;
55 private slots:
56  // triggered when the user changes the index in the location combobox
57  void location_changed(int i);
58 };
59 
60 #endif // PROXYDIALOG_H
Definition: proxydialog.h:30
Definition: footage.h:66