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
31a864e7
Commit
31a864e7
authored
Oct 31, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment cleanups
parent
780c49b4
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
144 additions
and
149 deletions
+144
-149
change_log.txt
change_log.txt
+89
-79
base_struct.h
include/base_struct.h
+1
-1
pcbstruct.h
include/pcbstruct.h
+3
-15
wxstruct.h
include/wxstruct.h
+5
-0
class_board.cpp
pcbnew/class_board.cpp
+9
-9
class_cotation.h
pcbnew/class_cotation.h
+1
-1
class_edge_mod.h
pcbnew/class_edge_mod.h
+1
-1
class_equipot.h
pcbnew/class_equipot.h
+5
-3
class_marker.h
pcbnew/class_marker.h
+1
-1
class_mire.h
pcbnew/class_mire.h
+1
-1
class_module.h
pcbnew/class_module.h
+1
-1
class_pad.h
pcbnew/class_pad.h
+1
-1
class_pcb_text.h
pcbnew/class_pcb_text.h
+1
-1
class_text_mod.h
pcbnew/class_text_mod.h
+1
-1
class_track.h
pcbnew/class_track.h
+1
-1
onrightclick.cpp
pcbnew/onrightclick.cpp
+11
-26
todo.txt
todo.txt
+12
-7
No files found.
change_log.txt
View file @
31a864e7
...
...
@@ -5,6 +5,16 @@ Please add newer entries at the top, list the date and your name with
email address.
2007-Oct-31 UPDATE Dick Hollenbeck <dickelbeck@yahoo.com>
================================================================================
+ all
* Added Doxygen configuration file, whose standard name is Doxyfile. Output
is set to go to ./doxygen directory just off the project tree.
* added a note to todo.txt which asks folks to start using "Doxygen compatible"
comments in member functions and classes. Run Doxygen on the project, then
look at the documentation for class INSPECTOR as an example.
2007-Oct-31 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+all:
...
...
include/base_struct.h
View file @
31a864e7
...
...
@@ -505,7 +505,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
include/pcbstruct.h
View file @
31a864e7
...
...
@@ -268,18 +268,6 @@ public:
const
KICAD_T
scanTypes
[]
);
/**
* Function FindPadOrModule
* searches for either a pad or module, giving precedence to pads.
* Any Pad or Module on the desired layer that HitTest()s true will be
* returned, otherwise any visible Pad or Module on any other layer.
* The provided layer must be visible.
* @param refPos The wxPoint to hit-test.
* @return BOARD_ITEM* - if a direct hit, else NULL.
*/
// BOARD_ITEM* FindPadOrModule( const wxPoint& refPos, int layer );
/**
* Function FindNet
* searches for a net with the given netcode.
...
...
@@ -291,7 +279,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
@@ -382,7 +370,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
@@ -448,7 +436,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
include/wxstruct.h
View file @
31a864e7
...
...
@@ -724,6 +724,11 @@ public:
EDGE_ZONE
*
Del_SegmEdgeZone
(
wxDC
*
DC
,
EDGE_ZONE
*
edge_zone
);
void
CaptureNetName
(
wxDC
*
DC
);
EDGE_ZONE
*
Begin_Zone
();
/**
* Function End_Zone
* terminates the zone edge creation process
*/
void
End_Zone
(
wxDC
*
DC
);
void
Fill_Zone
(
wxDC
*
DC
);
...
...
pcbnew/class_board.cpp
View file @
31a864e7
...
...
@@ -562,17 +562,17 @@ BOARD_ITEM* BOARD::FindPadOrModule( const wxPoint& refPos, int layer )
*/
EQUIPOT
*
BOARD
::
FindNet
(
int
anetcode
)
const
{
if
(
anetcode
<=
0
)
return
NULL
;
EQUIPOT
*
net
=
(
EQUIPOT
*
)
m_Equipots
;
while
(
net
)
// the first valid netcode is 1.
// zero is reserved for "no connection" and is not used.
if
(
anetcode
>
0
)
{
for
(
EQUIPOT
*
net
=
m_Equipots
;
net
;
net
=
net
->
Next
()
)
{
if
(
net
->
GetNet
()
==
anetcode
)
break
;
net
=
(
EQUIPOT
*
)
net
->
Pnext
;
}
return
net
;
}
}
return
NULL
;
}
...
...
pcbnew/class_cotation.h
View file @
31a864e7
...
...
@@ -32,7 +32,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_edge_mod.h
View file @
31a864e7
...
...
@@ -36,7 +36,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_equipot.h
View file @
31a864e7
...
...
@@ -28,6 +28,8 @@ public:
EQUIPOT
(
BOARD_ITEM
*
StructFather
);
~
EQUIPOT
();
EQUIPOT
*
Next
()
{
return
(
EQUIPOT
*
)
Pnext
;
}
/* Effacement memoire de la structure */
void
UnLink
();
...
...
@@ -36,7 +38,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_marker.h
View file @
31a864e7
...
...
@@ -35,7 +35,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_mire.h
View file @
31a864e7
...
...
@@ -21,7 +21,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_module.h
View file @
31a864e7
...
...
@@ -119,7 +119,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_pad.h
View file @
31a864e7
...
...
@@ -80,7 +80,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_pcb_text.h
View file @
31a864e7
...
...
@@ -27,7 +27,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_text_mod.h
View file @
31a864e7
...
...
@@ -49,7 +49,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/class_track.h
View file @
31a864e7
...
...
@@ -62,7 +62,7 @@ public:
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.
pcb
" format.
* writes the data structures for this object out to a FILE in "*.
brd
" format.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
...
...
pcbnew/onrightclick.cpp
View file @
31a864e7
...
...
@@ -165,7 +165,6 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
/* Select a proper item */
#if 1 // try this
wxPoint
cursorPos
=
GetScreen
()
->
m_Curseur
;
wxPoint
selectPos
=
m_Collector
->
GetRefPos
();
...
...
@@ -173,16 +172,19 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
// printf( "cursor=(%d, %d) select=(%d,%d)\n", cursorPos.x, cursorPos.y, selectPos.x, selectPos.y );
/* We can reselect an other item only if there are no item being edited
* because ALL moving functions use GetCurItem(),
* therefore GetCurItem() must return the same item during moving.
* We know an item is moving if ( item && (item->m_Flags != 0)) is true
* and after calling PcbGeneralLocateAndDisplay(), GetCurItem() is any arbitrary BOARD_ITEM,
* not the current editen item.
/* We can reselect another item only if there are no item being edited
because ALL moving functions use GetCurItem(), therefore GetCurItem()
must return the same item during moving. We know an item is moving
if( item && (item->m_Flags != 0)) is true and after calling
PcbGeneralLocateAndDisplay(), GetCurItem() is any arbitrary BOARD_ITEM,
not the current item being edited. In such case we cannot call
PcbGeneralLocateAndDisplay().
*/
if
(
!
item
||
(
item
->
m_Flags
==
0
)
)
if
(
!
item
||
(
item
->
m_Flags
==
0
)
)
{
if
(
!
item
||
cursorPos
!=
selectPos
)
// Filter
// show "item selector" menu only if no item now or selected item was not
// previously picked at this position
if
(
!
item
||
cursorPos
!=
selectPos
)
{
DrawPanel
->
m_AbortRequest
=
false
;
item
=
PcbGeneralLocateAndDisplay
();
...
...
@@ -194,23 +196,6 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
}
}
#else
if
(
!
item
||
!
item
->
m_Flags
)
{
DrawPanel
->
m_AbortRequest
=
false
;
item
=
PcbGeneralLocateAndDisplay
();
if
(
DrawPanel
->
m_AbortRequest
)
{
DrawPanel
->
CursorOn
(
&
dc
);
return
false
;
}
SetCurItem
(
item
);
}
#endif
item
=
GetCurItem
();
if
(
item
)
flags
=
item
->
m_Flags
;
...
...
todo.txt
View file @
31a864e7
...
...
@@ -32,13 +32,18 @@ static inline void ADD_MENUITEM(menu, id, text, icon)
}
*** Set up a DOXYGEN environment starting with a configuration file that:
- understands the JavaDoc style comments that we have started using
- gives preference to comments in header files over *.cpp files
- outputs its HTML stuff relative to the base of trunk, say for example trunk/doxygen
- is then added to the svn repository (this configuration file only)
Then add a shell script and batch file to generate the docs using the config file.
Then review the generated docs and start to go through the source and make the
*** rework zones so they are modifiable and so that the user does not
need to enter tracks for thru hole pads or vias which connect to a zone.
I propose a two step solution:
1) interim enhancement: make zone edges retained in BRD file and make the
edges editable.
2) final solution: get rid of requirement for tracks buried within a zone.
Reivew the GEDA source code and other sources to gather ideas before doing 2).
*** Use DOXYGEN compatible comments on member functions. As configured,
Doxygen gives priority to comments in header files over *.cpp files.
Review the generated docs and start to go through the source and make the
generated doxygen docs readable and clear using the JavaDoc style comments,
mostly in the header files. The error and warning output of the doxygen
compiler can help with this too.
...
...
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