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
ed0265cb
Commit
ed0265cb
authored
Jan 16, 2008
by
raburton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set eol-style native on new files
parent
592ab30c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
890 additions
and
890 deletions
+890
-890
class_drawsegment.cpp
pcbnew/class_drawsegment.cpp
+251
-251
class_drawsegment.h
pcbnew/class_drawsegment.h
+91
-91
dialog_gendrill.cpp
pcbnew/dialog_gendrill.cpp
+385
-385
dialog_gendrill.h
pcbnew/dialog_gendrill.h
+163
-163
No files found.
pcbnew/class_drawsegment.cpp
View file @
ed0265cb
This diff is collapsed.
Click to expand it.
pcbnew/class_drawsegment.h
View file @
ed0265cb
/*************************************/
/*************************************/
/* class to handle a graphic segment */
/* class to handle a graphic segment */
/**************************************/
/**************************************/
#ifndef CLASS_DRAWSEGMENT_H
#ifndef CLASS_DRAWSEGMENT_H
#define CLASS_DRAWSEGMENT_H
#define CLASS_DRAWSEGMENT_H
class
DRAWSEGMENT
:
public
BOARD_ITEM
class
DRAWSEGMENT
:
public
BOARD_ITEM
{
{
public
:
public
:
int
m_Width
;
// 0 = line. if > 0 = tracks, bus ...
int
m_Width
;
// 0 = line. if > 0 = tracks, bus ...
wxPoint
m_Start
;
// Line start point
wxPoint
m_Start
;
// Line start point
wxPoint
m_End
;
// Line end point
wxPoint
m_End
;
// Line end point
int
m_Shape
;
// Shape: line, Circle, Arc
int
m_Shape
;
// Shape: line, Circle, Arc
int
m_Type
;
// Used in complex associations ( Dimensions.. )
int
m_Type
;
// Used in complex associations ( Dimensions.. )
int
m_Angle
;
// Used only for Arcs: Arc angle in 1/10 deg
int
m_Angle
;
// Used only for Arcs: Arc angle in 1/10 deg
public
:
public
:
DRAWSEGMENT
(
BOARD_ITEM
*
StructFather
,
KICAD_T
idtype
=
TYPEDRAWSEGMENT
);
DRAWSEGMENT
(
BOARD_ITEM
*
StructFather
,
KICAD_T
idtype
=
TYPEDRAWSEGMENT
);
~
DRAWSEGMENT
();
~
DRAWSEGMENT
();
/**
/**
* Function GetPosition
* Function GetPosition
* returns the position of this object.
* returns the position of this object.
* Required by pure virtual BOARD_ITEM::GetPosition()
* Required by pure virtual BOARD_ITEM::GetPosition()
* @return const wxPoint& - The position of this object.
* @return const wxPoint& - The position of this object.
*/
*/
wxPoint
&
GetPosition
()
wxPoint
&
GetPosition
()
{
{
return
m_Start
;
return
m_Start
;
}
}
/**
/**
* Function Save
* Function Save
* writes the data structures for this object out to a FILE in "*.brd" format.
* writes the data structures for this object out to a FILE in "*.brd" format.
* @param aFile The FILE to write to.
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
* @return bool - true if success writing else false.
*/
*/
bool
Save
(
FILE
*
aFile
)
const
;
bool
Save
(
FILE
*
aFile
)
const
;
bool
ReadDrawSegmentDescr
(
FILE
*
File
,
int
*
LineNum
);
bool
ReadDrawSegmentDescr
(
FILE
*
File
,
int
*
LineNum
);
/* remove this from the linked list */
/* remove this from the linked list */
void
UnLink
();
void
UnLink
();
void
Copy
(
DRAWSEGMENT
*
source
);
void
Copy
(
DRAWSEGMENT
*
source
);
/**
/**
* Function Display_Infos
* Function Display_Infos
* has knowledge about the frame and how and where to put status information
* has knowledge about the frame and how and where to put status information
* about this object into the frame's message panel.
* about this object into the frame's message panel.
* Is virtual from EDA_BaseStruct.
* Is virtual from EDA_BaseStruct.
* @param frame A WinEDA_BasePcbFrame in which to print status information.
* @param frame A WinEDA_BasePcbFrame in which to print status information.
*/
*/
void
Display_Infos
(
WinEDA_DrawFrame
*
frame
);
void
Display_Infos
(
WinEDA_DrawFrame
*
frame
);
/**
/**
* Function HitTest
* Function HitTest
* tests if the given wxPoint is within the bounds of this object.
* tests if the given wxPoint is within the bounds of this object.
* @param ref_pos A wxPoint to test
* @param ref_pos A wxPoint to test
* @return bool - true if a hit, else false
* @return bool - true if a hit, else false
*/
*/
bool
HitTest
(
const
wxPoint
&
ref_pos
);
bool
HitTest
(
const
wxPoint
&
ref_pos
);
/**
/**
* Function HitTest (overlayed)
* Function HitTest (overlayed)
* tests if the given EDA_Rect intersect this object.
* tests if the given EDA_Rect intersect this object.
* For now, an ending point must be inside this rect.
* For now, an ending point must be inside this rect.
* @param refPos the given EDA_Rect to test
* @param refPos the given EDA_Rect to test
* @return bool - true if a hit, else false
* @return bool - true if a hit, else false
*/
*/
bool
HitTest
(
EDA_Rect
&
refArea
);
bool
HitTest
(
EDA_Rect
&
refArea
);
/**
/**
* Function GetClass
* Function GetClass
* returns the class name.
* returns the class name.
* @return wxString
* @return wxString
*/
*/
wxString
GetClass
()
const
wxString
GetClass
()
const
{
{
return
wxT
(
"DRAWSEGMENT"
);
return
wxT
(
"DRAWSEGMENT"
);
}
}
};
};
#endif // #ifndef CLASS_DRAWSEGMENT_H
#endif // #ifndef CLASS_DRAWSEGMENT_H
pcbnew/dialog_gendrill.cpp
View file @
ed0265cb
This diff is collapsed.
Click to expand it.
pcbnew/dialog_gendrill.h
View file @
ed0265cb
This diff is collapsed.
Click to expand it.
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