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
148aecf9
Commit
148aecf9
authored
Jan 05, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved comments
parent
00052a60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
common.cpp
common/common.cpp
+1
-2
common.h
include/common.h
+4
-7
No files found.
common/common.cpp
View file @
148aecf9
...
...
@@ -299,6 +299,7 @@ void PAGE_INFO::SetUserWidthMils( int aWidthInMils )
s_user_width
=
aWidthInMils
;
}
void
PAGE_INFO
::
SetUserHeightMils
(
int
aHeightInMils
)
{
if
(
aHeightInMils
<
4000
)
...
...
@@ -309,7 +310,6 @@ void PAGE_INFO::SetUserHeightMils( int aHeightInMils )
s_user_height
=
aHeightInMils
;
}
//-----</PAGE_INFO>------------------------------------------------------------
...
...
@@ -541,7 +541,6 @@ wxArrayString* wxStringSplit( wxString aString, wxChar aSplitter )
*/
double
To_User_Unit
(
EDA_UNITS_T
aUnit
,
double
val
,
int
internal_unit_value
)
{
switch
(
aUnit
)
{
case
MILLIMETRES
:
...
...
include/common.h
View file @
148aecf9
...
...
@@ -123,8 +123,6 @@ enum EDA_UNITS_T {
class
LibNameList
;
//class PAGE_INFO;
/**
* Class PAGE_INFO
* describes the page size and margins of a paper page on which to
...
...
@@ -197,13 +195,15 @@ public:
/**
* Function SetUserWidthMils
* sets the width of type "User" page in mils.
* sets the width of type "User" page in mils, for any type "User" page
* constructed or made via SetType() after making this call.
*/
static
void
SetUserWidthMils
(
int
aWidthInMils
);
/**
* Function SetUserHeightMils
* sets the height type "User" page in mils.
* sets the height type "User" page in mils, for any type "User" page
* constructed or made via SetType() after making this call.
*/
static
void
SetUserHeightMils
(
int
aHeightInMils
);
...
...
@@ -232,11 +232,8 @@ private:
// all dimensions here are in mils
wxString
m_type
;
///< paper type: A4, A3, etc.
wxSize
m_size
;
///< mils
// wxPoint m_offset_mils; ///< plot offset in mils
int
m_left_margin
;
int
m_right_margin
;
int
m_top_margin
;
...
...
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