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
Expand all
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
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
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