57 void BuildMainFrame();
58 void LoadChartDatabase();
63 void OnInitCmdLine(wxCmdLineParser& parser)
override;
64 bool OnCmdLineHelp(wxCmdLineParser& parser)
override;
65 bool OnCmdLineParsed(wxCmdLineParser& parser)
override;
69 void OnActivateApp(wxActivateEvent& event);
70 bool OpenFile(
const std::string& path);
71 void OnUnhandledException()
override;
73 void RegisterApiEventCallback(
74 const std::string& plugin_name,
79 void OnFatalException();
85 bool OnExceptionInMainLoop();
96 struct ParsedCmdline {
99 ParsedCmdline(CmdlineAction a,
const std::string& s) : action(a), arg(s) {}
100 ParsedCmdline() : ParsedCmdline(CmdlineAction::Skip,
"") {}
101 ParsedCmdline(CmdlineAction a) : ParsedCmdline(a,
"") {}
104 ParsedCmdline m_parsed_cmdline;
107 void InitRestListeners();
109 void OnNewMsgTypes();
111 obs::Listener rest_activate_listener;
112 obs::Listener rest_reverse_listener;
113 obs::Listener new_msg_type_listener;
115 CallbacksByPlugin m_api_events_callbacks;