From dbd72122e14997fba4d9e8d1763dbce1a13007b4 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Mon, 9 Dec 2013 16:48:09 -0600 Subject: [PATCH] dialog perfection does not come easily. --- eeschema/dialogs/dialog_lib_new_component.fbp | 8 ++++---- eeschema/dialogs/dialog_lib_new_component_base.cpp | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/eeschema/dialogs/dialog_lib_new_component.fbp b/eeschema/dialogs/dialog_lib_new_component.fbp index ae80344d2d..611c679807 100644 --- a/eeschema/dialogs/dialog_lib_new_component.fbp +++ b/eeschema/dialogs/dialog_lib_new_component.fbp @@ -516,7 +516,7 @@ wxFILTER_NONE wxDefaultValidator - + U @@ -1315,7 +1315,7 @@ 1 0 - 0 + 1 1 1 @@ -1403,7 +1403,7 @@ 1 0 - 0 + 1 1 1 @@ -1491,7 +1491,7 @@ 1 0 - 0 + 1 1 1 diff --git a/eeschema/dialogs/dialog_lib_new_component_base.cpp b/eeschema/dialogs/dialog_lib_new_component_base.cpp index 4c5d888a4b..0bc9fe1253 100644 --- a/eeschema/dialogs/dialog_lib_new_component_base.cpp +++ b/eeschema/dialogs/dialog_lib_new_component_base.cpp @@ -45,7 +45,7 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, m_staticText9->Wrap( -1 ); fgSizer31->Add( m_staticText9, 0, wxALL, 5 ); - m_textReference = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxDefaultSize, 0 ); fgSizer31->Add( m_textReference, 0, wxALL|wxEXPAND, 5 ); m_staticText10 = new wxStaticText( this, wxID_ANY, _("Number of units per package:"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -107,12 +107,15 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, bSizer19 = new wxBoxSizer( wxVERTICAL ); m_checkShowPinNumber = new wxCheckBox( this, wxID_ANY, _("Show pin number text"), wxDefaultPosition, wxDefaultSize, 0 ); + m_checkShowPinNumber->SetValue(true); bSizer19->Add( m_checkShowPinNumber, 0, wxALL, 5 ); m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name text"), wxDefaultPosition, wxDefaultSize, 0 ); + m_checkShowPinName->SetValue(true); bSizer19->Add( m_checkShowPinName, 0, wxALL, 5 ); m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name inside"), wxDefaultPosition, wxDefaultSize, 0 ); + m_checkShowPinNameInside->SetValue(true); bSizer19->Add( m_checkShowPinNameInside, 0, wxALL, 5 );