comparison src/param.cpp @ 0:7bf900d47e9e

start mover2
author pyon@macmini
date Sat, 15 Oct 2011 13:24:27 +0900
parents
children 52697c869ce8
comparison
equal deleted inserted replaced
-1:000000000000 0:7bf900d47e9e
1 // Filename : param.cpp
2 // Last Change: 15-Oct-2011.
3 //
4
5 #include "main.h"
6 #include "param.h"
7
8 ///////////////////////////////////////////////////////////////////////////
9 ParamDialog::ParamDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
10 {
11 this->SetBackgroundColour( wxColour(wxT("WHEAT")) );
12
13 wxBoxSizer* bSizer = new wxBoxSizer( wxVERTICAL );
14
15 wxGridSizer* gSizer = new wxGridSizer( 2, 3, 0, 0 );
16
17 m_textCtrlLenMIn = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
18 gSizer->Add( m_textCtrlLenMIn, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALIGN_RIGHT|wxALIGN_TOP, 20 );
19
20 m_staticTextLen = new wxStaticText( this, wxID_ANY, wxT("< レングス <"), wxDefaultPosition, wxDefaultSize, 0 );
21 gSizer->Add( m_staticTextLen, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
22
23 m_textCtrlLenMax = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
24 gSizer->Add( m_textCtrlLenMax, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
25
26 m_textCtrlBMin = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
27 gSizer->Add( m_textCtrlBMin, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5 );
28
29 m_staticTextBlack = new wxStaticText( this, wxID_ANY, wxT("< 黒色比率 <"), wxDefaultPosition, wxDefaultSize, 0 );
30 gSizer->Add( m_staticTextBlack, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
31
32 m_textCtrlBmax = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33 gSizer->Add( m_textCtrlBmax, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
34
35 m_staticTextlDummy = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
36 gSizer->Add( m_staticTextlDummy, 0, wxALL, 5 );
37
38 m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("キャンセル"), wxDefaultPosition, wxDefaultSize, 0 );
39 gSizer->Add( m_buttonCancel, 0, wxALL, 5 );
40
41 m_buttonSave = new wxButton( this, ID_BUTTONSAVE, wxT("設定保存"), wxDefaultPosition, wxDefaultSize, 0 );
42 gSizer->Add( m_buttonSave, 0, wxALIGN_BOTTOM|wxALIGN_TOP, 10 );
43
44 bSizer->Add( gSizer, 0, 0, 20 );
45
46 this->SetSizer( bSizer );
47 this->Layout();
48 bSizer->Fit( this );
49
50 this->Centre( wxBOTH );
51
52 GetParam();
53 }
54
55 // destructor
56 ParamDialog::~ParamDialog()
57 {
58 }
59 // Event Table
60 BEGIN_EVENT_TABLE( ParamDialog, wxDialog )
61 EVT_BUTTON( ID_BUTTONSAVE, ParamDialog::SaveParam )
62 END_EVENT_TABLE()
63
64 /* 現在の設定を読込み */
65 void ParamDialog::GetParam(void)
66 {
67 }
68 /* 設定を保存 */
69 void ParamDialog::SaveParam(wxCommandEvent& WXUNUSED(event))
70 {
71 }
72