Mercurial > mercurial > hgweb_searcher03.cgi
comparison src/main.cpp @ 1:7b6dab24f4b8
Gui parts complete.
| author | pyon@macmini |
|---|---|
| date | Sun, 04 Aug 2013 21:42:49 +0900 |
| parents | 0c0701a935f8 |
| children | c066fde99517 |
comparison
equal
deleted
inserted
replaced
| 0:0c0701a935f8 | 1:7b6dab24f4b8 |
|---|---|
| 1 // Filename : main.cpp | 1 // Filename : main.cpp |
| 2 // Last Change: 20-Jul-2013. | 2 // Last Change: 23-Jul-2013. |
| 3 // | 3 // |
| 4 #include "main.h" | 4 #include "main.h" |
| 5 #include "myframe.h" | 5 #include "myframe.h" |
| 6 | 6 |
| 7 IMPLEMENT_APP(MyApp) | 7 IMPLEMENT_APP(MyApp) |
| 46 config->SetPath( wxT("/Geometry") ); | 46 config->SetPath( wxT("/Geometry") ); |
| 47 config->Read( wxT("x"), &rect.x ); | 47 config->Read( wxT("x"), &rect.x ); |
| 48 config->Read( wxT("y"), &rect.y ); | 48 config->Read( wxT("y"), &rect.y ); |
| 49 config->Read( wxT("w"), &rect.width ); | 49 config->Read( wxT("w"), &rect.width ); |
| 50 config->Read( wxT("h"), &rect.height ); | 50 config->Read( wxT("h"), &rect.height ); |
| 51 delete config; | |
| 51 | 52 |
| 52 WriteLog( wxT("Setting Parameters read.") ); | 53 WriteLog( wxT("Setting Parameters read.") ); |
| 53 } | 54 } |
| 54 | 55 |
| 55 void MyApp::SaveSetting() | 56 void MyApp::SaveSetting() |
| 56 { | 57 { |
| 58 config = new wxFileConfig( wxT("MyApp"), wxT("T.Mutoh"), conf_file, wxEmptyString, wxCONFIG_USE_LOCAL_FILE ); | |
| 59 | |
| 57 config->SetPath( wxT("/Geometry") ); | 60 config->SetPath( wxT("/Geometry") ); |
| 58 config->Write( wxT("x"), rect.x ); | 61 config->Write( wxT("x"), rect.x ); |
| 59 config->Write( wxT("y"), rect.y ); | 62 config->Write( wxT("y"), rect.y ); |
| 60 config->Write( wxT("w"), rect.width ); | 63 config->Write( wxT("w"), rect.width ); |
| 61 config->Write( wxT("h"), rect.height ); | 64 config->Write( wxT("h"), rect.height ); |
