15APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
WX_PANEL( parent, id, pos, size, style,
name )
17 this->SetMinSize( wxSize( 200,360 ) );
21 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
34 m_panelObjects->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
55 wxBoxSizer* bSizer192;
56 bSizer192 =
new wxBoxSizer( wxVERTICAL );
59 bSizer17 =
new wxBoxSizer( wxHORIZONTAL );
63 bSizer17->Add(
m_staticTextNets, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
68 bSizer17->Add(
m_txtNetFilter, 1, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
76 bSizer192->Add( bSizer17, 0, wxEXPAND, 5 );
94 m_netsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
99 m_netsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
104 m_netsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
105 bSizer192->Add(
m_netsGrid, 0, wxALL|wxEXPAND, 5 );
112 wxBoxSizer* bSizerNetClasses;
113 bSizerNetClasses =
new wxBoxSizer( wxVERTICAL );
115 wxBoxSizer* bSizer20;
116 bSizer20 =
new wxBoxSizer( wxHORIZONTAL );
128 bSizerNetClasses->Add( bSizer20, 0, wxEXPAND, 5 );
155 wxBoxSizer* bBottomMargin;
156 bBottomMargin =
new wxBoxSizer( wxVERTICAL );
158 wxBoxSizer* bPresets;
159 bPresets =
new wxBoxSizer( wxVERTICAL );
161 m_presetsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Presets (Ctrl+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
165 wxString m_cbLayerPresetsChoices[] = {
_(
"All Layers"),
_(
"(unsaved)") };
166 int m_cbLayerPresetsNChoices =
sizeof( m_cbLayerPresetsChoices ) /
sizeof( wxString );
167 m_cbLayerPresets =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbLayerPresetsNChoices, m_cbLayerPresetsChoices, 0 );
172 bBottomMargin->Add( bPresets, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
175 bBottomMargin->Add( 0, 2, 0, wxEXPAND, 5 );
177 wxBoxSizer* bViewports;
178 bViewports =
new wxBoxSizer( wxVERTICAL );
180 m_viewportsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Viewports (Alt+Tab):"), wxDefaultPosition, wxDefaultSize, 0 );
184 wxString m_cbViewportsChoices[] = {
_(
"(unsaved)") };
185 int m_cbViewportsNChoices =
sizeof( m_cbViewportsChoices ) /
sizeof( wxString );
186 m_cbViewports =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbViewportsNChoices, m_cbViewportsChoices, 0 );
191 bBottomMargin->Add( bViewports, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
194 m_sizerOuter->Add( bBottomMargin, 0, wxEXPAND|wxTOP|wxBOTTOM, 4 );
virtual void onLayerPresetChanged(wxCommandEvent &event)
virtual void OnNotebookPageChanged(wxNotebookEvent &event)
wxPanel * m_panelNetsAndClasses
wxBoxSizer * m_sizerOuter
~APPEARANCE_CONTROLS_BASE()
wxBoxSizer * m_netsTabOuterSizer
wxStaticText * m_staticTextNetClasses
virtual void OnNetGridDoubleClick(wxGridEvent &event)
virtual void onViewportChanged(wxCommandEvent &event)
wxChoice * m_cbLayerPresets
wxPanel * m_panelNetclasses
wxBoxSizer * m_netclassOuterSizer
wxScrolledCanvas * m_windowLayers
wxStaticText * m_viewportsLabel
virtual void OnNetGridClick(wxGridEvent &event)
BITMAP_BUTTON * m_btnConfigureNetClasses
APPEARANCE_CONTROLS_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)
wxBoxSizer * m_objectsPanelSizer
virtual void OnNetGridRightClick(wxGridEvent &event)
wxSplitterWindow * m_netsTabSplitter
wxBoxSizer * m_panelLayersSizer
virtual void OnSetFocus(wxFocusEvent &event)
wxTextCtrl * m_txtNetFilter
BITMAP_BUTTON * m_btnNetInspector
wxScrolledCanvas * m_windowObjects
void m_netsTabSplitterOnIdle(wxIdleEvent &)
wxScrolledWindow * m_netclassScrolledWindow
wxStaticText * m_staticTextNets
wxStaticText * m_presetsLabel
virtual void OnSize(wxSizeEvent &event)
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...