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
c7623715
Commit
c7623715
authored
Jun 05, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Plain Diff
Pcbnew: fixed unwanted mouse cursor move when using the t hotkey
parents
369f3d25
aefad049
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
edit.cpp
pcbnew/edit.cpp
+1
-1
hotkeys.cpp
pcbnew/hotkeys.cpp
+3
-1
modules.cpp
pcbnew/modules.cpp
+0
-3
No files found.
pcbnew/edit.cpp
View file @
c7623715
...
@@ -582,7 +582,6 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -582,7 +582,6 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
g_Drag_Pistes_On
=
true
;
g_Drag_Pistes_On
=
true
;
case
ID_POPUP_PCB_MOVE_MODULE_REQUEST
:
case
ID_POPUP_PCB_MOVE_MODULE_REQUEST
:
// If the current Item is a pad, text module ...: Get its parent
// If the current Item is a pad, text module ...: Get its parent
if
(
GetCurItem
()
->
Type
()
!=
TYPE_MODULE
)
if
(
GetCurItem
()
->
Type
()
!=
TYPE_MODULE
)
SetCurItem
(
GetCurItem
()
->
GetParent
()
);
SetCurItem
(
GetCurItem
()
->
GetParent
()
);
...
@@ -591,6 +590,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -591,6 +590,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
g_Drag_Pistes_On
=
false
;
g_Drag_Pistes_On
=
false
;
break
;
break
;
}
}
GetScreen
()
->
m_Curseur
=
((
MODULE
*
)
GetCurItem
())
->
m_Pos
;
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
StartMove_Module
(
(
MODULE
*
)
GetCurItem
(),
&
dc
);
StartMove_Module
(
(
MODULE
*
)
GetCurItem
(),
&
dc
);
break
;
break
;
...
...
pcbnew/hotkeys.cpp
View file @
c7623715
...
@@ -423,7 +423,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -423,7 +423,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
if
(
ItemFree
)
if
(
ItemFree
)
{
{
wxCommandEvent
evt
;
wxCommandEvent
evt
;
evt
.
SetId
(
ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST
);
evt
.
SetId
(
ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST
);
Process_Special_Functions
(
evt
);
Process_Special_Functions
(
evt
);
}
}
break
;
break
;
...
@@ -657,6 +657,8 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
...
@@ -657,6 +657,8 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, EDA_BaseStruct* DrawStruct
// fall through
// fall through
case
HK_MOVE_FOOTPRINT
:
// Start move module
case
HK_MOVE_FOOTPRINT
:
// Start move module
GetScreen
()
->
m_Curseur
=
module
->
m_Pos
;
DrawPanel
->
MouseToCursorSchema
();
StartMove_Module
(
module
,
DC
);
StartMove_Module
(
module
,
DC
);
break
;
break
;
}
}
...
...
pcbnew/modules.cpp
View file @
c7623715
...
@@ -100,9 +100,6 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC )
...
@@ -100,9 +100,6 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC )
GetBoard
()
->
m_Status_Pcb
&=
~
RATSNEST_ITEM_LOCAL_OK
;
GetBoard
()
->
m_Status_Pcb
&=
~
RATSNEST_ITEM_LOCAL_OK
;
module
->
m_Flags
|=
IS_MOVED
;
module
->
m_Flags
|=
IS_MOVED
;
GetScreen
()
->
m_Curseur
=
module
->
m_Pos
;
DrawPanel
->
MouseToCursorSchema
();
/* Show ratsnest. */
/* Show ratsnest. */
if
(
GetBoard
()
->
IsElementVisible
(
RATSNEST_VISIBLE
)
)
if
(
GetBoard
()
->
IsElementVisible
(
RATSNEST_VISIBLE
)
)
DrawGeneralRatsnest
(
DC
);
DrawGeneralRatsnest
(
DC
);
...
...
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