diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index ab3b530361..1974c73256 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -169,7 +169,6 @@ set( COMMON_DLG_SRCS
dialogs/dialog_hotkey_list.cpp
dialogs/dialog_image_editor.cpp
dialogs/dialog_image_editor_base.cpp
- dialogs/dialog_list_selector_base.cpp
dialogs/dialog_migrate_settings.cpp
dialogs/dialog_migrate_settings_base.cpp
dialogs/dialog_page_settings_base.cpp
@@ -177,6 +176,8 @@ set( COMMON_DLG_SRCS
dialogs/dialog_print_generic.cpp
dialogs/dialog_print_generic_base.cpp
dialogs/dialog_text_entry.cpp
+ dialogs/eda_list_dialog.cpp
+ dialogs/eda_list_dialog_base.cpp
dialogs/panel_color_settings_base.cpp
dialogs/panel_color_settings.cpp
dialogs/panel_common_settings.cpp
@@ -283,7 +284,6 @@ set( COMMON_SRCS
confirm.cpp
cursor_store.cpp
dialog_shim.cpp
- displlst.cpp
gr_text.cpp
dsnlexer.cpp
eagle_parser.cpp
diff --git a/common/dialogs/dialog_list_selector_base.fbp b/common/dialogs/dialog_list_selector_base.fbp
deleted file mode 100644
index d7b201114f..0000000000
--- a/common/dialogs/dialog_list_selector_base.fbp
+++ /dev/null
@@ -1,640 +0,0 @@
-
-
-
-
-
diff --git a/common/displlst.cpp b/common/dialogs/eda_list_dialog.cpp
similarity index 79%
rename from common/displlst.cpp
rename to common/dialogs/eda_list_dialog.cpp
index 021ef4bc0c..50c3eaa54a 100644
--- a/common/displlst.cpp
+++ b/common/dialogs/eda_list_dialog.cpp
@@ -40,14 +40,10 @@ static int DEFAULT_COL_WIDTHS[] = { 200, 600 };
EDA_LIST_DIALOG::EDA_LIST_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& aTitle,
const wxArrayString& aItemHeaders,
const std::vector& aItemList,
- const wxString& aSelection,
- void( *aCallBackFunction )( wxString&, void* ),
- void* aCallBackFunctionData ) :
+ const wxString& aSelection ) :
EDA_LIST_DIALOG_BASE( aParent, wxID_ANY, aTitle )
{
- m_cb_func = aCallBackFunction;
- m_cb_data = aCallBackFunctionData;
- m_itemsListCp = &aItemList;
+ m_itemsList = &aItemList;
m_filterBox->SetHint( _( "Filter" ) );
@@ -68,35 +64,28 @@ EDA_LIST_DIALOG::EDA_LIST_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& aTitl
}
-void EDA_LIST_DIALOG::initDialog( const wxArrayString& aItemHeaders, const wxString& aSelection)
+void EDA_LIST_DIALOG::initDialog( const wxArrayString& aItemHeaders, const wxString& aSelection )
{
for( unsigned i = 0; i < aItemHeaders.Count(); i++ )
+ {
m_listBox->InsertColumn( i, aItemHeaders.Item( i ),
wxLIST_FORMAT_LEFT, DEFAULT_COL_WIDTHS[ i ] );
-
- InsertItems( *m_itemsListCp, 0 );
-
- if( m_cb_func == NULL )
- {
- m_messages->Show( false );
- m_staticTextMsg->Show( false );
}
+ InsertItems( *m_itemsList, 0 );
+
if( !aSelection.IsEmpty() )
{
- for( unsigned row = 0; row < m_itemsListCp->size(); ++row )
+ long sel = m_listBox->FindItem( -1, aSelection );
+
+ if( sel != wxNOT_FOUND )
{
- if( (*m_itemsListCp)[row][0] == aSelection )
- {
- m_listBox->SetItemState( row, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED );
+ m_listBox->SetItemState( sel, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED );
- // Set to a small size so EnsureVisible() won't be foiled by later additions.
- // ListBox will expand to fit later.
- m_listBox->SetSize( m_listBox->GetSize().GetX(), 100 );
- m_listBox->EnsureVisible( row );
-
- break;
- }
+ // Set to a small size so EnsureVisible() won't be foiled by later additions.
+ // ListBox will expand to fit later.
+ m_listBox->SetSize( m_listBox->GetSize().GetX(), 100 );
+ m_listBox->EnsureVisible( sel );
}
}
}
@@ -124,14 +113,12 @@ void EDA_LIST_DIALOG::textChangeInFilterBox( wxCommandEvent& event )
m_listBox->DeleteAllItems();
- for( unsigned i = 0; i < m_itemsListCp->size(); i++ )
+ for( const wxArrayString& row : *m_itemsList )
{
- itemName = (*m_itemsListCp)[i].Item( 0 );
+ itemName = row.Item( 0 );
if( itemName.MakeLower().Matches( filter ) )
- {
- Append( (*m_itemsListCp)[i] );
- }
+ Append( row );
}
sortList();
@@ -169,9 +156,7 @@ void EDA_LIST_DIALOG::Append( const wxArrayString& itemList )
// Adding the next columns content
for( unsigned i = 1; i < itemList.size(); i++ )
- {
m_listBox->SetItem( itemIndex, i, itemList[i] );
- }
}
@@ -208,18 +193,6 @@ void EDA_LIST_DIALOG::InsertItems( const std::vector< wxArrayString >& itemList,
}
-void EDA_LIST_DIALOG::onListItemSelected( wxListEvent& event )
-{
- if( m_cb_func )
- {
- m_messages->Clear();
- wxString text = GetTextSelection();
- m_cb_func( text, m_cb_data );
- m_messages->WriteText( text );
- }
-}
-
-
void EDA_LIST_DIALOG::onListItemActivated( wxListEvent& event )
{
EndModal( wxID_OK );
diff --git a/common/dialogs/dialog_list_selector_base.cpp b/common/dialogs/eda_list_dialog_base.cpp
similarity index 74%
rename from common/dialogs/dialog_list_selector_base.cpp
rename to common/dialogs/eda_list_dialog_base.cpp
index 568db90666..25631f7b08 100644
--- a/common/dialogs/dialog_list_selector_base.cpp
+++ b/common/dialogs/eda_list_dialog_base.cpp
@@ -1,67 +1,57 @@
///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version Aug 2 2018)
+// C++ code generated with wxFormBuilder (version Oct 26 2018)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
-#include "dialog_list_selector_base.h"
+#include "eda_list_dialog_base.h"
///////////////////////////////////////////////////////////////////////////
EDA_LIST_DIALOG_BASE::EDA_LIST_DIALOG_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* bSizerMain;
bSizerMain = new wxBoxSizer( wxVERTICAL );
-
+
wxBoxSizer* bMargins;
bMargins = new wxBoxSizer( wxVERTICAL );
-
+
m_listLabel = new wxStaticText( this, wxID_ANY, _("Items:"), wxDefaultPosition, wxDefaultSize, 0 );
m_listLabel->Wrap( -1 );
bMargins->Add( m_listLabel, 0, wxALL, 5 );
-
+
m_listBox = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES|wxALWAYS_SHOW_SB|wxBORDER_SIMPLE|wxVSCROLL );
m_listBox->SetMinSize( wxSize( -1,200 ) );
-
+
bMargins->Add( m_listBox, 3, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
-
+
m_filterBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
bMargins->Add( m_filterBox, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
-
- m_staticTextMsg = new wxStaticText( this, wxID_ANY, _("Messages:"), wxDefaultPosition, wxDefaultSize, 0 );
- m_staticTextMsg->Wrap( -1 );
- bMargins->Add( m_staticTextMsg, 0, wxRIGHT|wxLEFT, 5 );
-
- m_messages = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
- m_messages->SetMinSize( wxSize( -1,80 ) );
-
- bMargins->Add( m_messages, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
-
-
+
+
bSizerMain->Add( bMargins, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
-
+
m_sdbSizer = new wxStdDialogButtonSizer();
m_sdbSizerOK = new wxButton( this, wxID_OK );
m_sdbSizer->AddButton( m_sdbSizerOK );
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
m_sdbSizer->AddButton( m_sdbSizerCancel );
m_sdbSizer->Realize();
-
+
bSizerMain->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
-
-
+
+
this->SetSizer( bSizerMain );
this->Layout();
bSizerMain->Fit( this );
-
+
this->Centre( wxBOTH );
-
+
// Connect Events
m_listBox->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( EDA_LIST_DIALOG_BASE::onListItemActivated ), NULL, this );
- m_listBox->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( EDA_LIST_DIALOG_BASE::onListItemSelected ), NULL, this );
m_filterBox->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EDA_LIST_DIALOG_BASE::textChangeInFilterBox ), NULL, this );
}
@@ -69,7 +59,6 @@ EDA_LIST_DIALOG_BASE::~EDA_LIST_DIALOG_BASE()
{
// Disconnect Events
m_listBox->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( EDA_LIST_DIALOG_BASE::onListItemActivated ), NULL, this );
- m_listBox->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( EDA_LIST_DIALOG_BASE::onListItemSelected ), NULL, this );
m_filterBox->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EDA_LIST_DIALOG_BASE::textChangeInFilterBox ), NULL, this );
-
+
}
diff --git a/common/dialogs/eda_list_dialog_base.fbp b/common/dialogs/eda_list_dialog_base.fbp
new file mode 100644
index 0000000000..58a6f2037f
--- /dev/null
+++ b/common/dialogs/eda_list_dialog_base.fbp
@@ -0,0 +1,282 @@
+
+
+
+
+
+ C++
+ 1
+ source_name
+ 0
+ 0
+ res
+ UTF-8
+ connect
+ eda_list_dialog_base
+ 1000
+ none
+
+ 1
+ eda_list_dialog_base
+
+ .
+
+ 1
+ 1
+ 1
+ 1
+ UI
+ 0
+ 0
+
+ 0
+ wxAUI_MGR_DEFAULT
+
+ wxBOTH
+
+ 1
+ 1
+ decl_pure_virtual
+
+
+
+ 0
+ wxID_ANY
+
+
+ EDA_LIST_DIALOG_BASE
+
+
+ wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
+ DIALOG_SHIM; dialog_shim.h
+
+
+
+
+
+
+
+ bSizerMain
+ wxVERTICAL
+ none
+
+ 5
+ wxEXPAND|wxTOP|wxRIGHT|wxLEFT
+ 1
+
+
+ bMargins
+ wxVERTICAL
+ none
+
+ 5
+ wxALL
+ 0
+
+ 1
+ 1
+ 1
+ 1
+
+
+
+
+
+
+
+ 1
+ 0
+ 1
+
+ 1
+ 0
+ Dock
+ 0
+ Left
+ 1
+
+ 1
+
+ 0
+ 0
+ wxID_ANY
+ Items:
+ 0
+
+ 0
+
+
+ 0
+
+ 1
+ m_listLabel
+ 1
+
+
+ protected
+ 1
+
+ Resizable
+ 1
+
+
+
+ 0
+
+
+
+
+ -1
+
+
+
+ 5
+ wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND
+ 3
+
+ 1
+ 1
+ 1
+ 1
+
+
+
+
+
+
+
+ 1
+ 0
+ 1
+
+ 1
+ 0
+ Dock
+ 0
+ Left
+ 1
+
+ 1
+
+ 0
+ 0
+ wxID_ANY
+
+ 0
+
+
+ 0
+ -1,200
+ 1
+ m_listBox
+ 1
+
+
+ protected
+ 1
+
+ Resizable
+ 1
+
+ wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES
+
+ 0
+
+
+ wxFILTER_NONE
+ wxDefaultValidator
+
+
+
+ wxALWAYS_SHOW_SB|wxBORDER_SIMPLE|wxVSCROLL
+ onListItemActivated
+
+
+
+ 5
+ wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT
+ 0
+
+ 1
+ 1
+ 1
+ 1
+
+
+
+
+
+
+
+ 1
+ 0
+ 1
+
+ 1
+ 0
+ Dock
+ 0
+ Left
+ 1
+
+ 1
+
+ 0
+ 0
+ wxID_ANY
+
+ 0
+
+
+
+ 0
+
+ 1
+ m_filterBox
+ 1
+
+
+ protected
+ 1
+
+ Resizable
+ 1
+
+
+
+ 0
+
+
+ wxFILTER_NONE
+ wxDefaultValidator
+
+
+
+
+
+ textChangeInFilterBox
+
+
+
+
+
+ 5
+ wxALL|wxEXPAND
+ 0
+
+ 0
+ 1
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+
+ m_sdbSizer
+ protected
+
+
+
+
+
+
diff --git a/common/dialogs/dialog_list_selector_base.h b/common/dialogs/eda_list_dialog_base.h
similarity index 80%
rename from common/dialogs/dialog_list_selector_base.h
rename to common/dialogs/eda_list_dialog_base.h
index 593778d45e..7cdb4d8307 100644
--- a/common/dialogs/dialog_list_selector_base.h
+++ b/common/dialogs/eda_list_dialog_base.h
@@ -1,12 +1,11 @@
///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version Aug 2 2018)
+// C++ code generated with wxFormBuilder (version Oct 26 2018)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
-#ifndef __DIALOG_LIST_SELECTOR_BASE_H__
-#define __DIALOG_LIST_SELECTOR_BASE_H__
+#pragma once
#include
#include
@@ -33,28 +32,24 @@
class EDA_LIST_DIALOG_BASE : public DIALOG_SHIM
{
private:
-
+
protected:
wxStaticText* m_listLabel;
wxListCtrl* m_listBox;
wxTextCtrl* m_filterBox;
- wxStaticText* m_staticTextMsg;
- wxTextCtrl* m_messages;
wxStdDialogButtonSizer* m_sdbSizer;
wxButton* m_sdbSizerOK;
wxButton* m_sdbSizerCancel;
-
+
// Virtual event handlers, overide them in your derived class
virtual void onListItemActivated( wxListEvent& event ) = 0;
- virtual void onListItemSelected( wxListEvent& event ) = 0;
virtual void textChangeInFilterBox( wxCommandEvent& event ) = 0;
-
-
+
+
public:
-
- EDA_LIST_DIALOG_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
+
+ EDA_LIST_DIALOG_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
~EDA_LIST_DIALOG_BASE();
-
+
};
-#endif //__DIALOG_LIST_SELECTOR_BASE_H__
diff --git a/common/dialogs/panel_setup_netclasses.cpp b/common/dialogs/panel_setup_netclasses.cpp
index 2f4a6e6ba0..f487af2635 100644
--- a/common/dialogs/panel_setup_netclasses.cpp
+++ b/common/dialogs/panel_setup_netclasses.cpp
@@ -47,6 +47,7 @@ enum {
GRID_DIFF_PAIR_VIA_GAP
};
+#define NO_NETCLASS_ASSIGNMENT _( "" )
PANEL_SETUP_NETCLASSES::PANEL_SETUP_NETCLASSES( PAGED_DIALOG* aParent, NETCLASSES* aNetclasses,
const std::vector& aCandidateNetNames ) :
@@ -153,7 +154,7 @@ bool PANEL_SETUP_NETCLASSES::TransferDataToWindow()
std::map staleNetMap;
for( const wxString& candidate : m_candidateNetNames )
- netToNetclassMap[ candidate ] = "Default";
+ netToNetclassMap[ candidate ] = wxEmptyString;
if( m_netclassGrid->GetNumberRows() )
m_netclassGrid->DeleteRows( 0, m_netclassGrid->GetNumberRows() );
@@ -232,6 +233,8 @@ void PANEL_SETUP_NETCLASSES::rebuildNetclassDropdowns()
wxArrayString netclassNames;
+ netclassNames.emplace_back( NO_NETCLASS_ASSIGNMENT );
+
for( int ii = 0; ii < m_netclassGrid->GetNumberRows(); ii++ )
{
wxString netclassName = m_netclassGrid->GetCellValue( ii, GRID_NAME );
@@ -294,7 +297,7 @@ bool PANEL_SETUP_NETCLASSES::TransferDataFromWindow()
const wxString& netname = m_membershipGrid->GetCellValue( row, 0 );
const wxString& classname = m_membershipGrid->GetCellValue( row, 1 );
- if( classname != "Default" )
+ if( classname != NO_NETCLASS_ASSIGNMENT )
{
const NETCLASSPTR& nc = m_netclasses->Find( classname );
diff --git a/eeschema/eeschema_config.cpp b/eeschema/eeschema_config.cpp
index 43adcabe06..c83d173b2b 100644
--- a/eeschema/eeschema_config.cpp
+++ b/eeschema/eeschema_config.cpp
@@ -31,14 +31,12 @@
#include
#include
#include
-#include
-#include
-#include
#include
#include
#include
#include
#include
+#include
#include
#include
#include
@@ -47,13 +45,10 @@
#include
#include
#include
-#include
#include
#include
-#include
#include
#include "erc.h"
-#include // For some default values
#define FieldNameTemplatesKey wxT( "FieldNameTemplates" )
@@ -274,6 +269,7 @@ void SCH_EDIT_FRAME::ShowSchematicSetupDialog( const wxString& aInitialPage )
if( dlg.ShowQuasiModal() == wxID_OK )
{
+ Prj().GetProjectFile().NetSettings().ResolveNetClassAssignments();
SaveProjectSettings();
GetCanvas()->Refresh();
diff --git a/eeschema/lib_pin.cpp b/eeschema/lib_pin.cpp
index dac616eb3a..e73a352898 100644
--- a/eeschema/lib_pin.cpp
+++ b/eeschema/lib_pin.cpp
@@ -1491,7 +1491,7 @@ void LIB_PIN::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vectorGetConnectionForPin( this, frame->GetCurrentSheet() );
if( conn )
- conn->AppendDebugInfoToMsgPanel( aList );
+ conn->AppendInfoToMsgPanel( aList );
#endif
}
diff --git a/eeschema/libedit/libedit.cpp b/eeschema/libedit/libedit.cpp
index 061f251090..8d1eef3a11 100644
--- a/eeschema/libedit/libedit.cpp
+++ b/eeschema/libedit/libedit.cpp
@@ -90,7 +90,7 @@ wxString LIB_EDIT_FRAME::SelectLibraryFromList()
std::vector< wxString > libNicknames = prj.SchSymbolLibTable()->GetLogicalLibs();
// Conversion from wxArrayString to vector of ArrayString
- for( const auto& name : libNicknames )
+ for( const wxString& name : libNicknames )
{
wxArrayString item;
diff --git a/eeschema/sch_bus_entry.cpp b/eeschema/sch_bus_entry.cpp
index 3e8ccb5aae..a30e3b3ff6 100644
--- a/eeschema/sch_bus_entry.cpp
+++ b/eeschema/sch_bus_entry.cpp
@@ -23,15 +23,8 @@
*/
#include
-#include
-#include
#include
-#include
-#include
-#include
#include
-#include
-#include
#include
#include
#include
@@ -39,7 +32,6 @@
#include
#include
#include "sch_painter.h"
-#include // For some default values
SCH_BUS_ENTRY_BASE::SCH_BUS_ENTRY_BASE( KICAD_T aType, const wxPoint& pos, bool aFlipY ) :
@@ -398,13 +390,7 @@ void SCH_BUS_ENTRY_BASE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, MSG_PANEL_ITEM
return;
if( auto conn = Connection( frame->GetCurrentSheet() ) )
- {
-#if defined(DEBUG)
- conn->AppendDebugInfoToMsgPanel( aList );
-#else
conn->AppendInfoToMsgPanel( aList );
-#endif
- }
}
diff --git a/eeschema/sch_connection.cpp b/eeschema/sch_connection.cpp
index 613c9edab3..2af98db3ad 100644
--- a/eeschema/sch_connection.cpp
+++ b/eeschema/sch_connection.cpp
@@ -327,9 +327,6 @@ void SCH_CONNECTION::SetSuffix( const wxString& aSuffix )
void SCH_CONNECTION::AppendInfoToMsgPanel( MSG_PANEL_ITEMS& aList ) const
{
- if( !ADVANCED_CFG::GetCfg().m_realTimeConnectivity || !CONNECTION_GRAPH::m_allowRealTime )
- return;
-
wxString msg, group_name;
std::vector group_members;
@@ -374,19 +371,13 @@ void SCH_CONNECTION::AppendInfoToMsgPanel( MSG_PANEL_ITEMS& aList ) const
}
}
}
-}
+#if defined(DEBUG)
+ // These messages are not flagged as translatable, because they are only debug messages
-void SCH_CONNECTION::AppendDebugInfoToMsgPanel( MSG_PANEL_ITEMS& aList ) const
-{
if( !ADVANCED_CFG::GetCfg().m_realTimeConnectivity || !CONNECTION_GRAPH::m_allowRealTime )
return;
- // These messages are not flagged as translatable, because they are only debug messages
- wxString msg;
-
- AppendInfoToMsgPanel( aList );
-
if( IsBus() )
{
msg.Printf( "%d", m_bus_code );
@@ -401,6 +392,7 @@ void SCH_CONNECTION::AppendDebugInfoToMsgPanel( MSG_PANEL_ITEMS& aList ) const
msg.Printf( "%s at %p", driver->GetSelectMenuText( EDA_UNITS::MILLIMETRES ), driver );
aList.push_back( MSG_PANEL_ITEM( "Connection Source", msg, RED ) );
}
+#endif
}
diff --git a/eeschema/sch_connection.h b/eeschema/sch_connection.h
index c9ab585c8d..6ff75bb938 100644
--- a/eeschema/sch_connection.h
+++ b/eeschema/sch_connection.h
@@ -280,11 +280,6 @@ public:
*/
void AppendInfoToMsgPanel( MSG_PANEL_ITEMS& aList ) const;
- /**
- * Adds extended debug information about the connection object to aList
- */
- void AppendDebugInfoToMsgPanel( MSG_PANEL_ITEMS& aList ) const;
-
/**
* Test if \a aLabel has a bus notation.
*
diff --git a/eeschema/sch_line.cpp b/eeschema/sch_line.cpp
index 7540e4d1b0..bc9bafd87a 100644
--- a/eeschema/sch_line.cpp
+++ b/eeschema/sch_line.cpp
@@ -22,26 +22,21 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-/**
- * @file sch_line.cpp
- * @brief Class SCH_LINE implementation
- */
-
#include
-#include
-#include
-#include
+//#include
+//#include
+//#include
#include
#include
-#include
-#include
-#include
+//#include
+//#include
#include
#include
#include
#include
-#include
#include
+#include
+#include
SCH_LINE::SCH_LINE( const wxPoint& pos, int layer ) :
@@ -778,19 +773,21 @@ void SCH_LINE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, MSG_PANEL_ITEMS& aList )
SCH_EDIT_FRAME* frame = dynamic_cast( aFrame );
- if( !frame )
- return;
-
- if( auto conn = Connection( frame->GetCurrentSheet() ) )
+ if( frame )
{
-#if defined(DEBUG)
- conn->AppendDebugInfoToMsgPanel( aList );
+ if( SCH_CONNECTION* conn = Connection( frame->GetCurrentSheet() ) )
+ {
+ conn->AppendInfoToMsgPanel( aList );
- msg.Printf( "%zu", m_connected_items.size() );
- aList.push_back( MSG_PANEL_ITEM( _( "Connections" ), msg, BROWN ) );
-#else
- conn->AppendInfoToMsgPanel( aList );
-#endif
+ NET_SETTINGS& netSettings = Schematic()->Prj().GetProjectFile().NetSettings();
+ const wxString& netname = conn->Name( true );
+
+ if( netSettings.m_NetClassAssignments.count( netname ) )
+ {
+ const wxString& netclassName = netSettings.m_NetClassAssignments[ netname ];
+ aList.push_back( MSG_PANEL_ITEM( _( "Assigned Netclass" ), netclassName, DARKRED ) );
+ }
+ }
}
}
diff --git a/eeschema/sch_text.cpp b/eeschema/sch_text.cpp
index 5722327b9d..7cab5c13c7 100644
--- a/eeschema/sch_text.cpp
+++ b/eeschema/sch_text.cpp
@@ -29,17 +29,12 @@
*/
#include
-#include
-#include
-#include
#include
#include
#include
#include
#include
#include
-#include