Mercurial > mercurial > hgweb_mover2.cgi
comparison src/main.cpp @ 5:52697c869ce8
delete move&detect button.
| author | pyon@macmini |
|---|---|
| date | Tue, 18 Oct 2011 07:53:48 +0900 |
| parents | 964129946db6 |
| children | 9b0840b0be7e |
comparison
equal
deleted
inserted
replaced
| 4:964129946db6 | 5:52697c869ce8 |
|---|---|
| 1 // Filename : main.cpp | 1 // Filename : main.cpp |
| 2 // Last Change: 16-Oct-2011. | 2 // Last Change: 18-Oct-2011. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #include "common.h" | 5 #include "common.h" |
| 6 #include "main.h" | 6 #include "main.h" |
| 7 #include "myframe.h" | 7 #include "myframe.h" |
| 31 wxString verstr = wxString::Format( wxT(" - v%d.%d ( build %d )"), VER, REV, BLD ); | 31 wxString verstr = wxString::Format( wxT(" - v%d.%d ( build %d )"), VER, REV, BLD ); |
| 32 wxString title = progname + verstr; | 32 wxString title = progname + verstr; |
| 33 | 33 |
| 34 MyFrame *mainframe = new MyFrame( NULL, ID_MAIN, title ); | 34 MyFrame *mainframe = new MyFrame( NULL, ID_MAIN, title ); |
| 35 mainframe->SetSize( rect ); | 35 mainframe->SetSize( rect ); |
| 36 mainframe->SetMinSize( wxSize( 1200, 500 ) ); | 36 mainframe->SetMinSize( wxSize( 1200, 400 ) ); |
| 37 mainframe->Show(true); | 37 mainframe->Show(true); |
| 38 /* | 38 /* |
| 39 TestFrame *tf = new TestFrame( NULL, ID_TEST, wxT("A Test") ); | 39 TestFrame *tf = new TestFrame( NULL, ID_TEST, wxT("A Test") ); |
| 40 tf->Show(true); | 40 tf->Show(true); |
| 41 */ | 41 */ |
| 55 config->Write( wxT("workdir"), workdir ); | 55 config->Write( wxT("workdir"), workdir ); |
| 56 | 56 |
| 57 config->SetPath( wxT("/Param") ); | 57 config->SetPath( wxT("/Param") ); |
| 58 config->Write( wxT("lmin"), lmin ); | 58 config->Write( wxT("lmin"), lmin ); |
| 59 config->Write( wxT("lmax"), lmax ); | 59 config->Write( wxT("lmax"), lmax ); |
| 60 config->Write( wxT("bmin"), bmin ); | 60 config->Write( wxT("zmin"), zmin ); |
| 61 config->Write( wxT("bmax"), bmax ); | 61 config->Write( wxT("zmax"), zmax ); |
| 62 | 62 |
| 63 delete config; | 63 delete config; |
| 64 | 64 |
| 65 return 0; | 65 return 0; |
| 66 } | 66 } |
| 78 | 78 |
| 79 config->SetPath( wxT("/WorkDir") ); | 79 config->SetPath( wxT("/WorkDir") ); |
| 80 config->Read( wxT("workdir"), &workdir ); | 80 config->Read( wxT("workdir"), &workdir ); |
| 81 | 81 |
| 82 config->SetPath( wxT("/Param") ); | 82 config->SetPath( wxT("/Param") ); |
| 83 config->Read( wxT("lmin"), lmin ); | 83 config->Read( wxT("lmin"), &lmin ); |
| 84 config->Read( wxT("lmax"), lmax ); | 84 config->Read( wxT("lmax"), &lmax ); |
| 85 config->Read( wxT("bmin"), bmin ); | 85 config->Read( wxT("zmin"), &zmin ); |
| 86 config->Read( wxT("bmax"), bmax ); | 86 config->Read( wxT("zmax"), &zmax ); |
| 87 } | 87 } |
| 88 | 88 |
