File indexing completed on 2024-04-21 05:48:33
0001 /* 0002 SPDX-FileCopyrightText: 2016 ROSA 0003 SPDX-License-Identifier: GPL-3.0-or-later 0004 */ 0005 0006 #ifndef MAINAPPLICATION_H 0007 #define MAINAPPLICATION_H 0008 0009 #include <QApplication> 0010 #include <QCommandLineParser> 0011 0012 class MainApplication : public QApplication 0013 { 0014 public: 0015 MainApplication(int& argc, char** argv); 0016 // Returns the language id to be used by the application (specified by --lang, or system locale otherwise) 0017 QString getLocale(); 0018 // Returns the start-up directory that will be shown by default in the Open File dialog 0019 QString getInitialDir(); 0020 // Returns the file url passed to the application as command-line parameter 0021 QUrl getInitialImage(); 0022 0023 protected: 0024 QCommandLineParser m_Options; 0025 }; 0026 0027 #endif // MAINAPPLICATION_H