15DIALOG_TABLE_PROPERTIES_BASE::DIALOG_TABLE_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 )
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 wxBoxSizer* bMainSizer;
20 bMainSizer =
new wxBoxSizer( wxVERTICAL );
23 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
27 bMainSizer->Add(
m_infoBar, 0, wxEXPAND|wxBOTTOM, 5 );
30 bColumns =
new wxBoxSizer( wxHORIZONTAL );
35 wxStaticText* cellContentsLabel;
36 cellContentsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Cell contents:"), wxDefaultPosition, wxDefaultSize, 0 );
37 cellContentsLabel->Wrap( -1 );
38 m_gridSizer->Add( cellContentsLabel, 0, wxTOP|wxBOTTOM, 3 );
41 bColumns->Add(
m_gridSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
44 bColumns->Add( 10, 0, 0, wxEXPAND, 15 );
46 wxBoxSizer* bPropertiesMargins;
47 bPropertiesMargins =
new wxBoxSizer( wxVERTICAL );
49 wxGridBagSizer* bPropertiesSizer;
50 bPropertiesSizer =
new wxGridBagSizer( 3, 3 );
51 bPropertiesSizer->SetFlexibleDirection( wxBOTH );
52 bPropertiesSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
53 bPropertiesSizer->SetEmptyCellSize( wxSize( 0,2 ) );
55 m_borderCheckbox =
new wxCheckBox(
this, wxID_ANY,
_(
"External border"), wxDefaultPosition, wxDefaultSize, 0 );
56 bPropertiesSizer->Add(
m_borderCheckbox, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM, 2 );
58 m_headerBorder =
new wxCheckBox(
this, wxID_ANY,
_(
"Header border"), wxDefaultPosition, wxDefaultSize, 0 );
59 bPropertiesSizer->Add(
m_headerBorder, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxLEFT, 20 );
61 m_borderWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Width:"), wxDefaultPosition, wxDefaultSize, 0 );
63 bPropertiesSizer->Add(
m_borderWidthLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
66 bSizer7 =
new wxBoxSizer( wxHORIZONTAL );
68 m_borderWidthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
71 m_borderWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_borderColorLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Color:"), wxDefaultPosition, wxDefaultSize, 0 );
80 bSizer7->Add( 5, 0, 0, 0, 5 );
82 m_panelBorderColor =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
84 bSizer2 =
new wxBoxSizer( wxVERTICAL );
87 bSizer2->Add(
m_borderColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
96 bPropertiesSizer->Add( bSizer7, wxGBPosition( 2, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
98 m_borderStyleLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Style:"), wxDefaultPosition, wxDefaultSize, 0 );
100 bPropertiesSizer->Add(
m_borderStyleLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
102 m_borderStyleCombo =
new wxBitmapComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
105 bPropertiesSizer->Add(
m_borderStyleCombo, wxGBPosition( 3, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
108 bPropertiesSizer->Add( 0, 20, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
110 m_rowSeparators =
new wxCheckBox(
this, wxID_ANY,
_(
"Row lines"), wxDefaultPosition, wxDefaultSize, 0 );
111 bPropertiesSizer->Add(
m_rowSeparators, wxGBPosition( 5, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
113 m_colSeparators =
new wxCheckBox(
this, wxID_ANY,
_(
"Column lines"), wxDefaultPosition, wxDefaultSize, 0 );
114 bPropertiesSizer->Add(
m_colSeparators, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 20 );
118 bPropertiesSizer->Add(
m_separatorsWidthLabel, wxGBPosition( 7, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
120 wxBoxSizer* bSizer71;
121 bSizer71 =
new wxBoxSizer( wxHORIZONTAL );
123 m_separatorsWidthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
135 bSizer71->Add( 5, 0, 0, 0, 5 );
137 m_panelSeparatorsColor =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
138 wxBoxSizer* bSizer21;
139 bSizer21 =
new wxBoxSizer( wxVERTICAL );
151 bPropertiesSizer->Add( bSizer71, wxGBPosition( 7, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
155 bPropertiesSizer->Add(
m_separatorsStyleLabel, wxGBPosition( 8, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
157 m_separatorsStyleCombo =
new wxBitmapComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
160 bPropertiesSizer->Add(
m_separatorsStyleCombo, wxGBPosition( 8, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
163 bPropertiesSizer->AddGrowableCol( 1 );
165 bPropertiesMargins->Add( bPropertiesSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
168 bColumns->Add( bPropertiesMargins, 0, wxEXPAND|wxTOP, 5 );
171 bMainSizer->Add( bColumns, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
173 wxBoxSizer* bButtons;
174 bButtons =
new wxBoxSizer( wxHORIZONTAL );
177 bButtons->Add( 0, 0, 1, wxEXPAND, 5 );
186 bButtons->Add(
m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
189 bMainSizer->Add( bButtons, 0, wxEXPAND, 5 );
192 this->SetSizer( bMainSizer );
194 bMainSizer->Fit(
this );
A simple color swatch of the kind used to set layer colors.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxCheckBox * m_headerBorder
wxStaticText * m_separatorsStyleLabel
wxStaticText * m_separatorsWidthLabel
wxStaticText * m_borderStyleLabel
wxStdDialogButtonSizer * m_sdbSizer1
wxBitmapComboBox * m_borderStyleCombo
wxStaticText * m_separatorsColorLabel
wxCheckBox * m_borderCheckbox
~DIALOG_TABLE_PROPERTIES_BASE()
wxStaticText * m_borderWidthLabel
COLOR_SWATCH * m_borderColorSwatch
DIALOG_TABLE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Table Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxPanel * m_panelBorderColor
wxTextCtrl * m_borderWidthCtrl
wxCheckBox * m_rowSeparators
virtual void onBorderChecked(wxCommandEvent &event)
wxBitmapComboBox * m_separatorsStyleCombo
wxButton * m_sdbSizer1Cancel
wxCheckBox * m_colSeparators
virtual void onSize(wxSizeEvent &event)
wxStaticText * m_borderWidthUnits
wxStaticText * m_borderColorLabel
wxPanel * m_panelSeparatorsColor
wxStaticText * m_separatorsWidthUnits
COLOR_SWATCH * m_separatorsColorSwatch
wxTextCtrl * m_separatorsWidthCtrl
A modified version of the wxInfoBar class that allows us to: