15DIALOG_FP_PLUGIN_OPTIONS_BASE::DIALOG_FP_PLUGIN_OPTIONS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 wxBoxSizer* bMainSizer;
20 bMainSizer =
new wxBoxSizer( wxVERTICAL );
22 wxBoxSizer* m_horizontal_sizer;
23 m_horizontal_sizer =
new wxBoxSizer( wxHORIZONTAL );
25 wxStaticBoxSizer* m_grid_sizer;
26 m_grid_sizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Plugin Options") ), wxVERTICAL );
28 m_grid_sizer->SetMinSize( wxSize( 400,300 ) );
29 m_grid =
new WX_GRID( m_grid_sizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxVSCROLL );
32 m_grid->CreateGrid( 1, 2 );
33 m_grid->EnableEditing(
true );
34 m_grid->EnableGridLines(
true );
35 m_grid->EnableDragGridSize(
false );
36 m_grid->SetMargins( 0, 0 );
39 m_grid->SetColSize( 0, 120 );
40 m_grid->SetColSize( 1, 240 );
41 m_grid->EnableDragColMove(
false );
42 m_grid->EnableDragColSize(
true );
43 m_grid->SetColLabelValue( 0,
_(
"Option") );
44 m_grid->SetColLabelValue( 1,
_(
"Value") );
46 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
49 m_grid->EnableDragRowSize(
false );
50 m_grid->SetRowLabelSize( 0 );
51 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
56 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
57 m_grid_sizer->Add(
m_grid, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
59 wxBoxSizer* bButtonsSizer;
60 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
66 bButtonsSizer->Add( 20, 0, 0, wxEXPAND, 5 );
72 m_grid_sizer->Add( bButtonsSizer, 0, wxEXPAND|wxTOP, 5 );
75 m_horizontal_sizer->Add( m_grid_sizer, 3, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
77 wxStaticBoxSizer* m_options_sizer;
78 m_options_sizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Option Choices") ), wxVERTICAL );
80 m_listbox =
new wxListBox( m_options_sizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_ALWAYS_SB|wxLB_SINGLE );
81 m_listbox->SetToolTip(
_(
"Options supported by current plugin") );
83 m_options_sizer->Add(
m_listbox, 3, wxALL|wxEXPAND, 5 );
85 m_append_choice_button =
new wxButton( m_options_sizer->GetStaticBox(), wxID_ANY,
_(
"<< Append Selected Option"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_options_sizer->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
91 m_html =
new HTML_WINDOW( m_options_sizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxBORDER_SIMPLE|wxVSCROLL );
92 m_html->SetMinSize( wxSize( 280,100 ) );
94 m_options_sizer->Add(
m_html, 2, wxALL|wxEXPAND, 5 );
97 m_horizontal_sizer->Add( m_options_sizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
100 bMainSizer->Add( m_horizontal_sizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
109 bMainSizer->Add(
m_sdbSizer1, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
112 this->SetSizer( bMainSizer );
114 bMainSizer->Fit(
this );
116 this->Centre( wxBOTH );
wxStdDialogButtonSizer * m_sdbSizer1
virtual void onGridCellChange(wxGridEvent &event)=0
wxButton * m_append_choice_button
virtual void onUpdateUI(wxUpdateUIEvent &event)=0
virtual void onDeleteRow(wxCommandEvent &event)=0
virtual void onAppendRow(wxCommandEvent &event)=0
STD_BITMAP_BUTTON * m_delete_button
virtual void onListBoxItemSelected(wxCommandEvent &event)=0
virtual void onListBoxItemDoubleClicked(wxCommandEvent &event)=0
STD_BITMAP_BUTTON * m_append_button
wxButton * m_sdbSizer1Cancel
~DIALOG_FP_PLUGIN_OPTIONS_BASE()
DIALOG_FP_PLUGIN_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER)
virtual void onSize(wxSizeEvent &event)=0
virtual void onAppendOption(wxCommandEvent &event)=0
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Add dark theme support to wxHtmlWindow.
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...