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
exportmoviedialog.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 EXPORTMOVIEDIALOG_H
19#define EXPORTMOVIEDIALOG_H
20
21#include "importexportdialog.h"
22#include <QCheckBox>
23
24namespace Ui {
25class ExportMovieOptions;
26}
27
28
29class ExportMovieDialog : public ImportExportDialog
30{
31 Q_OBJECT
32
33public:
34 explicit ExportMovieDialog(QWidget* parent, Mode mode, FileType fileType);
35 ~ExportMovieDialog();
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
51private:
52 void frameCheckboxClicked(bool checked);
53 void onFilePathsChanged(QStringList filePaths);
54
55 bool supportsLooping(QString filePath) const;
56 bool supportsTransparency(QString filePath) const;
57 void validateResolution();
58
59 int mEndFrameWithSounds = 0;
60 int mEndFrame = 0;
61
62 Ui::ExportMovieOptions* ui = nullptr;
63};
64
65#endif // EXPORTMOVIEDIALOG_H
ExportMovieDialog
Definition: exportmoviedialog.h:30
ImportExportDialog
Definition: importexportdialog.h:32
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QSize
QString
QStringList
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39