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
6083f3b0
Commit
6083f3b0
authored
Apr 02, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internationalization of GAL dialogs & menus.
parent
be839aca
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
185 additions
and
179 deletions
+185
-179
context_menu.cpp
common/tool/context_menu.cpp
+1
-2
tool_action.h
include/tool/tool_action.h
+8
-8
dialog_target_properties_base.cpp
pcbnew/dialogs/dialog_target_properties_base.cpp
+7
-7
dialog_target_properties_base.fbp
pcbnew/dialogs/dialog_target_properties_base.fbp
+4
-2
dialog_target_properties_base.h
pcbnew/dialogs/dialog_target_properties_base.h
+3
-2
length_tuner_tool.cpp
pcbnew/router/length_tuner_tool.cpp
+16
-22
pns_tune_status_popup.cpp
pcbnew/router/pns_tune_status_popup.cpp
+1
-1
router_menus.h
pcbnew/router/router_menus.h
+43
-34
router_tool.cpp
pcbnew/router/router_tool.cpp
+35
-38
common_actions.cpp
pcbnew/tools/common_actions.cpp
+66
-62
pcb_editor_control.cpp
pcbnew/tools/pcb_editor_control.cpp
+1
-1
No files found.
common/tool/context_menu.cpp
View file @
6083f3b0
...
...
@@ -156,8 +156,7 @@ void CONTEXT_MENU::Add( const TOOL_ACTION& aAction )
int
id
=
m_actionId
+
aAction
.
GetId
();
wxMenuItem
*
item
=
new
wxMenuItem
(
this
,
id
,
wxString
(
aAction
.
GetMenuItem
().
c_str
(),
wxConvUTF8
),
wxString
(
aAction
.
GetDescription
().
c_str
(),
wxConvUTF8
),
wxITEM_NORMAL
);
aAction
.
GetMenuItem
(),
aAction
.
GetDescription
(),
wxITEM_NORMAL
);
if
(
aAction
.
HasHotKey
()
)
{
...
...
include/tool/tool_action.h
View file @
6083f3b0
...
...
@@ -45,8 +45,8 @@ class TOOL_ACTION
{
public
:
TOOL_ACTION
(
const
std
::
string
&
aName
,
TOOL_ACTION_SCOPE
aScope
=
AS_CONTEXT
,
int
aDefaultHotKey
=
0
,
const
std
::
string
&
aMenuItem
=
std
::
string
(
""
)
,
const
std
::
string
&
aMenuDesc
=
std
::
string
(
""
)
,
TOOL_ACTION_FLAGS
aFlags
=
AF_NONE
)
:
int
aDefaultHotKey
=
0
,
const
wxString
aMenuItem
=
wxEmptyString
,
const
wxString
&
aMenuDesc
=
wxEmptyString
,
TOOL_ACTION_FLAGS
aFlags
=
AF_NONE
)
:
m_name
(
aName
),
m_scope
(
aScope
),
m_defaultHotKey
(
aDefaultHotKey
),
m_currentHotKey
(
aDefaultHotKey
),
m_menuItem
(
aMenuItem
),
m_menuDescription
(
aMenuDesc
),
m_id
(
-
1
),
m_flags
(
aFlags
)
...
...
@@ -154,22 +154,22 @@ public:
return
TOOL_EVENT
(
TC_COMMAND
,
TA_ACTION
,
m_name
,
m_scope
);
}
const
std
::
s
tring
&
GetMenuItem
()
const
const
wxS
tring
&
GetMenuItem
()
const
{
return
m_menuItem
;
}
void
SetMenuItem
(
const
std
::
s
tring
&
aItem
)
void
SetMenuItem
(
const
wxS
tring
&
aItem
)
{
m_menuItem
=
aItem
;
}
const
std
::
s
tring
&
GetDescription
()
const
const
wxS
tring
&
GetDescription
()
const
{
return
m_menuDescription
;
}
void
SetDescription
(
const
std
::
s
tring
&
aDescription
)
void
SetDescription
(
const
wxS
tring
&
aDescription
)
{
m_menuDescription
=
aDescription
;
}
...
...
@@ -218,10 +218,10 @@ private:
int
m_currentHotKey
;
/// Menu entry text
std
::
s
tring
m_menuItem
;
wxS
tring
m_menuItem
;
/// Pop-up help
std
::
s
tring
m_menuDescription
;
wxS
tring
m_menuDescription
;
// Icon for menu entry
// KiBitmap m_bitmap;
...
...
pcbnew/dialogs/dialog_target_properties_base.cpp
View file @
6083f3b0
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Oct 8 2012
)
// C++ code generated with wxFormBuilder (version
Mar 9 2015
)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
@@ -25,33 +25,33 @@ TARGET_PROPERTIES_DIALOG_EDITOR_BASE::TARGET_PROPERTIES_DIALOG_EDITOR_BASE( wxWi
fgSizer
->
SetFlexibleDirection
(
wxBOTH
);
fgSizer
->
SetNonFlexibleGrowMode
(
wxFLEX_GROWMODE_SPECIFIED
);
m_staticTextSize
=
new
wxStaticText
(
this
,
wxID_ANY
,
wxT
(
"Size"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextSize
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Size"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextSize
->
Wrap
(
-
1
);
fgSizer
->
Add
(
m_staticTextSize
,
0
,
wxTOP
|
wxBOTTOM
|
wxLEFT
|
wxALIGN_CENTER_VERTICAL
,
5
);
m_TargetSizeCtrl
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
fgSizer
->
Add
(
m_TargetSizeCtrl
,
0
,
wxALL
|
wxEXPAND
|
wxALIGN_CENTER_VERTICAL
,
5
);
m_staticTextSizeUnits
=
new
wxStaticText
(
this
,
wxID_ANY
,
wxT
(
"unit"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextSizeUnits
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"unit"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextSizeUnits
->
Wrap
(
-
1
);
fgSizer
->
Add
(
m_staticTextSizeUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxTOP
|
wxBOTTOM
|
wxRIGHT
,
5
);
m_staticTextThickness
=
new
wxStaticText
(
this
,
wxID_ANY
,
wxT
(
"Thickness"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextThickness
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Thickness"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextThickness
->
Wrap
(
-
1
);
fgSizer
->
Add
(
m_staticTextThickness
,
0
,
wxTOP
|
wxBOTTOM
|
wxLEFT
|
wxALIGN_CENTER_VERTICAL
,
5
);
m_TargetThicknessCtrl
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
fgSizer
->
Add
(
m_TargetThicknessCtrl
,
0
,
wxEXPAND
|
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
m_staticTextThicknessUnits
=
new
wxStaticText
(
this
,
wxID_ANY
,
wxT
(
"unit"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextThicknessUnits
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"unit"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextThicknessUnits
->
Wrap
(
-
1
);
fgSizer
->
Add
(
m_staticTextThicknessUnits
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxTOP
|
wxBOTTOM
|
wxRIGHT
,
5
);
m_staticTextShape
=
new
wxStaticText
(
this
,
wxID_ANY
,
wxT
(
"Shape"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextShape
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Shape"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextShape
->
Wrap
(
-
1
);
fgSizer
->
Add
(
m_staticTextShape
,
0
,
wxTOP
|
wxBOTTOM
|
wxLEFT
|
wxALIGN_CENTER_VERTICAL
,
5
);
wxString
m_TargetShapeChoices
[]
=
{
wxT
(
"+"
),
wxT
(
"X"
)
};
wxString
m_TargetShapeChoices
[]
=
{
_
(
"+"
),
_
(
"X"
)
};
int
m_TargetShapeNChoices
=
sizeof
(
m_TargetShapeChoices
)
/
sizeof
(
wxString
);
m_TargetShape
=
new
wxChoice
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
m_TargetShapeNChoices
,
m_TargetShapeChoices
,
0
);
m_TargetShape
->
SetSelection
(
0
);
...
...
pcbnew/dialogs/dialog_target_properties_base.fbp
View file @
6083f3b0
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<wxFormBuilder_Project>
<FileVersion
major=
"1"
minor=
"1
1
"
/>
<FileVersion
major=
"1"
minor=
"1
3
"
/>
<object
class=
"Project"
expanded=
"1"
>
<property
name=
"class_decoration"
></property>
<property
name=
"code_generation"
>
C++
</property>
...
...
@@ -14,14 +14,16 @@
<property
name=
"file"
>
dialog_target_properties_base
</property>
<property
name=
"first_id"
>
1000
</property>
<property
name=
"help_provider"
>
none
</property>
<property
name=
"internationalize"
>
0
</property>
<property
name=
"internationalize"
>
1
</property>
<property
name=
"name"
>
dialog_target_properties_base
</property>
<property
name=
"namespace"
></property>
<property
name=
"path"
>
.
</property>
<property
name=
"precompiled_header"
></property>
<property
name=
"relative_path"
>
1
</property>
<property
name=
"skip_lua_events"
>
1
</property>
<property
name=
"skip_php_events"
>
1
</property>
<property
name=
"skip_python_events"
>
1
</property>
<property
name=
"ui_table"
>
UI
</property>
<property
name=
"use_enum"
>
0
</property>
<property
name=
"use_microsoft_bom"
>
0
</property>
<object
class=
"Dialog"
expanded=
"1"
>
...
...
pcbnew/dialogs/dialog_target_properties_base.h
View file @
6083f3b0
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Oct 8 2012
)
// C++ code generated with wxFormBuilder (version
Mar 9 2015
)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
@@ -10,6 +10,7 @@
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
...
...
@@ -57,7 +58,7 @@ class TARGET_PROPERTIES_DIALOG_EDITOR_BASE : public DIALOG_SHIM
public
:
TARGET_PROPERTIES_DIALOG_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
wxT
(
"Target Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
TARGET_PROPERTIES_DIALOG_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Target Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
TARGET_PROPERTIES_DIALOG_EDITOR_BASE
();
};
...
...
pcbnew/router/length_tuner_tool.cpp
View file @
6083f3b0
...
...
@@ -46,32 +46,26 @@
using
namespace
KIGFX
;
using
boost
::
optional
;
static
TOOL_ACTION
ACT_StartTuning
(
"pcbnew.LengthTuner.StartTuning"
,
AS_CONTEXT
,
'X'
,
"New Track"
,
"Starts laying a new track."
);
static
TOOL_ACTION
ACT_EndTuning
(
"pcbnew.LengthTuner.EndTuning"
,
AS_CONTEXT
,
WXK_END
,
"End Track"
,
"Stops laying the current meander."
);
static
TOOL_ACTION
ACT_StartTuning
(
"pcbnew.LengthTuner.StartTuning"
,
AS_CONTEXT
,
'X'
,
_
(
"New Track"
),
_
(
"Starts laying a new track."
)
);
static
TOOL_ACTION
ACT_Settings
(
"pcbnew.LengthTuner.Settings"
,
AS_CONTEXT
,
'L'
,
"Length Tuning Settings"
,
"Sets the length tuning parameters for currently routed item."
);
static
TOOL_ACTION
ACT_EndTuning
(
"pcbnew.LengthTuner.EndTuning"
,
AS_CONTEXT
,
WXK_END
,
_
(
"End Track"
),
_
(
"Stops laying the current meander."
)
);
static
TOOL_ACTION
ACT_SpacingIncrease
(
"pcbnew.LengthTuner.SpacingIncrease"
,
AS_CONTEXT
,
'1'
,
"Increase spacing"
,
"Increase meander spacing by one step."
);
static
TOOL_ACTION
ACT_Settings
(
"pcbnew.LengthTuner.Settings"
,
AS_CONTEXT
,
'L'
,
_
(
"Length Tuning Settings"
),
_
(
"Sets the length tuning parameters for currently routed item."
)
);
static
TOOL_ACTION
ACT_SpacingDecrease
(
"pcbnew.LengthTuner.SpacingDecrease"
,
AS_CONTEXT
,
'2'
,
"Decrease spacing "
,
"Decrease meander spacing by one step."
);
static
TOOL_ACTION
ACT_SpacingIncrease
(
"pcbnew.LengthTuner.SpacingIncrease"
,
AS_CONTEXT
,
'1'
,
_
(
"Increase spacing"
),
_
(
"Increase meander spacing by one step."
)
);
static
TOOL_ACTION
ACT_AmplIncrease
(
"pcbnew.LengthTuner.AmplIncrease"
,
AS_CONTEXT
,
'3'
,
"Increase amplitude"
,
"Increase meander amplitude by one step."
);
static
TOOL_ACTION
ACT_SpacingDecrease
(
"pcbnew.LengthTuner.SpacingDecrease"
,
AS_CONTEXT
,
'2'
,
_
(
"Decrease spacing"
),
_
(
"Decrease meander spacing by one step."
)
);
static
TOOL_ACTION
ACT_AmplDecrease
(
"pcbnew.LengthTuner.AmplDecrease"
,
AS_CONTEXT
,
'4'
,
"Decrease amplitude"
,
"Decrease meander amplitude by one step."
);
static
TOOL_ACTION
ACT_AmplIncrease
(
"pcbnew.LengthTuner.AmplIncrease"
,
AS_CONTEXT
,
'3'
,
_
(
"Increase amplitude"
),
_
(
"Increase meander amplitude by one step."
)
);
static
TOOL_ACTION
ACT_AmplDecrease
(
"pcbnew.LengthTuner.AmplDecrease"
,
AS_CONTEXT
,
'4'
,
_
(
"Decrease amplitude"
),
_
(
"Decrease meander amplitude by one step."
)
);
LENGTH_TUNER_TOOL
::
LENGTH_TUNER_TOOL
()
:
...
...
@@ -85,7 +79,7 @@ class TUNER_TOOL_MENU: public CONTEXT_MENU
public
:
TUNER_TOOL_MENU
(
BOARD
*
aBoard
)
{
SetTitle
(
wxT
(
"Length Tuner"
)
);
SetTitle
(
_
(
"Length Tuner"
)
);
//Add( ACT_StartTuning );
//Add( ACT_EndTuning );
...
...
pcbnew/router/pns_tune_status_popup.cpp
View file @
6083f3b0
...
...
@@ -26,7 +26,7 @@ PNS_TUNE_STATUS_POPUP::PNS_TUNE_STATUS_POPUP( PCB_EDIT_FRAME* aParent ) :
WX_STATUS_POPUP
(
aParent
)
{
m_panel
->
SetBackgroundColour
(
wxColour
(
64
,
64
,
64
)
);
m_statusLine
=
new
wxStaticText
(
m_panel
,
wxID_ANY
,
wx
T
(
"Status text 1
\n
"
)
)
;
m_statusLine
=
new
wxStaticText
(
m_panel
,
wxID_ANY
,
wx
EmptyString
)
;
m_topSizer
->
Add
(
m_statusLine
,
1
,
wxALL
|
wxEXPAND
,
5
);
}
...
...
pcbnew/router/router_menus.h
View file @
6083f3b0
...
...
@@ -57,58 +57,67 @@ using boost::optional;
static
TOOL_ACTION
ACT_NewTrack
(
"pcbnew.InteractiveRouter.NewTrack"
,
AS_CONTEXT
,
'X'
,
"New Track"
,
"Starts laying a new track."
);
_
(
"New Track"
),
_
(
"Starts laying a new track."
)
);
static
TOOL_ACTION
ACT_EndTrack
(
"pcbnew.InteractiveRouter.EndTrack"
,
AS_CONTEXT
,
WXK_END
,
"End Track"
,
"Stops laying the current track."
);
_
(
"End Track"
)
,
_
(
"Stops laying the current track."
)
);
static
TOOL_ACTION
ACT_AutoEndRoute
(
"pcbnew.InteractiveRouter.AutoEndRoute"
,
AS_CONTEXT
,
'F'
,
"Auto-end Track"
,
"Automagically finishes currently routed track."
);
_
(
"Auto-end Track"
),
_
(
"Automagically finishes currently routed track."
)
);
static
TOOL_ACTION
ACT_Drag
(
"pcbnew.InteractiveRouter.Drag"
,
AS_CONTEXT
,
'G'
,
"Drag Track/Via"
,
"Drags a track or a via."
);
_
(
"Drag Track/Via"
),
_
(
"Drags a track or a via."
)
);
static
TOOL_ACTION
ACT_PlaceThroughVia
(
"pcbnew.InteractiveRouter.PlaceVia"
,
AS_CONTEXT
,
'V'
,
"Place Through Via"
,
"Adds a through-hole via at the end of currently routed track."
);
_
(
"Place Through Via"
),
_
(
"Adds a through-hole via at the end of currently routed track."
)
);
static
TOOL_ACTION
ACT_PlaceBlindVia
(
"pcbnew.InteractiveRouter.PlaceBlindVia"
,
AS_CONTEXT
,
'Z'
,
"Place Blind/Buried Via"
,
"Adds a blind or buried via at the end of currently routed track."
);
_
(
"Place Blind/Buried Via"
),
_
(
"Adds a blind or buried via at the end of currently routed track."
)
);
static
TOOL_ACTION
ACT_PlaceMicroVia
(
"pcbnew.InteractiveRouter.PlaceMicroVia"
,
AS_CONTEXT
,
'Q'
,
"Place Microvia"
,
"Adds a microvia at the end of currently routed track."
);
_
(
"Place Microvia"
),
_
(
"Adds a microvia at the end of currently routed track."
)
);
static
TOOL_ACTION
ACT_CustomTrackWidth
(
"pcbnew.InteractiveRouter.CustomTrackWidth"
,
AS_CONTEXT
,
'W'
,
"Custom Track Width"
,
"Shows a dialog for changing the track width and via size."
);
_
(
"Custom Track Width"
),
_
(
"Shows a dialog for changing the track width and via size."
)
);
static
TOOL_ACTION
ACT_RouterOptions
(
"pcbnew.InteractiveRouter.RouterOptions"
,
AS_CONTEXT
,
'E'
,
"Routing Options..."
,
"Shows a dialog containing router options."
);
_
(
"Routing Options..."
),
_
(
"Shows a dialog containing router options."
)
);
static
TOOL_ACTION
ACT_SwitchPosture
(
"pcbnew.InteractiveRouter.SwitchPosture"
,
AS_CONTEXT
,
'/'
,
"Switch Track Posture"
,
"Switches posture of the currenly routed track."
);
_
(
"Switch Track Posture"
),
_
(
"Switches posture of the currenly routed track."
)
);
static
TOOL_ACTION
ACT_SetDpDimensions
(
"pcbnew.InteractiveRouter.SetDpDimensions"
,
AS_CONTEXT
,
'D'
,
"Differential Pair Dimensions..."
,
"Sets the width and gap of the currently routed differential pair."
);
_
(
"Differential Pair Dimensions..."
),
_
(
"Sets the width and gap of the currently routed differential pair."
)
);
static
TOOL_ACTION
ACT_SetLengthTune
(
"pcbnew.InteractiveRouter.LengthTunerSettings"
,
AS_CONTEXT
,
'L'
,
"Length Tuning Settings"
,
"Sets the length tuning parameters for currently routed item."
);
_
(
"Length Tuning Settings"
),
_
(
"Sets the length tuning parameters for currently routed item."
)
);
static
TOOL_ACTION
ACT_LengthTuneSpacingIncrease
(
"pcbnew.InteractiveRouter.LengthTunerSpacingIncrease"
,
AS_CONTEXT
,
'1'
,
"Length Tuning Settings"
,
"Sets the length tuning parameters for currently routed item."
);
_
(
"Length Tuning Settings"
),
_
(
"Sets the length tuning parameters for currently routed item."
)
);
static
TOOL_ACTION
ACT_LengthTuneSpacingDecrease
(
"pcbnew.InteractiveRouter.LengthTunerSpacingDecrease"
,
AS_CONTEXT
,
'2'
,
"Length Tuning Settings"
,
"Sets the length tuning parameters for currently routed item."
);
_
(
"Length Tuning Settings"
),
_
(
"Sets the length tuning parameters for currently routed item."
)
);
static
TOOL_ACTION
ACT_SetLengthTuneAmplIncrease
(
"pcbnew.InteractiveRouter.LengthTunerAmplIncrease"
,
AS_CONTEXT
,
'3'
,
"Length Tuning Settings"
,
"Sets the length tuning parameters for currently routed item."
);
_
(
"Length Tuning Settings"
),
_
(
"Sets the length tuning parameters for currently routed item."
)
);
static
TOOL_ACTION
ACT_SetLengthTuneAmplDecrease
(
"pcbnew.InteractiveRouter.LengthTunerAmplDecrease"
,
AS_CONTEXT
,
'4'
,
"Length Tuning Settings"
,
"Sets the length tuning parameters for currently routed item."
);
_
(
"Length Tuning Settings"
),
_
(
"Sets the length tuning parameters for currently routed item."
)
);
ROUTER_TOOL
::
ROUTER_TOOL
()
:
...
...
@@ -239,7 +248,7 @@ class ROUTER_TOOL_MENU: public CONTEXT_MENU
public
:
ROUTER_TOOL_MENU
(
BOARD
*
aBoard
,
PNS_ROUTER_MODE
aMode
)
{
SetTitle
(
wxT
(
"Interactive Router"
)
);
SetTitle
(
_
(
"Interactive Router"
)
);
Add
(
ACT_NewTrack
);
Add
(
ACT_EndTrack
);
// Add( ACT_AutoEndRoute ); // fixme: not implemented yet. Sorry.
...
...
@@ -253,7 +262,7 @@ public:
CONTEXT_TRACK_WIDTH_MENU
*
trackMenu
=
new
CONTEXT_TRACK_WIDTH_MENU
;
trackMenu
->
SetBoard
(
aBoard
);
AppendSubMenu
(
trackMenu
,
wxT
(
"Select Track Width"
)
);
AppendSubMenu
(
trackMenu
,
_
(
"Select Track Width"
)
);
Add
(
ACT_CustomTrackWidth
);
...
...
pcbnew/router/router_tool.cpp
View file @
6083f3b0
...
...
@@ -52,37 +52,35 @@
using
namespace
KIGFX
;
using
boost
::
optional
;
static
TOOL_ACTION
ACT_NewTrack
(
"pcbnew.InteractiveRouter.NewTrack"
,
AS_CONTEXT
,
'X'
,
"New Track"
,
"Starts laying a new track."
);
static
TOOL_ACTION
ACT_EndTrack
(
"pcbnew.InteractiveRouter.EndTrack"
,
AS_CONTEXT
,
WXK_END
,
"End Track"
,
"Stops laying the current track."
);
static
TOOL_ACTION
ACT_AutoEndRoute
(
"pcbnew.InteractiveRouter.AutoEndRoute"
,
AS_CONTEXT
,
'F'
,
"Auto-end Track"
,
"Automagically finishes currently routed track."
);
static
TOOL_ACTION
ACT_Drag
(
"pcbnew.InteractiveRouter.Drag"
,
AS_CONTEXT
,
'G'
,
"Drag Track/Via"
,
"Drags a track or a via."
);
static
TOOL_ACTION
ACT_PlaceThroughVia
(
"pcbnew.InteractiveRouter.PlaceVia"
,
AS_CONTEXT
,
'V'
,
"Place Through Via"
,
"Adds a through-hole via at the end of currently routed track."
);
static
TOOL_ACTION
ACT_PlaceBlindVia
(
"pcbnew.InteractiveRouter.PlaceBlindVia"
,
AS_CONTEXT
,
'Z'
,
"Place Blind/Buried Via"
,
"Adds a blind or buried via at the end of currently routed track."
);
static
TOOL_ACTION
ACT_PlaceMicroVia
(
"pcbnew.InteractiveRouter.PlaceMicroVia"
,
AS_CONTEXT
,
'Q'
,
"Place Microvia"
,
"Adds a microvia at the end of currently routed track."
);
static
TOOL_ACTION
ACT_CustomTrackWidth
(
"pcbnew.InteractiveRouter.CustomTrackWidth"
,
AS_CONTEXT
,
'W'
,
"Custom Track Width"
,
"Shows a dialog for changing the track width and via size."
);
static
TOOL_ACTION
ACT_SwitchPosture
(
"pcbnew.InteractiveRouter.SwitchPosture"
,
AS_CONTEXT
,
'/'
,
"Switch Track Posture"
,
"Switches posture of the currenly routed track."
);
static
TOOL_ACTION
ACT_SetDpDimensions
(
"pcbnew.InteractiveRouter.SetDpDimensions"
,
AS_CONTEXT
,
'D'
,
"Differential Pair Dimensions..."
,
"Sets the width and gap of the currently routed differential pair."
);
static
TOOL_ACTION
ACT_NewTrack
(
"pcbnew.InteractiveRouter.NewTrack"
,
AS_CONTEXT
,
'X'
,
_
(
"New Track"
),
_
(
"Starts laying a new track."
)
);
static
TOOL_ACTION
ACT_EndTrack
(
"pcbnew.InteractiveRouter.EndTrack"
,
AS_CONTEXT
,
WXK_END
,
_
(
"End Track"
),
_
(
"Stops laying the current track."
)
);
static
TOOL_ACTION
ACT_AutoEndRoute
(
"pcbnew.InteractiveRouter.AutoEndRoute"
,
AS_CONTEXT
,
'F'
,
_
(
"Auto-end Track"
),
_
(
"Automagically finishes currently routed track."
)
);
static
TOOL_ACTION
ACT_Drag
(
"pcbnew.InteractiveRouter.Drag"
,
AS_CONTEXT
,
'G'
,
_
(
"Drag Track/Via"
),
_
(
"Drags a track or a via."
)
);
static
TOOL_ACTION
ACT_PlaceThroughVia
(
"pcbnew.InteractiveRouter.PlaceVia"
,
AS_CONTEXT
,
'V'
,
_
(
"Place Through Via"
),
_
(
"Adds a through-hole via at the end of currently routed track."
)
);
static
TOOL_ACTION
ACT_PlaceBlindVia
(
"pcbnew.InteractiveRouter.PlaceBlindVia"
,
AS_CONTEXT
,
'Z'
,
_
(
"Place Blind/Buried Via"
),
_
(
"Adds a blind or buried via at the end of currently routed track."
)
);
static
TOOL_ACTION
ACT_PlaceMicroVia
(
"pcbnew.InteractiveRouter.PlaceMicroVia"
,
AS_CONTEXT
,
'Q'
,
_
(
"Place Microvia"
),
_
(
"Adds a microvia at the end of currently routed track."
)
);
static
TOOL_ACTION
ACT_CustomTrackWidth
(
"pcbnew.InteractiveRouter.CustomTrackWidth"
,
AS_CONTEXT
,
'W'
,
_
(
"Custom Track Width"
),
_
(
"Shows a dialog for changing the track width and via size."
)
);
static
TOOL_ACTION
ACT_SwitchPosture
(
"pcbnew.InteractiveRouter.SwitchPosture"
,
AS_CONTEXT
,
'/'
,
_
(
"Switch Track Posture"
),
_
(
"Switches posture of the currenly routed track."
)
);
static
TOOL_ACTION
ACT_SetDpDimensions
(
"pcbnew.InteractiveRouter.SetDpDimensions"
,
AS_CONTEXT
,
'D'
,
_
(
"Differential Pair Dimensions..."
),
_
(
"Sets the width and gap of the currently routed differential pair."
)
);
ROUTER_TOOL
::
ROUTER_TOOL
()
:
...
...
@@ -131,7 +129,7 @@ public:
for
(
unsigned
i
=
0
;
i
<
bds
.
m_ViasDimensionsList
.
size
();
i
++
)
{
msg
=
_
(
"Via "
);
msg
=
_
(
"Via "
);
msg
<<
StringFromValue
(
g_UserUnit
,
bds
.
m_ViasDimensionsList
[
i
].
m_Diameter
,
true
);
wxString
drill
=
StringFromValue
(
g_UserUnit
,
bds
.
m_ViasDimensionsList
[
i
].
m_Drill
,
...
...
@@ -139,11 +137,11 @@ public:
if
(
bds
.
m_ViasDimensionsList
[
i
].
m_Drill
<=
0
)
{
msg
<<
_
(
", drill: default"
);
msg
<<
_
(
", drill: default"
);
}
else
{
msg
<<
_
(
", drill: "
)
<<
drill
;
msg
<<
_
(
", drill: "
)
<<
drill
;
}
if
(
i
==
0
)
...
...
@@ -212,7 +210,7 @@ class ROUTER_TOOL_MENU: public CONTEXT_MENU
public
:
ROUTER_TOOL_MENU
(
BOARD
*
aBoard
,
PNS_ROUTER_MODE
aMode
)
{
SetTitle
(
wxT
(
"Interactive Router"
)
);
SetTitle
(
_
(
"Interactive Router"
)
);
Add
(
ACT_NewTrack
);
Add
(
ACT_EndTrack
);
// Add( ACT_AutoEndRoute ); // fixme: not implemented yet. Sorry.
...
...
@@ -226,7 +224,7 @@ public:
CONTEXT_TRACK_WIDTH_MENU
*
trackMenu
=
new
CONTEXT_TRACK_WIDTH_MENU
;
trackMenu
->
SetBoard
(
aBoard
);
AppendSubMenu
(
trackMenu
,
wxT
(
"Select Track Width"
)
);
AppendSubMenu
(
trackMenu
,
_
(
"Select Track Width"
)
);
Add
(
ACT_CustomTrackWidth
);
...
...
@@ -241,7 +239,6 @@ public:
ROUTER_TOOL
::~
ROUTER_TOOL
()
{
}
...
...
@@ -452,7 +449,7 @@ bool ROUTER_TOOL::prepareInteractive()
if
(
!
m_router
->
StartRouting
(
m_startSnapPoint
,
m_startItem
,
routingLayer
)
)
{
wxMessageBox
(
m_router
->
FailureReason
(),
_
(
"Error"
)
);
wxMessageBox
(
m_router
->
FailureReason
(),
_
(
"Error"
)
);
highlightNet
(
false
);
return
false
;
}
...
...
pcbnew/tools/common_actions.cpp
View file @
6083f3b0
This diff is collapsed.
Click to expand it.
pcbnew/tools/pcb_editor_control.cpp
View file @
6083f3b0
...
...
@@ -73,7 +73,7 @@ bool PCB_EDITOR_CONTROL::Init()
if
(
selTool
)
{
selTool
->
AddSubMenu
(
new
ZONE_CONTEXT_MENU
,
wxT
(
"Zones"
),
selTool
->
AddSubMenu
(
new
ZONE_CONTEXT_MENU
,
_
(
"Zones"
),
SELECTION_CONDITIONS
::
OnlyType
(
PCB_ZONE_AREA_T
)
);
}
...
...
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