diff src/main.cpp @ 1:7b6dab24f4b8

Gui parts complete.
author pyon@macmini
date Sun, 04 Aug 2013 21:42:49 +0900
parents 0c0701a935f8
children c066fde99517
line wrap: on
line diff
--- a/src/main.cpp	Sun Jul 21 16:07:19 2013 +0900
+++ b/src/main.cpp	Sun Aug 04 21:42:49 2013 +0900
@@ -1,5 +1,5 @@
 // Filename   : main.cpp
-// Last Change: 20-Jul-2013.
+// Last Change: 23-Jul-2013.
 //
 #include "main.h"
 #include "myframe.h"
@@ -48,12 +48,15 @@
     config->Read( wxT("y"), &rect.y );
     config->Read( wxT("w"), &rect.width );
     config->Read( wxT("h"), &rect.height );
+    delete config;
 
     WriteLog( wxT("Setting Parameters read.") );
 }
 
 void MyApp::SaveSetting()
 {
+    config = new wxFileConfig( wxT("MyApp"), wxT("T.Mutoh"), conf_file, wxEmptyString, wxCONFIG_USE_LOCAL_FILE );
+
     config->SetPath( wxT("/Geometry") );
     config->Write( wxT("x"), rect.x );
     config->Write( wxT("y"), rect.y );