view src/main.cpp @ 0:615a15029602 default tip

first commit.
author pyon@macmini
date Sun, 10 Nov 2019 08:39:41 +0900
parents
children
line wrap: on
line source

/* Filename   : main.cpp
   Last Change: 2019-11-08 金 13:50:16.
                     by Takayuki Mutoh
*/

#include "main.h"
#include "search.h"

IMPLEMENT_APP(MyApp)

IMPLEMENT_CLASS(MyApp, wxApp)

MyApp::MyApp()
{
}
MyApp::~MyApp()
{
}

bool MyApp::OnInit()
{
    if ( !wxApp::OnInit() ) return false;

    wxImage::AddHandler( new wxJPEGHandler );
	/*
    wxImage::AddHandler( new wxPNGHandler  );

	AppConf appconf;
	wxRect rect = appconf.LoadRect();
	*/
	// Main Window
	SearcherFrame *searchframe = new SearcherFrame(NULL, wxID_ANY, "Le Searcher", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE);
	//MainFrame *mainframe = new MainFrame(NULL, wxID_ANY, "Le Searcher", wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE );
	searchframe->Show(true);
	searchframe->Raise();

    return true;
}

int MyApp::OnExit()
{
    return 0;
}