From 4e48640f87d5d529336d147b60268723c4e563a4 Mon Sep 17 00:00:00 2001 From: charras Date: Fri, 12 Feb 2010 08:53:13 +0000 Subject: [PATCH] Fixing vertical size of the design rules dialog to meet our minimal screen size requirement (768 pixels height) --- common/build_version.cpp | 2 +- pcbnew/dialog_design_rules_base.cpp | 16 ++++++++-------- pcbnew/dialog_design_rules_base.fbp | 16 ++++++++-------- version.txt | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/common/build_version.cpp b/common/build_version.cpp index 5830d6d605..70f1c1ae98 100644 --- a/common/build_version.cpp +++ b/common/build_version.cpp @@ -9,7 +9,7 @@ #define KICAD_BUILD_VERSION "(2010-02-09)" #endif -#define VERSION_STABILITY "RC1" +#define VERSION_STABILITY "RC2" /** Function GetBuildVersion() * Return the build date and version diff --git a/pcbnew/dialog_design_rules_base.cpp b/pcbnew/dialog_design_rules_base.cpp index 7474fe9ea5..d87d7dcb7e 100644 --- a/pcbnew/dialog_design_rules_base.cpp +++ b/pcbnew/dialog_design_rules_base.cpp @@ -85,7 +85,7 @@ DIALOG_DESIGN_RULES_BASE::DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID buttonBoxSizer->Add( m_moveUpButton, 0, wxRIGHT|wxLEFT, 5 ); - sbSizer1->Add( buttonBoxSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); + sbSizer1->Add( buttonBoxSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT, 5 ); bpanelNetClassesSizer->Add( sbSizer1, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 ); @@ -101,11 +101,11 @@ DIALOG_DESIGN_RULES_BASE::DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID leftNetSelectBoxSizer->Add( m_leftClassChoice, 0, wxEXPAND, 5 ); m_leftListCtrl = new wxListCtrl( m_panelNetClassesEditor, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_VRULES|wxSUNKEN_BORDER ); - m_leftListCtrl->SetMinSize( wxSize( 220,300 ) ); + m_leftListCtrl->SetMinSize( wxSize( 220,200 ) ); leftNetSelectBoxSizer->Add( m_leftListCtrl, 1, wxEXPAND|wxTOP, 5 ); - sbSizer4->Add( leftNetSelectBoxSizer, 1, wxALL|wxEXPAND, 5 ); + sbSizer4->Add( leftNetSelectBoxSizer, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 ); wxBoxSizer* bmiddleSizerNetSelect; bmiddleSizerNetSelect = new wxBoxSizer( wxVERTICAL ); @@ -145,9 +145,9 @@ DIALOG_DESIGN_RULES_BASE::DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID rghtNetSelectBoxSizer->Add( m_rightListCtrl, 1, wxEXPAND|wxTOP, 5 ); - sbSizer4->Add( rghtNetSelectBoxSizer, 1, wxALL|wxEXPAND, 5 ); + sbSizer4->Add( rghtNetSelectBoxSizer, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 ); - bpanelNetClassesSizer->Add( sbSizer4, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 ); + bpanelNetClassesSizer->Add( sbSizer4, 2, wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_panelNetClassesEditor->SetSizer( bpanelNetClassesSizer ); m_panelNetClassesEditor->Layout(); @@ -358,7 +358,7 @@ DIALOG_DESIGN_RULES_BASE::DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID bpanelGlobRulesSizer->Fit( m_panelGolbalDesignRules ); m_DRnotebook->AddPage( m_panelGolbalDesignRules, _("Global Design Rules"), false ); - bMainSizer->Add( m_DRnotebook, 1, wxEXPAND | wxALL, 5 ); + bMainSizer->Add( m_DRnotebook, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 ); wxStaticBoxSizer* sbSizer2; sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Messages:") ), wxHORIZONTAL ); @@ -368,7 +368,7 @@ DIALOG_DESIGN_RULES_BASE::DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID sbSizer2->Add( m_MessagesList, 1, wxEXPAND, 5 ); - bMainSizer->Add( sbSizer2, 0, wxALL|wxEXPAND, 5 ); + bMainSizer->Add( sbSizer2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_sdbButtonsSizer = new wxStdDialogButtonSizer(); m_sdbButtonsSizerOK = new wxButton( this, wxID_OK ); @@ -376,7 +376,7 @@ DIALOG_DESIGN_RULES_BASE::DIALOG_DESIGN_RULES_BASE( wxWindow* parent, wxWindowID m_sdbButtonsSizerCancel = new wxButton( this, wxID_CANCEL ); m_sdbButtonsSizer->AddButton( m_sdbButtonsSizerCancel ); m_sdbButtonsSizer->Realize(); - bMainSizer->Add( m_sdbButtonsSizer, 0, wxALL|wxALIGN_RIGHT, 5 ); + bMainSizer->Add( m_sdbButtonsSizer, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 ); this->SetSizer( bMainSizer ); this->Layout(); diff --git a/pcbnew/dialog_design_rules_base.fbp b/pcbnew/dialog_design_rules_base.fbp index a6479eaa3f..3e19a7d6cc 100644 --- a/pcbnew/dialog_design_rules_base.fbp +++ b/pcbnew/dialog_design_rules_base.fbp @@ -77,7 +77,7 @@ none 5 - wxEXPAND | wxALL + wxEXPAND|wxRIGHT|wxLEFT 1 @@ -301,7 +301,7 @@ 5 - wxALIGN_CENTER_HORIZONTAL|wxALL + wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT 0 @@ -470,7 +470,7 @@ 5 - wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT + wxEXPAND|wxRIGHT|wxLEFT 2 wxID_ANY @@ -482,7 +482,7 @@ 5 - wxALL|wxEXPAND + wxEXPAND|wxRIGHT|wxLEFT 1 @@ -553,7 +553,7 @@ 0 wxID_ANY - 220,300 + 220,200 m_leftListCtrl protected @@ -832,7 +832,7 @@ 5 - wxALL|wxEXPAND + wxEXPAND|wxRIGHT|wxLEFT 1 @@ -2232,7 +2232,7 @@ 5 - wxALL|wxEXPAND + wxEXPAND|wxRIGHT|wxLEFT 0 wxID_ANY @@ -2298,7 +2298,7 @@ 5 - wxALL|wxALIGN_RIGHT + wxALIGN_RIGHT|wxRIGHT|wxLEFT 0 0 diff --git a/version.txt b/version.txt index ce62fec566..70f5e48333 100644 --- a/version.txt +++ b/version.txt @@ -1,4 +1,4 @@ release version: 2010 feb 09 files (.zip,.tgz): -kicad-2010-02-09-RC1 +kicad-2010-02-09-RC2