12DIALOG_IMAGE_PROPERTIES_BASE::DIALOG_IMAGE_PROPERTIES_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* m_GeneralBoxSizer;
17 m_GeneralBoxSizer =
new wxBoxSizer( wxVERTICAL );
19 m_Notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
21 wxBoxSizer* bSizerProperties;
22 bSizerProperties =
new wxBoxSizer( wxVERTICAL );
24 wxStaticBoxSizer* sbSizerProperties;
25 sbSizerProperties =
new wxStaticBoxSizer(
new wxStaticBox(
m_PanelGeneral, wxID_ANY,
_(
"Position") ), wxVERTICAL );
27 wxFlexGridSizer* fgSizerPos;
28 fgSizerPos =
new wxFlexGridSizer( 2, 3, 1, 0 );
29 fgSizerPos->AddGrowableCol( 1 );
30 fgSizerPos->AddGrowableRow( 0 );
31 fgSizerPos->SetFlexibleDirection( wxBOTH );
32 fgSizerPos->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
34 m_XPosLabel =
new wxStaticText( sbSizerProperties->GetStaticBox(), wxID_ANY,
_(
"X:"), wxDefaultPosition, wxDefaultSize, 0 );
36 fgSizerPos->Add(
m_XPosLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
38 m_ModPositionX =
new wxTextCtrl( sbSizerProperties->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
39 fgSizerPos->Add(
m_ModPositionX, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
41 m_XPosUnit =
new wxStaticText( sbSizerProperties->GetStaticBox(), wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
43 fgSizerPos->Add(
m_XPosUnit, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
45 m_YPosLabel =
new wxStaticText( sbSizerProperties->GetStaticBox(), wxID_ANY,
_(
"Y:"), wxDefaultPosition, wxDefaultSize, 0 );
47 fgSizerPos->Add(
m_YPosLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
49 m_ModPositionY =
new wxTextCtrl( sbSizerProperties->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50 fgSizerPos->Add(
m_ModPositionY, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP, 1 );
52 m_YPosUnit =
new wxStaticText( sbSizerProperties->GetStaticBox(), wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
54 fgSizerPos->Add(
m_YPosUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
57 sbSizerProperties->Add( fgSizerPos, 0, wxBOTTOM|wxEXPAND, 3 );
60 bSizerProperties->Add( sbSizerProperties, 1, wxALL|wxEXPAND, 5 );
68 m_GeneralBoxSizer->Add(
m_Notebook, 1, wxEXPAND | wxALL, 5 );
80 this->SetSizer( m_GeneralBoxSizer );
83 this->Centre( wxBOTH );
wxTextCtrl * m_ModPositionY
wxButton * m_sdbSizerStdButtonsCancel
wxTextCtrl * m_ModPositionX
wxStaticText * m_XPosLabel
~DIALOG_IMAGE_PROPERTIES_BASE()
wxStaticText * m_XPosUnit
wxStaticText * m_YPosLabel
wxButton * m_sdbSizerStdButtonsOK
wxStaticText * m_YPosUnit
DIALOG_IMAGE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Image Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(363, 281), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStdDialogButtonSizer * m_sdbSizerStdButtons
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...