diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:23:48 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:23:48 +0200 |
commit | ee1c8c5c25d25dfa42120125a8a45dc9831ee412 (patch) | |
tree | 67aa287157db954e0cadeee05b4aad331eb2ecf2 /Application.h | |
parent | 5.13 (diff) | |
download | FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.gz FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.bz2 FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.zip |
5.14
Diffstat (limited to 'Application.h')
-rw-r--r-- | Application.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Application.h b/Application.h index 4121ae4c..1c542903 100644 --- a/Application.h +++ b/Application.h @@ -7,21 +7,31 @@ #ifndef FREEFILESYNCAPP_H #define FREEFILESYNCAPP_H +#include <vector> #include <wx/app.h> -#include "lib/process_xml.h" +//#include "lib/process_xml.h" #include "lib/return_codes.h" class Application : public wxApp { +public: + Application() : returnCode(zen::FFS_RC_SUCCESS) {} + private: virtual bool OnInit(); virtual int OnRun(); virtual int OnExit() { return 0; } virtual bool OnExceptionInMainLoop() { throw; } //just re-throw and avoid display of additional messagebox: it will be caught in OnRun() - void OnStartApplication(wxIdleEvent& event); - void OnQueryEndSession(wxEvent& event); +#ifdef FFS_MAC + virtual void MacOpenFiles(const wxArrayString& filenames); + virtual void MacNewFile(); +#endif + + void onEnterEventLoop(wxEvent& event); + void onQueryEndSession(wxEvent& event); + void launch(const std::vector<wxString>& commandArgs); zen::FfsReturnCode returnCode; }; |