summaryrefslogtreecommitdiff
path: root/LiteEditor/app.h
diff options
context:
space:
mode:
authorJames Cowgill <jcowgill@debian.org>2017-01-20 08:59:41 +0000
committerJames Cowgill <jcowgill@debian.org>2017-01-20 08:59:41 +0000
commitff556398fed87e23214f8dbe36765246e258886f (patch)
tree775c6d5397d0f6cfa7f4ee1d821f9ce46b9b529f /LiteEditor/app.h
parent5c7c7badcf37b0d260741db6a7e9322f18f2403c (diff)
New upstream version 10.0+dfsg
Diffstat (limited to 'LiteEditor/app.h')
-rw-r--r--LiteEditor/app.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/LiteEditor/app.h b/LiteEditor/app.h
index 26a3cfd5..9fdefc9a 100644
--- a/LiteEditor/app.h
+++ b/LiteEditor/app.h
@@ -46,7 +46,13 @@ protected:
wxArrayString m_allowedPlugins;
PluginPolicy m_pluginLoadPolicy;
clPersistenceManager* m_persistencManager;
-
+ bool m_startedInDebuggerMode;
+
+ // When starting in debugger mode
+ wxString m_exeToDebug;
+ wxString m_debuggerArgs;
+ wxString m_debuggerWorkingDirectory;
+
private: // Methods
bool CopySettings(const wxString& destDir, wxString& installPath);
bool IsSingleInstance(const wxCmdLineParser& parser);
@@ -58,7 +64,9 @@ private: // Methods
#ifdef __WXMSW__
HINSTANCE m_handler;
+ HINSTANCE m_user32Dll;
#endif
+ void PrintUsage(const wxCmdLineParser& parser);
public:
CodeLiteApp(void);
@@ -73,6 +81,18 @@ public:
void MacOpenFile(const wxString& fileName);
+ void SetStartedInDebuggerMode(bool startedInDebuggerMode) { this->m_startedInDebuggerMode = startedInDebuggerMode; }
+ bool IsStartedInDebuggerMode() const { return m_startedInDebuggerMode; }
+
+ void SetDebuggerArgs(const wxString& debuggerArgs) { this->m_debuggerArgs = debuggerArgs; }
+ void SetDebuggerWorkingDirectory(const wxString& debuggerWorkingDirectory)
+ {
+ this->m_debuggerWorkingDirectory = debuggerWorkingDirectory;
+ }
+ void SetExeToDebug(const wxString& exeToDebug) { this->m_exeToDebug = exeToDebug; }
+ const wxString& GetDebuggerArgs() const { return m_debuggerArgs; }
+ const wxString& GetDebuggerWorkingDirectory() const { return m_debuggerWorkingDirectory; }
+ const wxString& GetExeToDebug() const { return m_exeToDebug; }
protected:
virtual bool OnInit();
virtual int OnExit();