Mercurial > mercurial > hgweb_searcher03.cgi
diff src/hist.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/hist.cpp Sun Jul 21 16:07:19 2013 +0900 +++ b/src/hist.cpp Sun Aug 04 21:42:49 2013 +0900 @@ -1,5 +1,5 @@ // Filename : hist.cpp -// Last Change: 21-Jul-2013. +// Last Change: 02-Aug-2013. // #include "hist.h" @@ -15,19 +15,19 @@ wxListItem itemCol; itemCol.SetText( wxT("歴番") ); m_listCtrl->InsertColumn( 0, itemCol ); - m_listCtrl->SetColumnWidth( 0, 50 ); + m_listCtrl->SetColumnWidth( 0, 40 ); itemCol.SetText( wxT("被保険者番号") ); m_listCtrl->InsertColumn( 1, itemCol ); - m_listCtrl->SetColumnWidth( 1, 80 ); + m_listCtrl->SetColumnWidth( 1, 90 ); itemCol.SetText( wxT("氏名") ); m_listCtrl->InsertColumn( 2, itemCol ); m_listCtrl->SetColumnWidth( 2, 80 ); itemCol.SetText( wxT("住所") ); m_listCtrl->InsertColumn( 3, itemCol ); - m_listCtrl->SetColumnWidth( 3, 300 ); - itemCol.SetText( wxT("検索時刻") ); + m_listCtrl->SetColumnWidth( 3, 240 ); + itemCol.SetText( wxT("検索日時") ); m_listCtrl->InsertColumn( 4, itemCol ); - m_listCtrl->SetColumnWidth( 4, 100 ); + m_listCtrl->SetColumnWidth( 4, 80 ); bSizerTop->Add( m_listCtrl, 1, wxALL|wxEXPAND, 5 ); @@ -36,7 +36,7 @@ m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("キャンセル"), wxDefaultPosition, wxDefaultSize, 0 ); bSizerBtn->Add( m_buttonCancel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); - m_buttonSet = new wxButton( this, wxID_OK, wxT("セット"), wxDefaultPosition, wxDefaultSize, 0 ); + m_buttonSet = new wxButton( this, ID_SETHIST, wxT("セット"), wxDefaultPosition, wxDefaultSize, 0 ); bSizerBtn->Add( m_buttonSet, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); bSizerTop->Add( bSizerBtn, 0, wxALIGN_RIGHT|wxALL, 5 ); @@ -46,7 +46,7 @@ this->Centre( wxBOTH ); - SetupHistoryList(); + ReadHistoryList(); } HistDialog::~HistDialog() @@ -55,13 +55,22 @@ // Event Table BEGIN_EVENT_TABLE( HistDialog, wxDialog ) - //EVT_LIST_ITEM_ACTIVATED( ID_LIST, MyFrame::OnOpenHhsDir ) - //EVT_BUTTON( ID_HIST, MyFrame::OnHistory ) + EVT_LIST_ITEM_ACTIVATED( ID_LISTHIST, HistDialog::OnSelectItem ) + EVT_BUTTON( ID_SETHIST, HistDialog::OnSet ) END_EVENT_TABLE() -void HistDialog::SetupHistoryList( void ) { +void HistDialog::OnSelectItem( wxListEvent& WXUNUSED(event) ) +{ +} +void HistDialog::OnSet( wxCommandEvent& WXUNUSED(event) ) +{ + +} + +void HistDialog::ReadHistoryList( void ) +{ wxTextFile file; wxString filename = wxGetCwd() + wxFILE_SEP_PATH + wxT("tmp") + wxFILE_SEP_PATH + wxT("history"); wxString buf;