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
7beb0f22
Commit
7beb0f22
authored
Oct 18, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partial move back towards UIpolicy.txt
parent
53b0165b
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
459 additions
and
457 deletions
+459
-457
dialog_edit_component_in_schematic.h
eeschema/dialog_edit_component_in_schematic.h
+1
-1
edit_component_in_lib.cpp
eeschema/edit_component_in_lib.cpp
+7
-5
libedit_onrightclick.cpp
eeschema/libedit_onrightclick.cpp
+195
-195
onrightclick.cpp
eeschema/onrightclick.cpp
+70
-70
pinedit-dialog.cpp
eeschema/pinedit-dialog.cpp
+110
-110
buildmnu.cpp
kicad/buildmnu.cpp
+8
-8
menubarpcb.cpp
pcbnew/menubarpcb.cpp
+30
-30
onrightclick.cpp
pcbnew/onrightclick.cpp
+38
-38
No files found.
eeschema/dialog_edit_component_in_schematic.h
View file @
7beb0f22
...
@@ -49,7 +49,7 @@ class wxNotebook;
...
@@ -49,7 +49,7 @@ class wxNotebook;
#define ID_CHECKBOX_FILED_ORIENT 10011
#define ID_CHECKBOX_FILED_ORIENT 10011
#define ID_RESTORE_CMP_DEFAULTS 10006
#define ID_RESTORE_CMP_DEFAULTS 10006
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_STYLE wxDEFAULT_DIALOG_STYLE|MAYBE_RESIZE_BORDER
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_STYLE wxDEFAULT_DIALOG_STYLE|MAYBE_RESIZE_BORDER
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_TITLE _("Component
p
roperties")
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_TITLE _("Component
P
roperties")
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_POSITION wxDefaultPosition
#define SYMBOL_WINEDA_COMPONENTPROPERTIESFRAME_POSITION wxDefaultPosition
...
...
eeschema/edit_component_in_lib.cpp
View file @
7beb0f22
...
@@ -472,10 +472,12 @@ void WinEDA_PartPropertiesFrame::BuildPanelEditField()
...
@@ -472,10 +472,12 @@ void WinEDA_PartPropertiesFrame::BuildPanelEditField()
* of the component
* of the component
*/
*/
{
{
wxString
Hjustify_list
[]
=
static
const
wxString
Hjustify_list
[]
=
{
_
(
"Align left"
),
_
(
"Align center"
),
_
(
"Align right"
)
};
{
_
(
"Align left"
),
_
(
"Align center"
),
_
(
"Align right"
)
};
wxString
Vjustify_list
[]
=
static
const
wxString
Vjustify_list
[]
=
{
_
(
"Align bottom"
),
_
(
"Align center"
),
_
(
"Align top"
)
};
{
_
(
"Align bottom"
),
_
(
"Align center"
),
_
(
"Align top"
)
};
int
FieldId
=
m_CurrentFieldId
;
int
FieldId
=
m_CurrentFieldId
;
m_PanelField
=
new
wxPanel
(
m_NoteBook
,
ID_PANEL_FIELD
);
m_PanelField
=
new
wxPanel
(
m_NoteBook
,
ID_PANEL_FIELD
);
...
...
eeschema/libedit_onrightclick.cpp
View file @
7beb0f22
...
@@ -165,7 +165,7 @@ bool BlockActive = (GetScreen()->BlockLocate.m_Command != BLOCK_IDLE);
...
@@ -165,7 +165,7 @@ bool BlockActive = (GetScreen()->BlockLocate.m_Command != BLOCK_IDLE);
case
COMPONENT_FIELD_DRAW_TYPE
:
case
COMPONENT_FIELD_DRAW_TYPE
:
if
(
DrawEntry
->
m_Flags
==
0
)
if
(
DrawEntry
->
m_Flags
==
0
)
{
{
msg
=
AddHotkeyName
(
_
(
"Move f
ield "
),
s_Libedit_Hokeys_Descr
,
HK_MOVE_PIN
);
msg
=
AddHotkeyName
(
_
(
"Move F
ield "
),
s_Libedit_Hokeys_Descr
,
HK_MOVE_PIN
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_MOVE_ITEM_REQUEST
,
msg
,
move_field_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_MOVE_ITEM_REQUEST
,
msg
,
move_field_xpm
);
}
}
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_FIELD_ROTATE_ITEM
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_FIELD_ROTATE_ITEM
,
...
@@ -211,13 +211,13 @@ bool not_in_move = (Pin->m_Flags == 0);
...
@@ -211,13 +211,13 @@ bool not_in_move = (Pin->m_Flags == 0);
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_ITEM
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_ITEM
,
_
(
"Global"
),
pin_to_xpm
);
_
(
"Global"
),
pin_to_xpm
);
ADD_MENUITEM
(
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINSIZE_ITEM
,
ADD_MENUITEM
(
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINSIZE_ITEM
,
selected
?
_
(
"Pin Size to selected pins"
)
:
_
(
"Pin Size to o
thers"
),
selected
?
_
(
"Pin Size to selected pins"
)
:
_
(
"Pin Size to O
thers"
),
pin_size_to_xpm
);
pin_size_to_xpm
);
ADD_MENUITEM
(
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNAMESIZE_ITEM
,
ADD_MENUITEM
(
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNAMESIZE_ITEM
,
selected
?
_
(
"Pin Name Size to selected pin"
)
:
_
(
"Pin Name Size to o
thers"
),
selected
?
_
(
"Pin Name Size to selected pin"
)
:
_
(
"Pin Name Size to O
thers"
),
pin_name_to_xpm
);
pin_name_to_xpm
);
ADD_MENUITEM
(
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNUMSIZE_ITEM
,
ADD_MENUITEM
(
global_pin_change
,
ID_POPUP_LIBEDIT_PIN_GLOBAL_CHANGE_PINNUMSIZE_ITEM
,
selected
?
_
(
"Pin Num Size to selected pin"
)
:
_
(
"Pin Num Size to o
thers"
),
selected
?
_
(
"Pin Num Size to selected pin"
)
:
_
(
"Pin Num Size to O
thers"
),
pin_number_to_xpm
);
pin_number_to_xpm
);
}
}
...
@@ -230,21 +230,21 @@ void AddMenusForBlock(wxMenu * PopMenu, WinEDA_LibeditFrame * frame)
...
@@ -230,21 +230,21 @@ void AddMenusForBlock(wxMenu * PopMenu, WinEDA_LibeditFrame * frame)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_CANCEL_EDITING
,
_
(
"Cancel Block"
),
cancel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_LIBEDIT_CANCEL_EDITING
,
_
(
"Cancel Block"
),
cancel_xpm
);
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_ZOOM_BLOCK
,
_
(
"Zoom Block (drag middle mouse)"
),
zoom_selected_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_ZOOM_BLOCK
,
_
(
"Zoom Block (drag middle mouse)"
),
zoom_selected_xpm
);
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PLACE_BLOCK
,
_
(
"Place Block"
),
apply_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PLACE_BLOCK
,
_
(
"Place Block"
),
apply_xpm
);
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SELECT_ITEMS_BLOCK
,
_
(
"Select i
tems"
),
green_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SELECT_ITEMS_BLOCK
,
_
(
"Select I
tems"
),
green_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_COPY_BLOCK
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_COPY_BLOCK
,
_
(
"Copy b
lock"
),
copyblock_xpm
);
_
(
"Copy B
lock"
),
copyblock_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_INVERT_BLOCK
,
_
(
"Mirror b
lock"
),
mirror_H_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_INVERT_BLOCK
,
_
(
"Mirror B
lock"
),
mirror_H_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_DELETE_BLOCK
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_DELETE_BLOCK
,
_
(
"Delete b
lock"
),
delete_xpm
);
_
(
"Delete B
lock"
),
delete_xpm
);
}
}
}
}
eeschema/onrightclick.cpp
View file @
7beb0f22
...
@@ -131,7 +131,7 @@ bool WinEDA_SchematicFrame::OnRightClick( const wxPoint& MousePos,
...
@@ -131,7 +131,7 @@ bool WinEDA_SchematicFrame::OnRightClick( const wxPoint& MousePos,
{
{
case
DRAW_NOCONNECT_STRUCT_TYPE
:
case
DRAW_NOCONNECT_STRUCT_TYPE
:
// if( !flags ) PopMenu->Append(ID_POPUP_SCH_MOVE_ITEM_REQUEST, "Move
n
oconnect");
// if( !flags ) PopMenu->Append(ID_POPUP_SCH_MOVE_ITEM_REQUEST, "Move
N
oconnect");
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete Noconn"
),
delete_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete Noconn"
),
delete_xpm
);
break
;
break
;
...
@@ -270,12 +270,12 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
...
@@ -270,12 +270,12 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
if
(
!
Component
->
m_Flags
)
if
(
!
Component
->
m_Flags
)
{
{
msg
=
_
(
"Move
c
omponent"
);
msg
=
_
(
"Move
C
omponent"
);
msg
<<
wxT
(
" "
)
<<
Component
->
GetField
(
REFERENCE
)
->
m_Text
;
msg
<<
wxT
(
" "
)
<<
Component
->
GetField
(
REFERENCE
)
->
m_Text
;
msg
=
AddHotkeyName
(
msg
,
s_Schematic_Hokeys_Descr
,
HK_MOVE_COMPONENT
);
msg
=
AddHotkeyName
(
msg
,
s_Schematic_Hokeys_Descr
,
HK_MOVE_COMPONENT
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_CMP_REQUEST
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_CMP_REQUEST
,
msg
,
move_xpm
);
msg
,
move_xpm
);
msg
=
AddHotkeyName
(
_
(
"Drag
c
omponent"
),
s_Schematic_Hokeys_Descr
,
HK_DRAG_COMPONENT
);
msg
=
AddHotkeyName
(
_
(
"Drag
C
omponent"
),
s_Schematic_Hokeys_Descr
,
HK_DRAG_COMPONENT
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DRAG_CMP_REQUEST
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DRAG_CMP_REQUEST
,
msg
,
move_xpm
);
msg
,
move_xpm
);
}
}
...
@@ -294,7 +294,7 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
...
@@ -294,7 +294,7 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
ADD_MENUITEM
(
orientmenu
,
ID_POPUP_SCH_ORIENT_NORMAL_CMP
,
msg
,
normal_xpm
);
ADD_MENUITEM
(
orientmenu
,
ID_POPUP_SCH_ORIENT_NORMAL_CMP
,
msg
,
normal_xpm
);
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
orientmenu
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
orientmenu
,
ID_POPUP_SCH_GENERIC_ORIENT_CMP
,
_
(
ID_POPUP_SCH_GENERIC_ORIENT_CMP
,
_
(
"Orient
c
omponent"
),
orient_xpm
);
"Orient
C
omponent"
),
orient_xpm
);
wxMenu
*
editmenu
=
new
wxMenu
;
wxMenu
*
editmenu
=
new
wxMenu
;
ADD_MENUITEM
(
editmenu
,
ID_POPUP_SCH_EDIT_CMP
,
_
(
"Edit"
),
edit_component_xpm
);
ADD_MENUITEM
(
editmenu
,
ID_POPUP_SCH_EDIT_CMP
,
_
(
"Edit"
),
edit_component_xpm
);
...
@@ -330,12 +330,12 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
...
@@ -330,12 +330,12 @@ void AddMenusForComponent( wxMenu* PopMenu, SCH_COMPONENT* Component )
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
editmenu
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
editmenu
,
ID_POPUP_SCH_GENERIC_EDIT_CMP
,
_
(
ID_POPUP_SCH_GENERIC_EDIT_CMP
,
_
(
"Edit
c
omponent"
),
edit_component_xpm
);
"Edit
C
omponent"
),
edit_component_xpm
);
if
(
!
Component
->
m_Flags
)
if
(
!
Component
->
m_Flags
)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_COPY_COMPONENT_CMP
,
_
(
"Copy
c
omponent"
),
import_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_COPY_COMPONENT_CMP
,
_
(
"Copy
C
omponent"
),
import_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_CMP
,
_
(
"Delete
c
omponent"
),
delete_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_CMP
,
_
(
"Delete
C
omponent"
),
delete_xpm
);
}
}
LibEntry
=
FindLibPart
(
Component
->
m_ChipName
.
GetData
(),
wxEmptyString
,
FIND_ALIAS
);
LibEntry
=
FindLibPart
(
Component
->
m_ChipName
.
GetData
(),
wxEmptyString
,
FIND_ALIAS
);
...
@@ -354,20 +354,20 @@ void AddMenusForGLabel( wxMenu* PopMenu, SCH_GLOBALLABEL* GLabel )
...
@@ -354,20 +354,20 @@ void AddMenusForGLabel( wxMenu* PopMenu, SCH_GLOBALLABEL* GLabel )
wxMenu
*
menu_change_type
=
new
wxMenu
;
wxMenu
*
menu_change_type
=
new
wxMenu
;
if
(
!
GLabel
->
m_Flags
)
if
(
!
GLabel
->
m_Flags
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
global l
abel"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
Global L
abel"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
global l
abel"
),
rotate_glabel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
Global L
abel"
),
rotate_glabel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
global l
abel"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
Global L
abel"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
global l
abel"
),
delete_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
Global L
abel"
),
delete_text_xpm
);
// add menu change type text (to label, glabel, text):
// add menu change type text (to label, glabel, text):
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_HLABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_HLABEL
,
_
(
"Change to
hierarchical l
abel"
),
label2glabel_xpm
);
_
(
"Change to
Hierarchical L
abel"
),
label2glabel_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_LABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_LABEL
,
_
(
"Change to
l
abel"
),
glabel2label_xpm
);
_
(
"Change to
L
abel"
),
glabel2label_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_COMMENT
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_COMMENT
,
_
(
"Change to
t
ext"
),
glabel2text_xpm
);
_
(
"Change to
T
ext"
),
glabel2text_xpm
);
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
t
ype"
),
gl_change_xpm
);
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
T
ype"
),
gl_change_xpm
);
}
}
...
@@ -381,20 +381,20 @@ void AddMenusForHLabel( wxMenu* PopMenu, SCH_HIERLABEL* HLabel )
...
@@ -381,20 +381,20 @@ void AddMenusForHLabel( wxMenu* PopMenu, SCH_HIERLABEL* HLabel )
wxMenu
*
menu_change_type
=
new
wxMenu
;
wxMenu
*
menu_change_type
=
new
wxMenu
;
if
(
!
HLabel
->
m_Flags
)
if
(
!
HLabel
->
m_Flags
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
hierarchical l
abel"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
Hierarchical L
abel"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
h
ierarchical Label"
),
rotate_glabel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
H
ierarchical Label"
),
rotate_glabel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
h
ierarchical Label"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
H
ierarchical Label"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
h
ierarchical label"
),
delete_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
H
ierarchical label"
),
delete_text_xpm
);
// add menu change type text (to label, glabel, text):
// add menu change type text (to label, glabel, text):
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_LABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_LABEL
,
_
(
"Change to
l
abel"
),
glabel2label_xpm
);
_
(
"Change to
L
abel"
),
glabel2label_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_COMMENT
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_COMMENT
,
_
(
"Change to
t
ext"
),
glabel2text_xpm
);
_
(
"Change to
T
ext"
),
glabel2text_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_GLABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_GLABEL
,
_
(
"Change to
global l
abel"
),
label2glabel_xpm
);
_
(
"Change to
Global L
abel"
),
label2glabel_xpm
);
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
t
ype"
),
gl_change_xpm
);
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
T
ype"
),
gl_change_xpm
);
}
}
...
@@ -408,20 +408,20 @@ void AddMenusForLabel( wxMenu* PopMenu, SCH_LABEL* Label )
...
@@ -408,20 +408,20 @@ void AddMenusForLabel( wxMenu* PopMenu, SCH_LABEL* Label )
wxMenu
*
menu_change_type
=
new
wxMenu
;
wxMenu
*
menu_change_type
=
new
wxMenu
;
if
(
!
Label
->
m_Flags
)
if
(
!
Label
->
m_Flags
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
l
abel"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
L
abel"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
l
abel"
),
rotate_pos_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
L
abel"
),
rotate_pos_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
l
abel"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
L
abel"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
l
abel"
),
delete_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
L
abel"
),
delete_text_xpm
);
// add menu change type text (to label, glabel, text):
// add menu change type text (to label, glabel, text):
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_HLABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_HLABEL
,
_
(
"Change to
hierarchical l
abel"
),
label2glabel_xpm
);
_
(
"Change to
Hierarchical L
abel"
),
label2glabel_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_COMMENT
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_COMMENT
,
_
(
"Change to
t
ext"
),
label2text_xpm
);
_
(
"Change to
T
ext"
),
label2text_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_GLABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_GLABEL
,
_
(
"Change to
global l
abel"
),
label2glabel_xpm
);
_
(
"Change to
Global L
abel"
),
label2glabel_xpm
);
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
t
ype"
),
gl_change_xpm
);
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
T
ype"
),
gl_change_xpm
);
}
}
...
@@ -435,20 +435,20 @@ void AddMenusForText( wxMenu* PopMenu, SCH_TEXT* Text )
...
@@ -435,20 +435,20 @@ void AddMenusForText( wxMenu* PopMenu, SCH_TEXT* Text )
wxMenu
*
menu_change_type
=
new
wxMenu
;
wxMenu
*
menu_change_type
=
new
wxMenu
;
if
(
!
Text
->
m_Flags
)
if
(
!
Text
->
m_Flags
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
t
ext"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
T
ext"
),
move_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
t
ext"
),
rotate_pos_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ROTATE_TEXT
,
_
(
"Rotate
T
ext"
),
rotate_pos_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
t
ext"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_TEXT
,
_
(
"Edit
T
ext"
),
edit_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
t
ext"
),
delete_text_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
T
ext"
),
delete_text_xpm
);
// add menu change type text (to label, glabel, text):
// add menu change type text (to label, glabel, text):
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_LABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_LABEL
,
_
(
"Change to
l
abel"
),
label2text_xpm
);
_
(
"Change to
L
abel"
),
label2text_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_HLABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_HLABEL
,
_
(
"Change to
hierarchical l
abel"
),
label2glabel_xpm
);
_
(
"Change to
Hierarchical L
abel"
),
label2glabel_xpm
);
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_GLABEL
,
ADD_MENUITEM
(
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT_TO_GLABEL
,
_
(
"Change to Glabel"
),
label2glabel_xpm
);
_
(
"Change to Glabel"
),
label2glabel_xpm
);
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_change_type
,
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
t
ype"
),
gl_change_xpm
);
ID_POPUP_SCH_CHANGE_TYPE_TEXT
,
_
(
"Change
T
ype"
),
gl_change_xpm
);
}
}
...
@@ -466,17 +466,17 @@ void AddMenusForJunction( wxMenu* PopMenu, DrawJunctionStruct* Junction,
...
@@ -466,17 +466,17 @@ void AddMenusForJunction( wxMenu* PopMenu, DrawJunctionStruct* Junction,
{
{
if
(
PickStruct
(
frame
->
GetScreen
()
->
m_Curseur
,
frame
->
GetScreen
(),
if
(
PickStruct
(
frame
->
GetScreen
()
->
m_Curseur
,
frame
->
GetScreen
(),
WIREITEM
|
BUSITEM
|
EXCLUDE_WIRE_BUS_ENDPOINTS
)
)
WIREITEM
|
BUSITEM
|
EXCLUDE_WIRE_BUS_ENDPOINTS
)
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_BREAK_WIRE
,
_
(
"Break
w
ire"
),
break_line_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_BREAK_WIRE
,
_
(
"Break
W
ire"
),
break_line_xpm
);
}
}
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
j
unction"
),
delete_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
J
unction"
),
delete_xpm
);
if
(
PickStruct
(
frame
->
GetScreen
()
->
m_Curseur
,
frame
->
GetScreen
(),
if
(
PickStruct
(
frame
->
GetScreen
()
->
m_Curseur
,
frame
->
GetScreen
(),
WIREITEM
|
BUSITEM
)
)
WIREITEM
|
BUSITEM
)
)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_NODE
,
_
(
"Delete
n
ode"
),
delete_node_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_NODE
,
_
(
"Delete
N
ode"
),
delete_node_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_CONNECTION
,
_
(
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_CONNECTION
,
_
(
"Delete
c
onnection"
),
delete_connection_xpm
);
"Delete
C
onnection"
),
delete_connection_xpm
);
}
}
}
}
...
@@ -493,30 +493,30 @@ void AddMenusForWire( wxMenu* PopMenu, EDA_DrawLineStruct* Wire,
...
@@ -493,30 +493,30 @@ void AddMenusForWire( wxMenu* PopMenu, EDA_DrawLineStruct* Wire,
wxPoint
pos
=
frame
->
GetScreen
()
->
m_Curseur
;
wxPoint
pos
=
frame
->
GetScreen
()
->
m_Curseur
;
if
(
is_new
)
if
(
is_new
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_END_LINE
,
_
(
"Wire
e
nd"
),
apply_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_END_LINE
,
_
(
"Wire
E
nd"
),
apply_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
w
ire"
),
delete_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
W
ire"
),
delete_xpm
);
if
(
is_new
)
if
(
is_new
)
return
;
return
;
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_NODE
,
_
(
"Delete
n
ode"
),
delete_node_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_NODE
,
_
(
"Delete
N
ode"
),
delete_node_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_CONNECTION
,
_
(
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE_CONNECTION
,
_
(
"Delete
c
onnection"
),
delete_connection_xpm
);
"Delete
C
onnection"
),
delete_connection_xpm
);
if
(
PickStruct
(
frame
->
GetScreen
()
->
m_Curseur
,
frame
->
GetScreen
(),
if
(
PickStruct
(
frame
->
GetScreen
()
->
m_Curseur
,
frame
->
GetScreen
(),
WIREITEM
|
BUSITEM
|
EXCLUDE_WIRE_BUS_ENDPOINTS
)
)
WIREITEM
|
BUSITEM
|
EXCLUDE_WIRE_BUS_ENDPOINTS
)
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_BREAK_WIRE
,
_
(
"Break
w
ire"
),
break_line_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_BREAK_WIRE
,
_
(
"Break
W
ire"
),
break_line_xpm
);
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_JUNCTION
,
_
(
"Add
j
unction"
),
add_junction_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_JUNCTION
,
_
(
"Add
J
unction"
),
add_junction_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_LABEL
,
_
(
"Add
l
abel"
),
add_line_label_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_LABEL
,
_
(
"Add
L
abel"
),
add_line_label_xpm
);
// Place Global label command only if the cursor is over one end of the Wire:
// Place Global label command only if the cursor is over one end of the Wire:
if
(
(
pos
.
x
==
Wire
->
m_Start
.
x
&&
pos
.
y
==
Wire
->
m_Start
.
y
)
if
(
(
pos
.
x
==
Wire
->
m_Start
.
x
&&
pos
.
y
==
Wire
->
m_Start
.
y
)
||
(
pos
.
x
==
Wire
->
m_End
.
x
&&
pos
.
y
==
Wire
->
m_End
.
y
)
)
||
(
pos
.
x
==
Wire
->
m_End
.
x
&&
pos
.
y
==
Wire
->
m_End
.
y
)
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_GLABEL
,
_
(
"Add
global l
abel"
),
add_glabel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_GLABEL
,
_
(
"Add
Global L
abel"
),
add_glabel_xpm
);
}
}
...
@@ -532,23 +532,23 @@ void AddMenusForBus( wxMenu* PopMenu, EDA_DrawLineStruct* Bus,
...
@@ -532,23 +532,23 @@ void AddMenusForBus( wxMenu* PopMenu, EDA_DrawLineStruct* Bus,
wxPoint
pos
=
frame
->
GetScreen
()
->
m_Curseur
;
wxPoint
pos
=
frame
->
GetScreen
()
->
m_Curseur
;
if
(
is_new
)
if
(
is_new
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_END_LINE
,
_
(
"Bus
e
nd"
),
apply_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_END_LINE
,
_
(
"Bus
E
nd"
),
apply_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
b
us"
),
delete_bus_xpm
);
_
(
"Delete
B
us"
),
delete_bus_xpm
);
if
(
!
is_new
)
if
(
!
is_new
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_BREAK_WIRE
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_BREAK_WIRE
,
_
(
"Break
b
us"
),
break_bus_xpm
);
_
(
"Break
B
us"
),
break_bus_xpm
);
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_JUNCTION
,
_
(
"Add
j
unction"
),
add_junction_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_JUNCTION
,
_
(
"Add
J
unction"
),
add_junction_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_LABEL
,
_
(
"Add
l
abel"
),
add_line_label_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_LABEL
,
_
(
"Add
L
abel"
),
add_line_label_xpm
);
// Place Global label command only if the cursor is over one end of the Bus:
// Place Global label command only if the cursor is over one end of the Bus:
if
(
(
pos
.
x
==
Bus
->
m_Start
.
x
&&
pos
.
y
==
Bus
->
m_Start
.
y
)
if
(
(
pos
.
x
==
Bus
->
m_Start
.
x
&&
pos
.
y
==
Bus
->
m_Start
.
y
)
||
(
pos
.
x
==
Bus
->
m_End
.
x
&&
pos
.
y
==
Bus
->
m_End
.
y
)
)
||
(
pos
.
x
==
Bus
->
m_End
.
x
&&
pos
.
y
==
Bus
->
m_End
.
y
)
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_GLABEL
,
_
(
"Add
global l
abel"
),
add_glabel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ADD_GLABEL
,
_
(
"Add
Global L
abel"
),
add_glabel_xpm
);
}
}
...
@@ -561,23 +561,23 @@ void AddMenusForHierchicalSheet( wxMenu* PopMenu, DrawSheetStruct* Sheet )
...
@@ -561,23 +561,23 @@ void AddMenusForHierchicalSheet( wxMenu* PopMenu, DrawSheetStruct* Sheet )
{
{
if
(
!
Sheet
->
m_Flags
)
if
(
!
Sheet
->
m_Flags
)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ENTER_SHEET
,
_
(
"Enter
s
heet"
),
enter_sheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_ENTER_SHEET
,
_
(
"Enter
S
heet"
),
enter_sheet_xpm
);
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
s
heet"
),
move_sheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_MOVE_ITEM_REQUEST
,
_
(
"Move
S
heet"
),
move_sheet_xpm
);
}
}
if
(
Sheet
->
m_Flags
)
if
(
Sheet
->
m_Flags
)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_END_SHEET
,
_
(
"Place
s
heet"
),
apply_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_END_SHEET
,
_
(
"Place
S
heet"
),
apply_xpm
);
}
}
else
else
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_SHEET
,
_
(
"Edit
s
heet"
),
edit_sheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_SHEET
,
_
(
"Edit
S
heet"
),
edit_sheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_RESIZE_SHEET
,
_
(
"Resize
s
heet"
),
resize_sheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_RESIZE_SHEET
,
_
(
"Resize
S
heet"
),
resize_sheet_xpm
);
if
(
Sheet
->
m_Label
)
// Sheet has pin labels, and can be cleaned
if
(
Sheet
->
m_Label
)
// Sheet has pin labels, and can be cleaned
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_CLEANUP_SHEET
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_CLEANUP_SHEET
,
_
(
"Cleanup PinSheets"
),
options_pinsheet_xpm
);
_
(
"Cleanup PinSheets"
),
options_pinsheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
s
heet"
),
delete_sheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete
S
heet"
),
delete_sheet_xpm
);
}
}
}
}
...
@@ -606,28 +606,28 @@ void AddMenusForBlock( wxMenu* PopMenu, WinEDA_SchematicFrame* frame )
...
@@ -606,28 +606,28 @@ void AddMenusForBlock( wxMenu* PopMenu, WinEDA_SchematicFrame* frame )
/* Add menu commands for block
/* Add menu commands for block
*/
*/
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_CANCEL_CURRENT_COMMAND
,
_
(
"Cancel
b
lock"
),
cancel_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_CANCEL_CURRENT_COMMAND
,
_
(
"Cancel
B
lock"
),
cancel_xpm
);
PopMenu
->
AppendSeparator
();
PopMenu
->
AppendSeparator
();
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_ZOOM_BLOCK
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_ZOOM_BLOCK
,
_
(
"Zoom
b
lock"
),
zoom_selected_xpm
);
_
(
"Zoom
B
lock"
),
zoom_selected_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PLACE_BLOCK
,
_
(
"Place
b
lock"
),
apply_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PLACE_BLOCK
,
_
(
"Place
B
lock"
),
apply_xpm
);
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
if
(
frame
->
GetScreen
()
->
BlockLocate
.
m_Command
==
BLOCK_MOVE
)
{
{
wxMenu
*
menu_other_block_commands
=
new
wxMenu
;
wxMenu
*
menu_other_block_commands
=
new
wxMenu
;
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_other_block_commands
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
menu_other_block_commands
,
-
1
,
_
(
"Other
block c
ommands"
),
right_xpm
);
-
1
,
_
(
"Other
Block C
ommands"
),
right_xpm
);
ADD_MENUITEM
(
menu_other_block_commands
,
wxID_COPY
,
_
(
"Save
b
lock"
),
copy_button
);
ADD_MENUITEM
(
menu_other_block_commands
,
wxID_COPY
,
_
(
"Save
B
lock"
),
copy_button
);
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_COPY_BLOCK
,
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_COPY_BLOCK
,
_
(
"Copy
b
lock"
),
copyblock_xpm
);
_
(
"Copy
B
lock"
),
copyblock_xpm
);
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_DRAG_BLOCK
,
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_DRAG_BLOCK
,
_
(
"Drag
b
lock"
),
move_xpm
);
_
(
"Drag
B
lock"
),
move_xpm
);
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_DELETE_BLOCK
,
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_DELETE_BLOCK
,
_
(
"Delete
b
lock"
),
delete_xpm
);
_
(
"Delete
B
lock"
),
delete_xpm
);
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_MIRROR_Y_BLOCK
,
_
(
ADD_MENUITEM
(
menu_other_block_commands
,
ID_POPUP_MIRROR_Y_BLOCK
,
_
(
"Mirror Block ||"
),
mirror_H_xpm
);
"Mirror Block ||"
),
mirror_H_xpm
);
#if 0
#if 0
...
...
eeschema/pinedit-dialog.cpp
View file @
7beb0f22
...
@@ -187,7 +187,7 @@ void WinEDA_PinPropertiesFrame::CreateControls()
...
@@ -187,7 +187,7 @@ void WinEDA_PinPropertiesFrame::CreateControls()
m_PinSizeIncDecButton
->
SetValue
(
0
);
m_PinSizeIncDecButton
->
SetValue
(
0
);
itemBoxSizer10
->
Add
(
m_PinSizeIncDecButton
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
,
5
);
itemBoxSizer10
->
Add
(
m_PinSizeIncDecButton
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
,
5
);
m_PinSizeText
=
new
wxStaticText
(
itemDialog1
,
wxID_STATIC
,
_
(
"Pin leng
ht
"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_PinSizeText
=
new
wxStaticText
(
itemDialog1
,
wxID_STATIC
,
_
(
"Pin leng
th
"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
itemStaticBoxSizer9
->
Add
(
m_PinSizeText
,
0
,
wxALIGN_LEFT
|
wxLEFT
|
wxRIGHT
|
wxTOP
|
wxADJUST_MINSIZE
,
5
);
itemStaticBoxSizer9
->
Add
(
m_PinSizeText
,
0
,
wxALIGN_LEFT
|
wxLEFT
|
wxRIGHT
|
wxTOP
|
wxADJUST_MINSIZE
,
5
);
m_CommonUnit
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_COMMON_UNITS
,
_
(
"Common to units"
),
wxDefaultPosition
,
wxDefaultSize
,
wxCHK_2STATE
);
m_CommonUnit
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_COMMON_UNITS
,
_
(
"Common to units"
),
wxDefaultPosition
,
wxDefaultSize
,
wxCHK_2STATE
);
...
...
kicad/buildmnu.cpp
View file @
7beb0f22
...
@@ -89,26 +89,26 @@ void WinEDA_MainFrame::ReCreateMenuBar()
...
@@ -89,26 +89,26 @@ void WinEDA_MainFrame::ReCreateMenuBar()
m_FilesMenu
=
new
wxMenu
;
m_FilesMenu
=
new
wxMenu
;
wxMenuItem
*
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_LOAD_PROJECT
,
wxMenuItem
*
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_LOAD_PROJECT
,
_
(
"&Open
p
roject"
),
_
(
"&Open
P
roject"
),
_
(
"Select an existing project"
)
);
_
(
"Select an existing project"
)
);
item
->
SetBitmap
(
open_project_xpm
);
item
->
SetBitmap
(
open_project_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_NEW_PROJECT
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_NEW_PROJECT
,
_
(
"&New
p
roject"
),
_
(
"&New
P
roject"
),
_
(
"Create new project"
)
);
_
(
"Create new project"
)
);
item
->
SetBitmap
(
new_project_xpm
);
item
->
SetBitmap
(
new_project_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_SAVE_PROJECT
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_SAVE_PROJECT
,
_
(
"&Save
p
roject"
),
_
(
"&Save
P
roject"
),
_
(
"Save current project"
)
);
_
(
"Save current project"
)
);
item
->
SetBitmap
(
save_project_xpm
);
item
->
SetBitmap
(
save_project_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
AppendSeparator
();
m_FilesMenu
->
AppendSeparator
();
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_SAVE_AND_ZIP_FILES
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_SAVE_AND_ZIP_FILES
,
_
(
"Save &
project f
iles"
),
_
(
"Save &
Project F
iles"
),
_
(
"Save and Zip all project files"
)
);
_
(
"Save and Zip all project files"
)
);
item
->
SetBitmap
(
zip_xpm
);
item
->
SetBitmap
(
zip_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
...
@@ -138,19 +138,19 @@ void WinEDA_MainFrame::ReCreateMenuBar()
...
@@ -138,19 +138,19 @@ void WinEDA_MainFrame::ReCreateMenuBar()
item
->
SetBitmap
(
editor_xpm
);
item
->
SetBitmap
(
editor_xpm
);
browseMenu
->
Append
(
item
);
browseMenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
browseMenu
,
ID_BROWSE_AN_SELECT_FILE
,
item
=
new
wxMenuItem
(
browseMenu
,
ID_BROWSE_AN_SELECT_FILE
,
_
(
"&Browse
f
iles"
),
_
(
"Read or edit files"
)
);
_
(
"&Browse
F
iles"
),
_
(
"Read or edit files"
)
);
item
->
SetBitmap
(
browse_files_xpm
);
item
->
SetBitmap
(
browse_files_xpm
);
browseMenu
->
Append
(
item
);
browseMenu
->
Append
(
item
);
browseMenu
->
AppendSeparator
();
browseMenu
->
AppendSeparator
();
item
=
new
wxMenuItem
(
browseMenu
,
ID_SELECT_PREFERED_EDITOR
,
item
=
new
wxMenuItem
(
browseMenu
,
ID_SELECT_PREFERED_EDITOR
,
_
(
"&Select
e
ditor"
),
_
(
"Select your prefered editor for file browsing"
)
);
_
(
"&Select
E
ditor"
),
_
(
"Select your prefered editor for file browsing"
)
);
item
->
SetBitmap
(
editor_xpm
);
item
->
SetBitmap
(
editor_xpm
);
browseMenu
->
Append
(
item
);
browseMenu
->
Append
(
item
);
// Preferences menu:
// Preferences menu:
wxMenu
*
PreferencesMenu
=
new
wxMenu
;
wxMenu
*
PreferencesMenu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
PreferencesMenu
,
ID_PREFERENCES_FONT_INFOSCREEN
,
item
=
new
wxMenuItem
(
PreferencesMenu
,
ID_PREFERENCES_FONT_INFOSCREEN
,
_
(
"Select
f
onts"
),
_
(
"Font preferences"
));
_
(
"Select
F
onts"
),
_
(
"Font preferences"
));
item
->
SetBitmap
(
fonts_xpm
);
item
->
SetBitmap
(
fonts_xpm
);
PreferencesMenu
->
Append
(
item
);
PreferencesMenu
->
Append
(
item
);
...
@@ -192,7 +192,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
...
@@ -192,7 +192,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
helpMenu
->
Append
(
item
);
helpMenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
helpMenu
,
ID_KICAD_ABOUT
,
item
=
new
wxMenuItem
(
helpMenu
,
ID_KICAD_ABOUT
,
_
(
"&About
k
icad"
),
_
(
"About kicad project manager"
));
_
(
"&About
K
icad"
),
_
(
"About kicad project manager"
));
item
->
SetBitmap
(
info_xpm
);
item
->
SetBitmap
(
info_xpm
);
helpMenu
->
Append
(
item
);
helpMenu
->
Append
(
item
);
...
...
pcbnew/menubarpcb.cpp
View file @
7beb0f22
...
@@ -39,22 +39,22 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -39,22 +39,22 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
// New board
// New board
wxMenuItem
*
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_NEW_BOARD
,
wxMenuItem
*
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_NEW_BOARD
,
_
(
"&New
b
oard"
),
_
(
"&New
B
oard"
),
_
(
"Clear old
PCB and init
a new one"
));
_
(
"Clear old
board and initialize
a new one"
));
item
->
SetBitmap
(
new_xpm
);
item
->
SetBitmap
(
new_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
// Load board
// Load board
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_LOAD_FILE
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_LOAD_FILE
,
_
(
"&Load
b
oard"
),
_
(
"&Load
B
oard"
),
_
(
"Delete old
Board and Load new B
oard"
));
_
(
"Delete old
board and load new b
oard"
));
item
->
SetBitmap
(
open_xpm
);
item
->
SetBitmap
(
open_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
// Append board
// Append board
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_APPEND_FILE
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_APPEND_FILE
,
_
(
"Append Board"
),
_
(
"Append Board"
),
_
(
"Add
Board to old B
oard"
));
_
(
"Add
board to old b
oard"
));
item
->
SetBitmap
(
import_xpm
);
item
->
SetBitmap
(
import_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
...
@@ -66,7 +66,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -66,7 +66,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_READ_LAST_SAVED_VERSION_BOARD
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_READ_LAST_SAVED_VERSION_BOARD
,
_
(
"&Previous
v
ersion"
),
_
(
"&Previous
V
ersion"
),
_
(
"Clear old board and get old version of board"
)
);
_
(
"Clear old board and get old version of board"
)
);
item
->
SetBitmap
(
jigsaw_xpm
);
item
->
SetBitmap
(
jigsaw_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
...
@@ -74,13 +74,13 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -74,13 +74,13 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
// Add save menu
// Add save menu
m_FilesMenu
->
AppendSeparator
();
m_FilesMenu
->
AppendSeparator
();
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_SAVE_BOARD
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_SAVE_BOARD
,
_
(
"&Save
b
oard Ctrl-S"
),
_
(
"&Save
B
oard Ctrl-S"
),
_
(
"Save current board"
)
);
_
(
"Save current board"
)
);
item
->
SetBitmap
(
save_xpm
);
item
->
SetBitmap
(
save_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_SAVE_BOARD_AS
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_MENU_SAVE_BOARD_AS
,
_
(
"Save
b
oard as..."
),
_
(
"Save
B
oard as..."
),
_
(
"Save current board as.."
)
);
_
(
"Save current board as.."
)
);
item
->
SetBitmap
(
save_as_xpm
);
item
->
SetBitmap
(
save_as_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
...
@@ -113,7 +113,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -113,7 +113,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
submenuexport
->
Append
(
item
);
submenuexport
->
Append
(
item
);
item
=
new
wxMenuItem
(
submenuexport
,
ID_GEN_EXPORT_FILE_MODULE_REPORT
,
item
=
new
wxMenuItem
(
submenuexport
,
ID_GEN_EXPORT_FILE_MODULE_REPORT
,
_
(
"&Module
report"
),
_
(
"Create a pcb
report (footprint report)"
)
);
_
(
"&Module
Report"
),
_
(
"Create a board
report (footprint report)"
)
);
item
->
SetBitmap
(
tools_xpm
);
item
->
SetBitmap
(
tools_xpm
);
submenuexport
->
Append
(
item
);
submenuexport
->
Append
(
item
);
ADD_MENUITEM_WITH_HELP_AND_SUBMENU
(
m_FilesMenu
,
submenuexport
,
ADD_MENUITEM_WITH_HELP_AND_SUBMENU
(
m_FilesMenu
,
submenuexport
,
...
@@ -144,23 +144,23 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -144,23 +144,23 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
m_FilesMenu
->
AppendSeparator
();
m_FilesMenu
->
AppendSeparator
();
wxMenu
*
submenuarchive
=
new
wxMenu
();
wxMenu
*
submenuarchive
=
new
wxMenu
();
item
=
new
wxMenuItem
(
submenuarchive
,
ID_MENU_ARCHIVE_NEW_MODULES
,
item
=
new
wxMenuItem
(
submenuarchive
,
ID_MENU_ARCHIVE_NEW_MODULES
,
_
(
"Add
new f
ootprints"
),
_
(
"Add
New F
ootprints"
),
_
(
"Archive new footprints only in a library (keep other footprints in this lib)"
)
);
_
(
"Archive new footprints only in a library (keep other footprints in this lib)"
)
);
item
->
SetBitmap
(
library_update_xpm
);
item
->
SetBitmap
(
library_update_xpm
);
submenuarchive
->
Append
(
item
);
submenuarchive
->
Append
(
item
);
item
=
new
wxMenuItem
(
submenuarchive
,
ID_MENU_ARCHIVE_ALL_MODULES
,
item
=
new
wxMenuItem
(
submenuarchive
,
ID_MENU_ARCHIVE_ALL_MODULES
,
_
(
"Create
footprint a
rchive"
),
_
(
"Create
Footprint A
rchive"
),
_
(
"Archive all footprints in a library(old lib will be deleted)"
)
);
_
(
"Archive all footprints in a library(old lib will be deleted)"
)
);
item
->
SetBitmap
(
library_xpm
);
item
->
SetBitmap
(
library_xpm
);
submenuarchive
->
Append
(
item
);
submenuarchive
->
Append
(
item
);
ADD_MENUITEM_WITH_HELP_AND_SUBMENU
(
m_FilesMenu
,
submenuarchive
,
ADD_MENUITEM_WITH_HELP_AND_SUBMENU
(
m_FilesMenu
,
submenuarchive
,
ID_MENU_ARCHIVE_MODULES
,
ID_MENU_ARCHIVE_MODULES
,
_
(
"Archive
f
ootprints"
),
_
(
"Archive
F
ootprints"
),
_
(
"Archive or
A
dd footprints in a library file"
),
library_xpm
);
_
(
"Archive or
a
dd footprints in a library file"
),
library_xpm
);
// Add exit menu
// Add exit menu
m_FilesMenu
->
AppendSeparator
();
m_FilesMenu
->
AppendSeparator
();
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_EXIT
,
_
(
"E&xit"
),
_
(
"Quit
pcbnew
"
)
);
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_EXIT
,
_
(
"E&xit"
),
_
(
"Quit
PCBNEW
"
)
);
item
->
SetBitmap
(
exit_xpm
);
item
->
SetBitmap
(
exit_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
...
@@ -179,17 +179,17 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -179,17 +179,17 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
///////////////////////////////////
///////////////////////////////////
wxMenu
*
configmenu
=
new
wxMenu
;
wxMenu
*
configmenu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
configmenu
,
ID_CONFIG_REQ
,
_
(
"&Library"
),
item
=
new
wxMenuItem
(
configmenu
,
ID_CONFIG_REQ
,
_
(
"&Library"
),
_
(
"Setting
Libraries, D
irectories and others..."
));
_
(
"Setting
libraries, d
irectories and others..."
));
item
->
SetBitmap
(
library_xpm
);
item
->
SetBitmap
(
library_xpm
);
configmenu
->
Append
(
item
);
configmenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
configmenu
,
ID_COLORS_SETUP
,
_
(
"&Colors"
),
item
=
new
wxMenuItem
(
configmenu
,
ID_COLORS_SETUP
,
_
(
"&Colors"
),
_
(
"Select
Colors and Display for PCB
items"
));
_
(
"Select
colors and display for board
items"
));
item
->
SetBitmap
(
palette_xpm
);
item
->
SetBitmap
(
palette_xpm
);
configmenu
->
Append
(
item
);
configmenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
configmenu
,
ID_OPTIONS_SETUP
,
_
(
"&General"
),
item
=
new
wxMenuItem
(
configmenu
,
ID_OPTIONS_SETUP
,
_
(
"&General"
),
_
(
"Select general options for
pcbnew
"
));
_
(
"Select general options for
PCBNEW
"
));
item
->
SetBitmap
(
preference_xpm
);
item
->
SetBitmap
(
preference_xpm
);
configmenu
->
Append
(
item
);
configmenu
->
Append
(
item
);
...
@@ -204,12 +204,12 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -204,12 +204,12 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
m_Parent
->
SetLanguageList
(
configmenu
);
m_Parent
->
SetLanguageList
(
configmenu
);
configmenu
->
AppendSeparator
();
configmenu
->
AppendSeparator
();
item
=
new
wxMenuItem
(
configmenu
,
ID_CONFIG_SAVE
,
_
(
"&Save
p
references"
),
item
=
new
wxMenuItem
(
configmenu
,
ID_CONFIG_SAVE
,
_
(
"&Save
P
references"
),
_
(
"Save application preferences"
));
_
(
"Save application preferences"
));
item
->
SetBitmap
(
save_setup_xpm
);
item
->
SetBitmap
(
save_setup_xpm
);
configmenu
->
Append
(
item
);
configmenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
configmenu
,
ID_CONFIG_READ
,
_
(
"&Read
p
references"
),
item
=
new
wxMenuItem
(
configmenu
,
ID_CONFIG_READ
,
_
(
"&Read
P
references"
),
_
(
"Read application preferences"
));
_
(
"Read application preferences"
));
item
->
SetBitmap
(
read_setup_xpm
);
item
->
SetBitmap
(
read_setup_xpm
);
configmenu
->
Append
(
item
);
configmenu
->
Append
(
item
);
...
@@ -232,13 +232,13 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -232,13 +232,13 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
item
->
SetBitmap
(
grid_xpm
);
item
->
SetBitmap
(
grid_xpm
);
sizes_menu
->
Append
(
item
);
sizes_menu
->
Append
(
item
);
item
=
new
wxMenuItem
(
sizes_menu
,
ID_PCB_DRAWINGS_WIDTHS_SETUP
,
_
(
"Texts and
d
rawings"
),
item
=
new
wxMenuItem
(
sizes_menu
,
ID_PCB_DRAWINGS_WIDTHS_SETUP
,
_
(
"Texts and
D
rawings"
),
_
(
"Adjust width for texts and drawings"
));
_
(
"Adjust width for texts and drawings"
));
item
->
SetBitmap
(
options_text_xpm
);
item
->
SetBitmap
(
options_text_xpm
);
sizes_menu
->
Append
(
item
);
sizes_menu
->
Append
(
item
);
item
=
new
wxMenuItem
(
sizes_menu
,
ID_PCB_PAD_SETUP
,
_
(
"Pads"
),
item
=
new
wxMenuItem
(
sizes_menu
,
ID_PCB_PAD_SETUP
,
_
(
"Pads"
),
_
(
"Adjust size,shape,layers... for
P
ads"
));
_
(
"Adjust size,shape,layers... for
p
ads"
));
item
->
SetBitmap
(
pad_xpm
);
item
->
SetBitmap
(
pad_xpm
);
sizes_menu
->
Append
(
item
);
sizes_menu
->
Append
(
item
);
...
@@ -253,17 +253,17 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -253,17 +253,17 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
wxMenu
*
postprocess_menu
=
new
wxMenu
;
wxMenu
*
postprocess_menu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
postprocess_menu
,
ID_PCB_GEN_POS_MODULES_FILE
,
item
=
new
wxMenuItem
(
postprocess_menu
,
ID_PCB_GEN_POS_MODULES_FILE
,
_
(
"Generate &
modules p
osition"
),
_
(
"Generate &
Modules P
osition"
),
_
(
"Generate modules position file"
));
_
(
"Generate modules position file"
));
item
->
SetBitmap
(
post_compo_xpm
);
item
->
SetBitmap
(
post_compo_xpm
);
postprocess_menu
->
Append
(
item
);
postprocess_menu
->
Append
(
item
);
item
=
new
wxMenuItem
(
postprocess_menu
,
ID_PCB_GEN_DRILL_FILE
,
_
(
"Create &
drill f
ile"
),
item
=
new
wxMenuItem
(
postprocess_menu
,
ID_PCB_GEN_DRILL_FILE
,
_
(
"Create &
Drill F
ile"
),
_
(
"Generate excellon drill file"
));
_
(
"Generate excellon drill file"
));
item
->
SetBitmap
(
post_drill_xpm
);
item
->
SetBitmap
(
post_drill_xpm
);
postprocess_menu
->
Append
(
item
);
postprocess_menu
->
Append
(
item
);
item
=
new
wxMenuItem
(
postprocess_menu
,
ID_PCB_GEN_CMP_FILE
,
_
(
"Create &
component f
ile"
),
item
=
new
wxMenuItem
(
postprocess_menu
,
ID_PCB_GEN_CMP_FILE
,
_
(
"Create &
Component F
ile"
),
_
(
"Recreate .cmp file for CvPcb"
));
_
(
"Recreate .cmp file for CvPcb"
));
item
->
SetBitmap
(
save_cmpstuff_xpm
);
item
->
SetBitmap
(
save_cmpstuff_xpm
);
postprocess_menu
->
Append
(
item
);
postprocess_menu
->
Append
(
item
);
...
@@ -273,21 +273,21 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -273,21 +273,21 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
//////////////////////////
//////////////////////////
wxMenu
*
miscellaneous_menu
=
new
wxMenu
;
wxMenu
*
miscellaneous_menu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_PCB_GLOBAL_DELETE
,
_
(
"Global &Deletions"
),
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_PCB_GLOBAL_DELETE
,
_
(
"Global &Deletions"
),
_
(
"Delete
Tracks, Modules, Texts... on B
oard"
));
_
(
"Delete
tracks, modules, texts... on b
oard"
));
item
->
SetBitmap
(
general_deletions_xpm
);
item
->
SetBitmap
(
general_deletions_xpm
);
miscellaneous_menu
->
Append
(
item
);
miscellaneous_menu
->
Append
(
item
);
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_MENU_LIST_NETS
,
_
(
"&List
n
ets"
),
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_MENU_LIST_NETS
,
_
(
"&List
N
ets"
),
_
(
"List nets (names and id)"
));
_
(
"List nets (names and id)"
));
item
->
SetBitmap
(
tools_xpm
);
item
->
SetBitmap
(
tools_xpm
);
miscellaneous_menu
->
Append
(
item
);
miscellaneous_menu
->
Append
(
item
);
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_MENU_PCB_CLEAN
,
_
(
"&Track
o
perations"
),
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_MENU_PCB_CLEAN
,
_
(
"&Track
O
perations"
),
_
(
"Clean stubs, vias, delete break points, or connect dangling tracks to pads and vias"
));
_
(
"Clean stubs, vias, delete break points, or connect dangling tracks to pads and vias"
));
item
->
SetBitmap
(
delete_body_xpm
);
item
->
SetBitmap
(
delete_body_xpm
);
miscellaneous_menu
->
Append
(
item
);
miscellaneous_menu
->
Append
(
item
);
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_MENU_PCB_SWAP_LAYERS
,
_
(
"&Swap
l
ayers"
),
item
=
new
wxMenuItem
(
miscellaneous_menu
,
ID_MENU_PCB_SWAP_LAYERS
,
_
(
"&Swap
L
ayers"
),
_
(
"Swap tracks on copper layers or drawings on others layers"
));
_
(
"Swap tracks on copper layers or drawings on others layers"
));
item
->
SetBitmap
(
swap_layer_xpm
);
item
->
SetBitmap
(
swap_layer_xpm
);
miscellaneous_menu
->
Append
(
item
);
miscellaneous_menu
->
Append
(
item
);
...
@@ -296,11 +296,11 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
...
@@ -296,11 +296,11 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
// Menu Help: //
// Menu Help: //
////////////////
////////////////
wxMenu
*
helpMenu
=
new
wxMenu
;
wxMenu
*
helpMenu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the
pcbnew
manual"
));
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the
PCBNEW
manual"
));
item
->
SetBitmap
(
help_xpm
);
item
->
SetBitmap
(
help_xpm
);
helpMenu
->
Append
(
item
);
helpMenu
->
Append
(
item
);
item
=
new
wxMenuItem
(
helpMenu
,
ID_KICAD_ABOUT
,
_
(
"&About
pcbnew"
),
_
(
"About pcbnew PCB
designer"
));
item
=
new
wxMenuItem
(
helpMenu
,
ID_KICAD_ABOUT
,
_
(
"&About
PCBNEW"
),
_
(
"About PCBNEW printed circuit board
designer"
));
item
->
SetBitmap
(
info_xpm
);
item
->
SetBitmap
(
info_xpm
);
helpMenu
->
Append
(
item
);
helpMenu
->
Append
(
item
);
...
...
pcbnew/onrightclick.cpp
View file @
7beb0f22
...
@@ -124,7 +124,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -124,7 +124,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
else
else
{
{
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_CLOSE_CURRENT_TOOL
,
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_CLOSE_CURRENT_TOOL
,
_
(
"End
t
ool"
),
cancel_tool_xpm
);
_
(
"End
T
ool"
),
cancel_tool_xpm
);
}
}
aPopMenu
->
AppendSeparator
();
aPopMenu
->
AppendSeparator
();
}
}
...
@@ -208,7 +208,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -208,7 +208,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
if
(
!
flags
)
if
(
!
flags
)
aPopMenu
->
Append
(
ID_POPUP_PCB_AUTOPLACE_CURRENT_MODULE
,
aPopMenu
->
Append
(
ID_POPUP_PCB_AUTOPLACE_CURRENT_MODULE
,
_
(
"Auto
p
lace Module"
)
);
_
(
"Auto
P
lace Module"
)
);
}
}
if
(
m_HTOOL_current_state
==
ID_TOOLBARH_PCB_AUTOROUTE
)
if
(
m_HTOOL_current_state
==
ID_TOOLBARH_PCB_AUTOROUTE
)
...
@@ -358,7 +358,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -358,7 +358,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_SELECT_CU_LAYER
,
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_SELECT_CU_LAYER
,
_
(
"Select Working Layer"
),
select_w_layer_xpm
);
_
(
"Select Working Layer"
),
select_w_layer_xpm
);
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_SELECT_LAYER_PAIR
,
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_SELECT_LAYER_PAIR
,
_
(
"Select
layer pair for v
ias"
),
select_layer_pair_xpm
);
_
(
"Select
Layer Pair for V
ias"
),
select_layer_pair_xpm
);
aPopMenu
->
AppendSeparator
();
aPopMenu
->
AppendSeparator
();
break
;
break
;
...
@@ -374,7 +374,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -374,7 +374,7 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
case
ID_COMPONENT_BUTT
:
case
ID_COMPONENT_BUTT
:
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_DISPLAY_FOOTPRINT_DOC
,
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_DISPLAY_FOOTPRINT_DOC
,
_
(
"Footprint
d
ocumentation"
),
book_xpm
);
_
(
"Footprint
D
ocumentation"
),
book_xpm
);
aPopMenu
->
AppendSeparator
();
aPopMenu
->
AppendSeparator
();
break
;
break
;
...
@@ -408,11 +408,11 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -408,11 +408,11 @@ bool WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
wxMenu
*
commands
=
new
wxMenu
;
wxMenu
*
commands
=
new
wxMenu
;
aPopMenu
->
Append
(
ID_POPUP_PCB_AUTOROUTE_COMMANDS
,
_
(
"Global Autoroute"
),
commands
);
aPopMenu
->
Append
(
ID_POPUP_PCB_AUTOROUTE_COMMANDS
,
_
(
"Global Autoroute"
),
commands
);
ADD_MENUITEM
(
commands
,
ID_POPUP_PCB_SELECT_LAYER_PAIR
,
ADD_MENUITEM
(
commands
,
ID_POPUP_PCB_SELECT_LAYER_PAIR
,
_
(
"Select
layer p
air"
),
select_layer_pair_xpm
);
_
(
"Select
Layer P
air"
),
select_layer_pair_xpm
);
commands
->
AppendSeparator
();
commands
->
AppendSeparator
();
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_ALL_MODULES
,
_
(
"Autoroute All Modules"
)
);
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_ALL_MODULES
,
_
(
"Autoroute All Modules"
)
);
commands
->
AppendSeparator
();
commands
->
AppendSeparator
();
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_RESET_UNROUTED
,
_
(
"Reset
u
nrouted"
)
);
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_RESET_UNROUTED
,
_
(
"Reset
U
nrouted"
)
);
if
(
m_Pcb
->
m_Modules
)
if
(
m_Pcb
->
m_Modules
)
{
{
commands
->
AppendSeparator
();
commands
->
AppendSeparator
();
...
@@ -447,20 +447,20 @@ void WinEDA_PcbFrame::createPopUpBlockMenu( wxMenu* menu )
...
@@ -447,20 +447,20 @@ void WinEDA_PcbFrame::createPopUpBlockMenu( wxMenu* menu )
*/
*/
{
{
ADD_MENUITEM
(
menu
,
ID_POPUP_CANCEL_CURRENT_COMMAND
,
ADD_MENUITEM
(
menu
,
ID_POPUP_CANCEL_CURRENT_COMMAND
,
_
(
"Cancel
b
lock"
),
cancel_xpm
);
_
(
"Cancel
B
lock"
),
cancel_xpm
);
ADD_MENUITEM
(
menu
,
ID_POPUP_ZOOM_BLOCK
,
ADD_MENUITEM
(
menu
,
ID_POPUP_ZOOM_BLOCK
,
_
(
"Zoom
b
lock"
),
zoom_selected_xpm
);
_
(
"Zoom
B
lock"
),
zoom_selected_xpm
);
menu
->
AppendSeparator
();
menu
->
AppendSeparator
();
ADD_MENUITEM
(
menu
,
ID_POPUP_PLACE_BLOCK
,
ADD_MENUITEM
(
menu
,
ID_POPUP_PLACE_BLOCK
,
_
(
"Place
b
lock"
),
apply_xpm
);
_
(
"Place
B
lock"
),
apply_xpm
);
ADD_MENUITEM
(
menu
,
ID_POPUP_COPY_BLOCK
,
ADD_MENUITEM
(
menu
,
ID_POPUP_COPY_BLOCK
,
_
(
"Copy
b
lock"
),
copyblock_xpm
);
_
(
"Copy
B
lock"
),
copyblock_xpm
);
ADD_MENUITEM
(
menu
,
ID_POPUP_INVERT_BLOCK
,
ADD_MENUITEM
(
menu
,
ID_POPUP_INVERT_BLOCK
,
_
(
"Flip
b
lock"
),
invert_module_xpm
);
_
(
"Flip
B
lock"
),
invert_module_xpm
);
ADD_MENUITEM
(
menu
,
ID_POPUP_ROTATE_BLOCK
,
ADD_MENUITEM
(
menu
,
ID_POPUP_ROTATE_BLOCK
,
_
(
"Rotate
b
lock"
),
rotate_pos_xpm
);
_
(
"Rotate
B
lock"
),
rotate_pos_xpm
);
ADD_MENUITEM
(
menu
,
ID_POPUP_DELETE_BLOCK
,
ADD_MENUITEM
(
menu
,
ID_POPUP_DELETE_BLOCK
,
_
(
"Delete
b
lock"
),
delete_xpm
);
_
(
"Delete
B
lock"
),
delete_xpm
);
}
}
...
@@ -479,28 +479,28 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
...
@@ -479,28 +479,28 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
{
{
if
(
Track
->
Type
()
==
TYPEVIA
)
if
(
Track
->
Type
()
==
TYPEVIA
)
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_MOVE_TRACK_NODE
,
_
(
"Drag
v
ia"
),
move_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_MOVE_TRACK_NODE
,
_
(
"Drag
V
ia"
),
move_xpm
);
wxMenu
*
via_mnu
=
new
wxMenu
();
wxMenu
*
via_mnu
=
new
wxMenu
();
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
via_mnu
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
via_mnu
,
ID_POPUP_PCB_VIA_EDITING
,
_
(
"Edit Via Drill"
),
edit_xpm
);
ID_POPUP_PCB_VIA_EDITING
,
_
(
"Edit Via Drill"
),
edit_xpm
);
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_TO_DEFAULT
,
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_TO_DEFAULT
,
_
(
"Set
via h
ole to Default"
),
apply_xpm
);
_
(
"Set
Via H
ole to Default"
),
apply_xpm
);
msg
=
_
(
"Set via hole to a specific value. This specfic value is currently"
);
msg
=
_
(
"Set via hole to a specific value. This specfic value is currently"
);
msg
<<
wxT
(
" "
)
<<
ReturnStringFromValue
(
g_UnitMetric
,
g_DesignSettings
.
m_ViaDrillCustomValue
,
m_InternalUnits
);
msg
<<
wxT
(
" "
)
<<
ReturnStringFromValue
(
g_UnitMetric
,
g_DesignSettings
.
m_ViaDrillCustomValue
,
m_InternalUnits
);
ADD_MENUITEM_WITH_HELP
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_TO_VALUE
,
ADD_MENUITEM_WITH_HELP
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_TO_VALUE
,
_
(
"Set
via hole to alt v
alue"
),
msg
,
_
(
"Set
Via Hole to Alt V
alue"
),
msg
,
options_new_pad_xpm
);
options_new_pad_xpm
);
msg
=
_
(
"Set a specific via hole value. This value is currently"
);
msg
=
_
(
"Set a specific via hole value. This value is currently"
);
msg
<<
wxT
(
" "
)
<<
ReturnStringFromValue
(
g_UnitMetric
,
g_DesignSettings
.
m_ViaDrillCustomValue
,
m_InternalUnits
);
msg
<<
wxT
(
" "
)
<<
ReturnStringFromValue
(
g_UnitMetric
,
g_DesignSettings
.
m_ViaDrillCustomValue
,
m_InternalUnits
);
ADD_MENUITEM_WITH_HELP
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_ENTER_VALUE
,
ADD_MENUITEM_WITH_HELP
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_ENTER_VALUE
,
_
(
"Set the
via hole alt v
alue"
),
msg
,
edit_xpm
);
_
(
"Set the
Via Hole Alt V
alue"
),
msg
,
edit_xpm
);
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_EXPORT
,
_
(
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_EXPORT
,
_
(
"Export Via
hole to alt v
alue"
),
export_options_pad_xpm
);
"Export Via
Hole to Alt V
alue"
),
export_options_pad_xpm
);
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_EXPORT_TO_OTHERS
,
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_EXPORT_TO_OTHERS
,
_
(
"Export
via hole to others id v
ias"
),
global_options_pad_xpm
);
_
(
"Export
Via Hole to Others id V
ias"
),
global_options_pad_xpm
);
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_RESET_TO_DEFAULT
,
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_RESET_TO_DEFAULT
,
_
(
"Set ALL
via holes to d
efault"
),
apply_xpm
);
_
(
"Set ALL
Via Holes to D
efault"
),
apply_xpm
);
if
(
Track
->
IsDrillDefault
()
)
// Can't export the drill value, because this value is 0
if
(
Track
->
IsDrillDefault
()
)
// Can't export the drill value, because this value is 0
{
{
via_mnu
->
Enable
(
ID_POPUP_PCB_VIA_HOLE_EXPORT
,
FALSE
);
via_mnu
->
Enable
(
ID_POPUP_PCB_VIA_HOLE_EXPORT
,
FALSE
);
...
@@ -518,15 +518,15 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
...
@@ -518,15 +518,15 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
else
else
{
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_DRAG_TRACK_SEGMENT_KEEP_SLOPE
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_DRAG_TRACK_SEGMENT_KEEP_SLOPE
,
_
(
"Drag Segments,
keep s
lope"
),
drag_segment_withslope_xpm
);
_
(
"Drag Segments,
Keep S
lope"
),
drag_segment_withslope_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_DRAG_TRACK_SEGMENT
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_DRAG_TRACK_SEGMENT
,
_
(
"Drag
s
egment"
),
drag_track_segment_xpm
);
_
(
"Drag
S
egment"
),
drag_track_segment_xpm
);
#if 0
#if 0
ADD_MENUITEM( PopMenu, ID_POPUP_PCB_MOVE_TRACK_SEGMENT,
ADD_MENUITEM( PopMenu, ID_POPUP_PCB_MOVE_TRACK_SEGMENT,
_( "Move Segment" ), move_track_segment_xpm );
_( "Move Segment" ), move_track_segment_xpm );
#endif
#endif
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_BREAK_TRACK
,
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_BREAK_TRACK
,
_
(
"Break
t
rack"
),
break_line_xpm
);
_
(
"Break
T
rack"
),
break_line_xpm
);
}
}
}
}
}
}
...
@@ -562,20 +562,20 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
...
@@ -562,20 +562,20 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
{
{
track_mnu
=
new
wxMenu
;
track_mnu
=
new
wxMenu
;
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
track_mnu
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
track_mnu
,
ID_POPUP_PCB_EDIT_TRACK_MNU
,
_
(
"Change
w
idth"
),
width_track_xpm
);
ID_POPUP_PCB_EDIT_TRACK_MNU
,
_
(
"Change
W
idth"
),
width_track_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_TRACKSEG
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_TRACKSEG
,
Track
->
Type
()
==
TYPEVIA
?
_
(
"Change Via Size"
)
:
_
(
"Change Segment Width"
),
width_segment_xpm
);
Track
->
Type
()
==
TYPEVIA
?
_
(
"Change Via Size"
)
:
_
(
"Change Segment Width"
),
width_segment_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_TRACK
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_TRACK
,
_
(
"Change Track Width"
),
width_track_xpm
);
_
(
"Change Track Width"
),
width_track_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_NET
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_NET
,
_
(
"Change
n
et"
),
width_net_xpm
);
_
(
"Change
N
et"
),
width_net_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_ALL_VIAS_AND_TRACK_SIZE
,
_
(
"Change ALL Tracks and Vias"
),
width_track_via_xpm
);
_
(
"Change ALL Tracks and Vias"
),
width_track_via_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_ALL_VIAS_SIZE
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_ALL_VIAS_SIZE
,
_
(
"Change ALL Vias (
no t
rack)"
),
width_vias_xpm
);
_
(
"Change ALL Vias (
No T
rack)"
),
width_vias_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_ALL_TRACK_SIZE
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_EDIT_ALL_TRACK_SIZE
,
_
(
"Change ALL Tracks (
no v
ia)"
),
width_track_xpm
);
_
(
"Change ALL Tracks (
No V
ia)"
),
width_track_xpm
);
}
}
// Delete control:
// Delete control:
...
@@ -590,16 +590,16 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
...
@@ -590,16 +590,16 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
msg
,
delete_line_xpm
);
msg
,
delete_line_xpm
);
if
(
!
flags
)
if
(
!
flags
)
{
{
msg
=
AddHotkeyName
(
_
(
"Delete
t
rack"
),
s_Board_Editor_Hokeys_Descr
,
HK_DELETE
);
msg
=
AddHotkeyName
(
_
(
"Delete
T
rack"
),
s_Board_Editor_Hokeys_Descr
,
HK_DELETE
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_DELETE_TRACK
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_DELETE_TRACK
,
msg
,
delete_track_xpm
);
msg
,
delete_track_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_DELETE_TRACKNET
,
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_DELETE_TRACKNET
,
_
(
"Delete
n
et"
),
delete_net_xpm
);
_
(
"Delete
N
et"
),
delete_net_xpm
);
}
}
track_mnu
=
new
wxMenu
;
track_mnu
=
new
wxMenu
;
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
track_mnu
,
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
track_mnu
,
ID_POPUP_PCB_SETFLAGS_TRACK_MNU
,
_
(
"Set
f
lags"
),
flag_xpm
);
ID_POPUP_PCB_SETFLAGS_TRACK_MNU
,
_
(
"Set
F
lags"
),
flag_xpm
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_ON_TRACKSEG
,
_
(
"Locked: Yes"
),
wxEmptyString
,
TRUE
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_ON_TRACKSEG
,
_
(
"Locked: Yes"
),
wxEmptyString
,
TRUE
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_OFF_TRACKSEG
,
_
(
"Locked: No"
),
wxEmptyString
,
TRUE
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_OFF_TRACKSEG
,
_
(
"Locked: No"
),
wxEmptyString
,
TRUE
);
...
@@ -611,11 +611,11 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
...
@@ -611,11 +611,11 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
if
(
!
flags
)
if
(
!
flags
)
{
{
track_mnu
->
AppendSeparator
();
track_mnu
->
AppendSeparator
();
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_ON_TRACK
,
_
(
"Track
l
ocked: Yes"
)
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_ON_TRACK
,
_
(
"Track
L
ocked: Yes"
)
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_OFF_TRACK
,
_
(
"Track
l
ocked: No"
)
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_OFF_TRACK
,
_
(
"Track
L
ocked: No"
)
);
track_mnu
->
AppendSeparator
();
track_mnu
->
AppendSeparator
();
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_ON_NET
,
_
(
"Net
l
ocked: Yes"
)
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_ON_NET
,
_
(
"Net
L
ocked: Yes"
)
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_OFF_NET
,
_
(
"Net
l
ocked: No"
)
);
track_mnu
->
Append
(
ID_POPUP_PCB_LOCK_OFF_NET
,
_
(
"Net
L
ocked: No"
)
);
}
}
}
}
...
@@ -636,10 +636,10 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu
...
@@ -636,10 +636,10 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu
{
{
if
(
(
edge_zone
->
m_Flags
&
IN_EDIT
)
)
if
(
(
edge_zone
->
m_Flags
&
IN_EDIT
)
)
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_PLACE_ZONE_CORNER
,
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_PLACE_ZONE_CORNER
,
_
(
"Place
c
orner"
),
apply_xpm
);
_
(
"Place
C
orner"
),
apply_xpm
);
else
else
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_PLACE_ZONE_OUTLINES
,
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_PLACE_ZONE_OUTLINES
,
_
(
"Place
z
one"
),
apply_xpm
);
_
(
"Place
Z
one"
),
apply_xpm
);
}
}
else
else
{
{
...
@@ -651,9 +651,9 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu
...
@@ -651,9 +651,9 @@ void WinEDA_PcbFrame::createPopUpMenuForZones( ZONE_CONTAINER* edge_zone, wxMenu
if
(
(
index
=
edge_zone
->
HitTestForCorner
(
GetScreen
()
->
RefPos
(
true
)
)
)
>=
0
)
if
(
(
index
=
edge_zone
->
HitTestForCorner
(
GetScreen
()
->
RefPos
(
true
)
)
)
>=
0
)
{
{
ADD_MENUITEM
(
zones_menu
,
ID_POPUP_PCB_MOVE_ZONE_CORNER
,
ADD_MENUITEM
(
zones_menu
,
ID_POPUP_PCB_MOVE_ZONE_CORNER
,
_
(
"Move
c
orner"
),
move_xpm
);
_
(
"Move
C
orner"
),
move_xpm
);
ADD_MENUITEM
(
zones_menu
,
ID_POPUP_PCB_DELETE_ZONE_CORNER
,
ADD_MENUITEM
(
zones_menu
,
ID_POPUP_PCB_DELETE_ZONE_CORNER
,
_
(
"Delete
c
orner"
),
delete_xpm
);
_
(
"Delete
C
orner"
),
delete_xpm
);
}
}
else
if
(
(
index
=
edge_zone
->
HitTestForEdge
(
GetScreen
()
->
RefPos
(
true
)
)
)
>=
0
)
else
if
(
(
index
=
edge_zone
->
HitTestForEdge
(
GetScreen
()
->
RefPos
(
true
)
)
)
>=
0
)
{
{
...
...
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