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
5c7c2faf
Commit
5c7c2faf
authored
Oct 15, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor problems fixed
parent
92064f1d
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
13 deletions
+47
-13
CHANGELOG.txt
CHANGELOG.txt
+13
-0
about_kicad.cpp
common/about_kicad.cpp
+1
-1
drawframe.cpp
common/drawframe.cpp
+1
-1
displayframe.cpp
cvpcb/displayframe.cpp
+4
-0
libframe.cpp
eeschema/libframe.cpp
+5
-0
save_schemas.cpp
eeschema/save_schemas.cpp
+6
-11
schframe.cpp
eeschema/schframe.cpp
+5
-0
gerberframe.cpp
gerbview/gerberframe.cpp
+4
-0
moduleframe.cpp
pcbnew/moduleframe.cpp
+4
-0
pcbframe.cpp
pcbnew/pcbframe.cpp
+4
-0
No files found.
CHANGELOG.txt
View file @
5c7c2faf
...
@@ -4,6 +4,19 @@ KiCad ChangeLog 2009
...
@@ -4,6 +4,19 @@ KiCad ChangeLog 2009
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.
2009-oct-14 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
Fix save last grid size and other minor updates.
* Create single event handler for grid size events.
* Fix all frame windows to use new grid size event handler.
* Use offset relative to ID instead of ComboBox index to save last grid size.
* Move last grid size load/save setting into WinEDA_DrawFrame.
* Add equality and assignment operators the GRID_TYPE.
* Add current grid helper methods to BASE_SCREEN.
* Add GetPins helper to LIB_COMPONENT to replace GetNextPin where applicable.
* Add AppendMsgPanel helper to WinEDA_DrawFrame.
* Improve rounding for display of coordinates when millimeter units are selected.
2009-oct-01 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
2009-oct-01 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
================================================================================
* Component library viewer restores state between uses.
* Component library viewer restores state between uses.
...
...
common/about_kicad.cpp
View file @
5c7c2faf
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include "appl_wxstruct.h"
#include "appl_wxstruct.h"
#define BUILD_VERSION "(2009101
0
-unstable)"
#define BUILD_VERSION "(2009101
5
-unstable)"
#ifdef HAVE_SVN_VERSION
#ifdef HAVE_SVN_VERSION
...
...
common/drawframe.cpp
View file @
5c7c2faf
...
@@ -252,7 +252,7 @@ void WinEDA_DrawFrame::OnSelectGrid( wxCommandEvent& event )
...
@@ -252,7 +252,7 @@ void WinEDA_DrawFrame::OnSelectGrid( wxCommandEvent& event )
*/
*/
m_LastGridSizeId
=
id
-
ID_POPUP_GRID_LEVEL_1000
;
m_LastGridSizeId
=
id
-
ID_POPUP_GRID_LEVEL_1000
;
screen
->
m_Curseur
=
DrawPanel
->
GetScreenCenterRealPosition
();
screen
->
m_Curseur
=
DrawPanel
->
GetScreenCenterRealPosition
();
screen
->
SetGrid
(
event
.
GetId
()
);
screen
->
SetGrid
(
id
);
Refresh
();
Refresh
();
}
}
...
...
cvpcb/displayframe.cpp
View file @
5c7c2faf
...
@@ -61,6 +61,10 @@ WinEDA_DisplayFrame::WinEDA_DisplayFrame( WinEDA_CvpcbFrame* father,
...
@@ -61,6 +61,10 @@ WinEDA_DisplayFrame::WinEDA_DisplayFrame( WinEDA_CvpcbFrame* father,
SetBaseScreen
(
new
PCB_SCREEN
()
);
SetBaseScreen
(
new
PCB_SCREEN
()
);
LoadSettings
();
LoadSettings
();
// Initilialize grid id to a default value if not found in config or bad:
if
(
(
m_LastGridSizeId
<=
0
)
||
(
m_LastGridSizeId
<
(
ID_POPUP_GRID_USER
-
ID_POPUP_GRID_LEVEL_1000
))
)
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_500
-
ID_POPUP_GRID_LEVEL_1000
;
// Initialize some display options
// Initialize some display options
DisplayOpt
.
DisplayPadIsol
=
false
;
// Pad clearance has no meaning here
DisplayOpt
.
DisplayPadIsol
=
false
;
// Pad clearance has no meaning here
...
...
eeschema/libframe.cpp
View file @
5c7c2faf
...
@@ -161,6 +161,11 @@ WinEDA_LibeditFrame::WinEDA_LibeditFrame( wxWindow* father,
...
@@ -161,6 +161,11 @@ WinEDA_LibeditFrame::WinEDA_LibeditFrame( wxWindow* father,
SetBaseScreen
(
new
SCH_SCREEN
()
);
SetBaseScreen
(
new
SCH_SCREEN
()
);
GetScreen
()
->
m_Center
=
true
;
GetScreen
()
->
m_Center
=
true
;
LoadSettings
();
LoadSettings
();
// Initilialize grid id to a default value if not found in config or bad:
if
(
(
m_LastGridSizeId
<=
0
)
||
(
m_LastGridSizeId
<
(
ID_POPUP_GRID_USER
-
ID_POPUP_GRID_LEVEL_1000
))
)
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_50
-
ID_POPUP_GRID_LEVEL_1000
;
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
GetScreen
()
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
GetScreen
()
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
...
...
eeschema/save_schemas.cpp
View file @
5c7c2faf
...
@@ -121,15 +121,6 @@ bool SCH_SCREEN::Save( FILE* aFile ) const
...
@@ -121,15 +121,6 @@ bool SCH_SCREEN::Save( FILE* aFile ) const
Ki_PageDescr
*
PlotSheet
;
Ki_PageDescr
*
PlotSheet
;
wxString
datetime
=
DateAndTime
(
);
wxString
datetime
=
DateAndTime
(
);
bool
first
=
true
;
BOOST_FOREACH
(
const
CMP_LIBRARY
&
lib
,
CMP_LIBRARY
::
GetLibraryList
()
)
{
if
(
!
first
)
Name
+=
wxT
(
","
);
Name
+=
lib
.
GetName
();
first
=
false
;
}
// Creates header
// Creates header
if
(
fprintf
(
aFile
,
"%s %s %d"
,
EESCHEMA_FILE_STAMP
,
if
(
fprintf
(
aFile
,
"%s %s %d"
,
EESCHEMA_FILE_STAMP
,
...
@@ -139,8 +130,12 @@ bool SCH_SCREEN::Save( FILE* aFile ) const
...
@@ -139,8 +130,12 @@ bool SCH_SCREEN::Save( FILE* aFile ) const
if
(
fprintf
(
aFile
,
" date %s
\n
"
,
CONV_TO_UTF8
(
datetime
)
)
==
EOF
)
if
(
fprintf
(
aFile
,
" date %s
\n
"
,
CONV_TO_UTF8
(
datetime
)
)
==
EOF
)
return
FALSE
;
return
FALSE
;
BOOST_FOREACH
(
const
CMP_LIBRARY
&
lib
,
CMP_LIBRARY
::
GetLibraryList
()
)
{
Name
=
lib
.
GetName
();
if
(
fprintf
(
aFile
,
"LIBS:%s
\n
"
,
CONV_TO_UTF8
(
Name
)
)
==
EOF
)
if
(
fprintf
(
aFile
,
"LIBS:%s
\n
"
,
CONV_TO_UTF8
(
Name
)
)
==
EOF
)
return
FALSE
;
return
FALSE
;
}
SaveLayers
(
aFile
);
SaveLayers
(
aFile
);
...
...
eeschema/schframe.cpp
View file @
5c7c2faf
...
@@ -173,6 +173,11 @@ WinEDA_SchematicFrame::WinEDA_SchematicFrame( wxWindow* father,
...
@@ -173,6 +173,11 @@ WinEDA_SchematicFrame::WinEDA_SchematicFrame( wxWindow* father,
/* Get config */
/* Get config */
LoadSettings
();
LoadSettings
();
// Initilialize grid id to a default value if not found in config or bad:
if
(
(
m_LastGridSizeId
<=
0
)
||
(
m_LastGridSizeId
<
(
ID_POPUP_GRID_USER
-
ID_POPUP_GRID_LEVEL_1000
))
)
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_50
-
ID_POPUP_GRID_LEVEL_1000
;
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
if
(
DrawPanel
)
if
(
DrawPanel
)
...
...
gerbview/gerberframe.cpp
View file @
5c7c2faf
...
@@ -146,6 +146,10 @@ WinEDA_GerberFrame::WinEDA_GerberFrame( wxWindow* father,
...
@@ -146,6 +146,10 @@ WinEDA_GerberFrame::WinEDA_GerberFrame( wxWindow* father,
ActiveScreen
=
ScreenPcb
;
ActiveScreen
=
ScreenPcb
;
LoadSettings
();
LoadSettings
();
// Initilialize grid id to a default value if not found in config or bad:
if
(
(
m_LastGridSizeId
<=
0
)
||
(
m_LastGridSizeId
<
(
ID_POPUP_GRID_USER
-
ID_POPUP_GRID_LEVEL_1000
))
)
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_500
-
ID_POPUP_GRID_LEVEL_1000
;
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
ActiveScreen
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
ActiveScreen
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
ReCreateMenuBar
();
ReCreateMenuBar
();
...
...
pcbnew/moduleframe.cpp
View file @
5c7c2faf
...
@@ -175,6 +175,10 @@ WinEDA_ModuleEditFrame::WinEDA_ModuleEditFrame( wxWindow* father,
...
@@ -175,6 +175,10 @@ WinEDA_ModuleEditFrame::WinEDA_ModuleEditFrame( wxWindow* father,
ActiveScreen
=
GetScreen
();
ActiveScreen
=
GetScreen
();
GetScreen
()
->
SetCurItem
(
NULL
);
GetScreen
()
->
SetCurItem
(
NULL
);
LoadSettings
();
LoadSettings
();
// Initilialize grid id to a default value if not found in config or bad:
if
(
(
m_LastGridSizeId
<=
0
)
||
(
m_LastGridSizeId
<
(
ID_POPUP_GRID_USER
-
ID_POPUP_GRID_LEVEL_1000
))
)
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_500
-
ID_POPUP_GRID_LEVEL_1000
;
GetScreen
()
->
AddGrid
(
m_UserGridSize
,
m_UserGridUnits
,
ID_POPUP_GRID_USER
);
GetScreen
()
->
AddGrid
(
m_UserGridSize
,
m_UserGridUnits
,
ID_POPUP_GRID_USER
);
GetScreen
()
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
GetScreen
()
->
SetGrid
(
ID_POPUP_GRID_LEVEL_1000
+
m_LastGridSizeId
);
...
...
pcbnew/pcbframe.cpp
View file @
5c7c2faf
...
@@ -247,6 +247,10 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father,
...
@@ -247,6 +247,10 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father,
m_InternalUnits
=
PCB_INTERNAL_UNIT
;
// Unites internes = 1/10000 inch
m_InternalUnits
=
PCB_INTERNAL_UNIT
;
// Unites internes = 1/10000 inch
SetBaseScreen
(
ScreenPcb
);
SetBaseScreen
(
ScreenPcb
);
LoadSettings
();
LoadSettings
();
// Initilialize grid id to a default value if not found in config or bad:
if
(
(
m_LastGridSizeId
<=
0
)
||
(
m_LastGridSizeId
<
(
ID_POPUP_GRID_USER
-
ID_POPUP_GRID_LEVEL_1000
))
)
m_LastGridSizeId
=
ID_POPUP_GRID_LEVEL_500
-
ID_POPUP_GRID_LEVEL_1000
;
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
SetSize
(
m_FramePos
.
x
,
m_FramePos
.
y
,
m_FrameSize
.
x
,
m_FrameSize
.
y
);
GetScreen
()
->
AddGrid
(
m_UserGridSize
,
m_UserGridUnits
,
ID_POPUP_GRID_USER
);
GetScreen
()
->
AddGrid
(
m_UserGridSize
,
m_UserGridUnits
,
ID_POPUP_GRID_USER
);
...
...
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