2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2019-08-07 19:01:50 +00:00
// C++ code generated with wxFormBuilder (version Dec 30 2017)
2013-05-26 04:36:44 +00:00
// http://www.wxformbuilder.org/
//
2018-04-06 13:46:16 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-05-26 04:36:44 +00:00
///////////////////////////////////////////////////////////////////////////
2014-08-29 06:47:05 +00:00
# include "dialog_erc_listbox.h"
2013-05-26 04:36:44 +00:00
# include "dialog_erc_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_ERC_BASE : : DIALOG_ERC_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 ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizer1 ;
bSizer1 = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
m_NoteBook = new wxNotebook ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_PanelERC = new wxPanel ( m_NoteBook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * bercSizer ;
bercSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bupperSizer ;
bupperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
wxStaticBoxSizer * sdiagSizer ;
2014-10-08 04:02:48 +00:00
sdiagSizer = new wxStaticBoxSizer ( new wxStaticBox ( m_PanelERC , wxID_ANY , _ ( " ERC Report: " ) ) , wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
wxGridSizer * gSizeDiag ;
2017-12-26 14:38:45 +00:00
gSizeDiag = new wxGridSizer ( 3 , 2 , 5 , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-09-10 12:03:16 +00:00
m_ErcTotalErrorsText = new wxStaticText ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Total: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_ErcTotalErrorsText - > Wrap ( - 1 ) ;
2015-06-15 13:54:58 +00:00
gSizeDiag - > Add ( m_ErcTotalErrorsText , 1 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-09-10 12:03:16 +00:00
m_TotalErrCount = new wxTextCtrl ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_READONLY ) ;
2013-05-26 04:36:44 +00:00
gSizeDiag - > Add ( m_TotalErrCount , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-09-10 12:03:16 +00:00
m_WarnErcErrorsText = new wxStaticText ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Warnings: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_WarnErcErrorsText - > Wrap ( - 1 ) ;
2015-06-15 13:54:58 +00:00
gSizeDiag - > Add ( m_WarnErcErrorsText , 1 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-09-10 12:03:16 +00:00
m_LastWarningCount = new wxTextCtrl ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_READONLY ) ;
2013-05-26 04:36:44 +00:00
gSizeDiag - > Add ( m_LastWarningCount , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-09-10 12:03:16 +00:00
m_LastErrCountText = new wxStaticText ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Errors: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_LastErrCountText - > Wrap ( - 1 ) ;
2015-06-15 13:54:58 +00:00
gSizeDiag - > Add ( m_LastErrCountText , 1 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-09-10 12:03:16 +00:00
m_LastErrCount = new wxTextCtrl ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_READONLY ) ;
2013-05-26 04:36:44 +00:00
gSizeDiag - > Add ( m_LastErrCount , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-08-07 19:01:50 +00:00
2017-12-26 14:38:45 +00:00
sdiagSizer - > Add ( gSizeDiag , 0 , wxALL | wxEXPAND , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-12-20 12:40:17 +00:00
m_staticline1 = new wxStaticLine ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
sdiagSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2019-08-07 19:01:50 +00:00
2015-09-10 12:03:16 +00:00
m_WriteResultOpt = new wxCheckBox ( sdiagSizer - > GetStaticBox ( ) , wxID_ANY , _ ( " Create ERC file report " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-12-26 14:38:45 +00:00
sdiagSizer - > Add ( m_WriteResultOpt , 0 , wxALL | wxBOTTOM | wxRIGHT | wxTOP , 5 ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
bupperSizer - > Add ( sdiagSizer , 0 , wxEXPAND | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
wxBoxSizer * bSizerMessages ;
bSizerMessages = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
m_titleMessages = new wxStaticText ( m_PanelERC , wxID_ANY , _ ( " Messages: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_titleMessages - > Wrap ( - 1 ) ;
2018-08-01 19:08:12 +00:00
m_titleMessages - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
bSizerMessages - > Add ( m_titleMessages , 0 , wxRIGHT | wxLEFT , 12 ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
m_MessagesList = new wxTextCtrl ( m_PanelERC , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_MULTILINE | wxTE_READONLY ) ;
2018-04-06 13:46:16 +00:00
m_MessagesList - > SetMinSize ( wxSize ( 180 , - 1 ) ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
bSizerMessages - > Add ( m_MessagesList , 1 , wxEXPAND | wxBOTTOM | wxLEFT , 5 ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
bupperSizer - > Add ( bSizerMessages , 1 , wxBOTTOM | wxEXPAND | wxRIGHT | wxTOP , 3 ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
bercSizer - > Add ( bupperSizer , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 8 ) ;
2019-08-07 19:01:50 +00:00
2018-07-18 16:59:05 +00:00
m_textMarkers = new wxStaticText ( m_PanelERC , wxID_ANY , _ ( " Error List: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-05-26 04:36:44 +00:00
m_textMarkers - > Wrap ( - 1 ) ;
2018-08-01 19:08:12 +00:00
m_textMarkers - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
bercSizer - > Add ( m_textMarkers , 0 , wxLEFT | wxRIGHT , 20 ) ;
2019-08-07 19:01:50 +00:00
2018-08-02 17:00:41 +00:00
m_MarkersList = new ERC_HTML_LISTFRAME ( m_PanelERC , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxHW_SCROLLBAR_AUTO | wxBORDER_SIMPLE ) ;
2018-04-06 13:46:16 +00:00
bercSizer - > Add ( m_MarkersList , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 8 ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
m_PanelERC - > SetSizer ( bercSizer ) ;
m_PanelERC - > Layout ( ) ;
bercSizer - > Fit ( m_PanelERC ) ;
2017-12-28 19:17:47 +00:00
m_NoteBook - > AddPage ( m_PanelERC , _ ( " ERC " ) , true ) ;
2013-05-26 04:36:44 +00:00
m_PanelERCOptions = new wxPanel ( m_NoteBook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * m_panelMatrixSizer ;
m_panelMatrixSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
wxStaticBoxSizer * sbSizer2 ;
2018-07-18 16:59:05 +00:00
sbSizer2 = new wxStaticBoxSizer ( new wxStaticBox ( m_PanelERCOptions , wxID_ANY , _ ( " Label to Label Connections " ) ) , wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
m_cbTestSimilarLabels = new wxCheckBox ( sbSizer2 - > GetStaticBox ( ) , wxID_ANY , _ ( " Test similar labels " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbTestSimilarLabels - > SetToolTip ( _ ( " Similar labels are labels (inside a sheet) which differs only by upper/lower case " ) ) ;
2019-08-07 19:01:50 +00:00
sbSizer2 - > Add ( m_cbTestSimilarLabels , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2018-04-06 13:46:16 +00:00
m_cbTestUniqueGlbLabels = new wxCheckBox ( sbSizer2 - > GetStaticBox ( ) , wxID_ANY , _ ( " Test single instances of global labels " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_cbTestUniqueGlbLabels - > SetToolTip ( _ ( " Global labels are used to connect signals across the full hierarchy. \n They are expected to be at least two labels with the same name. " ) ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
sbSizer2 - > Add ( m_cbTestUniqueGlbLabels , 0 , wxBOTTOM | wxLEFT | wxRIGHT , 5 ) ;
2019-08-07 19:01:50 +00:00
m_panelMatrixSizer - > Add ( sbSizer2 , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2018-04-06 13:46:16 +00:00
wxStaticBoxSizer * sbSizer3 ;
2018-07-18 16:59:05 +00:00
sbSizer3 = new wxStaticBoxSizer ( new wxStaticBox ( m_PanelERCOptions , wxID_ANY , _ ( " Pin to Pin Connections " ) ) , wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
m_matrixPanel = new wxPanel ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
sbSizer3 - > Add ( m_matrixPanel , 1 , wxEXPAND | wxALL , 5 ) ;
2019-08-07 19:01:50 +00:00
2018-04-06 13:46:16 +00:00
m_panelMatrixSizer - > Add ( sbSizer3 , 0 , wxALL | wxEXPAND , 5 ) ;
2019-08-07 19:01:50 +00:00
2019-03-11 21:32:05 +00:00
wxStaticBoxSizer * sbSizer31 ;
sbSizer31 = new wxStaticBoxSizer ( new wxStaticBox ( m_PanelERCOptions , wxID_ANY , _ ( " Bus Connections " ) ) , wxVERTICAL ) ;
2019-08-07 19:01:50 +00:00
2019-03-11 21:32:05 +00:00
m_cbCheckBusToNetConflicts = new wxCheckBox ( sbSizer31 - > GetStaticBox ( ) , wxID_ANY , _ ( " Check that bus wires are not connected to hierarchical net pins and vice versa " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-08-07 19:01:50 +00:00
sbSizer31 - > Add ( m_cbCheckBusToNetConflicts , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-03-11 21:32:05 +00:00
m_cbCheckBusToBusConflicts = new wxCheckBox ( sbSizer31 - > GetStaticBox ( ) , wxID_ANY , _ ( " Check that bus-to-bus connections have shared members " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-08-07 19:01:50 +00:00
sbSizer31 - > Add ( m_cbCheckBusToBusConflicts , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-03-11 21:32:05 +00:00
m_cbCheckBusEntries = new wxCheckBox ( sbSizer31 - > GetStaticBox ( ) , wxID_ANY , _ ( " Check that nets are members of buses they graphically connect to " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-08-07 19:01:50 +00:00
sbSizer31 - > Add ( m_cbCheckBusEntries , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-03-11 21:32:05 +00:00
m_cbCheckBusDriverConflicts = new wxCheckBox ( sbSizer31 - > GetStaticBox ( ) , wxID_ANY , _ ( " Check buses for conflicting drivers " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-08-07 19:01:50 +00:00
sbSizer31 - > Add ( m_cbCheckBusDriverConflicts , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-03-11 21:32:05 +00:00
m_panelMatrixSizer - > Add ( sbSizer31 , 0 , wxALL | wxEXPAND , 5 ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
m_PanelERCOptions - > SetSizer ( m_panelMatrixSizer ) ;
m_PanelERCOptions - > Layout ( ) ;
m_panelMatrixSizer - > Fit ( m_PanelERCOptions ) ;
2017-12-28 19:17:47 +00:00
m_NoteBook - > AddPage ( m_PanelERCOptions , _ ( " Options " ) , false ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
bSizer1 - > Add ( m_NoteBook , 1 , wxEXPAND | wxALL , 5 ) ;
2019-08-07 19:01:50 +00:00
m_buttonsSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-02-10 03:16:36 +00:00
m_buttondelmarkers = new wxButton ( this , ID_ERASE_DRC_MARKERS , _ ( " Delete Markers " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-08-07 19:01:50 +00:00
m_buttonsSizer - > Add ( m_buttondelmarkers , 0 , wxALL | wxEXPAND , 5 ) ;
m_ResetOptButton = new wxButton ( this , ID_RESET_MATRIX , _ ( " Reset to Defaults " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonsSizer - > Add ( m_ResetOptButton , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_buttonsSizer - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2019-02-10 03:16:36 +00:00
m_sdbSizer1 = new wxStdDialogButtonSizer ( ) ;
m_sdbSizer1OK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1OK ) ;
m_sdbSizer1Cancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer1 - > AddButton ( m_sdbSizer1Cancel ) ;
m_sdbSizer1 - > Realize ( ) ;
2019-08-07 19:01:50 +00:00
m_buttonsSizer - > Add ( m_sdbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
bSizer1 - > Add ( m_buttonsSizer , 0 , wxEXPAND | wxLEFT , 10 ) ;
2013-05-26 04:36:44 +00:00
this - > SetSizer ( bSizer1 ) ;
this - > Layout ( ) ;
2019-08-07 19:01:50 +00:00
bSizer1 - > Fit ( this ) ;
2015-09-10 12:03:16 +00:00
// Connect Events
2018-08-06 20:30:49 +00:00
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_ERC_BASE : : OnCloseErcDialog ) ) ;
2019-08-07 19:01:50 +00:00
m_NoteBook - > Connect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_ERC_BASE : : OnUpdateUI ) , NULL , this ) ;
2015-09-10 12:03:16 +00:00
m_MarkersList - > Connect ( wxEVT_COMMAND_HTML_LINK_CLICKED , wxHtmlLinkEventHandler ( DIALOG_ERC_BASE : : OnLeftClickMarkersList ) , NULL , this ) ;
m_MarkersList - > Connect ( wxEVT_LEFT_DCLICK , wxMouseEventHandler ( DIALOG_ERC_BASE : : OnLeftDblClickMarkersList ) , NULL , this ) ;
m_buttondelmarkers - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnEraseDrcMarkersClick ) , NULL , this ) ;
2019-08-07 19:01:50 +00:00
m_ResetOptButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnResetMatrixClick ) , NULL , this ) ;
2018-08-06 20:30:49 +00:00
m_sdbSizer1Cancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnButtonCloseClick ) , NULL , this ) ;
2018-07-27 13:52:30 +00:00
m_sdbSizer1OK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnErcCmpClick ) , NULL , this ) ;
2013-05-26 04:36:44 +00:00
}
DIALOG_ERC_BASE : : ~ DIALOG_ERC_BASE ( )
{
2015-09-10 12:03:16 +00:00
// Disconnect Events
2018-08-06 20:30:49 +00:00
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_ERC_BASE : : OnCloseErcDialog ) ) ;
2019-08-07 19:01:50 +00:00
m_NoteBook - > Disconnect ( wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( DIALOG_ERC_BASE : : OnUpdateUI ) , NULL , this ) ;
2015-09-10 12:03:16 +00:00
m_MarkersList - > Disconnect ( wxEVT_COMMAND_HTML_LINK_CLICKED , wxHtmlLinkEventHandler ( DIALOG_ERC_BASE : : OnLeftClickMarkersList ) , NULL , this ) ;
m_MarkersList - > Disconnect ( wxEVT_LEFT_DCLICK , wxMouseEventHandler ( DIALOG_ERC_BASE : : OnLeftDblClickMarkersList ) , NULL , this ) ;
m_buttondelmarkers - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnEraseDrcMarkersClick ) , NULL , this ) ;
2019-08-07 19:01:50 +00:00
m_ResetOptButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnResetMatrixClick ) , NULL , this ) ;
2018-08-06 20:30:49 +00:00
m_sdbSizer1Cancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnButtonCloseClick ) , NULL , this ) ;
2018-07-27 13:52:30 +00:00
m_sdbSizer1OK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_ERC_BASE : : OnErcCmpClick ) , NULL , this ) ;
2019-08-07 19:01:50 +00:00
2013-05-26 04:36:44 +00:00
}