Kicad: files cleaning (remove unused files) and code cleaning. Try to fix bug 738840.
This commit is contained in:
commit
67e24be1d1
|
@ -28,7 +28,6 @@ set(COMMON_SRCS
|
||||||
block_commande.cpp
|
block_commande.cpp
|
||||||
build_version.cpp
|
build_version.cpp
|
||||||
class_colors_design_settings.cpp
|
class_colors_design_settings.cpp
|
||||||
class_layerchoicebox.cpp
|
|
||||||
class_marker_base.cpp
|
class_marker_base.cpp
|
||||||
class_plotter.cpp
|
class_plotter.cpp
|
||||||
class_undoredo_container.cpp
|
class_undoredo_container.cpp
|
||||||
|
@ -76,6 +75,7 @@ add_library(common ${COMMON_SRCS})
|
||||||
set(PCB_COMMON_SRCS
|
set(PCB_COMMON_SRCS
|
||||||
pcbcommon.cpp
|
pcbcommon.cpp
|
||||||
footprint_info.cpp
|
footprint_info.cpp
|
||||||
|
class_layer_box_selector.cpp
|
||||||
../pcbnew/basepcbframe.cpp
|
../pcbnew/basepcbframe.cpp
|
||||||
../pcbnew/class_board.cpp
|
../pcbnew/class_board.cpp
|
||||||
../pcbnew/class_board_connected_item.cpp
|
../pcbnew/class_board_connected_item.cpp
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef KICAD_BUILD_VERSION
|
#ifndef KICAD_BUILD_VERSION
|
||||||
#define KICAD_BUILD_VERSION "(2011-03-20)"
|
#define KICAD_BUILD_VERSION "(2011-03-23)"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// uncomment this line only when creating a stable version
|
// uncomment this line only when creating a stable version
|
||||||
|
|
|
@ -14,13 +14,13 @@
|
||||||
#include <wx/bmpcbox.h>
|
#include <wx/bmpcbox.h>
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
|
|
||||||
#include "class_layerchoicebox.h"
|
#include "class_layer_box_selector.h"
|
||||||
|
|
||||||
/* class to display a layer list.
|
/* class to display a layer list.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
WinEDALayerChoiceBox::WinEDALayerChoiceBox( WinEDA_Toolbar* parent, wxWindowID id,
|
LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR( WinEDA_Toolbar* parent, wxWindowID id,
|
||||||
const wxPoint& pos, const wxSize& size,
|
const wxPoint& pos, const wxSize& size,
|
||||||
int n, const wxString choices[] ) :
|
int n, const wxString choices[] ) :
|
||||||
wxBitmapComboBox( parent, id, wxEmptyString, pos, size,
|
wxBitmapComboBox( parent, id, wxEmptyString, pos, size,
|
||||||
|
@ -35,7 +35,7 @@ WinEDALayerChoiceBox::WinEDALayerChoiceBox( WinEDA_Toolbar* parent, wxWindowID i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
WinEDALayerChoiceBox::WinEDALayerChoiceBox( WinEDA_Toolbar* parent, wxWindowID id,
|
LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR( WinEDA_Toolbar* parent, wxWindowID id,
|
||||||
const wxPoint& pos, const wxSize& size,
|
const wxPoint& pos, const wxSize& size,
|
||||||
const wxArrayString& choices ) :
|
const wxArrayString& choices ) :
|
||||||
wxBitmapComboBox( parent, id, wxEmptyString, pos, size,
|
wxBitmapComboBox( parent, id, wxEmptyString, pos, size,
|
||||||
|
@ -50,14 +50,14 @@ WinEDALayerChoiceBox::WinEDALayerChoiceBox( WinEDA_Toolbar* parent, wxWindowID i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool WinEDALayerChoiceBox::SetLayersOrdered( bool value )
|
bool LAYER_BOX_SELECTOR::SetLayersOrdered( bool value )
|
||||||
{
|
{
|
||||||
m_layerorder = value;
|
m_layerorder = value;
|
||||||
return m_layerorder;
|
return m_layerorder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool WinEDALayerChoiceBox::SetLayersHotkeys( bool value )
|
bool LAYER_BOX_SELECTOR::SetLayersHotkeys( bool value )
|
||||||
{
|
{
|
||||||
m_layerhotkeys = value;
|
m_layerhotkeys = value;
|
||||||
return m_layerhotkeys;
|
return m_layerhotkeys;
|
||||||
|
@ -65,21 +65,21 @@ bool WinEDALayerChoiceBox::SetLayersHotkeys( bool value )
|
||||||
|
|
||||||
|
|
||||||
// Get Current Item #
|
// Get Current Item #
|
||||||
int WinEDALayerChoiceBox::GetChoice()
|
int LAYER_BOX_SELECTOR::GetChoice()
|
||||||
{
|
{
|
||||||
return GetSelection();
|
return GetSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get Current Layer
|
// Get Current Layer
|
||||||
int WinEDALayerChoiceBox::GetLayerSelection()
|
int LAYER_BOX_SELECTOR::GetLayerSelection()
|
||||||
{
|
{
|
||||||
return (long) GetClientData( GetSelection() );
|
return (long) GetClientData( GetSelection() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set Layer #
|
// Set Layer #
|
||||||
int WinEDALayerChoiceBox::SetLayerSelection( int layer )
|
int LAYER_BOX_SELECTOR::SetLayerSelection( int layer )
|
||||||
{
|
{
|
||||||
int elements = GetCount();
|
int elements = GetCount();
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ int WinEDALayerChoiceBox::SetLayerSelection( int layer )
|
||||||
|
|
||||||
|
|
||||||
// Reload the Layers
|
// Reload the Layers
|
||||||
void WinEDALayerChoiceBox::Resync()
|
void LAYER_BOX_SELECTOR::Resync()
|
||||||
{
|
{
|
||||||
PCB_BASE_FRAME* pcbFrame = (PCB_BASE_FRAME*) GetParent()->GetParent();
|
PCB_BASE_FRAME* pcbFrame = (PCB_BASE_FRAME*) GetParent()->GetParent();
|
||||||
BOARD* board = pcbFrame->GetBoard();
|
BOARD* board = pcbFrame->GetBoard();
|
||||||
|
@ -150,7 +150,7 @@ void WinEDALayerChoiceBox::Resync()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WinEDALayerChoiceBox::ResyncBitmapOnly()
|
void LAYER_BOX_SELECTOR::ResyncBitmapOnly()
|
||||||
{
|
{
|
||||||
PCB_BASE_FRAME* pcbFrame = (PCB_BASE_FRAME*) GetParent()->GetParent();
|
PCB_BASE_FRAME* pcbFrame = (PCB_BASE_FRAME*) GetParent()->GetParent();
|
||||||
BOARD* board = pcbFrame->GetBoard();
|
BOARD* board = pcbFrame->GetBoard();
|
|
@ -31,7 +31,6 @@ set(GERBVIEW_SRCS
|
||||||
class_gerbview_layer_widget.cpp
|
class_gerbview_layer_widget.cpp
|
||||||
controle.cpp
|
controle.cpp
|
||||||
dcode.cpp
|
dcode.cpp
|
||||||
dummy_functions.cpp
|
|
||||||
draw_gerber_screen.cpp
|
draw_gerber_screen.cpp
|
||||||
events_called_functions.cpp
|
events_called_functions.cpp
|
||||||
excellon_read_drill_file.cpp
|
excellon_read_drill_file.cpp
|
||||||
|
|
|
@ -350,3 +350,21 @@ void GERBVIEW_FRAME::DrawItemsDCodeID( wxDC* aDC, int aDrawMode )
|
||||||
void PCB_SCREEN::ClearUndoORRedoList( UNDO_REDO_CONTAINER&, int )
|
void PCB_SCREEN::ClearUndoORRedoList( UNDO_REDO_CONTAINER&, int )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* dummy_functions
|
||||||
|
*
|
||||||
|
* There are functions used in some classes.
|
||||||
|
* they are useful in pcbnew, but have no meaning or are never used
|
||||||
|
* in cvpcb or gerbview.
|
||||||
|
* but they must exist because they appear in some classes, and here, no nothing.
|
||||||
|
*/
|
||||||
|
|
||||||
|
TRACK* Marque_Une_Piste( BOARD* aPcb,
|
||||||
|
TRACK* aStartSegm,
|
||||||
|
int* aSegmCount,
|
||||||
|
int* aTrackLen,
|
||||||
|
bool aReorder )
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
/* dummy_functions.cpp
|
|
||||||
*
|
|
||||||
* There are functions used in some classes.
|
|
||||||
* they are useful in pcbnew, but have no meaning or are never used
|
|
||||||
* in cvpcb or gerbview.
|
|
||||||
* but they must exist because they appear in some classes, and here, no nothing.
|
|
||||||
*/
|
|
||||||
#include "fctsys.h"
|
|
||||||
|
|
||||||
#include "common.h"
|
|
||||||
#include "pcbnew.h"
|
|
||||||
|
|
||||||
TRACK* Marque_Une_Piste( BOARD* aPcb,
|
|
||||||
TRACK* aStartSegm,
|
|
||||||
int* aSegmCount,
|
|
||||||
int* aTrackLen,
|
|
||||||
bool aReorder )
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include "id.h"
|
#include "id.h"
|
||||||
#include "param_config.h"
|
#include "param_config.h"
|
||||||
#include "class_gerbview_layer_widget.h"
|
#include "class_gerbview_layer_widget.h"
|
||||||
#include "class_layerchoicebox.h"
|
#include "class_layer_box_selector.h"
|
||||||
|
|
||||||
|
|
||||||
#define NO_AVAILABLE_LAYERS -1
|
#define NO_AVAILABLE_LAYERS -1
|
||||||
|
@ -30,7 +30,7 @@ protected:
|
||||||
wxFileHistory m_drillFileHistory; // Auxiliary file history used to store drill files history
|
wxFileHistory m_drillFileHistory; // Auxiliary file history used to store drill files history
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WinEDALayerChoiceBox* m_SelLayerBox;
|
LAYER_BOX_SELECTOR* m_SelLayerBox;
|
||||||
DCODE_SELECTION_BOX* m_DCodeSelector; // a list box to select the dcode Id to highlight.
|
DCODE_SELECTION_BOX* m_DCodeSelector; // a list box to select the dcode Id to highlight.
|
||||||
wxTextCtrl* m_TextInfo; // a wxTextCtrl used to display some info about
|
wxTextCtrl* m_TextInfo; // a wxTextCtrl used to display some info about
|
||||||
// gerber data (format..)
|
// gerber data (format..)
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include "gerbview_id.h"
|
#include "gerbview_id.h"
|
||||||
#include "hotkeys.h"
|
#include "hotkeys.h"
|
||||||
#include "class_GERBER.h"
|
#include "class_GERBER.h"
|
||||||
#include "class_layerchoicebox.h"
|
#include "class_layer_box_selector.h"
|
||||||
#include "class_DCodeSelectionbox.h"
|
#include "class_DCodeSelectionbox.h"
|
||||||
#include "dialog_helpers.h"
|
#include "dialog_helpers.h"
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
|
||||||
choices.Add( msg );
|
choices.Add( msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_SelLayerBox = new WinEDALayerChoiceBox( m_HToolBar, ID_TOOLBARH_GERBVIEW_SELECT_ACTIVE_LAYER,
|
m_SelLayerBox = new LAYER_BOX_SELECTOR( m_HToolBar, ID_TOOLBARH_GERBVIEW_SELECT_ACTIVE_LAYER,
|
||||||
wxDefaultPosition, wxSize( 150, -1 ), choices );
|
wxDefaultPosition, wxSize( 150, -1 ), choices );
|
||||||
m_HToolBar->AddControl( m_SelLayerBox );
|
m_HToolBar->AddControl( m_SelLayerBox );
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef CLASS_LAYERCHOICEBOX_H
|
#ifndef CLASS_LAYER_BOX_SELECTOR_H
|
||||||
#define CLASS_LAYERCHOICEBOX_H 1
|
#define CLASS_LAYER_BOX_SELECTOR_H 1
|
||||||
|
|
||||||
#include "hotkeys_basic.h"
|
#include "hotkeys_basic.h"
|
||||||
#include <wx/bmpcbox.h>
|
#include <wx/bmpcbox.h>
|
||||||
|
@ -8,18 +8,18 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WinEDALayerChoiceBox : public wxBitmapComboBox
|
class LAYER_BOX_SELECTOR : public wxBitmapComboBox
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
bool m_layerhotkeys;
|
bool m_layerhotkeys;
|
||||||
bool m_layerorder;
|
bool m_layerorder;
|
||||||
public:
|
public:
|
||||||
WinEDALayerChoiceBox( WinEDA_Toolbar* parent, wxWindowID id,
|
LAYER_BOX_SELECTOR( WinEDA_Toolbar* parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
int n = 0, const wxString choices[] = NULL );
|
int n = 0, const wxString choices[] = NULL );
|
||||||
|
|
||||||
WinEDALayerChoiceBox( WinEDA_Toolbar* parent, wxWindowID id,
|
LAYER_BOX_SELECTOR( WinEDA_Toolbar* parent, wxWindowID id,
|
||||||
const wxPoint& pos, const wxSize& size,
|
const wxPoint& pos, const wxSize& size,
|
||||||
const wxArrayString& choices );
|
const wxArrayString& choices );
|
||||||
|
|
||||||
|
@ -62,4 +62,4 @@ public:
|
||||||
HK_SWITCH_LAYER_TO_COMPONENT \
|
HK_SWITCH_LAYER_TO_COMPONENT \
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //CLASS_LAYERCHOICEBOX_H
|
#endif //CLASS_LAYER_BOX_SELECTOR_H
|
|
@ -9,7 +9,7 @@
|
||||||
#include "wxstruct.h"
|
#include "wxstruct.h"
|
||||||
#include "base_struct.h"
|
#include "base_struct.h"
|
||||||
#include "param_config.h"
|
#include "param_config.h"
|
||||||
#include "class_layerchoicebox.h"
|
#include "class_layer_box_selector.h"
|
||||||
#include "richio.h"
|
#include "richio.h"
|
||||||
|
|
||||||
#ifndef PCB_INTERNAL_UNIT
|
#ifndef PCB_INTERNAL_UNIT
|
||||||
|
@ -113,7 +113,7 @@ protected:
|
||||||
virtual void unitsChangeRefresh();
|
virtual void unitsChangeRefresh();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WinEDALayerChoiceBox* m_SelLayerBox; // a combo box to display and
|
LAYER_BOX_SELECTOR* m_SelLayerBox; // a combo box to display and
|
||||||
// select active layer
|
// select active layer
|
||||||
WinEDAChoiceBox* m_SelTrackWidthBox; // a combo box to display and
|
WinEDAChoiceBox* m_SelTrackWidthBox; // a combo box to display and
|
||||||
// select current track width
|
// select current track width
|
||||||
|
@ -332,7 +332,7 @@ public:
|
||||||
void ReCreateMicrowaveVToolbar();
|
void ReCreateMicrowaveVToolbar();
|
||||||
void ReCreateOptToolbar();
|
void ReCreateOptToolbar();
|
||||||
void ReCreateMenuBar();
|
void ReCreateMenuBar();
|
||||||
WinEDALayerChoiceBox* ReCreateLayerBox( WinEDA_Toolbar* parent );
|
LAYER_BOX_SELECTOR* ReCreateLayerBox( WinEDA_Toolbar* parent );
|
||||||
|
|
||||||
/** Virtual Function OnModify()
|
/** Virtual Function OnModify()
|
||||||
* Must be called after a board change
|
* Must be called after a board change
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
; General Product Description Definitions
|
; General Product Description Definitions
|
||||||
!define PRODUCT_NAME "KiCad"
|
!define PRODUCT_NAME "KiCad"
|
||||||
!define PRODUCT_VERSION "2011.03.20"
|
!define PRODUCT_VERSION "2011.03.23"
|
||||||
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
|
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
|
||||||
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
|
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
|
||||||
!define COMPANY_NAME ""
|
!define COMPANY_NAME ""
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
#include "pcbnew_id.h"
|
#include "pcbnew_id.h"
|
||||||
#include "hotkeys.h"
|
#include "hotkeys.h"
|
||||||
|
|
||||||
//#include "protos.h"
|
|
||||||
|
|
||||||
#ifdef __UNIX__
|
#ifdef __UNIX__
|
||||||
#define LISTBOX_WIDTH 140
|
#define LISTBOX_WIDTH 140
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "hotkeys.h"
|
#include "hotkeys.h"
|
||||||
|
|
||||||
#include "help_common_strings.h"
|
#include "help_common_strings.h"
|
||||||
#include "class_layerchoicebox.h"
|
#include "class_layer_box_selector.h"
|
||||||
|
|
||||||
#define SEL_LAYER_HELP _( \
|
#define SEL_LAYER_HELP _( \
|
||||||
"Show active layer selections\nand select layer pair for route and place via" )
|
"Show active layer selections\nand select layer pair for route and place via" )
|
||||||
|
@ -256,7 +256,7 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
|
||||||
m_HToolBar->AddSeparator();
|
m_HToolBar->AddSeparator();
|
||||||
|
|
||||||
if( m_SelLayerBox == NULL )
|
if( m_SelLayerBox == NULL )
|
||||||
m_SelLayerBox = new WinEDALayerChoiceBox( m_HToolBar, ID_TOOLBARH_PCB_SELECT_LAYER );
|
m_SelLayerBox = new LAYER_BOX_SELECTOR( m_HToolBar, ID_TOOLBARH_PCB_SELECT_LAYER );
|
||||||
|
|
||||||
ReCreateLayerBox( m_HToolBar );
|
ReCreateLayerBox( m_HToolBar );
|
||||||
m_HToolBar->AddControl( m_SelLayerBox );
|
m_HToolBar->AddControl( m_SelLayerBox );
|
||||||
|
@ -612,7 +612,7 @@ void PCB_EDIT_FRAME::updateViaSizeSelectBox()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
WinEDALayerChoiceBox* PCB_EDIT_FRAME::ReCreateLayerBox( WinEDA_Toolbar* parent )
|
LAYER_BOX_SELECTOR* PCB_EDIT_FRAME::ReCreateLayerBox( WinEDA_Toolbar* parent )
|
||||||
{
|
{
|
||||||
if( m_SelLayerBox == NULL )
|
if( m_SelLayerBox == NULL )
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
release version:
|
release version:
|
||||||
2011 mar 17
|
2011 mar 17
|
||||||
files (.zip,.tgz):
|
files (.zip,.tgz):
|
||||||
kicad-2011-03-20
|
kicad-2011-03-23
|
||||||
|
|
Loading…
Reference in New Issue