-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMain.cpp
More file actions
29 lines (23 loc) · 699 Bytes
/
Main.cpp
File metadata and controls
29 lines (23 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "Common.h"
#include "BaseMainFrame.h"
#include "Main.h"
IMPLEMENT_APP(AGE)
BaseMainFrame *BaseMainFrame::openEditors[4]{0};
Copies BaseMainFrame::copies;
bool AGE::OnInit()
{
SetVendorName("Tapsa");
SetAppName("AdvancedGenieEditor3");
SetAppDisplayName("Advanced Genie Editor");
wxImage::AddHandler(new wxPNGHandler);
wxImage::AddHandler(new wxTGAHandler);
wxToolTip::SetDelay(200);
wxToolTip::SetAutoPop(32700);
wxToolTip::SetReshow(1);
wxString cmd1 = (wxApp::argc > 1) ? wxApp::argv[1] : "";
BaseMainFrame *window = BaseMainFrame::Create(cmd1);
SetTopWindow(window);
wxCommandEvent open;
window->OnOpen(open);
return true;
}