]> Creatis software - crea.git/blob - appli/creaDevManager/creaDevManager.cpp
4b36d6e9b70670010c8536b3883e468cf7a6716f
[crea.git] / appli / creaDevManager / creaDevManager.cpp
1 #include <creaWx.h>
2 #include <stdlib.h>
3 #include <iostream> // for std::cout
4 #include "creaDevManager.h"
5 #include "wxCreaDevManagerMainFrame.h"
6 using namespace std;
7
8 IMPLEMENT_APP(wxCreaDevManagerApp)
9
10 wxCreaDevManagerApp::wxCreaDevManagerApp():wxApp()
11 {
12 }
13
14 bool wxCreaDevManagerApp::OnInit()
15 {
16   wxApp::OnInit();
17   
18   wxCreaDevManagerMainFrame* mainWindow = new wxCreaDevManagerMainFrame(NULL);
19   SetTopWindow(mainWindow);
20   mainWindow->SetSize(800, 600);
21   mainWindow->Show(true);
22   
23   cout << "Crea DevManager opened." << endl;
24   
25   return true;
26 }
27
28 int wxCreaDevManagerApp::OnExit()
29 {
30   wxApp::OnExit();
31   cout << "Crea DevManager closed." << endl;
32   return 0;
33 }