12DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::DIALOG_MULTICHANNEL_REPEAT_LAYOUT_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 );
16 wxFlexGridSizer* fgSizer3;
17 fgSizer3 =
new wxFlexGridSizer( 0, 1, 0, 0 );
18 fgSizer3->AddGrowableCol( 0 );
19 fgSizer3->AddGrowableRow( 1 );
20 fgSizer3->SetFlexibleDirection( wxBOTH );
21 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
23 fgSizer3->SetMinSize( wxSize( 600,-1 ) );
24 m_staticText4 =
new wxStaticText(
this, wxID_ANY,
_(
"Target areas:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_raGrid =
new wxGrid(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
34 m_raGrid->EnableDragGridSize(
false );
39 m_raGrid->EnableDragColMove(
false );
41 m_raGrid->SetColLabelSize( wxGRID_AUTOSIZE );
42 m_raGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
47 m_raGrid->SetRowLabelSize( wxGRID_AUTOSIZE );
48 m_raGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
53 m_raGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
54 fgSizer3->Add(
m_raGrid, 1, wxALL|wxEXPAND, 5 );
57 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
59 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Reference rule area:"), wxDefaultPosition, wxDefaultSize, 0 );
61 bSizer4->Add(
m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
63 m_refRAName =
new wxStaticText(
this, wxID_ANY,
_(
"MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_refRAName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
67 bSizer4->Add(
m_refRAName, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
70 fgSizer3->Add( bSizer4, 1, wxEXPAND, 5 );
73 bSizer41 =
new wxBoxSizer( wxHORIZONTAL );
75 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Anchor footprint:"), wxDefaultPosition, wxDefaultSize, 0 );
77 bSizer41->Add(
m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
79 wxArrayString m_refAnchorFpChoices;
80 m_refAnchorFp =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_refAnchorFpChoices, 0 );
82 m_refAnchorFp->SetToolTip(
_(
"Optional, use for precise and/or rotated placement.\nSelect reference rule area footprint, place corresponding\ntarget rule area footprint(s).") );
88 fgSizer3->Add( bSizer41, 1, wxEXPAND, 5 );
91 bSizer13 =
new wxBoxSizer( wxVERTICAL );
93 m_cbCopyPlacement =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy footprint placement"), wxDefaultPosition, wxDefaultSize, 0 );
97 bSizer5 =
new wxBoxSizer( wxHORIZONTAL );
99 m_cbCopyRouting =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy routing"), wxDefaultPosition, wxDefaultSize, 0 );
102 m_cbCopyOnlyConnectedRouting =
new wxCheckBox(
this, wxID_ANY,
_(
"Restrict to routing connected within the area"), wxDefaultPosition, wxDefaultSize, 0 );
109 bSizer13->Add( bSizer5, 1, wxEXPAND, 5 );
111 m_cbCopyOtherItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy other items"), wxDefaultPosition, wxDefaultSize, 0 );
112 m_cbCopyOtherItems->SetToolTip(
_(
"Copy text, shapes, zones, and other items inside the source rule area") );
116 m_cbIncludeOffRAComponents =
new wxCheckBox(
this, wxID_ANY,
_(
"Include footprints outside the reference rule area"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_cbGroupItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Group items with their target rule areas"), wxDefaultPosition, wxDefaultSize, 0 );
130 fgSizer3->Add( bSizer13, 1, wxEXPAND, 5 );
132 wxBoxSizer* bottomButtonsSizer;
133 bottomButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
136 bottomButtonsSizer->Add( 10, 0, 0, 0, 5 );
148 fgSizer3->Add( bottomButtonsSizer, 0, wxEXPAND|wxLEFT, 5 );
151 this->SetSizer( fgSizer3 );
153 fgSizer3->Fit(
this );
wxStaticText * m_refRAName
wxCheckBox * m_cbCopyOnlyConnectedRouting
wxStdDialogButtonSizer * m_sdbSizerStdButtons
wxStaticText * m_staticText1
DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Repeat Multichannel Layout"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxButton * m_sdbSizerStdButtonsCancel
wxStaticText * m_staticText4
wxButton * m_sdbSizerStdButtonsOK
wxCheckBox * m_cbCopyRouting
wxCheckBox * m_cbGroupItems
virtual void OnInitDlg(wxInitDialogEvent &event)
wxCheckBox * m_cbCopyPlacement
wxCheckBox * m_cbCopyOtherItems
wxCheckBox * m_cbIncludeLockedComponents
wxStaticText * m_staticText2
virtual void OnUpdateUI(wxUpdateUIEvent &event)
~DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE()
wxCheckBox * m_cbIncludeOffRAComponents
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...