2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2018-04-23 18:29:44 +00:00
// C++ code generated with wxFormBuilder (version Apr 19 2018)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
2018-02-17 11:43:56 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2018-02-17 11:43:56 +00:00
# include "wx_html_report_panel.h"
2013-05-26 04:36:44 +00:00
# include "dialog_annotate_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_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 )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bmainSizer ;
bmainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bupperSizer ;
bupperSizer = new wxBoxSizer ( wxVERTICAL ) ;
2015-06-23 13:55:16 +00:00
m_userMessage = new wxStaticText ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_userMessage - > Wrap ( 1 ) ;
2016-05-10 06:56:03 +00:00
m_userMessage - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2018-02-17 11:43:56 +00:00
m_userMessage - > Hide ( ) ;
2015-06-23 13:55:16 +00:00
2018-02-17 11:43:56 +00:00
bupperSizer - > Add ( m_userMessage , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
wxFlexGridSizer * fgSizer1 ;
fgSizer1 = new wxFlexGridSizer ( 2 , 2 , 0 , 0 ) ;
fgSizer1 - > AddGrowableCol ( 0 ) ;
fgSizer1 - > AddGrowableCol ( 1 ) ;
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
wxString m_rbScopeChoices [ ] = { _ ( " Use the entire schematic " ) , _ ( " Use the current page only " ) } ;
int m_rbScopeNChoices = sizeof ( m_rbScopeChoices ) / sizeof ( wxString ) ;
2018-04-23 18:29:44 +00:00
m_rbScope = new wxRadioBox ( this , wxID_ANY , _ ( " Scope: " ) , wxDefaultPosition , wxDefaultSize , m_rbScopeNChoices , m_rbScopeChoices , 1 , wxRA_SPECIFY_COLS ) ;
2018-02-17 11:43:56 +00:00
m_rbScope - > SetSelection ( 0 ) ;
fgSizer1 - > Add ( m_rbScope , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
wxStaticBoxSizer * sbSizer1 ;
2018-04-23 18:29:44 +00:00
sbSizer1 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Order: " ) ) , wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizerXpos ;
bSizerXpos = new wxBoxSizer ( wxHORIZONTAL ) ;
2018-02-17 11:43:56 +00:00
m_rbSortBy_X_Position = new wxRadioButton ( sbSizer1 - > GetStaticBox ( ) , ID_SORT_BY_X_POSITION , _ ( " Sort components by &X position " ) , wxDefaultPosition , wxDefaultSize , wxRB_GROUP ) ;
bSizerXpos - > Add ( m_rbSortBy_X_Position , 0 , wxBOTTOM | wxTOP , 3 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
bSizerXpos - > Add ( 0 , 0 , 1 , 0 , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
annotate_down_right_bitmap = new wxStaticBitmap ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerXpos - > Add ( annotate_down_right_bitmap , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-18 20:44:33 +00:00
sbSizer1 - > Add ( bSizerXpos , 0 , wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizerYpos ;
bSizerYpos = new wxBoxSizer ( wxHORIZONTAL ) ;
2018-02-17 11:43:56 +00:00
m_rbSortBy_Y_Position = new wxRadioButton ( sbSizer1 - > GetStaticBox ( ) , ID_SORT_BY_Y_POSITION , _ ( " Sort components by &Y position " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerYpos - > Add ( m_rbSortBy_Y_Position , 0 , wxBOTTOM | wxTOP , 3 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
bSizerYpos - > Add ( 0 , 0 , 1 , 0 , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
annotate_right_down_bitmap = new wxStaticBitmap ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerYpos - > Add ( annotate_right_down_bitmap , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-18 20:44:33 +00:00
sbSizer1 - > Add ( bSizerYpos , 0 , wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
fgSizer1 - > Add ( sbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
wxString m_rbOptionsChoices [ ] = { _ ( " Keep existing annotations " ) , _ ( " Reset existing annotations " ) , _ ( " Reset, but keep order of multi-unit parts " ) } ;
int m_rbOptionsNChoices = sizeof ( m_rbOptionsChoices ) / sizeof ( wxString ) ;
2018-04-23 18:29:44 +00:00
m_rbOptions = new wxRadioBox ( this , wxID_ANY , _ ( " Options: " ) , wxDefaultPosition , wxDefaultSize , m_rbOptionsNChoices , m_rbOptionsChoices , 1 , wxRA_SPECIFY_COLS ) ;
2018-02-17 11:43:56 +00:00
m_rbOptions - > SetSelection ( 0 ) ;
fgSizer1 - > Add ( m_rbOptions , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-18 20:44:33 +00:00
wxStaticBoxSizer * sbSizer2 ;
2018-04-23 18:29:44 +00:00
sbSizer2 = new wxStaticBoxSizer ( new wxStaticBox ( this , wxID_ANY , _ ( " Numbering: " ) ) , wxVERTICAL ) ;
2018-02-18 20:44:33 +00:00
wxGridBagSizer * gbSizer1 ;
gbSizer1 = new wxGridBagSizer ( 0 , 0 ) ;
gbSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
gbSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_rbFirstFree = new wxRadioButton ( sbSizer2 - > GetStaticBox ( ) , wxID_FIRST_FREE , _ ( " Use first free number after: " ) , wxDefaultPosition , wxDefaultSize , wxRB_GROUP ) ;
gbSizer1 - > Add ( m_rbFirstFree , wxGBPosition ( 0 , 0 ) , wxGBSpan ( 1 , 1 ) , wxTOP , 2 ) ;
m_textNumberAfter = new wxTextCtrl ( sbSizer2 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxSize ( 60 , - 1 ) , 0 ) ;
gbSizer1 - > Add ( m_textNumberAfter , wxGBPosition ( 0 , 1 ) , wxGBSpan ( 1 , 1 ) , wxLEFT , 2 ) ;
m_rbSheetX100 = new wxRadioButton ( sbSizer2 - > GetStaticBox ( ) , wxID_SHEET_X_100 , _ ( " First free after sheet number X 100 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer1 - > Add ( m_rbSheetX100 , wxGBPosition ( 1 , 0 ) , wxGBSpan ( 1 , 2 ) , wxBOTTOM | wxTOP , 4 ) ;
m_rbSheetX1000 = new wxRadioButton ( sbSizer2 - > GetStaticBox ( ) , wxID_SHEET_X_1000 , _ ( " First free after sheet number X 1000 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
gbSizer1 - > Add ( m_rbSheetX1000 , wxGBPosition ( 2 , 0 ) , wxGBSpan ( 1 , 2 ) , wxBOTTOM | wxTOP , 2 ) ;
sbSizer2 - > Add ( gbSizer1 , 1 , wxEXPAND , 5 ) ;
fgSizer1 - > Add ( sbSizer2 , 1 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
bupperSizer - > Add ( fgSizer1 , 0 , wxBOTTOM | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizerDldOptions ;
2018-02-17 11:43:56 +00:00
bSizerDldOptions = new wxBoxSizer ( wxHORIZONTAL ) ;
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizerDlgChoices ;
bSizerDlgChoices = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizerChoiceClose ;
bSizerChoiceClose = new wxBoxSizer ( wxHORIZONTAL ) ;
2015-06-22 15:53:27 +00:00
m_cbKeepDlgOpen = new wxCheckBox ( this , wxID_ANY , _ ( " Keep this dialog open " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerChoiceClose - > Add ( m_cbKeepDlgOpen , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
bSizerChoiceClose - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
bSizerDlgChoices - > Add ( bSizerChoiceClose , 0 , wxEXPAND | wxRIGHT , 5 ) ;
wxBoxSizer * bSizerChoiceSilentMode ;
bSizerChoiceSilentMode = new wxBoxSizer ( wxHORIZONTAL ) ;
2018-02-20 15:39:16 +00:00
m_cbSkipConfirmation = new wxCheckBox ( this , wxID_ANY , _ ( " Don't ask for confirmation " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizerChoiceSilentMode - > Add ( m_cbSkipConfirmation , 0 , wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
bSizerChoiceSilentMode - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
bSizerDlgChoices - > Add ( bSizerChoiceSilentMode , 1 , wxEXPAND , 5 ) ;
2018-02-17 11:43:56 +00:00
bSizerDldOptions - > Add ( bSizerDlgChoices , 1 , wxLEFT , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
wxBoxSizer * bButtonsSizer ;
bButtonsSizer = new wxBoxSizer ( wxVERTICAL ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
bButtonsSizer - > SetMinSize ( wxSize ( 160 , - 1 ) ) ;
m_btnApply = new wxButton ( this , wxID_APPLY , _ ( " Annotate " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bButtonsSizer - > Add ( m_btnApply , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
m_btnClear = new wxButton ( this , ID_CLEAR_ANNOTATION_CMP , _ ( " Clear Annotation " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bButtonsSizer - > Add ( m_btnClear , 0 , wxALL | wxEXPAND , 5 ) ;
2013-05-26 04:36:44 +00:00
m_btnClose = new wxButton ( this , wxID_CANCEL , _ ( " Close " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bButtonsSizer - > Add ( m_btnClose , 0 , wxALL | wxEXPAND , 5 ) ;
2018-02-17 11:43:56 +00:00
bSizerDldOptions - > Add ( bButtonsSizer , 0 , wxALIGN_RIGHT , 5 ) ;
2013-05-26 04:36:44 +00:00
2018-02-17 11:43:56 +00:00
bupperSizer - > Add ( bSizerDldOptions , 0 , wxEXPAND | wxLEFT | wxRIGHT , 5 ) ;
m_MessageWindow = new WX_HTML_REPORT_PANEL ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_MessageWindow - > SetMinSize ( wxSize ( - 1 , 120 ) ) ;
bupperSizer - > Add ( m_MessageWindow , 5 , wxEXPAND | wxALL , 5 ) ;
2013-05-26 04:36:44 +00:00
bmainSizer - > Add ( bupperSizer , 1 , wxALL | wxEXPAND , 6 ) ;
this - > SetSizer ( bmainSizer ) ;
this - > Layout ( ) ;
2015-06-15 13:54:58 +00:00
bmainSizer - > Fit ( this ) ;
2013-05-26 04:36:44 +00:00
// Connect Events
m_btnApply - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ANNOTATE_BASE : : OnApplyClick ) , NULL , this ) ;
2018-02-17 11:43:56 +00:00
m_btnClear - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ANNOTATE_BASE : : OnClearAnnotationCmpClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
DIALOG_ANNOTATE_BASE : : ~ DIALOG_ANNOTATE_BASE ( )
{
// Disconnect Events
m_btnApply - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ANNOTATE_BASE : : OnApplyClick ) , NULL , this ) ;
2018-02-17 11:43:56 +00:00
m_btnClear - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ANNOTATE_BASE : : OnClearAnnotationCmpClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}