From bb872dd5832523ce12fe212220437a27982f9472 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Mon, 9 Dec 2013 16:39:12 -0600 Subject: [PATCH] spinners initial values and limits. --- common/footprint_info.cpp | 3 ++- eeschema/dialogs/dialog_lib_new_component.fbp | 14 +++++++------- eeschema/dialogs/dialog_lib_new_component_base.cpp | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/common/footprint_info.cpp b/common/footprint_info.cpp index b88759df82..105bd19727 100644 --- a/common/footprint_info.cpp +++ b/common/footprint_info.cpp @@ -2,7 +2,8 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2011 Jean-Pierre Charras, - * Copyright (C) 1992-2011 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2013 SoftPLC Corporation, Dick Hollenbeck + * Copyright (C) 1992-2013 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/eeschema/dialogs/dialog_lib_new_component.fbp b/eeschema/dialogs/dialog_lib_new_component.fbp index 9eb55f1c65..ae80344d2d 100644 --- a/eeschema/dialogs/dialog_lib_new_component.fbp +++ b/eeschema/dialogs/dialog_lib_new_component.fbp @@ -665,11 +665,11 @@ 0 wxID_ANY 0 - 10 + 26 0 - 0 + 1 0 @@ -688,7 +688,7 @@ 0 - + 1 @@ -1231,12 +1231,12 @@ 0 0 wxID_ANY - 0 - 10 + 40 + 100 0 - 0 + 1 0 @@ -1255,7 +1255,7 @@ 0 - + 40 diff --git a/eeschema/dialogs/dialog_lib_new_component_base.cpp b/eeschema/dialogs/dialog_lib_new_component_base.cpp index 34f888cd10..4c5d888a4b 100644 --- a/eeschema/dialogs/dialog_lib_new_component_base.cpp +++ b/eeschema/dialogs/dialog_lib_new_component_base.cpp @@ -52,7 +52,7 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, m_staticText10->Wrap( -1 ); fgSizer31->Add( m_staticText10, 0, wxALL, 5 ); - m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10, 0 ); + m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 26, 0 ); fgSizer31->Add( m_spinPartCount, 0, wxALL, 5 ); @@ -97,7 +97,7 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, m_staticText12->Wrap( -1 ); fgSizer4->Add( m_staticText12, 0, wxALL, 5 ); - m_spinPinTextPosition = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10, 0 ); + m_spinPinTextPosition = new wxSpinCtrl( this, wxID_ANY, wxT("40"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 100, 40 ); fgSizer4->Add( m_spinPinTextPosition, 0, wxALL, 5 );