All Classes Namespaces Functions Variables Enumerations Properties Pages
exportmoviedialog.h
1 /*
2 
3 Pencil2D - Traditional Animation Software
4 Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5 Copyright (C) 2012-2020 Matthew Chiawen Chang
6 
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; version 2 of the License.
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 */
17 
18 #ifndef EXPORTMOVIEDIALOG_H
19 #define EXPORTMOVIEDIALOG_H
20 
21 #include "importexportdialog.h"
22 #include <QCheckBox>
23 
24 namespace Ui {
25 class ExportMovieOptions;
26 }
27 
28 
30 {
31  Q_OBJECT
32 
33 public:
34  explicit ExportMovieDialog(QWidget* parent, Mode mode, FileType fileType);
36 
37  void setCamerasInfo(const std::vector<std::pair<QString, QSize>>);
38  void updateResolutionCombo( int index );
39 
40  void setDefaultRange( int startFrame, int endFrame, int endFrameWithSounds );
41 
42  QString getSelectedCameraName();
43  QSize getExportSize();
44  bool getTransparency() const;
45 
46  int getStartFrame();
47  int getEndFrame();
48 
49  bool getLoop();
50 
51 private:
52  void frameCheckboxClicked(bool checked);
53  void onFilePathsChanged(QStringList filePaths);
54 
55  bool supportsLooping(QString filePath) const;
56  bool supportsTransparency(QString filePath) const;
57 
58  int mEndFrameWithSounds = 0;
59  int mEndFrame = 0;
60 
61  Ui::ExportMovieOptions* ui = nullptr;
62 };
63 
64 #endif // EXPORTMOVIEDIALOG_H
Q_OBJECTQ_OBJECT
QObject * parent() const const