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
26323007
Commit
26323007
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a handler for not implemented toolbar buttons functionality in GAL.
parent
94cc845b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
0 deletions
+27
-0
common_actions.cpp
pcbnew/tools/common_actions.cpp
+15
-0
common_actions.h
pcbnew/tools/common_actions.h
+1
-0
pcbnew_control.cpp
pcbnew/tools/pcbnew_control.cpp
+10
-0
pcbnew_control.h
pcbnew/tools/pcbnew_control.h
+1
-0
No files found.
pcbnew/tools/common_actions.cpp
View file @
26323007
...
...
@@ -261,6 +261,10 @@ TOOL_ACTION COMMON_ACTIONS::showHelp( "pcbnew.Control.showHelp",
AS_GLOBAL
,
'?'
,
""
,
""
);
TOOL_ACTION
COMMON_ACTIONS
::
toBeDone
(
"pcbnew.Control.toBeDone"
,
AS_GLOBAL
,
0
,
// dialog saying it is not implemented yet
""
,
""
);
// so users are aware of that
TOOL_ACTION
COMMON_ACTIONS
::
routerActivate
(
"pcbnew.InteractiveRouter"
,
AS_GLOBAL
,
'X'
,
"Run push & shove router"
,
"Run push & shove router"
,
AF_ACTIVATE
);
...
...
@@ -317,6 +321,17 @@ boost::optional<TOOL_EVENT> COMMON_ACTIONS::TranslateLegacyId( int aId )
case
ID_ZOOM_PAGE
:
// toolbar button "Fit on Screen"
return
COMMON_ACTIONS
::
zoomFitScreen
.
MakeEvent
();
case
ID_PCB_DELETE_ITEM_BUTT
:
case
ID_PCB_HIGHLIGHT_BUTT
:
case
ID_PCB_SHOW_1_RATSNEST_BUTT
:
case
ID_PCB_PLACE_OFFSET_COORD_BUTT
:
case
ID_TB_OPTIONS_SHOW_MODULE_RATSNEST
:
case
ID_TB_OPTIONS_SELECT_CURSOR
:
case
ID_TB_OPTIONS_SHOW_EXTRA_VERTICAL_TOOLBAR_MICROWAVE
:
case
ID_MENU_PCB_SHOW_HIDE_MUWAVE_TOOLBAR
:
case
ID_MICROWAVE_V_TOOLBAR
:
return
COMMON_ACTIONS
::
toBeDone
.
MakeEvent
();
}
return
boost
::
optional
<
TOOL_EVENT
>
();
...
...
pcbnew/tools/common_actions.h
View file @
26323007
...
...
@@ -148,6 +148,7 @@ public:
static
TOOL_ACTION
resetCoords
;
static
TOOL_ACTION
switchUnits
;
static
TOOL_ACTION
showHelp
;
static
TOOL_ACTION
toBeDone
;
/**
* Function TranslateLegacyId()
...
...
pcbnew/tools/pcbnew_control.cpp
View file @
26323007
...
...
@@ -506,6 +506,15 @@ int PCBNEW_CONTROL::ShowHelp( TOOL_EVENT& aEvent )
}
int
PCBNEW_CONTROL
::
ToBeDone
(
TOOL_EVENT
&
aEvent
)
{
DisplayInfoMessage
(
m_frame
,
_
(
"Not implemented yet."
)
);
setTransitions
();
return
0
;
}
void
PCBNEW_CONTROL
::
setTransitions
()
{
// View controls
...
...
@@ -549,4 +558,5 @@ void PCBNEW_CONTROL::setTransitions()
Go
(
&
PCBNEW_CONTROL
::
ResetCoords
,
COMMON_ACTIONS
::
resetCoords
.
MakeEvent
()
);
Go
(
&
PCBNEW_CONTROL
::
SwitchUnits
,
COMMON_ACTIONS
::
switchUnits
.
MakeEvent
()
);
Go
(
&
PCBNEW_CONTROL
::
ShowHelp
,
COMMON_ACTIONS
::
showHelp
.
MakeEvent
()
);
Go
(
&
PCBNEW_CONTROL
::
ToBeDone
,
COMMON_ACTIONS
::
toBeDone
.
MakeEvent
()
);
}
pcbnew/tools/pcbnew_control.h
View file @
26323007
...
...
@@ -91,6 +91,7 @@ public:
int
ResetCoords
(
TOOL_EVENT
&
aEvent
);
int
SwitchUnits
(
TOOL_EVENT
&
aEvent
);
int
ShowHelp
(
TOOL_EVENT
&
aEvent
);
int
ToBeDone
(
TOOL_EVENT
&
aEvent
);
private
:
///> Sets up handlers for various events.
...
...
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