Mercurial > mercurial > hgweb_mover2.cgi
diff src/param.cpp @ 0:7bf900d47e9e
start mover2
author | pyon@macmini |
---|---|
date | Sat, 15 Oct 2011 13:24:27 +0900 |
parents | |
children | 52697c869ce8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/param.cpp Sat Oct 15 13:24:27 2011 +0900 @@ -0,0 +1,72 @@ +// Filename : param.cpp +// Last Change: 15-Oct-2011. +// + +#include "main.h" +#include "param.h" + +/////////////////////////////////////////////////////////////////////////// +ParamDialog::ParamDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) +{ + this->SetBackgroundColour( wxColour(wxT("WHEAT")) ); + + wxBoxSizer* bSizer = new wxBoxSizer( wxVERTICAL ); + + wxGridSizer* gSizer = new wxGridSizer( 2, 3, 0, 0 ); + + m_textCtrlLenMIn = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_textCtrlLenMIn, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALIGN_RIGHT|wxALIGN_TOP, 20 ); + + m_staticTextLen = new wxStaticText( this, wxID_ANY, wxT("< レングス <"), wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_staticTextLen, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 ); + + m_textCtrlLenMax = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_textCtrlLenMax, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); + + m_textCtrlBMin = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_textCtrlBMin, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5 ); + + m_staticTextBlack = new wxStaticText( this, wxID_ANY, wxT("< 黒色比率 <"), wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_staticTextBlack, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 ); + + m_textCtrlBmax = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_textCtrlBmax, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); + + m_staticTextlDummy = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_staticTextlDummy, 0, wxALL, 5 ); + + m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("キャンセル"), wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_buttonCancel, 0, wxALL, 5 ); + + m_buttonSave = new wxButton( this, ID_BUTTONSAVE, wxT("設定保存"), wxDefaultPosition, wxDefaultSize, 0 ); + gSizer->Add( m_buttonSave, 0, wxALIGN_BOTTOM|wxALIGN_TOP, 10 ); + + bSizer->Add( gSizer, 0, 0, 20 ); + + this->SetSizer( bSizer ); + this->Layout(); + bSizer->Fit( this ); + + this->Centre( wxBOTH ); + + GetParam(); +} + +// destructor +ParamDialog::~ParamDialog() +{ +} +// Event Table +BEGIN_EVENT_TABLE( ParamDialog, wxDialog ) + EVT_BUTTON( ID_BUTTONSAVE, ParamDialog::SaveParam ) +END_EVENT_TABLE() + +/* 現在の設定を読込み */ +void ParamDialog::GetParam(void) +{ +} +/* 設定を保存 */ +void ParamDialog::SaveParam(wxCommandEvent& WXUNUSED(event)) +{ +} +