File indexing completed on 2024-05-19 04:29:09
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 #ifndef KISAPPLICATIONARGUMENTS_H 0007 #define KISAPPLICATIONARGUMENTS_H 0008 0009 #include <QScopedPointer> 0010 0011 class QApplication; 0012 class QByteArray; 0013 class QStringList; 0014 class KisDocument; 0015 0016 #include "kritaui_export.h" 0017 0018 class KRITAUI_EXPORT KisApplicationArguments 0019 { 0020 public: 0021 0022 KisApplicationArguments(const QApplication &app); 0023 KisApplicationArguments(const KisApplicationArguments &rhs); 0024 ~KisApplicationArguments(); 0025 0026 void operator=(const KisApplicationArguments& rhs); 0027 QByteArray serialize(); 0028 static KisApplicationArguments deserialize(QByteArray &serialized); 0029 0030 QStringList filenames() const; 0031 0032 bool doTemplate() const; 0033 bool exportAs() const; 0034 bool exportSequence() const; 0035 QString exportFileName() const; 0036 QString workspace() const; 0037 QString windowLayout() const; 0038 QString session() const; 0039 QString fileLayer() const; 0040 bool canvasOnly() const; 0041 bool noSplash() const; 0042 bool fullScreen() const; 0043 bool doNewImage() const; 0044 KisDocument *createDocumentFromArguments() const; 0045 0046 private: 0047 0048 KisApplicationArguments(); 0049 0050 struct Private; 0051 const QScopedPointer<Private> d; 0052 }; 0053 0054 #endif // KISAPPLICATIONARGUMENTS_H