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
788a2543
Commit
788a2543
authored
Oct 13, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcbnew: Minor fixes to 'Find Item' dialog (GAL canvas).
parent
7c9418f6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
pcbframe.cpp
pcbnew/pcbframe.cpp
+2
-0
common_actions.cpp
pcbnew/tools/common_actions.cpp
+4
-1
common_actions.h
pcbnew/tools/common_actions.h
+2
-0
No files found.
pcbnew/pcbframe.cpp
View file @
788a2543
...
@@ -695,6 +695,8 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )
...
@@ -695,6 +695,8 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )
}
}
else
else
{
{
m_toolManager
->
ResetTools
(
TOOL_BASE
::
GAL_SWITCH
);
// Redirect all events to the legacy canvas
// Redirect all events to the legacy canvas
GetGalCanvas
()
->
SetEventDispatcher
(
NULL
);
GetGalCanvas
()
->
SetEventDispatcher
(
NULL
);
}
}
...
...
pcbnew/tools/common_actions.cpp
View file @
788a2543
...
@@ -41,9 +41,12 @@ TOOL_ACTION COMMON_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear",
...
@@ -41,9 +41,12 @@ TOOL_ACTION COMMON_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear",
""
,
""
);
// No description, it is not supposed to be shown anywhere
""
,
""
);
// No description, it is not supposed to be shown anywhere
TOOL_ACTION
COMMON_ACTIONS
::
find
(
"pcbnew.InteractiveSelection.Find"
,
TOOL_ACTION
COMMON_ACTIONS
::
find
(
"pcbnew.InteractiveSelection.Find"
,
AS_GLOBAL
,
0
,
AS_GLOBAL
,
0
,
// it is handled by wxWidgets hotkey system
"Find an item"
,
"Searches the document for an item"
);
"Find an item"
,
"Searches the document for an item"
);
TOOL_ACTION
COMMON_ACTIONS
::
findDummy
(
"pcbnew.Find.Dummy"
,
// only block the hotkey
AS_GLOBAL
,
MD_CTRL
+
int
(
'F'
)
);
TOOL_ACTION
COMMON_ACTIONS
::
findMove
(
"pcbnew.InteractiveSelection.FindMove"
,
TOOL_ACTION
COMMON_ACTIONS
::
findMove
(
"pcbnew.InteractiveSelection.FindMove"
,
AS_GLOBAL
,
'T'
);
AS_GLOBAL
,
'T'
);
...
...
pcbnew/tools/common_actions.h
View file @
788a2543
...
@@ -223,6 +223,8 @@ public:
...
@@ -223,6 +223,8 @@ public:
/// Find an item and start moving
/// Find an item and start moving
static
TOOL_ACTION
findMove
;
static
TOOL_ACTION
findMove
;
/// Blocks CTRL+F, it is handled by wxWidgets
static
TOOL_ACTION
findDummy
;
/**
/**
* Function TranslateLegacyId()
* Function TranslateLegacyId()
* Translates legacy tool ids to the corresponding TOOL_ACTION name.
* Translates legacy tool ids to the corresponding TOOL_ACTION name.
...
...
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