All Classes Namespaces Functions Variables Enumerations Properties Pages
exportimagedialog.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 EXPORTIMAGEDIALOG_H
19 #define EXPORTIMAGEDIALOG_H
20 
21 #include "importexportdialog.h"
22 
23 namespace Ui {
24 class ExportImageOptions;
25 }
26 
28 {
29  Q_OBJECT
30 
31 public:
32  explicit ExportImageDialog(QWidget* parent, FileType eType);
34 
35  void setCamerasInfo(const std::vector<std::pair<QString, QSize>>& camInfo);
36  void setDefaultRange( int startFrame, int endFrame, int endFrameWithSounds );
37 
38  void setExportSize( QSize size );
39  QSize getExportSize() const;
40  bool getTransparency() const;
41  bool getExportKeyframesOnly() const;
42  QString getExportFormat() const;
43  QString getCameraLayerName() const;
44 
45  int getStartFrame() const;
46  int getEndFrame() const;
47 
48 private slots:
49  void frameCheckboxClicked(bool checked);
50  void formatChanged(const QString& format);
51  void cameraComboChanged(int index);
52 
53 
54 private:
55  Ui::ExportImageOptions* ui = nullptr;
56 
57  void setTransparencyOptionVisibility(const QString& format);
58  int mEndFrameWithSounds = 0;
59  int mEndFrame = 0;
60 };
61 
62 #endif // EXPORTIMAGEDIALOG_H
QSize size() const const
Q_OBJECTQ_OBJECT
QObject * parent() const const