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
4ee4f83d
Commit
4ee4f83d
authored
Apr 09, 2009
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move polar coordinates display to status field 2, so that field 0 persists.
parent
0261ab71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
drawframe.cpp
common/drawframe.cpp
+1
-1
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+19
-12
No files found.
common/drawframe.cpp
View file @
4ee4f83d
...
...
@@ -186,7 +186,7 @@ void WinEDA_DrawFrame::Affiche_Message( const wxString& message )
* Display the message on the bottom the frame
*/
{
SetStatusText
(
message
);
SetStatusText
(
message
,
0
);
}
...
...
pcbnew/basepcbframe.cpp
View file @
4ee4f83d
...
...
@@ -336,22 +336,21 @@ void WinEDA_BasePcbFrame::UpdateStatusBar()
* Update the status bar information.
*/
{
wxString
Line
;
int
dx
,
dy
;
double
theta
,
ro
;
BASE_SCREEN
*
screen
=
GetBaseScreen
();
WinEDA_DrawFrame
::
UpdateStatusBar
();
if
(
!
screen
)
return
;
if
(
DisplayOpt
.
DisplayPolarCood
)
// display polar coordinates
{
BASE_SCREEN
*
screen
=
GetBaseScreen
();
if
(
!
screen
)
return
;
WinEDA_DrawFrame
::
UpdateStatusBar
();
wxString
Line
;
double
theta
,
ro
;
dx
=
screen
->
m_Curseur
.
x
-
screen
->
m_O_Curseur
.
x
;
dy
=
screen
->
m_Curseur
.
y
-
screen
->
m_O_Curseur
.
y
;
int
dx
=
screen
->
m_Curseur
.
x
-
screen
->
m_O_Curseur
.
x
;
int
dy
=
screen
->
m_Curseur
.
y
-
screen
->
m_O_Curseur
.
y
;
if
(
DisplayOpt
.
DisplayPolarCood
)
/* Display coordonnee polaire */
{
if
(
(
dx
==
0
)
&&
(
dy
==
0
)
)
if
(
dx
==
0
&&
dy
==
0
)
theta
=
0.0
;
else
theta
=
atan2
(
(
double
)
-
dy
,
(
double
)
dx
);
...
...
@@ -362,9 +361,17 @@ void WinEDA_BasePcbFrame::UpdateStatusBar()
Line
.
Printf
(
g_UnitMetric
?
wxT
(
"Ro %.3f Th %.1f"
)
:
wxT
(
"Ro %.4f Th %.1f"
),
To_User_Unit
(
g_UnitMetric
,
ro
,
m_InternalUnits
),
theta
);
// overwrite the absolute cartesian coordinates
SetStatusText
(
Line
,
2
);
}
/* not this, because status field no. 0 is reserved for actual fleeting
status information. If this is enabled, then that text is erased on
every DrawPanel redraw. Field no. 0 is set with Affiche_Message() and it
should persist until called again.
SetStatusText( Line, 0 );
*/
}
...
...
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