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 );
24 m_infoBar->SetEffectDuration( 500 );
27 bMainSizer->Add( m_infoBar, 0, wxEXPAND|wxBOTTOM, 5 );
30 bColumns =
new wxBoxSizer( wxHORIZONTAL );
32 m_gridSizer =
new wxBoxSizer( wxVERTICAL );
34 m_gridSizer->SetMinSize( wxSize( 600,400 ) );
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( 15, 0, 0, wxEXPAND, 5 );
46 wxGridBagSizer* bPropertiesSizer;
47 bPropertiesSizer =
new wxGridBagSizer( 3, 3 );
48 bPropertiesSizer->SetFlexibleDirection( wxBOTH );
49 bPropertiesSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
50 bPropertiesSizer->SetEmptyCellSize( wxSize( 0,2 ) );
52 m_layerLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Layer:"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_layerLabel->Wrap( -1 );
54 bPropertiesSizer->Add( m_layerLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
56 m_LayerSelectionCtrl =
new PCB_LAYER_BOX_SELECTOR(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
57 m_LayerSelectionCtrl->SetMinSize( wxSize( 175,-1 ) );
59 bPropertiesSizer->Add( m_LayerSelectionCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
61 m_cbLocked =
new wxCheckBox(
this, wxID_ANY,
_(
"Locked"), wxDefaultPosition, wxDefaultSize, 0 );
62 bPropertiesSizer->Add( m_cbLocked, wxGBPosition( 1, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM, 20 );
64 m_borderCheckbox =
new wxCheckBox(
this, wxID_ANY,
_(
"External border"), wxDefaultPosition, wxDefaultSize, 0 );
65 bPropertiesSizer->Add( m_borderCheckbox, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM, 2 );
67 m_headerBorder =
new wxCheckBox(
this, wxID_ANY,
_(
"Header border"), wxDefaultPosition, wxDefaultSize, 0 );
68 bPropertiesSizer->Add( m_headerBorder, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxLEFT, 20 );
70 m_borderWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Width:"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_borderWidthLabel->Wrap( -1 );
72 bPropertiesSizer->Add( m_borderWidthLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
75 bSizer7 =
new wxBoxSizer( wxHORIZONTAL );
77 m_borderWidthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
78 bSizer7->Add( m_borderWidthCtrl, 0, wxEXPAND, 5 );
80 m_borderWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_borderWidthUnits->Wrap( -1 );
82 bSizer7->Add( m_borderWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
85 bPropertiesSizer->Add( bSizer7, wxGBPosition( 4, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
87 m_borderStyleLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Style:"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_borderStyleLabel->Wrap( -1 );
89 bPropertiesSizer->Add( m_borderStyleLabel, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
91 m_borderStyleCombo =
new wxBitmapComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
92 m_borderStyleCombo->SetMinSize( wxSize( 200,-1 ) );
94 bPropertiesSizer->Add( m_borderStyleCombo, wxGBPosition( 5, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
97 bPropertiesSizer->Add( 0, 15, wxGBPosition( 6, 0 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
99 m_rowSeparators =
new wxCheckBox(
this, wxID_ANY,
_(
"Row lines"), wxDefaultPosition, wxDefaultSize, 0 );
100 bPropertiesSizer->Add( m_rowSeparators, wxGBPosition( 7, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
102 m_colSeparators =
new wxCheckBox(
this, wxID_ANY,
_(
"Column lines"), wxDefaultPosition, wxDefaultSize, 0 );
103 bPropertiesSizer->Add( m_colSeparators, wxGBPosition( 7, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 20 );
105 m_separatorsWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Width:"), wxDefaultPosition, wxDefaultSize, 0 );
106 m_separatorsWidthLabel->Wrap( -1 );
107 bPropertiesSizer->Add( m_separatorsWidthLabel, wxGBPosition( 9, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
109 wxBoxSizer* bSizer71;
110 bSizer71 =
new wxBoxSizer( wxHORIZONTAL );
112 m_separatorsWidthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
113 bSizer71->Add( m_separatorsWidthCtrl, 0, wxEXPAND, 5 );
115 m_separatorsWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
116 m_separatorsWidthUnits->Wrap( -1 );
117 bSizer71->Add( m_separatorsWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
120 bPropertiesSizer->Add( bSizer71, wxGBPosition( 9, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
122 m_separatorsStyleLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Style:"), wxDefaultPosition, wxDefaultSize, 0 );
123 m_separatorsStyleLabel->Wrap( -1 );
124 bPropertiesSizer->Add( m_separatorsStyleLabel, wxGBPosition( 10, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
126 m_separatorsStyleCombo =
new wxBitmapComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
127 m_separatorsStyleCombo->SetMinSize( wxSize( 200,-1 ) );
129 bPropertiesSizer->Add( m_separatorsStyleCombo, wxGBPosition( 10, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
132 bPropertiesSizer->AddGrowableCol( 1 );
134 bColumns->Add( bPropertiesSizer, 0, wxEXPAND|wxALL, 5 );
137 bMainSizer->Add( bColumns, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
139 wxBoxSizer* bButtons;
140 bButtons =
new wxBoxSizer( wxHORIZONTAL );
143 bButtons->Add( 0, 0, 1, wxEXPAND, 5 );
145 m_sdbSizer1 =
new wxStdDialogButtonSizer();
146 m_sdbSizer1OK =
new wxButton(
this, wxID_OK );
147 m_sdbSizer1->AddButton( m_sdbSizer1OK );
148 m_sdbSizer1Cancel =
new wxButton(
this, wxID_CANCEL );
149 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
150 m_sdbSizer1->Realize();
152 bButtons->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
155 bMainSizer->Add( bButtons, 0, wxEXPAND, 5 );
158 this->SetSizer( bMainSizer );
160 bMainSizer->Fit(
this );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxCheckBox * m_borderCheckbox
~DIALOG_TABLE_PROPERTIES_BASE()
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)
wxCheckBox * m_rowSeparators
virtual void onBorderChecked(wxCommandEvent &event)
wxCheckBox * m_colSeparators
virtual void onSize(wxSizeEvent &event)
Class to display a pcb layer list in a wxBitmapComboBox.
A modified version of the wxInfoBar class that allows us to: