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
dd5661e5
Commit
dd5661e5
authored
Nov 24, 2012
by
marco.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: now editing Text on PCBNEW works nicelly as expected.
parent
b95ab355
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
edit_pcb_text.cpp
pcbnew/edit_pcb_text.cpp
+19
-0
No files found.
pcbnew/edit_pcb_text.cpp
View file @
dd5661e5
...
@@ -67,7 +67,9 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC )
...
@@ -67,7 +67,9 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC )
if
(
TextePcb
==
NULL
)
// Should not occur
if
(
TextePcb
==
NULL
)
// Should not occur
return
;
return
;
#ifndef USE_WX_OVERLAY
TextePcb
->
Draw
(
Panel
,
DC
,
GR_XOR
);
TextePcb
->
Draw
(
Panel
,
DC
,
GR_XOR
);
#endif
if
(
TextePcb
->
IsNew
()
)
// If new: remove it
if
(
TextePcb
->
IsNew
()
)
// If new: remove it
{
{
...
@@ -78,7 +80,11 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC )
...
@@ -78,7 +80,11 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC )
SwapData
(
TextePcb
,
&
s_TextCopy
);
SwapData
(
TextePcb
,
&
s_TextCopy
);
TextePcb
->
ClearFlags
();
TextePcb
->
ClearFlags
();
#ifndef USE_WX_OVERLAY
TextePcb
->
Draw
(
Panel
,
DC
,
GR_OR
);
TextePcb
->
Draw
(
Panel
,
DC
,
GR_OR
);
#else
Panel
->
Refresh
();
#endif
}
}
...
@@ -118,6 +124,9 @@ void PCB_EDIT_FRAME::Place_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
...
@@ -118,6 +124,9 @@ void PCB_EDIT_FRAME::Place_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
}
}
TextePcb
->
ClearFlags
();
TextePcb
->
ClearFlags
();
#ifdef USE_WX_OVERLAY
m_canvas
->
Refresh
();
#endif
}
}
...
@@ -133,6 +142,10 @@ void PCB_EDIT_FRAME::StartMoveTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC, bool aE
...
@@ -133,6 +142,10 @@ void PCB_EDIT_FRAME::StartMoveTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC, bool aE
aTextePcb
->
SetFlags
(
IS_MOVED
);
aTextePcb
->
SetFlags
(
IS_MOVED
);
aTextePcb
->
DisplayInfo
(
this
);
aTextePcb
->
DisplayInfo
(
this
);
#ifdef USE_WX_OVERLAY
m_canvas
->
Refresh
();
#endif
GetScreen
()
->
SetCrossHairPosition
(
aTextePcb
->
GetPosition
()
);
GetScreen
()
->
SetCrossHairPosition
(
aTextePcb
->
GetPosition
()
);
m_canvas
->
MoveCursorToCrossHair
();
m_canvas
->
MoveCursorToCrossHair
();
...
@@ -240,6 +253,9 @@ void PCB_EDIT_FRAME::Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
...
@@ -240,6 +253,9 @@ void PCB_EDIT_FRAME::Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
TextePcb
->
SetFlags
(
IN_EDIT
);
TextePcb
->
SetFlags
(
IN_EDIT
);
OnModify
();
OnModify
();
#ifdef USE_WX_OVERLAY
m_canvas
->
Refresh
();
#endif
}
}
...
@@ -261,4 +277,7 @@ void PCB_EDIT_FRAME::FlipTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC )
...
@@ -261,4 +277,7 @@ void PCB_EDIT_FRAME::FlipTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC )
aTextePcb
->
SetFlags
(
IN_EDIT
);
aTextePcb
->
SetFlags
(
IN_EDIT
);
OnModify
();
OnModify
();
#ifdef USE_WX_OVERLAY
m_canvas
->
Refresh
();
#endif
}
}
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