15DIALOG_ANNOTATE_BASE::DIALOG_ANNOTATE_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 );
29 wxBoxSizer* bupperSizer;
30 bupperSizer =
new wxBoxSizer( wxVERTICAL );
32 wxFlexGridSizer* fgSizer1;
33 fgSizer1 =
new wxFlexGridSizer( 2, 2, 0, 0 );
34 fgSizer1->AddGrowableCol( 0 );
35 fgSizer1->AddGrowableCol( 1 );
36 fgSizer1->SetFlexibleDirection( wxBOTH );
37 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
39 wxStaticBoxSizer* sbSizer3;
40 sbSizer3 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Scope") ), wxVERTICAL );
42 m_rbScope_Schematic =
new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY,
_(
"Entire schematic"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
45 m_rbScope_Sheet =
new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY,
_(
"Current sheet only"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_rbScope_Selection =
new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY,
_(
"Selection"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_checkRecursive =
new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY,
_(
"Recurse into subsheets"), wxDefaultPosition, wxDefaultSize, 0 );
55 fgSizer1->Add( sbSizer3, 1, wxALL|wxEXPAND, 5 );
57 wxStaticBoxSizer* sbSizer1;
58 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Order") ), wxVERTICAL );
60 wxBoxSizer* bSizerXpos;
61 bSizerXpos =
new wxBoxSizer( wxHORIZONTAL );
66 annotate_down_right_bitmap =
new wxStaticBitmap( sbSizer1->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
70 sbSizer1->Add( bSizerXpos, 0, wxBOTTOM|wxEXPAND, 5 );
72 wxBoxSizer* bSizerYpos;
73 bSizerYpos =
new wxBoxSizer( wxHORIZONTAL );
78 annotate_right_down_bitmap =
new wxStaticBitmap( sbSizer1->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
82 sbSizer1->Add( bSizerYpos, 0, wxEXPAND, 5 );
85 fgSizer1->Add( sbSizer1, 0, wxALL|wxEXPAND, 5 );
87 wxString m_rbOptionsChoices[] = {
_(
"Keep existing annotations"),
_(
"Reset existing annotations") };
88 int m_rbOptionsNChoices =
sizeof( m_rbOptionsChoices ) /
sizeof( wxString );
89 m_rbOptions =
new wxRadioBox(
this, wxID_ANY,
_(
"Options"), wxDefaultPosition, wxDefaultSize, m_rbOptionsNChoices, m_rbOptionsChoices, 1, wxRA_SPECIFY_COLS );
93 wxStaticBoxSizer* sbSizer2;
94 sbSizer2 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Numbering") ), wxVERTICAL );
96 wxGridBagSizer* gbSizer1;
97 gbSizer1 =
new wxGridBagSizer( 0, 0 );
98 gbSizer1->SetFlexibleDirection( wxBOTH );
99 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
101 m_rbFirstFree =
new wxRadioButton( sbSizer2->GetStaticBox(),
wxID_FIRST_FREE,
_(
"Use first free number after:"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
102 gbSizer1->Add(
m_rbFirstFree, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 2 );
104 m_textNumberAfter =
new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 60,-1 ), 0 );
105 gbSizer1->Add(
m_textNumberAfter, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 2 );
107 m_rbSheetX100 =
new wxRadioButton( sbSizer2->GetStaticBox(),
wxID_SHEET_X_100,
_(
"First free after sheet number X 100"), wxDefaultPosition, wxDefaultSize, 0 );
108 gbSizer1->Add(
m_rbSheetX100, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxTOP, 2 );
110 m_rbSheetX1000 =
new wxRadioButton( sbSizer2->GetStaticBox(),
wxID_SHEET_X_1000,
_(
"First free after sheet number X 1000"), wxDefaultPosition, wxDefaultSize, 0 );
111 gbSizer1->Add(
m_rbSheetX1000, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxTOP, 2 );
114 sbSizer2->Add( gbSizer1, 1, wxEXPAND, 5 );
117 fgSizer1->Add( sbSizer2, 1, wxALL|wxEXPAND, 5 );
120 bupperSizer->Add( fgSizer1, 0, wxBOTTOM|wxEXPAND, 5 );
128 bmainSizer->Add( bupperSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 6 );
130 wxBoxSizer* m_buttonsSizer;
131 m_buttonsSizer =
new wxBoxSizer( wxHORIZONTAL );
134 m_buttonsSizer->Add(
m_btnClear, 0, wxEXPAND|wxALL, 10 );
137 m_buttonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
146 m_buttonsSizer->Add(
m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
149 bmainSizer->Add( m_buttonsSizer, 0, wxEXPAND|wxLEFT, 5 );
152 this->SetSizer( bmainSizer );
154 bmainSizer->Fit(
this );
wxStaticBitmap * annotate_down_right_bitmap
wxRadioButton * m_rbSortBy_X_Position
virtual void OnClearAnnotationClick(wxCommandEvent &event)
virtual void OnAnnotateClick(wxCommandEvent &event)
wxRadioButton * m_rbSheetX100
DIALOG_ANNOTATE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Annotate Schematic"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxRadioButton * m_rbScope_Sheet
virtual void OnClose(wxCloseEvent &event)
wxStdDialogButtonSizer * m_sdbSizer1
wxRadioButton * m_rbSheetX1000
wxStaticBitmap * annotate_right_down_bitmap
virtual void OnCloseClick(wxCommandEvent &event)
wxTextCtrl * m_textNumberAfter
wxRadioButton * m_rbScope_Schematic
virtual void OnOptionChanged(wxCommandEvent &event)
wxRadioButton * m_rbSortBy_Y_Position
WX_HTML_REPORT_PANEL * m_MessageWindow
wxRadioButton * m_rbScope_Selection
wxRadioButton * m_rbFirstFree
wxButton * m_sdbSizer1Cancel
wxCheckBox * m_checkRecursive
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
A widget for browsing a rich text error/status report.
A modified version of the wxInfoBar class that allows us to:
#define ID_SORT_BY_Y_POSITION
#define ID_SORT_BY_X_POSITION
#define ID_CLEAR_ANNOTATION_CMP
#define wxID_SHEET_X_1000