Ember
Loading...
Searching...
No Matches
MonitorApp.cpp
Go to the documentation of this file.
1#include "App/MonitorApp.h"
2#include "App/MonitorFrame.h"
3
5
7 wxInitAllImageHandlers();
8
9 wxDisplaySize(&m_screenWidth, &m_screenHeight);
10
11 int windowWidth = wxMax(900, static_cast<int>(m_screenWidth * 0.7));
12 int windowHeight = wxMax(600, static_cast<int>(m_screenHeight * 0.7));
13
14 int windowX = (m_screenWidth - windowWidth) / 2;
15 int windowY = (m_screenHeight - windowHeight) / 2;
16
17 m_frame =
18 new Ember::Monitor::MonitorFrame("EmberMonitor", wxPoint(windowX, windowY), wxSize(windowWidth, windowHeight));
19 m_frame->Show(true);
20
21 return true;
22}
23
24int MonitorApp::OnExit() { return wxApp::OnExit(); }
wxIMPLEMENT_APP(MonitorApp)
Main application frame owning the TCP server, tree builder, codec, state manager, and AUI layout (Con...
Entry point for the EmberMonitor application.
Definition MonitorApp.h:12
int m_screenWidth
Definition MonitorApp.h:23
Ember::Monitor::MonitorFrame * m_frame
Definition MonitorApp.h:22
bool OnInit() override
Initializes the application and creates the main frame.
Definition MonitorApp.cpp:6
int OnExit() override
Cleans up resources on application exit.
int m_screenHeight
Definition MonitorApp.h:24