Commit affbb8a8 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Pcbnew: minor coding style fixes. Very minor fixes. Minor enhancements. Fix bug #1085523

parents 91d5bb58 8f52ba14
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -7,9 +7,9 @@


#ifndef KICAD_BUILD_VERSION
#ifndef KICAD_BUILD_VERSION
#if defined KICAD_GOST
#if defined KICAD_GOST
#   define KICAD_BUILD_VERSION "(2012-oct-18 GOST)"
#   define KICAD_BUILD_VERSION "(2012-nov-02 GOST)"
#else
#else
#   define KICAD_BUILD_VERSION "(2012-oct-18)"
#   define KICAD_BUILD_VERSION "(2012-nov-02)"
#endif
#endif
#endif
#endif


+12 −0
Original line number Original line Diff line number Diff line
@@ -471,6 +471,18 @@ public:
     */
     */
    bool OnHotkeyRotateItem( int aIdCommand );
    bool OnHotkeyRotateItem( int aIdCommand );


    /**
     * Function OnHotkeyBeginRoute
     * If the current active layer is a copper layer,
     * and if no item currently edited, start a new track segmenton
     * the current copper layer.
     * If a new track is in progress, terminate the current segment and
     * start a new one.
     * @param aDC = current device context
     * @return a reference to the track if a track is created, or NULL
     */
    TRACK * OnHotkeyBeginRoute( wxDC* aDC );

    void OnCloseWindow( wxCloseEvent& Event );
    void OnCloseWindow( wxCloseEvent& Event );
    void Process_Special_Functions( wxCommandEvent& event );
    void Process_Special_Functions( wxCommandEvent& event );
    void Tracks_and_Vias_Size_Event( wxCommandEvent& event );
    void Tracks_and_Vias_Size_Event( wxCommandEvent& event );
+6 −2
Original line number Original line Diff line number Diff line
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 30 2011)
// C++ code generated with wxFormBuilder (version Apr 10 2012)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
@@ -9,7 +9,7 @@


///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////


DIALOG_GLOBAL_PADS_EDITION_BASE::DIALOG_GLOBAL_PADS_EDITION_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
DIALOG_GLOBAL_PADS_EDITION_BASE::DIALOG_GLOBAL_PADS_EDITION_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 );
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	
@@ -31,8 +31,10 @@ DIALOG_GLOBAL_PADS_EDITION_BASE::DIALOG_GLOBAL_PADS_EDITION_BASE( wxWindow* pare
	m_Pad_Orient_Filter_CB = new wxCheckBox( this, wxID_ANY, _("Do not modify pads having a different orientation"), wxDefaultPosition, wxDefaultSize, 0 );
	m_Pad_Orient_Filter_CB = new wxCheckBox( this, wxID_ANY, _("Do not modify pads having a different orientation"), wxDefaultPosition, wxDefaultSize, 0 );
	sbSizer1->Add( m_Pad_Orient_Filter_CB, 0, wxALL, 5 );
	sbSizer1->Add( m_Pad_Orient_Filter_CB, 0, wxALL, 5 );
	
	
	
	bLeftSizer->Add( sbSizer1, 1, wxEXPAND, 5 );
	bLeftSizer->Add( sbSizer1, 1, wxEXPAND, 5 );
	
	
	
	bMainSizer->Add( bLeftSizer, 1, wxEXPAND, 5 );
	bMainSizer->Add( bLeftSizer, 1, wxEXPAND, 5 );
	
	
	wxBoxSizer* bRightSizer;
	wxBoxSizer* bRightSizer;
@@ -53,8 +55,10 @@ DIALOG_GLOBAL_PADS_EDITION_BASE::DIALOG_GLOBAL_PADS_EDITION_BASE( wxWindow* pare
	m_buttonCancel = new wxButton( this, wxID_ANY, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	m_buttonCancel = new wxButton( this, wxID_ANY, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bRightSizer->Add( m_buttonCancel, 0, wxALL|wxEXPAND, 5 );
	bRightSizer->Add( m_buttonCancel, 0, wxALL|wxEXPAND, 5 );
	
	
	
	bMainSizer->Add( bRightSizer, 0, wxEXPAND, 5 );
	bMainSizer->Add( bRightSizer, 0, wxEXPAND, 5 );
	
	
	
	this->SetSizer( bMainSizer );
	this->SetSizer( bMainSizer );
	this->Layout();
	this->Layout();
	
	
+408 −440

File changed.

Preview size limit exceeded, changes collapsed.

+3 −2
Original line number Original line Diff line number Diff line
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 30 2011)
// C++ code generated with wxFormBuilder (version Apr 10 2012)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
@@ -11,6 +11,7 @@
#include <wx/artprov.h>
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/intl.h>
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/string.h>
#include <wx/checkbox.h>
#include <wx/checkbox.h>
#include <wx/gdicmn.h>
#include <wx/gdicmn.h>
@@ -31,7 +32,7 @@
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_GLOBAL_PADS_EDITION_BASE
/// Class DIALOG_GLOBAL_PADS_EDITION_BASE
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
class DIALOG_GLOBAL_PADS_EDITION_BASE : public wxDialog 
class DIALOG_GLOBAL_PADS_EDITION_BASE : public DIALOG_SHIM
{
{
	private:
	private:
	
	
Loading