Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
67e24be1
Commit
67e24be1
authored
Mar 23, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Plain Diff
Kicad: files cleaning (remove unused files) and code cleaning. Try to fix bug 738840.
parents
64077517
c01e3a8e
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
49 additions
and
55 deletions
+49
-55
CMakeLists.txt
common/CMakeLists.txt
+1
-1
build_version.cpp
common/build_version.cpp
+1
-1
class_layer_box_selector.cpp
common/class_layer_box_selector.cpp
+11
-11
CMakeLists.txt
gerbview/CMakeLists.txt
+0
-1
draw_gerber_screen.cpp
gerbview/draw_gerber_screen.cpp
+18
-0
dummy_functions.cpp
gerbview/dummy_functions.cpp
+0
-21
gerbview_frame.h
gerbview/gerbview_frame.h
+2
-2
toolbars_gerber.cpp
gerbview/toolbars_gerber.cpp
+2
-2
class_layer_box_selector.h
include/class_layer_box_selector.h
+6
-6
wxPcbStruct.h
include/wxPcbStruct.h
+3
-3
install.nsi
packaging/windows/nsis/install.nsi
+1
-1
tool_modedit.cpp
pcbnew/tool_modedit.cpp
+0
-2
tool_pcb.cpp
pcbnew/tool_pcb.cpp
+3
-3
version.txt
version.txt
+1
-1
No files found.
common/CMakeLists.txt
View file @
67e24be1
...
@@ -28,7 +28,6 @@ set(COMMON_SRCS
...
@@ -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})
...
@@ -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
...
...
common/build_version.cpp
View file @
67e24be1
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#endif
#endif
#ifndef KICAD_BUILD_VERSION
#ifndef KICAD_BUILD_VERSION
#define KICAD_BUILD_VERSION "(2011-03-2
0
)"
#define KICAD_BUILD_VERSION "(2011-03-2
3
)"
#endif
#endif
// uncomment this line only when creating a stable version
// uncomment this line only when creating a stable version
...
...
common/class_layer
choicebox
.cpp
→
common/class_layer
_box_selector
.cpp
View file @
67e24be1
...
@@ -14,13 +14,13 @@
...
@@ -14,13 +14,13 @@
#include <wx/bmpcbox.h>
#include <wx/bmpcbox.h>
#include <wx/wx.h>
#include <wx/wx.h>
#include "class_layer
choicebox
.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
...
@@ -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
...
@@ -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 )
...
@@ -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 )
...
@@ -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()
...
@@ -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
();
...
...
gerbview/CMakeLists.txt
View file @
67e24be1
...
@@ -31,7 +31,6 @@ set(GERBVIEW_SRCS
...
@@ -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
...
...
gerbview/draw_gerber_screen.cpp
View file @
67e24be1
...
@@ -350,3 +350,21 @@ void GERBVIEW_FRAME::DrawItemsDCodeID( wxDC* aDC, int aDrawMode )
...
@@ -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
;
}
gerbview/dummy_functions.cpp
deleted
100644 → 0
View file @
64077517
/* 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
;
}
gerbview/gerbview_frame.h
View file @
67e24be1
...
@@ -8,7 +8,7 @@
...
@@ -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_layer
choicebox
.h"
#include "class_layer
_box_selector
.h"
#define NO_AVAILABLE_LAYERS -1
#define NO_AVAILABLE_LAYERS -1
...
@@ -30,7 +30,7 @@ protected:
...
@@ -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..)
...
...
gerbview/toolbars_gerber.cpp
View file @
67e24be1
...
@@ -11,7 +11,7 @@
...
@@ -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_layer
choicebox
.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 )
...
@@ -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
);
...
...
include/class_layer
choicebox
.h
→
include/class_layer
_box_selector
.h
View file @
67e24be1
#ifndef CLASS_LAYER
CHOICEBOX
_H
#ifndef CLASS_LAYER
_BOX_SELECTOR
_H
#define CLASS_LAYER
CHOICEBOX
_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 @@
...
@@ -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:
...
@@ -62,4 +62,4 @@ public:
HK_SWITCH_LAYER_TO_COMPONENT \
HK_SWITCH_LAYER_TO_COMPONENT \
};
};
#endif //CLASS_LAYER
CHOICEBOX
_H
#endif //CLASS_LAYER
_BOX_SELECTOR
_H
include/wxPcbStruct.h
View file @
67e24be1
...
@@ -9,7 +9,7 @@
...
@@ -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_layer
choicebox
.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:
...
@@ -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:
...
@@ -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
...
...
packaging/windows/nsis/install.nsi
View file @
67e24be1
...
@@ -17,7 +17,7 @@
...
@@ -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.2
0
"
!define PRODUCT_VERSION "2011.03.2
3
"
!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 ""
...
...
pcbnew/tool_modedit.cpp
View file @
67e24be1
...
@@ -13,8 +13,6 @@
...
@@ -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
...
...
pcbnew/tool_pcb.cpp
View file @
67e24be1
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "hotkeys.h"
#include "hotkeys.h"
#include "help_common_strings.h"
#include "help_common_strings.h"
#include "class_layer
choicebox
.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()
...
@@ -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()
...
@@ -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
;
...
...
version.txt
View file @
67e24be1
release version:
release version:
2011 mar 17
2011 mar 17
files (.zip,.tgz):
files (.zip,.tgz):
kicad-2011-03-2
0
kicad-2011-03-2
3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment