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
a08471b7
Commit
a08471b7
authored
Oct 10, 2014
by
Mark Roszko
Committed by
Wayne Stambaugh
Oct 10, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Convert UI inconsistent use of legacy term module to footprint.
parents
a9ab8243
fbc4abc5
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
80 additions
and
80 deletions
+80
-80
class_module.cpp
pcbnew/class_module.cpp
+1
-1
dialog_edit_module_for_BoardEditor_base.cpp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
+3
-3
dialog_edit_module_for_BoardEditor_base.fbp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
+5
-5
dialog_edit_module_for_BoardEditor_base.h
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.h
+2
-2
dialog_edit_module_for_Modedit_base.cpp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
+1
-1
dialog_edit_module_for_Modedit_base.fbp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
+3
-3
dialog_edit_module_for_Modedit_base.h
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
+2
-2
footprint_wizard_frame.cpp
pcbnew/footprint_wizard_frame.cpp
+1
-1
loadcmp.cpp
pcbnew/loadcmp.cpp
+1
-1
menubar_modedit.cpp
pcbnew/menubar_modedit.cpp
+15
-15
menubar_pcbframe.cpp
pcbnew/menubar_pcbframe.cpp
+9
-9
modedit_onclick.cpp
pcbnew/modedit_onclick.cpp
+6
-6
moduleframe.cpp
pcbnew/moduleframe.cpp
+4
-4
modules.cpp
pcbnew/modules.cpp
+2
-2
onrightclick.cpp
pcbnew/onrightclick.cpp
+7
-7
tool_modedit.cpp
pcbnew/tool_modedit.cpp
+15
-15
tool_pcb.cpp
pcbnew/tool_pcb.cpp
+3
-3
No files found.
pcbnew/class_module.cpp
View file @
a08471b7
...
@@ -602,7 +602,7 @@ void MODULE::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
...
@@ -602,7 +602,7 @@ void MODULE::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
}
}
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Attrib"
),
msg
,
BROWN
)
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Attrib"
),
msg
,
BROWN
)
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"
Module
"
),
FROM_UTF8
(
m_fpid
.
Format
().
c_str
()
),
BLUE
)
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"
Footprint
"
),
FROM_UTF8
(
m_fpid
.
Format
().
c_str
()
),
BLUE
)
);
msg
=
_
(
"No 3D shape"
);
msg
=
_
(
"No 3D shape"
);
// Search the first active 3D shape in list
// Search the first active 3D shape in list
...
...
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
View file @
a08471b7
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Nov 6 2013
)
// C++ code generated with wxFormBuilder (version
Jun 6 2014
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
@@ -128,10 +128,10 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
...
@@ -128,10 +128,10 @@ DIALOG_MODULE_BOARD_EDITOR_BASE::DIALOG_MODULE_BOARD_EDITOR_BASE( wxWindow* pare
m_PropRightSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_PropRightSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_buttonExchange
=
new
wxButton
(
m_PanelProperties
,
ID_MODULE_PROPERTIES_EXCHANGE
,
_
(
"Change
Module
(s)"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_buttonExchange
=
new
wxButton
(
m_PanelProperties
,
ID_MODULE_PROPERTIES_EXCHANGE
,
_
(
"Change
Footprint
(s)"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_PropRightSizer
->
Add
(
m_buttonExchange
,
0
,
wxALL
|
wxALIGN_CENTER_HORIZONTAL
|
wxEXPAND
,
5
);
m_PropRightSizer
->
Add
(
m_buttonExchange
,
0
,
wxALL
|
wxALIGN_CENTER_HORIZONTAL
|
wxEXPAND
,
5
);
m_buttonModuleEditor
=
new
wxButton
(
m_PanelProperties
,
ID_GOTO_MODULE_EDITOR
,
_
(
"
Module
Editor"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_buttonModuleEditor
=
new
wxButton
(
m_PanelProperties
,
ID_GOTO_MODULE_EDITOR
,
_
(
"
Footprint
Editor"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_PropRightSizer
->
Add
(
m_buttonModuleEditor
,
0
,
wxALL
|
wxALIGN_CENTER_HORIZONTAL
|
wxEXPAND
,
5
);
m_PropRightSizer
->
Add
(
m_buttonModuleEditor
,
0
,
wxALL
|
wxALIGN_CENTER_HORIZONTAL
|
wxEXPAND
,
5
);
wxBoxSizer
*
bSizerAttrib
;
wxBoxSizer
*
bSizerAttrib
;
...
...
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
View file @
a08471b7
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<wxFormBuilder_Project>
<wxFormBuilder_Project>
<FileVersion
major=
"1"
minor=
"1
1
"
/>
<FileVersion
major=
"1"
minor=
"1
3
"
/>
<object
class=
"Project"
expanded=
"1"
>
<object
class=
"Project"
expanded=
"1"
>
<property
name=
"class_decoration"
></property>
<property
name=
"class_decoration"
></property>
<property
name=
"code_generation"
>
C++
</property>
<property
name=
"code_generation"
>
C++
</property>
...
@@ -44,10 +44,10 @@
...
@@ -44,10 +44,10 @@
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
DIALOG_MODULE_BOARD_EDITOR_BASE
</property>
<property
name=
"name"
>
DIALOG_MODULE_BOARD_EDITOR_BASE
</property>
<property
name=
"pos"
></property>
<property
name=
"pos"
></property>
<property
name=
"size"
>
499,
591
</property>
<property
name=
"size"
>
499,
630
</property>
<property
name=
"style"
>
wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
</property>
<property
name=
"style"
>
wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"title"
>
Module
Properties
</property>
<property
name=
"title"
>
Footprint
Properties
</property>
<property
name=
"tooltip"
></property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_name"
></property>
...
@@ -2000,7 +2000,7 @@
...
@@ -2000,7 +2000,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
ID_MODULE_PROPERTIES_EXCHANGE
</property>
<property
name=
"id"
>
ID_MODULE_PROPERTIES_EXCHANGE
</property>
<property
name=
"label"
>
Change
Module
(s)
</property>
<property
name=
"label"
>
Change
Footprint
(s)
</property>
<property
name=
"max_size"
></property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maximum_size"
></property>
...
@@ -2088,7 +2088,7 @@
...
@@ -2088,7 +2088,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
ID_GOTO_MODULE_EDITOR
</property>
<property
name=
"id"
>
ID_GOTO_MODULE_EDITOR
</property>
<property
name=
"label"
>
Module
Editor
</property>
<property
name=
"label"
>
Footprint
Editor
</property>
<property
name=
"max_size"
></property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maximum_size"
></property>
...
...
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.h
View file @
a08471b7
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Nov 6 2013
)
// C++ code generated with wxFormBuilder (version
Jun 6 2014
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
@@ -138,7 +138,7 @@ class DIALOG_MODULE_BOARD_EDITOR_BASE : public DIALOG_SHIM
...
@@ -138,7 +138,7 @@ class DIALOG_MODULE_BOARD_EDITOR_BASE : public DIALOG_SHIM
public
:
public
:
wxStaticBoxSizer
*
m_Sizer3DValues
;
wxStaticBoxSizer
*
m_Sizer3DValues
;
DIALOG_MODULE_BOARD_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"
Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
499
,
591
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
DIALOG_MODULE_BOARD_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"
Footprint Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
499
,
630
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_BOARD_EDITOR_BASE
();
~
DIALOG_MODULE_BOARD_EDITOR_BASE
();
};
};
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
View file @
a08471b7
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Nov 6 2013
)
// C++ code generated with wxFormBuilder (version
Jun 6 2014
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
View file @
a08471b7
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<wxFormBuilder_Project>
<wxFormBuilder_Project>
<FileVersion
major=
"1"
minor=
"1
1
"
/>
<FileVersion
major=
"1"
minor=
"1
3
"
/>
<object
class=
"Project"
expanded=
"1"
>
<object
class=
"Project"
expanded=
"1"
>
<property
name=
"class_decoration"
></property>
<property
name=
"class_decoration"
></property>
<property
name=
"code_generation"
>
C++
</property>
<property
name=
"code_generation"
>
C++
</property>
...
@@ -44,10 +44,10 @@
...
@@ -44,10 +44,10 @@
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
DIALOG_MODULE_MODULE_EDITOR_BASE
</property>
<property
name=
"name"
>
DIALOG_MODULE_MODULE_EDITOR_BASE
</property>
<property
name=
"pos"
></property>
<property
name=
"pos"
></property>
<property
name=
"size"
>
486,
462
</property>
<property
name=
"size"
>
486,
510
</property>
<property
name=
"style"
>
wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
</property>
<property
name=
"style"
>
wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"title"
>
Module
Properties
</property>
<property
name=
"title"
>
Footprint
Properties
</property>
<property
name=
"tooltip"
></property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_name"
></property>
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
View file @
a08471b7
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Nov 6 2013
)
// C++ code generated with wxFormBuilder (version
Jun 6 2014
)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
...
@@ -117,7 +117,7 @@ class DIALOG_MODULE_MODULE_EDITOR_BASE : public DIALOG_SHIM
...
@@ -117,7 +117,7 @@ class DIALOG_MODULE_MODULE_EDITOR_BASE : public DIALOG_SHIM
public
:
public
:
DIALOG_MODULE_MODULE_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"
Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
486
,
462
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
DIALOG_MODULE_MODULE_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"
Footprint Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
486
,
510
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_MODULE_EDITOR_BASE
();
~
DIALOG_MODULE_MODULE_EDITOR_BASE
();
};
};
...
...
pcbnew/footprint_wizard_frame.cpp
View file @
a08471b7
...
@@ -620,7 +620,7 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar()
...
@@ -620,7 +620,7 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar()
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_FOOTPRINT_WIZARD_DONE
,
m_mainToolBar
->
AddTool
(
ID_FOOTPRINT_WIZARD_DONE
,
wxEmptyString
,
KiBitmap
(
export_footprint_names_xpm
),
wxEmptyString
,
KiBitmap
(
export_footprint_names_xpm
),
_
(
"
Insert footprint in
board"
)
);
_
(
"
Add footprint to
board"
)
);
}
}
// after adding the buttons to the toolbar, must call Realize() to
// after adding the buttons to the toolbar, must call Realize() to
...
...
pcbnew/loadcmp.cpp
View file @
a08471b7
...
@@ -164,7 +164,7 @@ MODULE* PCB_BASE_FRAME::LoadModuleFromLibrary( const wxString& aLibrary,
...
@@ -164,7 +164,7 @@ MODULE* PCB_BASE_FRAME::LoadModuleFromLibrary( const wxString& aLibrary,
static
wxString
lastComponentName
;
static
wxString
lastComponentName
;
// Ask for a component name or key words
// Ask for a component name or key words
DIALOG_GET_COMPONENT
dlg
(
this
,
HistoryList
,
_
(
"Load
Module
"
),
aUseFootprintViewer
);
DIALOG_GET_COMPONENT
dlg
(
this
,
HistoryList
,
_
(
"Load
Footprint
"
),
aUseFootprintViewer
);
dlg
.
SetComponentName
(
lastComponentName
);
dlg
.
SetComponentName
(
lastComponentName
);
...
...
pcbnew/menubar_modedit.cpp
View file @
a08471b7
...
@@ -69,7 +69,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
...
@@ -69,7 +69,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
// New module
// New module
AddMenuItem
(
fileMenu
,
ID_MODEDIT_NEW_MODULE
,
AddMenuItem
(
fileMenu
,
ID_MODEDIT_NEW_MODULE
,
_
(
"&New
Module"
),
_
(
"Create new module
"
),
_
(
"&New
Footprint"
),
_
(
"Create new footprint
"
),
KiBitmap
(
new_footprint_xpm
)
);
KiBitmap
(
new_footprint_xpm
)
);
// Open submenu
// Open submenu
...
@@ -77,26 +77,26 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
...
@@ -77,26 +77,26 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
// from File
// from File
AddMenuItem
(
openSubmenu
,
ID_MODEDIT_IMPORT_PART
,
AddMenuItem
(
openSubmenu
,
ID_MODEDIT_IMPORT_PART
,
_
(
"&Import
Module
From File"
),
_
(
"&Import
Footprint
From File"
),
_
(
"Import footprint from an existing file"
),
_
(
"Import footprint from an existing file"
),
KiBitmap
(
import_module_xpm
)
);
KiBitmap
(
import_module_xpm
)
);
// from Library
// from Library
AddMenuItem
(
openSubmenu
,
ID_MODEDIT_LOAD_MODULE
,
AddMenuItem
(
openSubmenu
,
ID_MODEDIT_LOAD_MODULE
,
_
(
"Load
Module
From Current Li&brary"
),
_
(
"Load
Footprint
From Current Li&brary"
),
_
(
"Open a footprint
module
from library"
),
_
(
"Open a footprint from library"
),
KiBitmap
(
module_xpm
)
);
KiBitmap
(
module_xpm
)
);
// from current Board
// from current Board
AddMenuItem
(
openSubmenu
,
ID_MODEDIT_LOAD_MODULE_FROM_BOARD
,
AddMenuItem
(
openSubmenu
,
ID_MODEDIT_LOAD_MODULE_FROM_BOARD
,
_
(
"Load
Module
From &Current Board"
),
_
(
"Load
Footprint
From &Current Board"
),
_
(
"Load a footprint
module
from the current board"
),
_
(
"Load a footprint from the current board"
),
KiBitmap
(
load_module_board_xpm
)
);
KiBitmap
(
load_module_board_xpm
)
);
/* Append openSubmenu to fileMenu */
/* Append openSubmenu to fileMenu */
AddMenuItem
(
fileMenu
,
openSubmenu
,
-
1
,
AddMenuItem
(
fileMenu
,
openSubmenu
,
-
1
,
_
(
"&Load
Module
"
),
_
(
"&Load
Footprint
"
),
_
(
"Load footprint
module
"
),
_
(
"Load footprint"
),
KiBitmap
(
open_document_xpm
)
);
KiBitmap
(
open_document_xpm
)
);
fileMenu
->
AppendSeparator
();
fileMenu
->
AppendSeparator
();
...
@@ -107,23 +107,23 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
...
@@ -107,23 +107,23 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
KiBitmap
(
copy_library_xpm
)
);
KiBitmap
(
copy_library_xpm
)
);
// Save module
// Save module
text
=
AddHotkeyName
(
_
(
"&Save
Module
in Active Library"
),
text
=
AddHotkeyName
(
_
(
"&Save
Footprint
in Active Library"
),
g_Module_Editor_Hokeys_Descr
,
HK_SAVE_MODULE
);
g_Module_Editor_Hokeys_Descr
,
HK_SAVE_MODULE
);
AddMenuItem
(
fileMenu
,
ID_MODEDIT_SAVE_LIBMODULE
,
text
,
AddMenuItem
(
fileMenu
,
ID_MODEDIT_SAVE_LIBMODULE
,
text
,
_
(
"Save
module
in active library"
),
_
(
"Save
footprint
in active library"
),
KiBitmap
(
save_library_xpm
)
);
KiBitmap
(
save_library_xpm
)
);
// Save module in new lib
// Save module in new lib
AddMenuItem
(
fileMenu
,
ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART
,
AddMenuItem
(
fileMenu
,
ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART
,
_
(
"S&ave
Module
in New Library"
),
_
(
"S&ave
Footprint
in New Library"
),
_
(
"Create a new library and save current module into it"
),
_
(
"Create a new library and save current module into it"
),
KiBitmap
(
new_library_xpm
)
);
KiBitmap
(
new_library_xpm
)
);
// Export module
// Export module
AddMenuItem
(
fileMenu
,
ID_MODEDIT_EXPORT_PART
,
AddMenuItem
(
fileMenu
,
ID_MODEDIT_EXPORT_PART
,
_
(
"&Export
Module
"
),
_
(
"&Export
Footprint
"
),
_
(
"Save current
loaded module
into file"
),
_
(
"Save current
ly loaded footprint
into file"
),
KiBitmap
(
export_module_xpm
)
);
KiBitmap
(
export_module_xpm
)
);
// Import DXF File
// Import DXF File
...
@@ -137,7 +137,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
...
@@ -137,7 +137,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
// Print
// Print
AddMenuItem
(
fileMenu
,
wxID_PRINT
,
AddMenuItem
(
fileMenu
,
wxID_PRINT
,
_
(
"&Print"
),
_
(
"&Print"
),
_
(
"Print current
module
"
),
_
(
"Print current
footprint
"
),
KiBitmap
(
plot_xpm
)
);
KiBitmap
(
plot_xpm
)
);
// Separator
// Separator
...
@@ -175,7 +175,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
...
@@ -175,7 +175,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
// Properties
// Properties
AddMenuItem
(
editMenu
,
ID_MODEDIT_EDIT_MODULE_PROPERTIES
,
AddMenuItem
(
editMenu
,
ID_MODEDIT_EDIT_MODULE_PROPERTIES
,
_
(
"Edit &Properties"
),
_
(
"Edit &Properties"
),
_
(
"Edit
module
properties"
),
_
(
"Edit
footprint
properties"
),
KiBitmap
(
module_options_xpm
)
);
KiBitmap
(
module_options_xpm
)
);
// Dimensions submenu
// Dimensions submenu
...
...
pcbnew/menubar_pcbframe.cpp
View file @
a08471b7
...
@@ -134,8 +134,8 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
...
@@ -134,8 +134,8 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
//----- Fabrication Outputs submenu -----------------------------------------
//----- Fabrication Outputs submenu -----------------------------------------
wxMenu
*
fabricationOutputsMenu
=
new
wxMenu
;
wxMenu
*
fabricationOutputsMenu
=
new
wxMenu
;
AddMenuItem
(
fabricationOutputsMenu
,
ID_PCB_GEN_POS_MODULES_FILE
,
AddMenuItem
(
fabricationOutputsMenu
,
ID_PCB_GEN_POS_MODULES_FILE
,
_
(
"&
Modules
Position (.pos) File"
),
_
(
"&
Footprint
Position (.pos) File"
),
_
(
"Generate
modules
position file for pick and place"
),
_
(
"Generate
footprint
position file for pick and place"
),
KiBitmap
(
post_compo_xpm
)
);
KiBitmap
(
post_compo_xpm
)
);
AddMenuItem
(
fabricationOutputsMenu
,
ID_PCB_GEN_DRILL_FILE
,
AddMenuItem
(
fabricationOutputsMenu
,
ID_PCB_GEN_DRILL_FILE
,
...
@@ -144,8 +144,8 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
...
@@ -144,8 +144,8 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
KiBitmap
(
post_drill_xpm
)
);
KiBitmap
(
post_drill_xpm
)
);
AddMenuItem
(
fabricationOutputsMenu
,
ID_GEN_EXPORT_FILE_MODULE_REPORT
,
AddMenuItem
(
fabricationOutputsMenu
,
ID_GEN_EXPORT_FILE_MODULE_REPORT
,
_
(
"&
Module
(.rpt) Report"
),
_
(
"&
Footprint
(.rpt) Report"
),
_
(
"Create a report of all
module
s on the current board"
),
_
(
"Create a report of all
footprint
s on the current board"
),
KiBitmap
(
tools_xpm
)
);
KiBitmap
(
tools_xpm
)
);
AddMenuItem
(
fabricationOutputsMenu
,
ID_PCB_GEN_D356_FILE
,
AddMenuItem
(
fabricationOutputsMenu
,
ID_PCB_GEN_D356_FILE
,
...
@@ -279,7 +279,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
...
@@ -279,7 +279,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
AddMenuItem
(
editMenu
,
ID_PCB_GLOBAL_DELETE
,
AddMenuItem
(
editMenu
,
ID_PCB_GLOBAL_DELETE
,
_
(
"&Global Deletions"
),
_
(
"&Global Deletions"
),
_
(
"Delete tracks,
module
s, texts... on board"
),
_
(
"Delete tracks,
footprint
s, texts... on board"
),
KiBitmap
(
general_deletions_xpm
)
);
KiBitmap
(
general_deletions_xpm
)
);
AddMenuItem
(
editMenu
,
ID_MENU_PCB_CLEAN
,
AddMenuItem
(
editMenu
,
ID_MENU_PCB_CLEAN
,
...
@@ -293,8 +293,8 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
...
@@ -293,8 +293,8 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
KiBitmap
(
swap_layer_xpm
)
);
KiBitmap
(
swap_layer_xpm
)
);
AddMenuItem
(
editMenu
,
ID_MENU_PCB_RESET_TEXTMODULE_FIELDS_SIZES
,
AddMenuItem
(
editMenu
,
ID_MENU_PCB_RESET_TEXTMODULE_FIELDS_SIZES
,
_
(
"&Reset
Module
Field Sizes"
),
_
(
"&Reset
Footprint
Field Sizes"
),
_
(
"Reset text size and width of all
module
fields to current defaults"
),
_
(
"Reset text size and width of all
footprint
fields to current defaults"
),
KiBitmap
(
reset_text_xpm
)
);
KiBitmap
(
reset_text_xpm
)
);
//----- View menu -----------------------------------------------------------
//----- View menu -----------------------------------------------------------
...
@@ -365,10 +365,10 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
...
@@ -365,10 +365,10 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
//----- Place Menu ----------------------------------------------------------
//----- Place Menu ----------------------------------------------------------
wxMenu
*
placeMenu
=
new
wxMenu
;
wxMenu
*
placeMenu
=
new
wxMenu
;
text
=
AddHotkeyName
(
_
(
"&
Module
"
),
g_Pcbnew_Editor_Hokeys_Descr
,
text
=
AddHotkeyName
(
_
(
"&
Footprint
"
),
g_Pcbnew_Editor_Hokeys_Descr
,
HK_ADD_MODULE
);
HK_ADD_MODULE
);
AddMenuItem
(
placeMenu
,
ID_PCB_MODULE_BUTT
,
text
,
AddMenuItem
(
placeMenu
,
ID_PCB_MODULE_BUTT
,
text
,
_
(
"Add
module
s"
),
KiBitmap
(
module_xpm
)
);
_
(
"Add
footprint
s"
),
KiBitmap
(
module_xpm
)
);
text
=
AddHotkeyName
(
_
(
"&Track"
),
g_Pcbnew_Editor_Hokeys_Descr
,
text
=
AddHotkeyName
(
_
(
"&Track"
),
g_Pcbnew_Editor_Hokeys_Descr
,
HK_ADD_NEW_TRACK
,
IS_COMMENT
);
HK_ADD_NEW_TRACK
,
IS_COMMENT
);
...
...
pcbnew/modedit_onclick.cpp
View file @
a08471b7
...
@@ -262,10 +262,10 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
...
@@ -262,10 +262,10 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
KiBitmap
(
rotate_module_ccw_xpm
)
);
KiBitmap
(
rotate_module_ccw_xpm
)
);
AddMenuItem
(
transform_choice
,
ID_MODEDIT_MODULE_MIRROR
,
_
(
"Mirror"
),
AddMenuItem
(
transform_choice
,
ID_MODEDIT_MODULE_MIRROR
,
_
(
"Mirror"
),
KiBitmap
(
mirror_footprint_axisY_xpm
)
);
KiBitmap
(
mirror_footprint_axisY_xpm
)
);
msg
=
AddHotkeyName
(
_
(
"Edit
Module
"
),
g_Module_Editor_Hokeys_Descr
,
HK_EDIT_ITEM
);
msg
=
AddHotkeyName
(
_
(
"Edit
Footprint
"
),
g_Module_Editor_Hokeys_Descr
,
HK_EDIT_ITEM
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_EDIT_MODULE_PRMS
,
msg
,
KiBitmap
(
edit_module_xpm
)
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_EDIT_MODULE_PRMS
,
msg
,
KiBitmap
(
edit_module_xpm
)
);
AddMenuItem
(
PopMenu
,
transform_choice
,
ID_MODEDIT_TRANSFORM_MODULE
,
AddMenuItem
(
PopMenu
,
transform_choice
,
ID_MODEDIT_TRANSFORM_MODULE
,
_
(
"Transform
Module
"
),
KiBitmap
(
edit_xpm
)
);
_
(
"Transform
Footprint
"
),
KiBitmap
(
edit_xpm
)
);
break
;
break
;
}
}
...
@@ -297,25 +297,25 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
...
@@ -297,25 +297,25 @@ bool FOOTPRINT_EDIT_FRAME::OnRightClick( const wxPoint& MousePos, wxMenu* PopMen
case
PCB_MODULE_TEXT_T
:
case
PCB_MODULE_TEXT_T
:
if
(
!
flags
)
if
(
!
flags
)
{
{
msg
=
AddHotkeyName
(
_
(
"Move Text
Mod.
"
),
g_Module_Editor_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Move Text"
),
g_Module_Editor_Hokeys_Descr
,
HK_MOVE_ITEM
);
HK_MOVE_ITEM
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST
,
msg
,
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_MOVE_TEXTMODULE_REQUEST
,
msg
,
KiBitmap
(
move_field_xpm
)
);
KiBitmap
(
move_field_xpm
)
);
}
}
msg
=
AddHotkeyName
(
_
(
"Rotate Text
Mod.
"
),
g_Module_Editor_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Rotate Text"
),
g_Module_Editor_Hokeys_Descr
,
HK_ROTATE_ITEM
);
HK_ROTATE_ITEM
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_ROTATE_TEXTMODULE
,
msg
,
KiBitmap
(
rotate_field_xpm
)
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_ROTATE_TEXTMODULE
,
msg
,
KiBitmap
(
rotate_field_xpm
)
);
if
(
!
flags
)
if
(
!
flags
)
{
{
msg
=
AddHotkeyName
(
_
(
"Edit Text
Mod.
"
),
g_Module_Editor_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Edit Text"
),
g_Module_Editor_Hokeys_Descr
,
HK_EDIT_ITEM
);
HK_EDIT_ITEM
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_EDIT_TEXTMODULE
,
msg
,
KiBitmap
(
edit_text_xpm
)
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_EDIT_TEXTMODULE
,
msg
,
KiBitmap
(
edit_text_xpm
)
);
if
(
(
static_cast
<
TEXTE_MODULE
*>
(
item
)
)
->
GetType
()
==
TEXTE_MODULE
::
TEXT_is_DIVERS
)
if
(
(
static_cast
<
TEXTE_MODULE
*>
(
item
)
)
->
GetType
()
==
TEXTE_MODULE
::
TEXT_is_DIVERS
)
{
{
msg
=
AddHotkeyName
(
_
(
"Delete Text
Mod.
"
),
g_Module_Editor_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Delete Text"
),
g_Module_Editor_Hokeys_Descr
,
HK_DELETE
);
HK_DELETE
);
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_DELETE_TEXTMODULE
,
msg
,
AddMenuItem
(
PopMenu
,
ID_POPUP_PCB_DELETE_TEXTMODULE
,
msg
,
KiBitmap
(
delete_text_xpm
)
);
KiBitmap
(
delete_text_xpm
)
);
...
...
pcbnew/moduleframe.cpp
View file @
a08471b7
...
@@ -461,7 +461,7 @@ void FOOTPRINT_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
...
@@ -461,7 +461,7 @@ void FOOTPRINT_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
{
{
if
(
GetScreen
()
->
IsModify
()
)
if
(
GetScreen
()
->
IsModify
()
)
{
{
int
ii
=
DisplayExitDialog
(
this
,
_
(
"Save the changes
in the module
before closing?"
)
);
int
ii
=
DisplayExitDialog
(
this
,
_
(
"Save the changes
to the footprint
before closing?"
)
);
switch
(
ii
)
switch
(
ii
)
{
{
...
@@ -482,7 +482,7 @@ void FOOTPRINT_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
...
@@ -482,7 +482,7 @@ void FOOTPRINT_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
}
}
else
else
{
{
DisplayError
(
this
,
_
(
"Library is not set, the
module
could not be saved."
)
);
DisplayError
(
this
,
_
(
"Library is not set, the
footprint
could not be saved."
)
);
}
}
// fall through: cancel the close because of an error
// fall through: cancel the close because of an error
...
@@ -672,7 +672,7 @@ void FOOTPRINT_EDIT_FRAME::OnModify()
...
@@ -672,7 +672,7 @@ void FOOTPRINT_EDIT_FRAME::OnModify()
void
FOOTPRINT_EDIT_FRAME
::
updateTitle
()
void
FOOTPRINT_EDIT_FRAME
::
updateTitle
()
{
{
wxString
title
=
_
(
"
Module
Editor "
);
wxString
title
=
_
(
"
Footprint
Editor "
);
wxString
nickname
=
GetCurrentLib
();
wxString
nickname
=
GetCurrentLib
();
...
@@ -688,7 +688,7 @@ void FOOTPRINT_EDIT_FRAME::updateTitle()
...
@@ -688,7 +688,7 @@ void FOOTPRINT_EDIT_FRAME::updateTitle()
bool
writable
=
Prj
().
PcbFootprintLibs
()
->
IsFootprintLibWritable
(
nickname
);
bool
writable
=
Prj
().
PcbFootprintLibs
()
->
IsFootprintLibWritable
(
nickname
);
// no exception was thrown, this means libPath is valid, but it may be read only.
// no exception was thrown, this means libPath is valid, but it may be read only.
title
=
_
(
"
Module
Editor (active library: "
)
+
nickname
+
wxT
(
")"
);
title
=
_
(
"
Footprint
Editor (active library: "
)
+
nickname
+
wxT
(
")"
);
if
(
!
writable
)
if
(
!
writable
)
title
+=
_
(
" [Read Only]"
);
title
+=
_
(
" [Read Only]"
);
...
...
pcbnew/modules.cpp
View file @
a08471b7
...
@@ -64,7 +64,7 @@ MODULE* PCB_BASE_FRAME::GetModuleByName()
...
@@ -64,7 +64,7 @@ MODULE* PCB_BASE_FRAME::GetModuleByName()
wxString
moduleName
;
wxString
moduleName
;
MODULE
*
module
=
NULL
;
MODULE
*
module
=
NULL
;
wxTextEntryDialog
dlg
(
this
,
_
(
"
Name:"
),
_
(
"Search
footprint"
),
moduleName
);
wxTextEntryDialog
dlg
(
this
,
_
(
"
Reference:"
),
_
(
"Search for
footprint"
),
moduleName
);
if
(
dlg
.
ShowModal
()
!=
wxID_OK
)
if
(
dlg
.
ShowModal
()
!=
wxID_OK
)
return
NULL
;
//Aborted by user
return
NULL
;
//Aborted by user
...
@@ -262,7 +262,7 @@ bool PCB_EDIT_FRAME::Delete_Module( MODULE* aModule, wxDC* aDC, bool aAskBeforeD
...
@@ -262,7 +262,7 @@ bool PCB_EDIT_FRAME::Delete_Module( MODULE* aModule, wxDC* aDC, bool aAskBeforeD
/* Confirm module delete. */
/* Confirm module delete. */
if
(
aAskBeforeDeleting
)
if
(
aAskBeforeDeleting
)
{
{
msg
.
Printf
(
_
(
"Delete
Module
%s (value %s) ?"
),
msg
.
Printf
(
_
(
"Delete
Footprint
%s (value %s) ?"
),
GetChars
(
aModule
->
GetReference
()
),
GetChars
(
aModule
->
GetReference
()
),
GetChars
(
aModule
->
GetValue
()
)
);
GetChars
(
aModule
->
GetValue
()
)
);
...
...
pcbnew/onrightclick.cpp
View file @
a08471b7
...
@@ -153,14 +153,14 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -153,14 +153,14 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
if
(
!
(
(
MODULE
*
)
item
)
->
IsLocked
()
)
if
(
!
(
(
MODULE
*
)
item
)
->
IsLocked
()
)
{
{
msg
=
AddHotkeyName
(
_
(
"Lock
Module
"
),
g_Board_Editor_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Lock
Footprint
"
),
g_Board_Editor_Hokeys_Descr
,
HK_LOCK_UNLOCK_FOOTPRINT
);
HK_LOCK_UNLOCK_FOOTPRINT
);
AddMenuItem
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FIXE_MODULE
,
msg
,
AddMenuItem
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FIXE_MODULE
,
msg
,
KiBitmap
(
locked_xpm
)
);
KiBitmap
(
locked_xpm
)
);
}
}
else
else
{
{
msg
=
AddHotkeyName
(
_
(
"Unlock
Module
"
),
g_Board_Editor_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Unlock
Footprint
"
),
g_Board_Editor_Hokeys_Descr
,
HK_LOCK_UNLOCK_FOOTPRINT
);
HK_LOCK_UNLOCK_FOOTPRINT
);
AddMenuItem
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FREE_MODULE
,
msg
,
AddMenuItem
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FREE_MODULE
,
msg
,
KiBitmap
(
unlocked_xpm
)
);
KiBitmap
(
unlocked_xpm
)
);
...
@@ -168,14 +168,14 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -168,14 +168,14 @@ bool PCB_EDIT_FRAME::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
,
_
(
"Automatically Place
Module
"
)
);
_
(
"Automatically Place
Footprint
"
)
);
}
}
if
(
m_mainToolBar
->
GetToolToggled
(
ID_TOOLBARH_PCB_MODE_TRACKS
)
)
if
(
m_mainToolBar
->
GetToolToggled
(
ID_TOOLBARH_PCB_MODE_TRACKS
)
)
{
{
if
(
!
flags
)
if
(
!
flags
)
aPopMenu
->
Append
(
ID_POPUP_PCB_AUTOROUTE_MODULE
,
aPopMenu
->
Append
(
ID_POPUP_PCB_AUTOROUTE_MODULE
,
_
(
"Automatically Route
Module
"
)
);
_
(
"Automatically Route
Footprint
"
)
);
}
}
break
;
break
;
...
@@ -413,7 +413,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
...
@@ -413,7 +413,7 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
_
(
"Select Layer Pair"
),
KiBitmap
(
select_layer_pair_xpm
)
);
_
(
"Select Layer Pair"
),
KiBitmap
(
select_layer_pair_xpm
)
);
commands
->
AppendSeparator
();
commands
->
AppendSeparator
();
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_ALL_MODULES
,
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_ALL_MODULES
,
_
(
"Automatically Route All
Module
s"
)
);
_
(
"Automatically Route All
Footprint
s"
)
);
commands
->
AppendSeparator
();
commands
->
AppendSeparator
();
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_RESET_UNROUTED
,
_
(
"Reset Unrouted"
)
);
commands
->
Append
(
ID_POPUP_PCB_AUTOROUTE_RESET_UNROUTED
,
_
(
"Reset Unrouted"
)
);
aPopMenu
->
AppendSeparator
();
aPopMenu
->
AppendSeparator
();
...
@@ -758,10 +758,10 @@ void PCB_EDIT_FRAME::createPopUpMenuForFootprints( MODULE* aModule, wxMenu* menu
...
@@ -758,10 +758,10 @@ void PCB_EDIT_FRAME::createPopUpMenuForFootprints( MODULE* aModule, wxMenu* menu
AddMenuItem
(
sub_menu_footprint
,
ID_POPUP_PCB_EDIT_MODULE_PRMS
,
msg
,
AddMenuItem
(
sub_menu_footprint
,
ID_POPUP_PCB_EDIT_MODULE_PRMS
,
msg
,
KiBitmap
(
edit_module_xpm
)
);
KiBitmap
(
edit_module_xpm
)
);
AddMenuItem
(
sub_menu_footprint
,
ID_POPUP_PCB_EDIT_MODULE_WITH_MODEDIT
,
AddMenuItem
(
sub_menu_footprint
,
ID_POPUP_PCB_EDIT_MODULE_WITH_MODEDIT
,
_
(
"Edit with
Module
Editor"
),
_
(
"Edit with
Footprint
Editor"
),
KiBitmap
(
module_editor_xpm
)
);
KiBitmap
(
module_editor_xpm
)
);
sub_menu_footprint
->
AppendSeparator
();
sub_menu_footprint
->
AppendSeparator
();
msg
=
AddHotkeyName
(
_
(
"Delete
Module
"
),
msg
=
AddHotkeyName
(
_
(
"Delete
Footprint
"
),
g_Board_Editor_Hokeys_Descr
,
HK_DELETE
);
g_Board_Editor_Hokeys_Descr
,
HK_DELETE
);
AddMenuItem
(
sub_menu_footprint
,
ID_POPUP_PCB_DELETE_MODULE
,
AddMenuItem
(
sub_menu_footprint
,
ID_POPUP_PCB_DELETE_MODULE
,
msg
,
KiBitmap
(
delete_module_xpm
)
);
msg
,
KiBitmap
(
delete_module_xpm
)
);
...
...
pcbnew/tool_modedit.cpp
View file @
a08471b7
...
@@ -61,14 +61,14 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
...
@@ -61,14 +61,14 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
_
(
"Select active library"
)
);
_
(
"Select active library"
)
);
m_mainToolBar
->
AddTool
(
ID_MODEDIT_SAVE_LIBMODULE
,
wxEmptyString
,
KiBitmap
(
save_library_xpm
),
m_mainToolBar
->
AddTool
(
ID_MODEDIT_SAVE_LIBMODULE
,
wxEmptyString
,
KiBitmap
(
save_library_xpm
),
_
(
"Save
module
in active library"
)
);
_
(
"Save
footprint
in active library"
)
);
m_mainToolBar
->
AddTool
(
ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART
,
wxEmptyString
,
KiBitmap
(
new_library_xpm
),
KiBitmap
(
new_library_xpm
),
_
(
"Create new library and save current
module
"
)
);
_
(
"Create new library and save current
footprint
"
)
);
m_mainToolBar
->
AddTool
(
ID_OPEN_MODULE_VIEWER
,
wxEmptyString
,
KiBitmap
(
modview_icon_xpm
),
m_mainToolBar
->
AddTool
(
ID_OPEN_MODULE_VIEWER
,
wxEmptyString
,
KiBitmap
(
modview_icon_xpm
),
_
(
"Open
module
viewer"
)
);
_
(
"Open
footprint
viewer"
)
);
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_MODEDIT_DELETE_PART
,
wxEmptyString
,
KiBitmap
(
delete_xpm
),
m_mainToolBar
->
AddTool
(
ID_MODEDIT_DELETE_PART
,
wxEmptyString
,
KiBitmap
(
delete_xpm
),
...
@@ -76,38 +76,38 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
...
@@ -76,38 +76,38 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_MODEDIT_NEW_MODULE
,
wxEmptyString
,
KiBitmap
(
new_footprint_xpm
),
m_mainToolBar
->
AddTool
(
ID_MODEDIT_NEW_MODULE
,
wxEmptyString
,
KiBitmap
(
new_footprint_xpm
),
_
(
"New
module
"
)
);
_
(
"New
footprint
"
)
);
#ifdef KICAD_SCRIPTING
#ifdef KICAD_SCRIPTING
m_mainToolBar
->
AddTool
(
ID_MODEDIT_NEW_MODULE_FROM_WIZARD
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_NEW_MODULE_FROM_WIZARD
,
wxEmptyString
,
KiBitmap
(
module_wizard_xpm
),
KiBitmap
(
module_wizard_xpm
),
_
(
"New
module from footprint
wizard"
)
);
_
(
"New
footprint using
wizard"
)
);
#endif
#endif
m_mainToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE
,
wxEmptyString
,
KiBitmap
(
load_module_lib_xpm
),
KiBitmap
(
load_module_lib_xpm
),
_
(
"Load
module
from library"
)
);
_
(
"Load
footprint
from library"
)
);
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE_FROM_BOARD
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE_FROM_BOARD
,
wxEmptyString
,
KiBitmap
(
load_module_board_xpm
),
KiBitmap
(
load_module_board_xpm
),
_
(
"Load
module
from current board"
)
);
_
(
"Load
footprint
from current board"
)
);
m_mainToolBar
->
AddTool
(
ID_MODEDIT_UPDATE_MODULE_IN_BOARD
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_UPDATE_MODULE_IN_BOARD
,
wxEmptyString
,
KiBitmap
(
update_module_board_xpm
),
KiBitmap
(
update_module_board_xpm
),
_
(
"Update
module
in current board"
)
);
_
(
"Update
footprint
in current board"
)
);
m_mainToolBar
->
AddTool
(
ID_MODEDIT_INSERT_MODULE_IN_BOARD
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_INSERT_MODULE_IN_BOARD
,
wxEmptyString
,
KiBitmap
(
insert_module_board_xpm
),
KiBitmap
(
insert_module_board_xpm
),
_
(
"Insert
module
into current board"
)
);
_
(
"Insert
footprint
into current board"
)
);
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_MODEDIT_IMPORT_PART
,
wxEmptyString
,
KiBitmap
(
import_module_xpm
),
m_mainToolBar
->
AddTool
(
ID_MODEDIT_IMPORT_PART
,
wxEmptyString
,
KiBitmap
(
import_module_xpm
),
_
(
"Import
module
"
)
);
_
(
"Import
footprint
"
)
);
m_mainToolBar
->
AddTool
(
ID_MODEDIT_EXPORT_PART
,
wxEmptyString
,
KiBitmap
(
export_module_xpm
),
m_mainToolBar
->
AddTool
(
ID_MODEDIT_EXPORT_PART
,
wxEmptyString
,
KiBitmap
(
export_module_xpm
),
_
(
"Export
module
"
)
);
_
(
"Export
footprint
"
)
);
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
...
@@ -119,11 +119,11 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
...
@@ -119,11 +119,11 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_MODEDIT_EDIT_MODULE_PROPERTIES
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_EDIT_MODULE_PROPERTIES
,
wxEmptyString
,
KiBitmap
(
module_options_xpm
),
KiBitmap
(
module_options_xpm
),
_
(
"
Module
properties"
)
);
_
(
"
Footprint
properties"
)
);
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
KiBitmap
(
print_button_xpm
),
m_mainToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
KiBitmap
(
print_button_xpm
),
_
(
"Print
module
"
)
);
_
(
"Print
footprint
"
)
);
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_IN
,
IS_COMMENT
);
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_IN
,
IS_COMMENT
);
...
@@ -146,7 +146,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
...
@@ -146,7 +146,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_MODEDIT_CHECK
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_MODEDIT_CHECK
,
wxEmptyString
,
KiBitmap
(
module_check_xpm
),
KiBitmap
(
module_check_xpm
),
_
(
"Check
module
"
)
);
_
(
"Check
footprint
"
)
);
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
m_mainToolBar
->
Realize
();
m_mainToolBar
->
Realize
();
...
@@ -184,7 +184,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateVToolbar()
...
@@ -184,7 +184,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateVToolbar()
m_drawToolBar
->
AddSeparator
();
m_drawToolBar
->
AddSeparator
();
m_drawToolBar
->
AddTool
(
ID_MODEDIT_ANCHOR_TOOL
,
wxEmptyString
,
KiBitmap
(
anchor_xpm
),
m_drawToolBar
->
AddTool
(
ID_MODEDIT_ANCHOR_TOOL
,
wxEmptyString
,
KiBitmap
(
anchor_xpm
),
_
(
"Place the footprint
module
reference anchor"
),
_
(
"Place the footprint reference anchor"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_drawToolBar
->
AddSeparator
();
m_drawToolBar
->
AddSeparator
();
...
...
pcbnew/tool_pcb.cpp
View file @
a08471b7
...
@@ -237,11 +237,11 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
...
@@ -237,11 +237,11 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_OPEN_MODULE_EDITOR
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_OPEN_MODULE_EDITOR
,
wxEmptyString
,
KiBitmap
(
module_editor_xpm
),
KiBitmap
(
module_editor_xpm
),
_
(
"Open
module
editor"
)
);
_
(
"Open
footprint
editor"
)
);
m_mainToolBar
->
AddTool
(
ID_OPEN_MODULE_VIEWER
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_OPEN_MODULE_VIEWER
,
wxEmptyString
,
KiBitmap
(
modview_icon_xpm
),
KiBitmap
(
modview_icon_xpm
),
_
(
"Open
module
viewer"
)
);
_
(
"Open
footprint
viewer"
)
);
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_UNDO
,
g_Board_Editor_Hokeys_Descr
,
HK_UNDO
,
IS_COMMENT
);
msg
=
AddHotkeyName
(
HELP_UNDO
,
g_Board_Editor_Hokeys_Descr
,
HK_UNDO
,
IS_COMMENT
);
...
@@ -297,7 +297,7 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
...
@@ -297,7 +297,7 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddSeparator
();
m_mainToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_MODULE
,
wxEmptyString
,
KiBitmap
(
mode_module_xpm
),
m_mainToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_MODULE
,
wxEmptyString
,
KiBitmap
(
mode_module_xpm
),
_
(
"Mode footprint: manual and automatic move
and place modules
"
),
_
(
"Mode footprint: manual and automatic move
ment and placement
"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_mainToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_TRACKS
,
wxEmptyString
,
KiBitmap
(
mode_track_xpm
),
m_mainToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_TRACKS
,
wxEmptyString
,
KiBitmap
(
mode_track_xpm
),
_
(
"Mode track: autorouting"
),
wxITEM_CHECK
);
_
(
"Mode track: autorouting"
),
wxITEM_CHECK
);
...
...
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