12DIALOG_RULE_AREA_PROPERTIES_BASE::DIALOG_RULE_AREA_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 )
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18 wxBoxSizer* bUpperSizer;
19 bUpperSizer =
new wxBoxSizer( wxHORIZONTAL );
21 wxBoxSizer* bLayersListSizer;
22 bLayersListSizer =
new wxBoxSizer( wxVERTICAL );
24 bLayersListSizer->SetMinSize( wxSize( 240,560 ) );
29 m_layers =
new wxDataViewListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_NO_HEADER|wxBORDER_SIMPLE );
30 bLayersListSizer->Add(
m_layers, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
33 bUpperSizer->Add( bLayersListSizer, 4, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
35 wxBoxSizer* bSizerRight;
36 bSizerRight =
new wxBoxSizer( wxVERTICAL );
39 bSizer6 =
new wxBoxSizer( wxVERTICAL );
41 m_nameLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Area name:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_nameLabel->SetToolTip(
_(
"A unique name for this rule area for use in DRC rules") );
48 bSizer6->Add( 0, 2, 0, 0, 5 );
50 m_tcName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
51 m_tcName->SetToolTip(
_(
"A unique name for this rule area for use in DRC rules") );
53 bSizer6->Add(
m_tcName, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
55 m_cbLocked =
new wxCheckBox(
this, wxID_ANY,
_(
"Locked"), wxDefaultPosition, wxDefaultSize, 0 );
59 bSizerRight->Add( bSizer6, 0, wxEXPAND, 5 );
61 m_areaPropertiesNb =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
65 wxGridBagSizer* gbSizer1;
66 gbSizer1 =
new wxGridBagSizer( 3, 3 );
67 gbSizer1->SetFlexibleDirection( wxBOTH );
68 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
69 gbSizer1->SetEmptyCellSize( wxSize( -1,2 ) );
71 m_staticTextStyle =
new wxStaticText(
this, wxID_ANY,
_(
"Outline display:"), wxDefaultPosition, wxDefaultSize, 0 );
73 gbSizer1->Add(
m_staticTextStyle, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
75 wxString m_OutlineDisplayCtrlChoices[] = {
_(
"Line"),
_(
"Hatched"),
_(
"Fully hatched") };
76 int m_OutlineDisplayCtrlNChoices =
sizeof( m_OutlineDisplayCtrlChoices ) /
sizeof( wxString );
77 m_OutlineDisplayCtrl =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_OutlineDisplayCtrlNChoices, m_OutlineDisplayCtrlChoices, 0 );
81 m_stBorderHatchPitchText =
new wxStaticText(
this, wxID_ANY,
_(
"Outline hatch pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_outlineHatchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
92 gbSizer1->Add(
m_outlineHatchUnits, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
95 bSizerRight->Add( gbSizer1, 0, wxEXPAND|wxALL, 5 );
98 bSizerRight->Add( 0, 0, 0, wxEXPAND, 5 );
101 bUpperSizer->Add( bSizerRight, 7, wxEXPAND|wxALL, 5 );
104 bMainSizer->Add( bUpperSizer, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
120 this->Centre( wxBOTH );
wxStaticText * m_staticTextLayerSelection
wxButton * m_sdbSizerButtonsOK
wxNotebook * m_areaPropertiesNb
wxStaticText * m_nameLabel
wxStdDialogButtonSizer * m_sdbSizerButtons
wxTextCtrl * m_outlineHatchPitchCtrl
wxStaticText * m_stBorderHatchPitchText
virtual void onLayerListRightDown(wxMouseEvent &event)
wxChoice * m_OutlineDisplayCtrl
virtual void OnSizeLayersList(wxSizeEvent &event)
wxButton * m_sdbSizerButtonsCancel
wxStaticText * m_outlineHatchUnits
DIALOG_RULE_AREA_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Rule Area Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxFULL_REPAINT_ON_RESIZE|wxBORDER_SUNKEN)
~DIALOG_RULE_AREA_PROPERTIES_BASE()
wxDataViewListCtrl * m_layers
wxStaticText * m_staticTextStyle
virtual void OnLayerSelection(wxDataViewEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...