0
|
1 // Filename : index.cpp
|
|
2 // Last Change: 21-Jul-2013.
|
|
3 //
|
|
4
|
|
5 #include "index.h"
|
|
6
|
|
7 IndexDialog::IndexDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style )
|
|
8 : wxDialog( parent, id, title, pos, size, style )
|
|
9 {
|
|
10 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
11
|
|
12 wxBoxSizer* bSizerTop = new wxBoxSizer( wxHORIZONTAL );
|
|
13
|
|
14 m_listCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
|
|
15
|
|
16 wxListItem itemCol;
|
|
17 itemCol.SetText( wxT("歴番") );
|
|
18 m_listCtrl->InsertColumn( 0, itemCol );
|
|
19 m_listCtrl->SetColumnWidth( 0, 50 );
|
|
20 itemCol.SetText( wxT("年月日") );
|
|
21 m_listCtrl->InsertColumn( 1, itemCol );
|
|
22 m_listCtrl->SetColumnWidth( 1, 80 );
|
|
23 itemCol.SetText( wxT("合議体") );
|
|
24 m_listCtrl->InsertColumn( 2, itemCol );
|
|
25 m_listCtrl->SetColumnWidth( 2, 80 );
|
|
26 itemCol.SetText( wxT("被保険者番号") );
|
|
27 m_listCtrl->InsertColumn( 3, itemCol );
|
|
28 m_listCtrl->SetColumnWidth( 3, 100 );
|
|
29 itemCol.SetText( wxT("氏名") );
|
|
30 m_listCtrl->InsertColumn( 4, itemCol );
|
|
31 m_listCtrl->SetColumnWidth( 4, 100 );
|
|
32
|
|
33 bSizerTop->Add( m_listCtrl, 1, wxALL|wxEXPAND, 5 );
|
|
34
|
|
35 wxBoxSizer* bSizerR = new wxBoxSizer( wxVERTICAL );
|
|
36
|
|
37 m_calendar = new wxCalendarCtrl( this, ID_CALNENDER, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxCAL_SHOW_HOLIDAYS );
|
|
38 bSizerR->Add( m_calendar, 0, wxALL, 5 );
|
|
39
|
|
40 wxBoxSizer* bSizerBtn = new wxBoxSizer( wxHORIZONTAL );
|
|
41
|
|
42 m_buttonMake = new wxButton( this, ID_MKINDEX, wxT("作成"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
43 bSizerBtn->Add( m_buttonMake, 0, wxALL, 5 );
|
|
44
|
|
45 m_buttonClose = new wxButton( this, wxID_CANCEL, wxT("閉じる"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
46 bSizerBtn->Add( m_buttonClose, 0, wxALL, 5 );
|
|
47
|
|
48 bSizerR->Add( bSizerBtn, 1, wxALIGN_RIGHT, 5 );
|
|
49
|
|
50 bSizerTop->Add( bSizerR, 0, wxALIGN_RIGHT, 5 );
|
|
51
|
|
52 this->SetSizer( bSizerTop );
|
|
53 this->Layout();
|
|
54
|
|
55 this->Centre( wxBOTH );
|
|
56 }
|
|
57
|
|
58 IndexDialog::~IndexDialog()
|
|
59 {
|
|
60 }
|
|
61
|
|
62 // Event Table
|
|
63 BEGIN_EVENT_TABLE( IndexDialog, wxDialog )
|
|
64 //EVT_LIST_ITEM_ACTIVATED( ID_LIST, MyFrame::OnOpenHhsDir )
|
|
65 //EVT_BUTTON( ID_HIST, MyFrame::OnHistory )
|
|
66 END_EVENT_TABLE()
|
|
67
|