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
commandlineparser.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 COMMANDLINEPARSER_H
19#define COMMANDLINEPARSER_H
20
21#include <QCommandLineParser>
22
23class CommandLineParser : QObject
24{
25 Q_OBJECT
26
27public:
28 explicit CommandLineParser();
29
30 void process(QStringList arguments);
31
32 QString inputPath() const { return mInputPath; }
33 QStringList outputPaths() const { return mOutputPaths; }
34 QString camera() const { return mCamera; }
35 int width() const { return mWidth; }
36 int height() const { return mHeight; }
37 int startFrame() const { return mStartFrame; }
38 int endFrame() const { return mEndFrame; }
39 bool transparency() const { return mTransparency; }
40
41private:
42 QCommandLineParser mParser;
43
44 QString mInputPath;
45 QStringList mOutputPaths;
46 QString mCamera;
47 int mWidth = -1;
48 int mHeight = -1;
49 int mStartFrame = 1;
50 int mEndFrame = -1;
51 bool mTransparency = false;
52};
53
54#endif // COMMANDLINEPARSER_H
CommandLineParser
Definition: commandlineparser.h:24
QCommandLineParser
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QString
QStringList
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39