Mercurial > mercurial > hgweb_searcher03.cgi
comparison src/myframe.cpp @ 16:1ba97995f642
Get/Put DB files to shared-directory.
author | pyon@macmini |
---|---|
date | Thu, 19 Jun 2014 18:46:11 +0900 |
parents | de222bc84e48 |
children | acb59fbbe5ee |
comparison
equal
deleted
inserted
replaced
15:de222bc84e48 | 16:1ba97995f642 |
---|---|
1 // Filename : myframe.cpp | 1 // Filename : myframe.cpp |
2 // Last Change: 05-Jun-2014. | 2 // Last Change: 19-Jun-2014. |
3 // | 3 // |
4 #include "main.h" | 4 #include "main.h" |
5 #include "db.h" | 5 #include "db.h" |
6 #include "about.h" | 6 #include "about.h" |
7 #include "kana.h" | 7 #include "kana.h" |
12 #include "cache.h" | 12 #include "cache.h" |
13 #include "param.h" | 13 #include "param.h" |
14 #include "marksheet.h" | 14 #include "marksheet.h" |
15 #include "myframe.h" | 15 #include "myframe.h" |
16 #include "bprint.h" | 16 #include "bprint.h" |
17 | 17 #include "update.h" |
18 #define DEBUG 1 | |
19 | 18 |
20 /////////////////////////////////////////////////////////////// | 19 /////////////////////////////////////////////////////////////// |
21 // カスタム検索ボックス | 20 // カスタム検索ボックス |
22 MySearchBox::MySearchBox( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style ) | 21 MySearchBox::MySearchBox( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style ) |
23 : wxSearchCtrl( parent, id, value, pos, size, style ) | 22 : wxSearchCtrl( parent, id, value, pos, size, style ) |
351 this->SetStatusBar( m_statusBar ); | 350 this->SetStatusBar( m_statusBar ); |
352 SetStatusText( wxT("被保番を入力してスタート!") ); | 351 SetStatusText( wxT("被保番を入力してスタート!") ); |
353 | 352 |
354 this->Centre( wxBOTH ); | 353 this->Centre( wxBOTH ); |
355 LoadParam(); | 354 LoadParam(); |
355 CheckNewFiles( m_shared ); | |
356 } | 356 } |
357 | 357 |
358 MyFrame::~MyFrame() | 358 MyFrame::~MyFrame() |
359 { | 359 { |
360 } | 360 } |
431 conf_file = wxGetCwd() + wxFILE_SEP_PATH + wxT("app.conf"); | 431 conf_file = wxGetCwd() + wxFILE_SEP_PATH + wxT("app.conf"); |
432 config = new wxFileConfig( wxT("MyApp"), wxT("T.Mutoh"), conf_file, wxEmptyString, wxCONFIG_USE_LOCAL_FILE ); | 432 config = new wxFileConfig( wxT("MyApp"), wxT("T.Mutoh"), conf_file, wxEmptyString, wxCONFIG_USE_LOCAL_FILE ); |
433 | 433 |
434 int x, y, w, h; | 434 int x, y, w, h; |
435 | 435 |
436 // Shaerd | |
437 config->SetPath( wxT("/Index") ); | |
438 config->Read( wxT("shared"), &m_shared ); | |
439 | |
440 // Mask | |
436 config->SetPath( wxT("/Mask") ); | 441 config->SetPath( wxT("/Mask") ); |
437 | 442 |
438 config->Read( wxT("x1"), &x ); | 443 config->Read( wxT("x1"), &x ); |
439 config->Read( wxT("y1"), &y ); | 444 config->Read( wxT("y1"), &y ); |
440 config->Read( wxT("w1"), &w ); | 445 config->Read( wxT("w1"), &w ); |
475 config->Read( wxT("w3o"), &w ); | 480 config->Read( wxT("w3o"), &w ); |
476 config->Read( wxT("h3o"), &h ); | 481 config->Read( wxT("h3o"), &h ); |
477 m_mask3old.SetPosition( wxPoint( x, y ) ); | 482 m_mask3old.SetPosition( wxPoint( x, y ) ); |
478 m_mask3old.SetSize( wxSize( w, h ) ); | 483 m_mask3old.SetSize( wxSize( w, h ) ); |
479 | 484 |
480 // | 485 // Marksheet |
481 config->SetPath( wxT("/Marksheet") ); | 486 config->SetPath( wxT("/Marksheet") ); |
482 | 487 |
483 config->Read( wxT("lmin"), &lmin ); | 488 config->Read( wxT("lmin"), &lmin ); |
484 config->Read( wxT("lmax"), &lmax ); | 489 config->Read( wxT("lmax"), &lmax ); |
485 config->Read( wxT("zmin"), &zmin ); | 490 config->Read( wxT("zmin"), &zmin ); |