Mercurial > mercurial > hgweb_searcher03.cgi
view src/index.cpp @ 0:0c0701a935f8
Start Development.
author | pyon@macmini |
---|---|
date | Sun, 21 Jul 2013 16:07:19 +0900 |
parents | |
children | c066fde99517 |
line wrap: on
line source
// Filename : index.cpp // Last Change: 21-Jul-2013. // #include "index.h" IndexDialog::IndexDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxBoxSizer* bSizerTop = new wxBoxSizer( wxHORIZONTAL ); m_listCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT ); wxListItem itemCol; itemCol.SetText( wxT("歴番") ); m_listCtrl->InsertColumn( 0, itemCol ); m_listCtrl->SetColumnWidth( 0, 50 ); itemCol.SetText( wxT("年月日") ); m_listCtrl->InsertColumn( 1, itemCol ); m_listCtrl->SetColumnWidth( 1, 80 ); 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, 100 ); itemCol.SetText( wxT("氏名") ); m_listCtrl->InsertColumn( 4, itemCol ); m_listCtrl->SetColumnWidth( 4, 100 ); bSizerTop->Add( m_listCtrl, 1, wxALL|wxEXPAND, 5 ); wxBoxSizer* bSizerR = new wxBoxSizer( wxVERTICAL ); m_calendar = new wxCalendarCtrl( this, ID_CALNENDER, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxCAL_SHOW_HOLIDAYS ); bSizerR->Add( m_calendar, 0, wxALL, 5 ); wxBoxSizer* bSizerBtn = new wxBoxSizer( wxHORIZONTAL ); m_buttonMake = new wxButton( this, ID_MKINDEX, wxT("作成"), wxDefaultPosition, wxDefaultSize, 0 ); bSizerBtn->Add( m_buttonMake, 0, wxALL, 5 ); m_buttonClose = new wxButton( this, wxID_CANCEL, wxT("閉じる"), wxDefaultPosition, wxDefaultSize, 0 ); bSizerBtn->Add( m_buttonClose, 0, wxALL, 5 ); bSizerR->Add( bSizerBtn, 1, wxALIGN_RIGHT, 5 ); bSizerTop->Add( bSizerR, 0, wxALIGN_RIGHT, 5 ); this->SetSizer( bSizerTop ); this->Layout(); this->Centre( wxBOTH ); } IndexDialog::~IndexDialog() { } // Event Table BEGIN_EVENT_TABLE( IndexDialog, wxDialog ) //EVT_LIST_ITEM_ACTIVATED( ID_LIST, MyFrame::OnOpenHhsDir ) //EVT_BUTTON( ID_HIST, MyFrame::OnHistory ) END_EVENT_TABLE()