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
ad3cb1f3
Commit
ad3cb1f3
authored
Dec 03, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added TOOL_MANAGER::RunAction() function.
parent
bec2e9b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
tool_manager.cpp
common/tool/tool_manager.cpp
+6
-0
tool_manager.h
include/tool/tool_manager.h
+9
-0
No files found.
common/tool/tool_manager.cpp
View file @
ad3cb1f3
...
@@ -194,6 +194,12 @@ void TOOL_MANAGER::UnregisterAction( TOOL_ACTION* aAction )
...
@@ -194,6 +194,12 @@ void TOOL_MANAGER::UnregisterAction( TOOL_ACTION* aAction )
}
}
bool
TOOL_MANAGER
::
RunAction
(
const
std
::
string
&
aActionName
)
{
return
m_actionMgr
->
RunAction
(
aActionName
);
}
bool
TOOL_MANAGER
::
invokeTool
(
TOOL_BASE
*
aTool
)
bool
TOOL_MANAGER
::
invokeTool
(
TOOL_BASE
*
aTool
)
{
{
wxASSERT
(
aTool
!=
NULL
);
wxASSERT
(
aTool
!=
NULL
);
...
...
include/tool/tool_manager.h
View file @
ad3cb1f3
...
@@ -99,6 +99,15 @@ public:
...
@@ -99,6 +99,15 @@ public:
*/
*/
void
UnregisterAction
(
TOOL_ACTION
*
aAction
);
void
UnregisterAction
(
TOOL_ACTION
*
aAction
);
/**
* Function RunAction()
* Runs the specified action. The common format is "application.ToolName.Action".
*
* @param aActionName is the name of action to be invoked.
* @return True if the action finished successfully, false otherwise.
*/
bool
RunAction
(
const
std
::
string
&
aActionName
);
/**
/**
* Function FindTool()
* Function FindTool()
* Searches for a tool with given ID.
* Searches for a tool with given ID.
...
...
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