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
3e570c1a
Commit
3e570c1a
authored
Mar 10, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cursor shape issue after block command in modedit and libedit
parent
6c4b6767
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
block_libedit.cpp
eeschema/block_libedit.cpp
+2
-2
block.cpp
gerbview/block.cpp
+4
-2
block_module_editor.cpp
pcbnew/block_module_editor.cpp
+2
-2
dialog_general_options.cpp
pcbnew/dialogs/dialog_general_options.cpp
+4
-0
No files found.
eeschema/block_libedit.cpp
View file @
3e570c1a
...
...
@@ -183,7 +183,7 @@ bool LIB_EDIT_FRAME::HandleBlockEnd( wxDC* DC )
GetScreen
()
->
m_BlockLocate
.
m_Command
=
BLOCK_IDLE
;
GetScreen
()
->
SetCurItem
(
NULL
);
DrawPanel
->
SetMouseCapture
(
NULL
,
NULL
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Defaul
tCursor
(),
wxEmptyString
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Curren
tCursor
(),
wxEmptyString
);
DrawPanel
->
Refresh
(
true
);
}
...
...
@@ -269,7 +269,7 @@ void LIB_EDIT_FRAME::HandleBlockPlace( wxDC* DC )
GetScreen
()
->
SetCurItem
(
NULL
);
DrawPanel
->
SetMouseCapture
(
NULL
,
NULL
);
DrawPanel
->
Refresh
(
true
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Defaul
tCursor
(),
wxEmptyString
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Curren
tCursor
(),
wxEmptyString
);
}
...
...
gerbview/block.cpp
View file @
3e570c1a
...
...
@@ -136,8 +136,9 @@ void WinEDA_GerberFrame::HandleBlockPlace( wxDC* DC )
break
;
}
DrawPanel
->
SetMouseCapture
(
NULL
,
NULL
);
DrawPanel
->
EndMouseCapture
(
);
DrawPanel
->
SetCursor
(
DrawPanel
->
GetCurrentCursor
()
);
SetToolID
(
GetToolId
(),
DrawPanel
->
GetCurrentCursor
(),
wxEmptyString
);
GetScreen
()
->
SetModify
();
GetScreen
()
->
ClearBlockCommand
();
...
...
@@ -212,8 +213,9 @@ bool WinEDA_GerberFrame::HandleBlockEnd( wxDC* DC )
if
(
!
nextcmd
)
{
GetScreen
()
->
ClearBlockCommand
();
DrawPanel
->
SetMouseCapture
(
NULL
,
NULL
);
DrawPanel
->
EndMouseCapture
(
);
DrawPanel
->
SetCursor
(
DrawPanel
->
GetCurrentCursor
()
);
SetToolID
(
GetToolId
(),
DrawPanel
->
GetCurrentCursor
(),
wxEmptyString
);
DisplayToolMsg
(
wxEmptyString
);
}
...
...
pcbnew/block_module_editor.cpp
View file @
3e570c1a
...
...
@@ -194,7 +194,7 @@ bool WinEDA_ModuleEditFrame::HandleBlockEnd( wxDC* DC )
GetScreen
()
->
ClearBlockCommand
();
SetCurItem
(
NULL
);
DrawPanel
->
SetMouseCapture
(
NULL
,
NULL
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Defaul
tCursor
(),
wxEmptyString
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Curren
tCursor
(),
wxEmptyString
);
DrawPanel
->
Refresh
(
true
);
}
...
...
@@ -276,7 +276,7 @@ void WinEDA_ModuleEditFrame::HandleBlockPlace( wxDC* DC )
SetCurItem
(
NULL
);
DrawPanel
->
SetMouseCapture
(
NULL
,
NULL
);
DrawPanel
->
Refresh
(
true
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Defaul
tCursor
(),
wxEmptyString
);
SetToolID
(
GetToolId
(),
DrawPanel
->
Get
Curren
tCursor
(),
wxEmptyString
);
}
...
...
pcbnew/dialogs/dialog_general_options.cpp
View file @
3e570c1a
...
...
@@ -126,6 +126,10 @@ void PCB_EDIT_FRAME::OnSelectOptionToolbar( wxCommandEvent& event )
case
ID_TB_OPTIONS_SHOW_RATSNEST
:
SetElementVisibility
(
RATSNEST_VISIBLE
,
state
);
if
(
state
&&
(
GetBoard
()
->
m_Status_Pcb
&
LISTE_RATSNEST_ITEM_OK
)
==
0
)
{
Compile_Ratsnest
(
NULL
,
true
);
}
DrawPanel
->
Refresh
();
break
;
...
...
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