12PANEL_IMAGE_EDITOR_BASE::PANEL_IMAGE_EDITOR_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
14 wxBoxSizer* bSizerMain;
15 bSizerMain =
new wxBoxSizer( wxVERTICAL );
17 wxBoxSizer* bUpperSizer;
18 bUpperSizer =
new wxBoxSizer( wxVERTICAL );
20 wxBoxSizer* bSizerLeft;
21 bSizerLeft =
new wxBoxSizer( wxHORIZONTAL );
23 m_panelDraw =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL|wxBORDER_SIMPLE );
26 bSizerLeft->Add(
m_panelDraw, 1, wxEXPAND | wxALL, 5 );
28 wxGridBagSizer* gbSizer1;
29 gbSizer1 =
new wxGridBagSizer( 5, 5 );
30 gbSizer1->SetFlexibleDirection( wxBOTH );
31 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33 m_staticTextScale =
new wxStaticText(
this, wxID_ANY,
_(
"Scale:"), wxDefaultPosition, wxDefaultSize, 0 );
35 gbSizer1->Add(
m_staticTextScale, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
37 m_textCtrlScale =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 gbSizer1->Add(
m_textCtrlScale, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
40 m_staticTextPPI =
new wxStaticText(
this, wxID_ANY,
_(
"PPI:"), wxDefaultPosition, wxDefaultSize, 0 );
42 gbSizer1->Add(
m_staticTextPPI, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
44 m_stPPI_Value =
new wxStaticText(
this, wxID_ANY,
_(
"dummy"), wxDefaultPosition, wxDefaultSize, 0 );
46 gbSizer1->Add(
m_stPPI_Value, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
48 m_buttonGrey =
new wxButton(
this, wxID_ANY,
_(
"Convert to Greyscale"), wxDefaultPosition, wxDefaultSize, 0 );
49 gbSizer1->Add(
m_buttonGrey, wxGBPosition( 4, 0 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
52 gbSizer1->AddGrowableCol( 1 );
54 bSizerLeft->Add( gbSizer1, 0, wxEXPAND|wxALL, 10 );
57 bUpperSizer->Add( bSizerLeft, 1, wxEXPAND, 5 );
60 bSizerMain->Add( bUpperSizer, 1, wxEXPAND, 5 );
63 this->SetSizer( bSizerMain );
65 bSizerMain->Fit(
this );
PANEL_IMAGE_EDITOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
~PANEL_IMAGE_EDITOR_BASE()
wxStaticText * m_stPPI_Value
wxStaticText * m_staticTextScale
wxTextCtrl * m_textCtrlScale
virtual void OnGreyScaleConvert(wxCommandEvent &event)
wxStaticText * m_staticTextPPI
virtual void OnRedrawPanel(wxPaintEvent &event)