Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
  • app
  • src
exportimagedialog.h
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; version 2 of the License.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16*/
17
18#ifndef EXPORTIMAGEDIALOG_H
19#define EXPORTIMAGEDIALOG_H
20
21#include "importexportdialog.h"
22
23namespace Ui {
24class ExportImageOptions;
25}
26
27class ExportImageDialog : public ImportExportDialog
28{
29 Q_OBJECT
30
31public:
32 explicit ExportImageDialog(QWidget* parent, FileType eType);
33 ~ExportImageDialog();
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
48private slots:
49 void frameCheckboxClicked(bool checked);
50 void formatChanged(const QString& format);
51 void cameraComboChanged(int index);
52
53
54private:
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
ExportImageDialog
Definition: exportimagedialog.h:28
ImportExportDialog
Definition: importexportdialog.h:32
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QSize
QString
QWidget
QWidget::size
size
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39