Mercurial > mercurial > hgweb_searcher2.cgi
comparison src/ccnframe.cpp @ 19:710be7b6a873
arranged FrameCnn's controls.
author | pyon@macmini |
---|---|
date | Mon, 18 Jul 2011 22:08:04 +0900 |
parents | 17e78fc76e1f |
children | eb3f5c7c990f |
comparison
equal
deleted
inserted
replaced
18:2221c7aa5958 | 19:710be7b6a873 |
---|---|
1 /////////////////////////////////////////////////////////////////////////// | 1 // Filename : ccnframe.cpp |
2 // C++ code generated with wxFormBuilder (version Sep 12 2010) | 2 // Last Change: 18-Jul-2011. |
3 // http://www.wxformbuilder.org/ | |
4 // | 3 // |
5 // PLEASE DO "NOT" EDIT THIS FILE! | |
6 /////////////////////////////////////////////////////////////////////////// | |
7 | 4 |
8 #include "noname.h" | 5 #include "common.h" |
6 #include "ccnframe.h" | |
9 | 7 |
10 /////////////////////////////////////////////////////////////////////////// | 8 FrameCcn::FrameCcn( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) |
11 | 9 : wxFrame( parent, id, title, pos, size, style ) |
12 FrameCcn::FrameCcn( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style ) | |
13 { | 10 { |
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize ); | 11 this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
12 m_Panel = new wxPanel( this ); | |
15 | 13 |
16 wxBoxSizer* bSizer; | 14 wxBoxSizer* bSizer; |
17 bSizer = new wxBoxSizer( wxHORIZONTAL ); | 15 bSizer = new wxBoxSizer( wxHORIZONTAL ); |
18 | 16 |
19 wxGridSizer* gSizer; | 17 // DB表示 |
20 gSizer = new wxGridSizer( 2, 5, 0, 0 ); | 18 wxFlexGridSizer* fgSizer = new wxFlexGridSizer( 2, 5, 0, 0 ); |
19 fgSizer->AddGrowableRow(1); | |
21 | 20 |
22 m_staticText1 = new wxStaticText( this, ID_M_STATICTEXT1, wxT("開催年月日"), wxDefaultPosition, wxDefaultSize, 0 ); | 21 m_staticText1 = new wxStaticText( m_Panel, wxID_ANY, wxT("開催年月日"), wxDefaultPosition, wxDefaultSize, 0 ); |
23 m_staticText1->Wrap( -1 ); | 22 fgSizer->Add( m_staticText1, 0, wxALL, 5 ); |
24 gSizer->Add( m_staticText1, 0, wxALL, 5 ); | |
25 | 23 |
24 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 ); | |
26 | 25 |
27 gSizer->Add( 0, 0, 1, wxEXPAND, 5 ); | 26 m_staticText2 = new wxStaticText( m_Panel, wxID_ANY, wxT("合議体"), wxDefaultPosition, wxDefaultSize, 0 ); |
27 fgSizer->Add( m_staticText2, 0, wxALL, 5 ); | |
28 | 28 |
29 m_staticText2 = new wxStaticText( this, ID_M_STATICTEXT2, wxT("合議体"), wxDefaultPosition, wxDefaultSize, 0 ); | 29 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 ); |
30 m_staticText2->Wrap( -1 ); | |
31 gSizer->Add( m_staticText2, 0, wxALL, 5 ); | |
32 | 30 |
31 m_staticText3 = new wxStaticText( m_Panel, wxID_ANY, wxT("被保険者"), wxDefaultPosition, wxDefaultSize, 0 ); | |
32 fgSizer->Add( m_staticText3, 0, wxALL, 5 ); | |
33 | 33 |
34 gSizer->Add( 0, 0, 1, wxEXPAND, 5 ); | 34 m_listCtrlYmd = new wxListCtrl( m_Panel, ID_YMD, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL ); |
35 fgSizer->Add( m_listCtrlYmd, 1, wxALL|wxEXPAND, 5 ); | |
35 | 36 |
36 m_staticText3 = new wxStaticText( this, ID_M_STATICTEXT3, wxT("被保険者"), wxDefaultPosition, wxDefaultSize, 0 ); | 37 m_staticText4 = new wxStaticText( m_Panel, wxID_ANY, wxT("→"), wxDefaultPosition, wxDefaultSize, 0 ); |
37 m_staticText3->Wrap( -1 ); | 38 fgSizer->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); |
38 gSizer->Add( m_staticText3, 0, wxALL, 5 ); | |
39 | 39 |
40 m_listCtrlYmd = new wxListCtrl( this, ID_YMD, wxDefaultPosition, wxDefaultSize, wxLC_LIST ); | 40 m_listCtrlCcn = new wxListCtrl( m_Panel, ID_CCN, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL ); |
41 gSizer->Add( m_listCtrlYmd, 0, wxALL|wxEXPAND, 5 ); | 41 fgSizer->Add( m_listCtrlCcn, 1, wxALL|wxEXPAND, 5 ); |
42 | 42 |
43 m_staticText4 = new wxStaticText( this, wxID_ANY, wxT("→"), wxDefaultPosition, wxDefaultSize, 0 ); | 43 m_staticText5 = new wxStaticText( m_Panel, wxID_ANY, wxT("→"), wxDefaultPosition, wxDefaultSize, 0 ); |
44 m_staticText4->Wrap( -1 ); | 44 fgSizer->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); |
45 gSizer->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); | |
46 | 45 |
47 m_listCtrlCcn = new wxListCtrl( this, ID_CCN, wxDefaultPosition, wxDefaultSize, wxLC_LIST ); | 46 m_listCtrlHhs = new wxListCtrl( m_Panel, ID_HHS, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL ); |
48 gSizer->Add( m_listCtrlCcn, 0, wxALL|wxEXPAND, 5 ); | 47 fgSizer->Add( m_listCtrlHhs, 1, wxALL|wxEXPAND, 5 ); |
49 | 48 |
50 m_staticText5 = new wxStaticText( this, ID_M_STATICTEXT5, wxT("→"), wxDefaultPosition, wxDefaultSize, 0 ); | 49 bSizer->Add( fgSizer, 1, wxEXPAND, 5 ); |
51 m_staticText5->Wrap( -1 ); | |
52 gSizer->Add( m_staticText5, 0, wxALL, 5 ); | |
53 | 50 |
54 m_listCtrlHhs = new wxListCtrl( this, ID_HHS, wxDefaultPosition, wxDefaultSize, wxLC_LIST ); | 51 // Index作成 |
55 gSizer->Add( m_listCtrlHhs, 0, wxALL|wxEXPAND, 5 ); | 52 wxGridBagSizer* gbSizer = new wxGridBagSizer( 0, 0 ); |
53 gbSizer->SetFlexibleDirection( wxVERTICAL ); | |
54 gbSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); | |
55 gbSizer->AddGrowableRow(3); | |
56 | 56 |
57 bSizer->Add( gSizer, 1, wxEXPAND, 5 ); | 57 m_btnPrevThu = new wxButton( m_Panel, ID_PRVTHU, wxT("<< 前木"), wxDefaultPosition, wxDefaultSize, 0 ); |
58 | |
59 wxGridBagSizer* gbSizer; | |
60 gbSizer = new wxGridBagSizer( 0, 0 ); | |
61 gbSizer->SetFlexibleDirection( wxBOTH ); | |
62 gbSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); | |
63 | |
64 m_btnPrevThu = new wxButton( this, ID_PRVTHU, wxT("前木"), wxDefaultPosition, wxDefaultSize, 0 ); | |
65 gbSizer->Add( m_btnPrevThu, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 ); | 58 gbSizer->Add( m_btnPrevThu, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 ); |
66 | 59 |
67 m_btnNextThu = new wxButton( this, ID_NXTTHU, wxT("次木"), wxDefaultPosition, wxDefaultSize, 0 ); | 60 m_btnNextThu = new wxButton( m_Panel, ID_NXTTHU, wxT("次木 >>"), wxDefaultPosition, wxDefaultSize, 0 ); |
68 gbSizer->Add( m_btnNextThu, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL, 5 ); | 61 gbSizer->Add( m_btnNextThu, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL, 5 ); |
69 | 62 |
70 m_datePicker = new wxDatePickerCtrl( this, ID_DTPICKER, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT|wxDP_SHOWCENTURY ); | 63 m_datePicker = new wxDatePickerCtrl( m_Panel, ID_DTPICKER, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT|wxDP_SHOWCENTURY ); |
71 gbSizer->Add( m_datePicker, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALL, 5 ); | 64 gbSizer->Add( m_datePicker, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER|wxALL, 5 ); |
72 | 65 |
73 m_btnMkIdX = new wxButton( this, ID_MKIDX, wxT("作成"), wxDefaultPosition, wxDefaultSize, 0 ); | 66 m_btnMkIdX = new wxButton( m_Panel, ID_MKIDX, wxT("作成"), wxDefaultPosition, wxDefaultSize, 0 ); |
74 gbSizer->Add( m_btnMkIdX, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALL, 5 ); | 67 gbSizer->Add( m_btnMkIdX, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALL, 5 ); |
75 | 68 |
76 m_btnClose = new wxButton( this, ID_CLOSE, wxT("閉じる"), wxDefaultPosition, wxDefaultSize, 0 ); | 69 m_btnClose = new wxButton( m_Panel, ID_CLOSE, wxT("閉じる"), wxDefaultPosition, wxDefaultSize, 0 ); |
77 gbSizer->Add( m_btnClose, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALL, 5 ); | 70 gbSizer->Add( m_btnClose, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_BOTTOM|wxALL, 5 ); |
78 | 71 |
79 bSizer->Add( gbSizer, 1, wxEXPAND, 5 ); | 72 bSizer->Add( gbSizer, 0, wxEXPAND, 5 ); |
80 | 73 |
81 this->SetSizer( bSizer ); | 74 m_Panel->SetSizer( bSizer ); |
82 this->Layout(); | 75 m_Panel->Layout(); |
83 | 76 |
84 this->Centre( wxBOTH ); | 77 this->Centre( wxBOTH ); |
78 InitListCtrl(); | |
85 } | 79 } |
86 | 80 |
81 // Destructor | |
87 FrameCcn::~FrameCcn() | 82 FrameCcn::~FrameCcn() |
88 { | 83 { |
89 } | 84 } |
85 | |
86 // Event Table | |
87 BEGIN_EVENT_TABLE( FrameCcn, wxFrame ) | |
88 //EVT_TEXT_ENTER( ID_CMD, MyCmdBox::OnCmd ) | |
89 END_EVENT_TABLE() | |
90 | |
91 // Event Handlers | |
92 | |
93 // Functions | |
94 void FrameCcn::InitListCtrl() | |
95 { | |
96 wxListItem itemCol; | |
97 itemCol.SetText( wxT("年-月-日") ); | |
98 m_listCtrlYmd->InsertColumn( 0, itemCol ); | |
99 m_listCtrlYmd->SetColumnWidth( 0, 100 ); | |
100 | |
101 itemCol.SetText( wxT("合議体名") ); | |
102 m_listCtrlCcn->InsertColumn( 0, itemCol ); | |
103 m_listCtrlCcn->SetColumnWidth( 0, 100 ); | |
104 itemCol.SetText( wxT("件数") ); | |
105 m_listCtrlCcn->InsertColumn( 1, itemCol ); | |
106 m_listCtrlCcn->SetColumnWidth( 1, 100 ); | |
107 itemCol.SetText( wxT("更新時刻") ); | |
108 m_listCtrlCcn->InsertColumn( 2, itemCol ); | |
109 m_listCtrlCcn->SetColumnWidth( 2, 100 ); | |
110 | |
111 itemCol.SetText( wxT("被保険者番号") ); | |
112 m_listCtrlHhs->InsertColumn( 0, itemCol ); | |
113 m_listCtrlHhs->SetColumnWidth( 0, 100 ); | |
114 itemCol.SetText( wxT("氏名") ); | |
115 m_listCtrlHhs->InsertColumn( 1, itemCol ); | |
116 m_listCtrlHhs->SetColumnWidth( 1, 100 ); | |
117 | |
118 m_listCtrlYmd->InsertItem( 0, wxT("aaa") ); | |
119 } | |
120 |