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
9f9f2ed3
Commit
9f9f2ed3
authored
Nov 15, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code cleaning: Remove unused file, remove obsolete or useless defines
parent
568a43b9
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
36 additions
and
1639 deletions
+36
-1639
base_screen.cpp
common/base_screen.cpp
+1
-0
dcsvg.cpp.unused
common/dcsvg.cpp.unused
+0
-1599
selcolor.cpp
common/selcolor.cpp
+1
-2
dialog_color_config.h
eeschema/dialogs/dialog_color_config.h
+1
-1
hierarch.cpp
eeschema/hierarch.cpp
+2
-1
dialog_select_one_pcb_layer.cpp
gerbview/dialogs/dialog_select_one_pcb_layer.cpp
+1
-1
fctsys.h
include/fctsys.h
+0
-26
macros.h
include/macros.h
+21
-0
wxstruct.h
include/wxstruct.h
+5
-7
eagle_plugin.cpp
pcbnew/eagle_plugin.cpp
+1
-0
muonde.cpp
pcbnew/muonde.cpp
+2
-1
swap_layers.cpp
pcbnew/swap_layers.cpp
+1
-1
No files found.
common/base_screen.cpp
View file @
9f9f2ed3
...
...
@@ -30,6 +30,7 @@
*/
#include <fctsys.h>
#include <macros.h>
#include <common.h>
#include <base_struct.h>
#include <class_base_screen.h>
...
...
common/dcsvg.cpp.unused
deleted
100644 → 0
View file @
568a43b9
This diff is collapsed.
Click to expand it.
common/selcolor.cpp
View file @
9f9f2ed3
...
...
@@ -6,7 +6,6 @@
*/
#include <fctsys.h>
#include <gr_basic.h>
#include <common.h>
#include <colors.h>
...
...
@@ -64,7 +63,7 @@ WinEDA_SelColorFrame::WinEDA_SelColorFrame( wxWindow* parent,
const
wxPoint
&
framepos
,
int
OldColor
)
:
wxDialog
(
parent
,
-
1
,
_
(
"Colors"
),
framepos
,
wxDefaultSize
,
wxDEFAULT_DIALOG_STYLE
|
MAYBE_
RESIZE_BORDER
)
wxDEFAULT_DIALOG_STYLE
|
wx
RESIZE_BORDER
)
{
Init_Dialog
(
OldColor
);
...
...
eeschema/dialogs/dialog_color_config.h
View file @
9f9f2ed3
...
...
@@ -61,7 +61,7 @@ private:
const
wxString
&
aCaption
=
_
(
"EESchema Colors"
),
const
wxPoint
&
aPosition
=
wxDefaultPosition
,
const
wxSize
&
aSize
=
wxDefaultSize
,
long
aStyle
=
wxDEFAULT_DIALOG_STYLE
|
MAYBE_
RESIZE_BORDER
);
long
aStyle
=
wxDEFAULT_DIALOG_STYLE
|
wx
RESIZE_BORDER
);
// Initializes member variables
void
Init
();
...
...
eeschema/hierarch.cpp
View file @
9f9f2ed3
...
...
@@ -138,7 +138,8 @@ void SCH_EDIT_FRAME::InstallHierarchyFrame( wxDC* DC, wxPoint& pos )
HIERARCHY_NAVIG_DLG
::
HIERARCHY_NAVIG_DLG
(
SCH_EDIT_FRAME
*
parent
,
wxDC
*
DC
,
const
wxPoint
&
pos
)
:
wxDialog
(
parent
,
-
1
,
_
(
"Navigator"
),
pos
,
wxSize
(
110
,
50
),
DIALOG_STYLE
)
wxDialog
(
parent
,
-
1
,
_
(
"Navigator"
),
pos
,
wxSize
(
110
,
50
),
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
)
{
wxTreeItemId
cellule
;
...
...
gerbview/dialogs/dialog_select_one_pcb_layer.cpp
View file @
9f9f2ed3
...
...
@@ -86,7 +86,7 @@ SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG( GERBVIEW_FRAME* parent,
bool
aShowDeselectOption
)
:
wxDialog
(
parent
,
-
1
,
_
(
"Select Layer:"
),
wxPoint
(
-
1
,
-
1
),
wxSize
(
470
,
250
),
DIALOG_STYLE
)
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
)
{
wxButton
*
Button
;
LAYER_NUM
ii
;
...
...
include/fctsys.h
View file @
9f9f2ed3
...
...
@@ -26,32 +26,6 @@
#define DBG(x) // nothing
#endif
/**
* Function Clamp
* limits @a value within the range @a lower <= @a value <= @a upper. It will work
* on temporary expressions, since they are evaluated only once, and it should work
* on most if not all numeric types, string types, or any type for which "operator < ()"
* is present. The arguments are accepted in this order so you can remember the
* expression as a memory aid:
* <p>
* result is: lower <= value <= upper
*/
template
<
typename
T
>
inline
const
T
&
Clamp
(
const
T
&
lower
,
const
T
&
value
,
const
T
&
upper
)
{
wxASSERT
(
lower
<=
upper
);
if
(
value
<
lower
)
return
lower
;
else
if
(
upper
<
value
)
return
upper
;
return
value
;
}
#define USE_RESIZE_BORDER
#if defined(__UNIX__) || defined(USE_RESIZE_BORDER)
#define MAYBE_RESIZE_BORDER wxRESIZE_BORDER // Linux users like resizeable borders
#else
#define MAYBE_RESIZE_BORDER 0 // no resizeable border
#endif
// wxNullPtr is not defined prior to wxWidgets 2.9.0.
#if !wxCHECK_VERSION( 2, 9, 0 )
...
...
include/macros.h
View file @
9f9f2ed3
...
...
@@ -77,4 +77,25 @@ template <class T, class T2> inline void EXCHG( T& a, T2& b )
b
=
temp
;
}
/**
* Function Clamp
* limits @a value within the range @a lower <= @a value <= @a upper. It will work
* on temporary expressions, since they are evaluated only once, and it should work
* on most if not all numeric types, string types, or any type for which "operator < ()"
* is present. The arguments are accepted in this order so you can remember the
* expression as a memory aid:
* <p>
* result is: lower <= value <= upper
*/
template
<
typename
T
>
inline
const
T
&
Clamp
(
const
T
&
lower
,
const
T
&
value
,
const
T
&
upper
)
{
wxASSERT
(
lower
<=
upper
);
if
(
value
<
lower
)
return
lower
;
else
if
(
upper
<
value
)
return
upper
;
return
value
;
}
#endif
/* ifdef MACRO_H */
include/wxstruct.h
View file @
9f9f2ed3
...
...
@@ -51,9 +51,7 @@
#include <wx/overlay.h>
#endif
// Option for dialog boxes
#define DIALOG_STYLE wxDEFAULT_DIALOG_STYLE | wxFRAME_FLOAT_ON_PARENT | MAYBE_RESIZE_BORDER
// Option for main frames
#define KICAD_DEFAULT_DRAWFRAME_STYLE wxDEFAULT_FRAME_STYLE | wxWANTS_CHARS
...
...
@@ -973,15 +971,15 @@ public:
/**
* Function UseGalCanvas
* used to switch between standard and GAL-based canvas.
*
* @param aEnable True for GAL-based canvas, false for standard canvas.
*
* @param aEnable True for GAL-based canvas, false for standard canvas.
*/
virtual
void
UseGalCanvas
(
bool
aEnable
);
/**
* Function IsNewCanvasActive
* is used to check which canvas (GAL-based or standard) is currently in use.
*
*
* @return True for GAL-based canvas, false for standard canvas.
*/
bool
IsGalCanvasActive
()
{
return
m_galCanvasActive
;
}
...
...
pcbnew/eagle_plugin.cpp
View file @
9f9f2ed3
...
...
@@ -65,6 +65,7 @@ Load() TODO's
#include <macros.h>
#include <fctsys.h>
#include <trigo.h>
#include <macros.h>
#include <wx/filename.h>
#include <class_board.h>
...
...
pcbnew/muonde.cpp
View file @
9f9f2ed3
...
...
@@ -791,7 +791,8 @@ END_EVENT_TABLE()
WinEDA_SetParamShapeFrame
::
WinEDA_SetParamShapeFrame
(
PCB_EDIT_FRAME
*
parent
,
const
wxPoint
&
framepos
)
:
wxDialog
(
parent
,
-
1
,
_
(
"Complex shape"
),
framepos
,
wxSize
(
350
,
280
),
DIALOG_STYLE
)
wxDialog
(
parent
,
-
1
,
_
(
"Complex shape"
),
framepos
,
wxSize
(
350
,
280
),
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
)
{
m_Parent
=
parent
;
...
...
pcbnew/swap_layers.cpp
View file @
9f9f2ed3
...
...
@@ -68,7 +68,7 @@ END_EVENT_TABLE()
SWAP_LAYERS_DIALOG
::
SWAP_LAYERS_DIALOG
(
PCB_BASE_FRAME
*
parent
)
:
DIALOG_SHIM
(
parent
,
-
1
,
_
(
"Swap Layers:"
),
wxPoint
(
-
1
,
-
1
),
wxDefaultSize
,
wxDEFAULT_DIALOG_STYLE
|
MAYBE_
RESIZE_BORDER
)
wxDefaultSize
,
wxDEFAULT_DIALOG_STYLE
|
wx
RESIZE_BORDER
)
{
BOARD
*
board
=
parent
->
GetBoard
();
...
...
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