Process command line and configuration file in the application class.

This commit is contained in:
Saleem Edah-Tally
2025-07-13 12:46:36 +02:00
parent 4b23b1f3de
commit 059b16f08a
4 changed files with 67 additions and 55 deletions

View File

@@ -21,6 +21,8 @@
#include "wx/image.h"
////@end includes
#include "wx/config.h"
/*!
* Forward declarations
*/
@@ -66,6 +68,15 @@ public:
////@end S7App member variables
private:
wxLocale m_locale;
std::unique_ptr<wxConfig> m_config = nullptr;
/*
* An optional tag for wxConfig files. This allows using different profiles
* by specifying the -c command line option.
*/
wxString m_configTag;
bool ParseCmdLine();
void SetConfig();
};
/*!