1 /* 2 * Copyright (c) 2015 Boudewijn Rempt <boud@valdyas.org> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with this library; see the file COPYING.LIB. If not, write to 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 #ifndef KISAPPLICATIONARGUMENTS_H 20 #define KISAPPLICATIONARGUMENTS_H 21 22 #include <QScopedPointer> 23 24 class QApplication; 25 class QByteArray; 26 class QStringList; 27 class KisDocument; 28 29 #include "kritaui_export.h" 30 31 class KRITAUI_EXPORT KisApplicationArguments 32 { 33 public: 34 35 KisApplicationArguments(const QApplication &app); 36 KisApplicationArguments(const KisApplicationArguments &rhs); 37 ~KisApplicationArguments(); 38 39 void operator=(const KisApplicationArguments& rhs); 40 QByteArray serialize(); 41 static KisApplicationArguments deserialize(QByteArray &serialized); 42 43 QStringList filenames() const; 44 45 int dpiX() const; 46 int dpiY() const; 47 bool doTemplate() const; 48 bool exportAs() const; 49 bool exportSequence() const; 50 QString exportFileName() const; 51 QString workspace() const; 52 QString windowLayout() const; 53 QString session() const; 54 QString fileLayer() const; 55 bool canvasOnly() const; 56 bool noSplash() const; 57 bool fullScreen() const; 58 bool doNewImage() const; 59 KisDocument *createDocumentFromArguments() const; 60 61 private: 62 63 KisApplicationArguments(); 64 65 struct Private; 66 const QScopedPointer<Private> d; 67 }; 68 69 #endif // KISAPPLICATIONARGUMENTS_H 70