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
82d5ed1e
Commit
82d5ed1e
authored
Aug 28, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start migration to PNG, use shim function KiBitmap() and KiBitmapNew()
parent
706b267f
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
397 additions
and
352 deletions
+397
-352
3d_canvas.cpp
3d-viewer/3d_canvas.cpp
+12
-12
3d_toolbar.cpp
3d-viewer/3d_toolbar.cpp
+17
-17
CMakeLists.txt
bitmaps/CMakeLists.txt
+6
-6
rotate_neg_x.xpm
bitmaps/rotate_neg_x.xpm
+0
-0
rotate_neg_y.xpm
bitmaps/rotate_neg_y.xpm
+0
-0
rotate_neg_z.xpm
bitmaps/rotate_neg_z.xpm
+0
-0
rotate_pos_x.xpm
bitmaps/rotate_pos_x.xpm
+0
-0
rotate_pos_y.xpm
bitmaps/rotate_pos_y.xpm
+0
-0
rotate_pos_z.xpm
bitmaps/rotate_pos_z.xpm
+0
-0
bitmap.cpp
common/bitmap.cpp
+26
-1
AboutDialog_main.cpp
common/dialog_about/AboutDialog_main.cpp
+16
-16
dialog_about.cpp
common/dialog_about/dialog_about.cpp
+20
-20
edaappl.cpp
common/edaappl.cpp
+1
-1
class_DisplayFootprintsFrame.cpp
cvpcb/class_DisplayFootprintsFrame.cpp
+14
-14
tool_cvpcb.cpp
cvpcb/tool_cvpcb.cpp
+12
-12
dialog_erc.cpp
eeschema/dialogs/dialog_erc.cpp
+4
-4
dialog_lib_edit_pin.cpp
eeschema/dialogs/dialog_lib_edit_pin.cpp
+3
-3
hierarch.cpp
eeschema/hierarch.cpp
+2
-2
tool_lib.cpp
eeschema/tool_lib.cpp
+38
-38
tool_sch.cpp
eeschema/tool_sch.cpp
+49
-49
tool_viewlib.cpp
eeschema/tool_viewlib.cpp
+12
-12
toolbars_gerber.cpp
gerbview/toolbars_gerber.cpp
+21
-21
bitmaps.h
include/bitmaps.h
+25
-5
class_treeprojectfiles.cpp
kicad/class_treeprojectfiles.cpp
+9
-9
commandframe.cpp
kicad/commandframe.cpp
+6
-6
menubar.cpp
kicad/menubar.cpp
+5
-5
tool_modedit.cpp
pcbnew/tool_modedit.cpp
+38
-38
tool_pcb.cpp
pcbnew/tool_pcb.cpp
+61
-61
No files found.
3d-viewer/3d_canvas.cpp
View file @
82d5ed1e
...
@@ -339,67 +339,67 @@ void Pcb3D_GLCanvas::OnRightClick( wxMouseEvent& event )
...
@@ -339,67 +339,67 @@ void Pcb3D_GLCanvas::OnRightClick( wxMouseEvent& event )
pos
.
x
=
event
.
GetX
();
pos
.
y
=
event
.
GetY
();
pos
.
x
=
event
.
GetX
();
pos
.
y
=
event
.
GetY
();
wxMenuItem
*
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMIN
,
wxMenuItem
*
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMIN
,
_
(
"Zoom +"
)
);
_
(
"Zoom +"
)
);
item
->
SetBitmap
(
zoom_in_xpm
);
item
->
SetBitmap
(
KiBitmap
(
zoom_in_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMOUT
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMOUT
,
_
(
"Zoom -"
)
);
_
(
"Zoom -"
)
);
item
->
SetBitmap
(
zoom_out_xpm
);
item
->
SetBitmap
(
KiBitmap
(
zoom_out_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZPOS
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZPOS
,
_
(
"Top View"
)
);
_
(
"Top View"
)
);
item
->
SetBitmap
(
axis3d_top_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_top_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZNEG
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZNEG
,
_
(
"Bottom View"
)
);
_
(
"Bottom View"
)
);
item
->
SetBitmap
(
axis3d_bottom_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_bottom_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XPOS
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XPOS
,
_
(
"Right View"
)
);
_
(
"Right View"
)
);
item
->
SetBitmap
(
axis3d_right_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_right_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XNEG
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XNEG
,
_
(
"Left View"
)
);
_
(
"Left View"
)
);
item
->
SetBitmap
(
axis3d_left_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_left_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YPOS
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YPOS
,
_
(
"Front View"
)
);
_
(
"Front View"
)
);
item
->
SetBitmap
(
axis3d_front_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_front_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YNEG
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YNEG
,
_
(
"Back View"
)
);
_
(
"Back View"
)
);
item
->
SetBitmap
(
axis3d_back_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_back_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_LEFT
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_LEFT
,
_
(
"Move left <-"
)
);
_
(
"Move left <-"
)
);
item
->
SetBitmap
(
left_xpm
);
item
->
SetBitmap
(
KiBitmap
(
left_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_RIGHT
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_RIGHT
,
_
(
"Move right ->"
)
);
_
(
"Move right ->"
)
);
item
->
SetBitmap
(
right_xpm
);
item
->
SetBitmap
(
KiBitmap
(
right_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_UP
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_UP
,
_
(
"Move Up ^"
)
);
_
(
"Move Up ^"
)
);
item
->
SetBitmap
(
up_xpm
);
item
->
SetBitmap
(
KiBitmap
(
up_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_DOWN
,
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_DOWN
,
_
(
"Move Down"
)
);
_
(
"Move Down"
)
);
item
->
SetBitmap
(
down_xpm
);
item
->
SetBitmap
(
KiBitmap
(
down_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
Append
(
item
);
PopupMenu
(
&
PopUpMenu
,
pos
);
PopupMenu
(
&
PopUpMenu
,
pos
);
...
...
3d-viewer/3d_toolbar.cpp
View file @
82d5ed1e
...
@@ -23,7 +23,7 @@ void EDA_3D_FRAME::ReCreateHToolbar()
...
@@ -23,7 +23,7 @@ void EDA_3D_FRAME::ReCreateHToolbar()
// Set up toolbar
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_RELOAD3D_BOARD
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_RELOAD3D_BOARD
,
wxEmptyString
,
wx
Bitmap
(
import3d_xpm
),
Ki
Bitmap
(
import3d_xpm
),
_
(
"Reload board"
)
);
_
(
"Reload board"
)
);
#if (defined(__WINDOWS__) || defined(__APPLE__ ) )
#if (defined(__WINDOWS__) || defined(__APPLE__ ) )
...
@@ -31,66 +31,66 @@ void EDA_3D_FRAME::ReCreateHToolbar()
...
@@ -31,66 +31,66 @@ void EDA_3D_FRAME::ReCreateHToolbar()
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_TOOL_SCREENCOPY_TOCLIBBOARD
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_TOOL_SCREENCOPY_TOCLIBBOARD
,
wxEmptyString
,
wx
Bitmap
(
copy_button
),
Ki
Bitmap
(
copy_button
),
_
(
"Copy 3D Image to Clipboard"
)
);
_
(
"Copy 3D Image to Clipboard"
)
);
#endif
#endif
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
Ki
Bitmap
(
zoom_in_xpm
),
_
(
"Zoom in"
)
);
_
(
"Zoom in"
)
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
Ki
Bitmap
(
zoom_out_xpm
),
_
(
"Zoom out"
)
);
_
(
"Zoom out"
)
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
Ki
Bitmap
(
zoom_redraw_xpm
),
_
(
"Redraw view"
)
);
_
(
"Redraw view"
)
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
_
(
"Fit in page"
)
);
_
(
"Fit in page"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ROTATE3D_X_NEG
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ROTATE3D_X_NEG
,
wxEmptyString
,
wx
Bitmap
(
rotate_neg_X_xpm
),
Ki
Bitmap
(
rotate_neg_X_xpm
),
_
(
"Rotate X <-"
)
);
_
(
"Rotate X <-"
)
);
m_HToolBar
->
AddTool
(
ID_ROTATE3D_X_POS
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ROTATE3D_X_POS
,
wxEmptyString
,
wx
Bitmap
(
rotate_pos_X_xpm
),
Ki
Bitmap
(
rotate_pos_X_xpm
),
_
(
"Rotate X ->"
)
);
_
(
"Rotate X ->"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Y_NEG
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Y_NEG
,
wxEmptyString
,
wx
Bitmap
(
rotate_neg_Y_xpm
),
Ki
Bitmap
(
rotate_neg_Y_xpm
),
_
(
"Rotate Y <-"
)
);
_
(
"Rotate Y <-"
)
);
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Y_POS
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Y_POS
,
wxEmptyString
,
wx
Bitmap
(
rotate_pos_Y_xpm
),
Ki
Bitmap
(
rotate_pos_Y_xpm
),
_
(
"Rotate Y ->"
)
);
_
(
"Rotate Y ->"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Z_NEG
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Z_NEG
,
wxEmptyString
,
wx
Bitmap
(
rotate_neg_Z_xpm
),
Ki
Bitmap
(
rotate_neg_Z_xpm
),
_
(
"Rotate Z <-"
)
);
_
(
"Rotate Z <-"
)
);
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Z_POS
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Z_POS
,
wxEmptyString
,
wx
Bitmap
(
rotate_pos_Z_xpm
),
Ki
Bitmap
(
rotate_pos_Z_xpm
),
_
(
"Rotate Z ->"
)
);
_
(
"Rotate Z ->"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MOVE3D_LEFT
,
wxEmptyString
,
wx
Bitmap
(
left_xpm
),
m_HToolBar
->
AddTool
(
ID_MOVE3D_LEFT
,
wxEmptyString
,
Ki
Bitmap
(
left_xpm
),
_
(
"Move left <-"
)
);
_
(
"Move left <-"
)
);
m_HToolBar
->
AddTool
(
ID_MOVE3D_RIGHT
,
wxEmptyString
,
wx
Bitmap
(
right_xpm
),
m_HToolBar
->
AddTool
(
ID_MOVE3D_RIGHT
,
wxEmptyString
,
Ki
Bitmap
(
right_xpm
),
_
(
"Move right ->"
)
);
_
(
"Move right ->"
)
);
m_HToolBar
->
AddTool
(
ID_MOVE3D_UP
,
wxEmptyString
,
wx
Bitmap
(
up_xpm
),
m_HToolBar
->
AddTool
(
ID_MOVE3D_UP
,
wxEmptyString
,
Ki
Bitmap
(
up_xpm
),
_
(
"Move up ^"
)
);
_
(
"Move up ^"
)
);
m_HToolBar
->
AddTool
(
ID_MOVE3D_DOWN
,
wxEmptyString
,
wx
Bitmap
(
down_xpm
),
m_HToolBar
->
AddTool
(
ID_MOVE3D_DOWN
,
wxEmptyString
,
Ki
Bitmap
(
down_xpm
),
_
(
"Move down v"
)
);
_
(
"Move down v"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ORTHO
,
wxEmptyString
,
wx
Bitmap
(
ortho_xpm
),
m_HToolBar
->
AddTool
(
ID_ORTHO
,
wxEmptyString
,
Ki
Bitmap
(
ortho_xpm
),
_
(
"Enable/Disable orthographic projection"
),
_
(
"Enable/Disable orthographic projection"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
...
bitmaps/CMakeLists.txt
View file @
82d5ed1e
...
@@ -363,12 +363,12 @@ set(BITMAP_SRCS
...
@@ -363,12 +363,12 @@ set(BITMAP_SRCS
Rotate_Pin.xpm
Rotate_Pin.xpm
Rotate_CCW.xpm
Rotate_CCW.xpm
Rotate_CW.xpm
Rotate_CW.xpm
rotate
-
x.xpm
rotate
_neg_
x.xpm
rotate
+
x.xpm
rotate
_pos_
x.xpm
rotate
-
y.xpm
rotate
_neg_
y.xpm
rotate
+
y.xpm
rotate
_pos_
y.xpm
rotate
-
z.xpm
rotate
_neg_
z.xpm
rotate
+
z.xpm
rotate
_pos_
z.xpm
save_as.xpm
save_as.xpm
Save_Library.xpm
Save_Library.xpm
Save_NetList.xpm
Save_NetList.xpm
...
...
bitmaps/rotate
-
x.xpm
→
bitmaps/rotate
_neg_
x.xpm
View file @
82d5ed1e
File moved
bitmaps/rotate
-
y.xpm
→
bitmaps/rotate
_neg_
y.xpm
View file @
82d5ed1e
File moved
bitmaps/rotate
-
z.xpm
→
bitmaps/rotate
_neg_
z.xpm
View file @
82d5ed1e
File moved
bitmaps/rotate
+
x.xpm
→
bitmaps/rotate
_pos_
x.xpm
View file @
82d5ed1e
File moved
bitmaps/rotate
+
y.xpm
→
bitmaps/rotate
_pos_
y.xpm
View file @
82d5ed1e
File moved
bitmaps/rotate
+
z.xpm
→
bitmaps/rotate
_pos_
z.xpm
View file @
82d5ed1e
File moved
common/bitmap.cpp
View file @
82d5ed1e
...
@@ -30,10 +30,35 @@
...
@@ -30,10 +30,35 @@
#include "bitmaps.h"
#include "bitmaps.h"
wxBitmap
Bitmap
(
const
BITMAP_DEF
&
aBitmap
)
#if defined(USE_PNG_BITMAPS)
wxBitmap
KiBitmap
(
const
BITMAP_DEF
&
aBitmap
)
{
{
wxMemoryInputStream
is
(
aBitmap
.
png
,
aBitmap
.
byteCount
);
wxMemoryInputStream
is
(
aBitmap
.
png
,
aBitmap
.
byteCount
);
return
wxBitmap
(
wxImage
(
is
,
wxBITMAP_TYPE_PNG
,
-
1
),
-
1
);
return
wxBitmap
(
wxImage
(
is
,
wxBITMAP_TYPE_PNG
,
-
1
),
-
1
);
}
}
wxBitmap
*
KiBitmapNew
(
const
BITMAP_DEF
&
aBitmap
)
{
wxMemoryInputStream
is
(
aBitmap
.
png
,
aBitmap
.
byteCount
);
return
new
wxBitmap
(
wxImage
(
is
,
wxBITMAP_TYPE_PNG
,
-
1
),
-
1
);
}
#else
// temporary during migration to PNG. Soon the argument to these calls becomes the
// opaque BITMAP_DEF&.
wxBitmap
KiBitmap
(
const
BITMAP_DEF
&
aBitmap
)
{
return
wxBitmap
(
aBitmap
);
}
wxBitmap
*
KiBitmapNew
(
const
BITMAP_DEF
&
aBitmap
)
{
return
new
wxBitmap
(
aBitmap
);
}
#endif
common/dialog_about/AboutDialog_main.cpp
View file @
82d5ed1e
...
@@ -227,37 +227,37 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
...
@@ -227,37 +227,37 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
* and as icon the national flag of the corresponding country.
* and as icon the national flag of the corresponding country.
*/
*/
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Martin Kratoška"
),
wxT
(
"martin@ok1rr.com"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Martin Kratoška"
),
wxT
(
"martin@ok1rr.com"
),
wxT
(
"Czech (CZ)"
),
new
wxBitmap
(
lang_cs_xpm
)
)
);
wxT
(
"Czech (CZ)"
),
KiBitmapNew
(
lang_cs_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Jerry Jacobs"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Jerry Jacobs"
),
wxT
(
"xor.gate.engineering@gmail.com"
),
wxT
(
"Dutch (NL)"
),
wxT
(
"xor.gate.engineering@gmail.com"
),
wxT
(
"Dutch (NL)"
),
new
wxBitmap
(
lang_nl_xpm
)
)
);
KiBitmapNew
(
lang_nl_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Vesa Solonen"
),
wxT
(
"vesa.solonen@hut.fi"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Vesa Solonen"
),
wxT
(
"vesa.solonen@hut.fi"
),
wxT
(
"Finnish (FI)"
),
new
wxBitmap
(
lang_fi_xpm
)
)
);
wxT
(
"Finnish (FI)"
),
KiBitmapNew
(
lang_fi_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Jean-Pierre Charras"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Jean-Pierre Charras"
),
wxT
(
"jean-pierre.charras@gipsa-lab.inpg.fr"
),
wxT
(
"jean-pierre.charras@gipsa-lab.inpg.fr"
),
wxT
(
"French (FR)"
),
new
wxBitmap
(
lang_fr_xpm
)
)
);
wxT
(
"French (FR)"
),
KiBitmapNew
(
lang_fr_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Mateusz Skowroński"
),
wxT
(
"skowri@gmail.com"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Mateusz Skowroński"
),
wxT
(
"skowri@gmail.com"
),
wxT
(
"Polish (PL)"
),
new
wxBitmap
(
lang_pl_xpm
)
)
);
wxT
(
"Polish (PL)"
),
KiBitmapNew
(
lang_pl_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Renie Marquet"
),
wxT
(
"reniemarquet@uol.com.br"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Renie Marquet"
),
wxT
(
"reniemarquet@uol.com.br"
),
wxT
(
"Portuguese (PT)"
),
new
wxBitmap
(
lang_pt_xpm
)
)
);
wxT
(
"Portuguese (PT)"
),
KiBitmapNew
(
lang_pt_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Igor Plyatov"
),
wxT
(
"plyatov@gmail.com"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Igor Plyatov"
),
wxT
(
"plyatov@gmail.com"
),
wxT
(
"Russian (RU)"
),
new
wxBitmap
(
lang_ru_xpm
)
)
);
wxT
(
"Russian (RU)"
),
KiBitmapNew
(
lang_ru_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Pedro Martin del Valle"
),
wxT
(
"pkicad@yahoo.es"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Pedro Martin del Valle"
),
wxT
(
"pkicad@yahoo.es"
),
wxT
(
"Spanish (ES)"
),
new
wxBitmap
(
lang_es_xpm
)
)
);
wxT
(
"Spanish (ES)"
),
KiBitmapNew
(
lang_es_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Iñigo Zuluaga"
),
wxT
(
"inigo_zuluaga@yahoo.es"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Iñigo Zuluaga"
),
wxT
(
"inigo_zuluaga@yahoo.es"
),
wxT
(
"Spanish (ES)"
),
new
wxBitmap
(
lang_es_xpm
)
)
);
wxT
(
"Spanish (ES)"
),
KiBitmapNew
(
lang_es_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Rafael Sokolowski"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Rafael Sokolowski"
),
wxT
(
"rafael.sokolowski@web.de"
),
wxT
(
"German (DE)"
),
wxT
(
"rafael.sokolowski@web.de"
),
wxT
(
"German (DE)"
),
new
wxBitmap
(
lang_de_xpm
)
)
);
KiBitmapNew
(
lang_de_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Kenta Yonekura"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Kenta Yonekura"
),
wxT
(
"midpika@hotmail.com"
),
wxT
(
"Japanese (JA)"
),
wxT
(
"midpika@hotmail.com"
),
wxT
(
"Japanese (JA)"
),
new
wxBitmap
(
lang_jp_xpm
)
)
);
KiBitmapNew
(
lang_jp_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Manolis Stefanis, Athanasios Vlastos and Milonas Kostas"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Manolis Stefanis, Athanasios Vlastos and Milonas Kostas"
),
wxT
(
"milonas.ko@gmail.com"
),
wxT
(
"Greek (el_GR)"
),
wxT
(
"milonas.ko@gmail.com"
),
wxT
(
"Greek (el_GR)"
),
new
wxBitmap
(
lang_gr_xpm
)
)
);
KiBitmapNew
(
lang_gr_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Massimo Cioce"
),
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Massimo Cioce"
),
wxT
(
"ciocemax@alice.it"
),
wxT
(
"Italian (IT)"
),
wxT
(
"ciocemax@alice.it"
),
wxT
(
"Italian (IT)"
),
new
wxBitmap
(
lang_it_xpm
)
)
);
KiBitmapNew
(
lang_it_xpm
)
)
);
/* TODO: are these all russian translators, placed them here now, or else align them below other language maintainer with mail adress */
/* TODO: are these all russian translators, placed them here now, or else align them below other language maintainer with mail adress */
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Remy Halvick"
),
wxEmptyString
,
wxT
(
"Others"
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Remy Halvick"
),
wxEmptyString
,
wxT
(
"Others"
)
)
);
...
@@ -267,11 +267,11 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
...
@@ -267,11 +267,11 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
/* Programm credits for icons */
/* Programm credits for icons */
info
.
AddArtist
(
new
Contributor
(
wxT
(
"Iñigo Zuluagaz"
),
wxT
(
"inigo_zuluaga@yahoo.es"
),
info
.
AddArtist
(
new
Contributor
(
wxT
(
"Iñigo Zuluagaz"
),
wxT
(
"inigo_zuluaga@yahoo.es"
),
wxT
(
"Icons by"
),
new
wxBitmap
(
edit_module_xpm
)
)
);
wxT
(
"Icons by"
),
KiBitmapNew
(
edit_module_xpm
)
)
);
info
.
AddArtist
(
new
Contributor
(
wxT
(
"Renie Marquet"
),
wxT
(
"reniemarquet@uol.com.br"
),
info
.
AddArtist
(
new
Contributor
(
wxT
(
"Renie Marquet"
),
wxT
(
"reniemarquet@uol.com.br"
),
wxT
(
"3D modules by"
),
new
wxBitmap
(
show_3d_xpm
)
)
);
wxT
(
"3D modules by"
),
KiBitmapNew
(
show_3d_xpm
)
)
);
info
.
AddArtist
(
new
Contributor
(
wxT
(
"Christophe Boschat"
),
wxT
(
"nox454@hotmail.fr"
),
info
.
AddArtist
(
new
Contributor
(
wxT
(
"Christophe Boschat"
),
wxT
(
"nox454@hotmail.fr"
),
wxT
(
"3D modules by"
),
new
wxBitmap
(
show_3d_xpm
)
)
);
wxT
(
"3D modules by"
),
KiBitmapNew
(
show_3d_xpm
)
)
);
}
}
...
...
common/dialog_about/dialog_about.cpp
View file @
82d5ed1e
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
dialog_about
::
dialog_about
(
wxWindow
*
parent
,
AboutAppInfo
&
appInfo
)
dialog_about
::
dialog_about
(
wxWindow
*
parent
,
AboutAppInfo
&
appInfo
)
:
dialog_about_base
(
parent
),
info
(
appInfo
)
:
dialog_about_base
(
parent
),
info
(
appInfo
)
{
{
picInformation
=
wxBitmap
(
info_xpm
);
picInformation
=
KiBitmap
(
info_xpm
);
picDevelopers
=
wxBitmap
(
preference_xpm
);
picDevelopers
=
KiBitmap
(
preference_xpm
);
picDocWriters
=
wxBitmap
(
editor_xpm
);
picDocWriters
=
KiBitmap
(
editor_xpm
);
picArtists
=
wxBitmap
(
palette_xpm
);
picArtists
=
KiBitmap
(
palette_xpm
);
picTranslators
=
wxBitmap
(
language_xpm
);
picTranslators
=
KiBitmap
(
language_xpm
);
picLicense
=
wxBitmap
(
tools_xpm
);
picLicense
=
KiBitmap
(
tools_xpm
);
m_bitmapApp
->
SetBitmap
(
info
.
GetIcon
()
);
m_bitmapApp
->
SetBitmap
(
info
.
GetIcon
()
);
...
@@ -53,8 +53,8 @@ wxFlexGridSizer* dialog_about::CreateFlexGridSizer()
...
@@ -53,8 +53,8 @@ wxFlexGridSizer* dialog_about::CreateFlexGridSizer()
{
{
// three colums with vertical and horizontal extra space of two pixels
// three colums with vertical and horizontal extra space of two pixels
wxFlexGridSizer
*
fgSizer1
=
new
wxFlexGridSizer
(
3
,
2
,
2
);
wxFlexGridSizer
*
fgSizer1
=
new
wxFlexGridSizer
(
3
,
2
,
2
);
fgSizer1
->
SetFlexibleDirection
(
wxHORIZONTAL
);
fgSizer1
->
SetFlexibleDirection
(
wxHORIZONTAL
);
fgSizer1
->
SetNonFlexibleGrowMode
(
wxFLEX_GROWMODE_SPECIFIED
);
fgSizer1
->
SetNonFlexibleGrowMode
(
wxFLEX_GROWMODE_SPECIFIED
);
return
fgSizer1
;
return
fgSizer1
;
}
}
...
@@ -82,8 +82,8 @@ void dialog_about::CreateNotebookPage(wxAuiNotebook* parent, const wxString& cap
...
@@ -82,8 +82,8 @@ void dialog_about::CreateNotebookPage(wxAuiNotebook* parent, const wxString& cap
{
{
wxBoxSizer
*
bSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
bSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxScrolledWindow
*
m_scrolledWindow1
=
new
wxScrolledWindow
(
parent
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wxVSCROLL
);
wxScrolledWindow
*
m_scrolledWindow1
=
new
wxScrolledWindow
(
parent
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wxVSCROLL
);
m_scrolledWindow1
->
SetScrollRate
(
5
,
5
);
m_scrolledWindow1
->
SetScrollRate
(
5
,
5
);
/* Panel for additional space at the left,
/* Panel for additional space at the left,
* but can also be used to show an additional bitmap.
* but can also be used to show an additional bitmap.
...
@@ -125,18 +125,18 @@ void dialog_about::CreateNotebookPage(wxAuiNotebook* parent, const wxString& cap
...
@@ -125,18 +125,18 @@ void dialog_about::CreateNotebookPage(wxAuiNotebook* parent, const wxString& cap
bSizer
->
Add
(
panel1
,
1
,
wxEXPAND
|
wxALL
,
10
);
bSizer
->
Add
(
panel1
,
1
,
wxEXPAND
|
wxALL
,
10
);
bSizer
->
Add
(
fgSizer1
,
7
,
wxEXPAND
|
wxALL
,
10
);
// adjust width of panel with first int value
bSizer
->
Add
(
fgSizer1
,
7
,
wxEXPAND
|
wxALL
,
10
);
// adjust width of panel with first int value
m_scrolledWindow1
->
SetSizer
(
bSizer
);
m_scrolledWindow1
->
SetSizer
(
bSizer
);
m_scrolledWindow1
->
Layout
();
m_scrolledWindow1
->
Layout
();
bSizer
->
Fit
(
m_scrolledWindow1
);
bSizer
->
Fit
(
m_scrolledWindow1
);
parent
->
AddPage
(
m_scrolledWindow1
,
caption
,
false
,
icon
);
parent
->
AddPage
(
m_scrolledWindow1
,
caption
,
false
,
icon
);
}
}
void
dialog_about
::
CreateNotebookPageByCategory
(
wxAuiNotebook
*
parent
,
const
wxString
&
caption
,
const
wxBitmap
&
icon
,
const
Contributors
&
contributors
)
void
dialog_about
::
CreateNotebookPageByCategory
(
wxAuiNotebook
*
parent
,
const
wxString
&
caption
,
const
wxBitmap
&
icon
,
const
Contributors
&
contributors
)
{
{
wxBoxSizer
*
bSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
bSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxScrolledWindow
*
m_scrolledWindow1
=
new
wxScrolledWindow
(
parent
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wxVSCROLL
);
wxScrolledWindow
*
m_scrolledWindow1
=
new
wxScrolledWindow
(
parent
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wxVSCROLL
);
m_scrolledWindow1
->
SetScrollRate
(
5
,
5
);
m_scrolledWindow1
->
SetScrollRate
(
5
,
5
);
/* Panel for additional space at the left,
/* Panel for additional space at the left,
* but can also be used to show an additional bitmap.
* but can also be used to show an additional bitmap.
...
@@ -246,8 +246,8 @@ void dialog_about::CreateNotebookPageByCategory(wxAuiNotebook* parent, const wxS
...
@@ -246,8 +246,8 @@ void dialog_about::CreateNotebookPageByCategory(wxAuiNotebook* parent, const wxS
bSizer
->
Add
(
panel1
,
1
,
wxEXPAND
|
wxALL
,
10
);
bSizer
->
Add
(
panel1
,
1
,
wxEXPAND
|
wxALL
,
10
);
bSizer
->
Add
(
fgSizer1
,
7
,
wxEXPAND
|
wxALL
,
10
);
// adjust width of panel with first int value
bSizer
->
Add
(
fgSizer1
,
7
,
wxEXPAND
|
wxALL
,
10
);
// adjust width of panel with first int value
m_scrolledWindow1
->
SetSizer
(
bSizer
);
m_scrolledWindow1
->
SetSizer
(
bSizer
);
m_scrolledWindow1
->
Layout
();
m_scrolledWindow1
->
Layout
();
bSizer
->
Fit
(
m_scrolledWindow1
);
bSizer
->
Fit
(
m_scrolledWindow1
);
parent
->
AddPage
(
m_scrolledWindow1
,
caption
,
false
,
icon
);
parent
->
AddPage
(
m_scrolledWindow1
,
caption
,
false
,
icon
);
}
}
...
@@ -258,7 +258,7 @@ void dialog_about::CreateNotebookHtmlPage(wxAuiNotebook* parent, const wxString&
...
@@ -258,7 +258,7 @@ void dialog_about::CreateNotebookHtmlPage(wxAuiNotebook* parent, const wxString&
wxBoxSizer
*
bSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
bSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxString
htmlPage
=
wxEmptyString
,
htmlContent
=
html
;
wxString
htmlPage
=
wxEmptyString
,
htmlContent
=
html
;
// to have a unique look background color for HTML pages is set to the default as it is used for all the other widgets
// to have a unique look background color for HTML pages is set to the default as it is used for all the other widgets
wxString
htmlColor
=
(
this
->
GetBackgroundColour
()
).
GetAsString
(
wxC2S_HTML_SYNTAX
);
wxString
htmlColor
=
(
this
->
GetBackgroundColour
()
).
GetAsString
(
wxC2S_HTML_SYNTAX
);
...
@@ -285,8 +285,8 @@ void dialog_about::CreateNotebookHtmlPage(wxAuiNotebook* parent, const wxString&
...
@@ -285,8 +285,8 @@ void dialog_about::CreateNotebookHtmlPage(wxAuiNotebook* parent, const wxString&
// no additional space around the html window as it is also the case by the other notebook pages
// no additional space around the html window as it is also the case by the other notebook pages
bSizer
->
Add
(
htmlWindow
,
1
,
wxALL
|
wxEXPAND
,
0
);
bSizer
->
Add
(
htmlWindow
,
1
,
wxALL
|
wxEXPAND
,
0
);
panel
->
SetSizer
(
bSizer
);
panel
->
SetSizer
(
bSizer
);
panel
->
Layout
();
panel
->
Layout
();
bSizer
->
Fit
(
panel
);
bSizer
->
Fit
(
panel
);
parent
->
AddPage
(
panel
,
caption
,
false
,
icon
);
parent
->
AddPage
(
panel
,
caption
,
false
,
icon
);
}
}
...
...
common/edaappl.cpp
View file @
82d5ed1e
...
@@ -69,7 +69,7 @@ struct LANGUAGE_DESCR
...
@@ -69,7 +69,7 @@ struct LANGUAGE_DESCR
int
m_KI_Lang_Identifier
;
int
m_KI_Lang_Identifier
;
/* The menu language icons */
/* The menu language icons */
const
char
**
m_Lang_Icon
;
const
BITMAP_DEF
&
m_Lang_Icon
;
/* Labels used in menus */
/* Labels used in menus */
const
wxChar
*
m_Lang_Label
;
const
wxChar
*
m_Lang_Label
;
...
...
cvpcb/class_DisplayFootprintsFrame.cpp
View file @
82d5ed1e
...
@@ -156,36 +156,36 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar()
...
@@ -156,36 +156,36 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar()
// Create options tool bar.
// Create options tool bar.
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
wx
Bitmap
(
grid_xpm
),
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
Ki
Bitmap
(
grid_xpm
),
_
(
"Hide grid"
),
wxITEM_CHECK
);
_
(
"Hide grid"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
wx
Bitmap
(
polar_coord_xpm
),
Ki
Bitmap
(
polar_coord_xpm
),
_
(
"Display polar coordinates"
),
wxITEM_CHECK
);
_
(
"Display polar coordinates"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
wx
Bitmap
(
unit_inch_xpm
),
Ki
Bitmap
(
unit_inch_xpm
),
_
(
"Units in inches"
),
wxITEM_CHECK
);
_
(
"Units in inches"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
wx
Bitmap
(
unit_mm_xpm
),
Ki
Bitmap
(
unit_mm_xpm
),
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
pad_sketch_xpm
),
Ki
Bitmap
(
pad_sketch_xpm
),
_
(
"Show pads in outline mode"
),
wxITEM_CHECK
);
_
(
"Show pads in outline mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
text_sketch_xpm
),
Ki
Bitmap
(
text_sketch_xpm
),
_
(
"Show texts in line mode"
),
wxITEM_CHECK
);
_
(
"Show texts in line mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
show_mod_edge_xpm
),
Ki
Bitmap
(
show_mod_edge_xpm
),
_
(
"Show outlines in line mode"
),
wxITEM_CHECK
);
_
(
"Show outlines in line mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
Realize
();
m_OptionsToolBar
->
Realize
();
...
@@ -199,25 +199,25 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar()
...
@@ -199,25 +199,25 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar()
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
true
);
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
true
);
m_HToolBar
->
AddTool
(
ID_OPTIONS_SETUP
,
wxEmptyString
,
wx
Bitmap
(
display_options_xpm
),
m_HToolBar
->
AddTool
(
ID_OPTIONS_SETUP
,
wxEmptyString
,
Ki
Bitmap
(
display_options_xpm
),
_
(
"Display options"
)
);
_
(
"Display options"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
Ki
Bitmap
(
zoom_in_xpm
),
_
(
"Zoom in (F1)"
)
);
_
(
"Zoom in (F1)"
)
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
Ki
Bitmap
(
zoom_out_xpm
),
_
(
"Zoom out (F2)"
)
);
_
(
"Zoom out (F2)"
)
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
Ki
Bitmap
(
zoom_redraw_xpm
),
_
(
"Redraw view (F3)"
)
);
_
(
"Redraw view (F3)"
)
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
_
(
"Zoom auto (Home)"
)
);
_
(
"Zoom auto (Home)"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_SHOW3D_FRAME
,
wxEmptyString
,
wx
Bitmap
(
show_3d_xpm
),
m_HToolBar
->
AddTool
(
ID_CVPCB_SHOW3D_FRAME
,
wxEmptyString
,
Ki
Bitmap
(
show_3d_xpm
),
_
(
"3D Display"
)
);
_
(
"3D Display"
)
);
// after adding the buttons to the toolbar, must call Realize() to reflect
// after adding the buttons to the toolbar, must call Realize() to reflect
...
...
cvpcb/tool_cvpcb.cpp
View file @
82d5ed1e
...
@@ -22,61 +22,61 @@ void CVPCB_MAINFRAME::ReCreateHToolbar()
...
@@ -22,61 +22,61 @@ void CVPCB_MAINFRAME::ReCreateHToolbar()
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
TRUE
);
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
TRUE
);
m_HToolBar
->
AddTool
(
ID_CVPCB_READ_INPUT_NETLIST
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_READ_INPUT_NETLIST
,
wxEmptyString
,
wx
Bitmap
(
open_document_xpm
),
Ki
Bitmap
(
open_document_xpm
),
_
(
"Open a net list file"
)
);
_
(
"Open a net list file"
)
);
m_HToolBar
->
AddTool
(
wxID_SAVE
,
wxEmptyString
,
wx
Bitmap
(
save_xpm
),
m_HToolBar
->
AddTool
(
wxID_SAVE
,
wxEmptyString
,
Ki
Bitmap
(
save_xpm
),
_
(
"Save net list and footprint files"
)
);
_
(
"Save net list and footprint files"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_CONFIGWINDOW
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_CONFIGWINDOW
,
wxEmptyString
,
wx
Bitmap
(
config_xpm
),
Ki
Bitmap
(
config_xpm
),
_
(
"Configuration"
)
);
_
(
"Configuration"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_SCREENCMP
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_SCREENCMP
,
wxEmptyString
,
wx
Bitmap
(
show_footprint_xpm
),
Ki
Bitmap
(
show_footprint_xpm
),
_
(
"View selected footprint"
)
);
_
(
"View selected footprint"
)
);
m_HToolBar
->
AddTool
(
ID_CVPCB_AUTO_ASSOCIE
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_AUTO_ASSOCIE
,
wxEmptyString
,
wx
Bitmap
(
auto_associe_xpm
),
Ki
Bitmap
(
auto_associe_xpm
),
_
(
"Perform automatic footprint association"
)
);
_
(
"Perform automatic footprint association"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_GOTO_PREVIOUSNA
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_GOTO_PREVIOUSNA
,
wxEmptyString
,
wx
Bitmap
(
left_xpm
),
Ki
Bitmap
(
left_xpm
),
_
(
"Select previous free component"
)
);
_
(
"Select previous free component"
)
);
m_HToolBar
->
AddTool
(
ID_CVPCB_GOTO_FIRSTNA
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_GOTO_FIRSTNA
,
wxEmptyString
,
wx
Bitmap
(
right_xpm
),
Ki
Bitmap
(
right_xpm
),
_
(
"Select next free component"
)
);
_
(
"Select next free component"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_DEL_ASSOCIATIONS
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_DEL_ASSOCIATIONS
,
wxEmptyString
,
wx
Bitmap
(
delete_association_xpm
),
Ki
Bitmap
(
delete_association_xpm
),
_
(
"Delete all associations"
)
);
_
(
"Delete all associations"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_STUFF_FILE
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_STUFF_FILE
,
wxEmptyString
,
wx
Bitmap
(
export_footprint_names_xpm
),
Ki
Bitmap
(
export_footprint_names_xpm
),
_
(
"Create export file (component/footprint list, \
_
(
"Create export file (component/footprint list, \
used by eeschema to fill the footprint field of components)"
)
);
used by eeschema to fill the footprint field of components)"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_PCB_DISPLAY_FOOTPRINT_DOC
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_PCB_DISPLAY_FOOTPRINT_DOC
,
wxEmptyString
,
wx
Bitmap
(
datasheet_xpm
),
Ki
Bitmap
(
datasheet_xpm
),
_
(
"Display footprints list documentation"
)
);
_
(
"Display footprints list documentation"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddRadioTool
(
ID_CVPCB_FOOTPRINT_DISPLAY_FILTERED_LIST
,
m_HToolBar
->
AddRadioTool
(
ID_CVPCB_FOOTPRINT_DISPLAY_FILTERED_LIST
,
wxEmptyString
,
wxEmptyString
,
wx
Bitmap
(
module_filtered_list_xpm
),
Ki
Bitmap
(
module_filtered_list_xpm
),
wxNullBitmap
,
wxNullBitmap
,
_
(
"Display the filtered footprint list for the current component"
)
);
_
(
"Display the filtered footprint list for the current component"
)
);
m_HToolBar
->
AddRadioTool
(
ID_CVPCB_FOOTPRINT_DISPLAY_FULL_LIST
,
m_HToolBar
->
AddRadioTool
(
ID_CVPCB_FOOTPRINT_DISPLAY_FULL_LIST
,
wxEmptyString
,
wx
Bitmap
(
module_full_list_xpm
),
wxEmptyString
,
Ki
Bitmap
(
module_full_list_xpm
),
wxNullBitmap
,
wxNullBitmap
,
_
(
"Display the full footprint list (without filtering)"
)
);
_
(
"Display the full footprint list (without filtering)"
)
);
...
...
eeschema/dialogs/dialog_erc.cpp
View file @
82d5ed1e
...
@@ -267,7 +267,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
...
@@ -267,7 +267,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
case
OK
:
case
OK
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
event_id
,
wx
Bitmap
(
erc_green_xpm
),
Ki
Bitmap
(
erc_green_xpm
),
wxPoint
(
x
,
y
)
);
wxPoint
(
x
,
y
)
);
break
;
break
;
...
@@ -275,7 +275,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
...
@@ -275,7 +275,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
case
WAR
:
case
WAR
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
event_id
,
wx
Bitmap
(
warning_xpm
),
Ki
Bitmap
(
warning_xpm
),
wxPoint
(
x
,
y
)
);
wxPoint
(
x
,
y
)
);
break
;
break
;
...
@@ -283,7 +283,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
...
@@ -283,7 +283,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
case
ERR
:
case
ERR
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
event_id
,
wx
Bitmap
(
error_xpm
),
Ki
Bitmap
(
error_xpm
),
wxPoint
(
x
,
y
)
);
wxPoint
(
x
,
y
)
);
break
;
break
;
...
@@ -381,7 +381,7 @@ void DIALOG_ERC::ChangeErrorLevel( wxCommandEvent& event )
...
@@ -381,7 +381,7 @@ void DIALOG_ERC::ChangeErrorLevel( wxCommandEvent& event )
if
(
new_bitmap_xpm
)
if
(
new_bitmap_xpm
)
{
{
delete
Butt
;
delete
Butt
;
Butt
=
new
wxBitmapButton
(
m_PanelERCOptions
,
id
,
wx
Bitmap
(
new_bitmap_xpm
),
pos
);
Butt
=
new
wxBitmapButton
(
m_PanelERCOptions
,
id
,
Ki
Bitmap
(
new_bitmap_xpm
),
pos
);
m_ButtonList
[
y
][
x
]
=
Butt
;
m_ButtonList
[
y
][
x
]
=
Butt
;
DiagErc
[
y
][
x
]
=
DiagErc
[
x
][
y
]
=
level
;
DiagErc
[
y
][
x
]
=
DiagErc
[
x
][
y
]
=
level
;
...
...
eeschema/dialogs/dialog_lib_edit_pin.cpp
View file @
82d5ed1e
...
@@ -147,7 +147,7 @@ void DIALOG_LIB_EDIT_PIN::SetOrientationList( const wxArrayString& list,
...
@@ -147,7 +147,7 @@ void DIALOG_LIB_EDIT_PIN::SetOrientationList( const wxArrayString& list,
if
(
aBitmaps
==
NULL
)
if
(
aBitmaps
==
NULL
)
m_choiceOrientation
->
Append
(
list
[
ii
]
);
m_choiceOrientation
->
Append
(
list
[
ii
]
);
else
else
m_choiceOrientation
->
Insert
(
list
[
ii
],
wx
Bitmap
(
aBitmaps
[
ii
]
),
ii
);
m_choiceOrientation
->
Insert
(
list
[
ii
],
Ki
Bitmap
(
aBitmaps
[
ii
]
),
ii
);
}
}
}
}
...
@@ -160,7 +160,7 @@ void DIALOG_LIB_EDIT_PIN::SetElectricalTypeList( const wxArrayString& list,
...
@@ -160,7 +160,7 @@ void DIALOG_LIB_EDIT_PIN::SetElectricalTypeList( const wxArrayString& list,
if
(
aBitmaps
==
NULL
)
if
(
aBitmaps
==
NULL
)
m_choiceElectricalType
->
Append
(
list
[
ii
]
);
m_choiceElectricalType
->
Append
(
list
[
ii
]
);
else
else
m_choiceElectricalType
->
Insert
(
list
[
ii
],
wx
Bitmap
(
aBitmaps
[
ii
]
),
ii
);
m_choiceElectricalType
->
Insert
(
list
[
ii
],
Ki
Bitmap
(
aBitmaps
[
ii
]
),
ii
);
}
}
}
}
...
@@ -172,6 +172,6 @@ void DIALOG_LIB_EDIT_PIN::SetStyleList( const wxArrayString& list, const char***
...
@@ -172,6 +172,6 @@ void DIALOG_LIB_EDIT_PIN::SetStyleList( const wxArrayString& list, const char***
if
(
aBitmaps
==
NULL
)
if
(
aBitmaps
==
NULL
)
m_choiceStyle
->
Append
(
list
[
ii
]
);
m_choiceStyle
->
Append
(
list
[
ii
]
);
else
else
m_choiceStyle
->
Insert
(
list
[
ii
],
wx
Bitmap
(
aBitmaps
[
ii
]
),
ii
);
m_choiceStyle
->
Insert
(
list
[
ii
],
Ki
Bitmap
(
aBitmaps
[
ii
]
),
ii
);
}
}
}
}
eeschema/hierarch.cpp
View file @
82d5ed1e
...
@@ -65,8 +65,8 @@ HIERARCHY_TREE::HIERARCHY_TREE( HIERARCHY_NAVIG_DLG* parent ) :
...
@@ -65,8 +65,8 @@ HIERARCHY_TREE::HIERARCHY_TREE( HIERARCHY_NAVIG_DLG* parent ) :
// Make an image list containing small icons
// Make an image list containing small icons
imageList
=
new
wxImageList
(
16
,
15
,
TRUE
,
2
);
imageList
=
new
wxImageList
(
16
,
15
,
TRUE
,
2
);
imageList
->
Add
(
wx
Bitmap
(
tree_nosel_xpm
)
);
imageList
->
Add
(
Ki
Bitmap
(
tree_nosel_xpm
)
);
imageList
->
Add
(
wx
Bitmap
(
tree_sel_xpm
)
);
imageList
->
Add
(
Ki
Bitmap
(
tree_sel_xpm
)
);
AssignImageList
(
imageList
);
AssignImageList
(
imageList
);
}
}
...
...
eeschema/tool_lib.cpp
View file @
82d5ed1e
...
@@ -35,37 +35,37 @@ void LIB_EDIT_FRAME::ReCreateVToolbar()
...
@@ -35,37 +35,37 @@ void LIB_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// Set up toolbar
// Set up toolbar
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
wx
Bitmap
(
cursor_xpm
),
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
Ki
Bitmap
(
cursor_xpm
),
_
(
"Deselect current tool"
),
wxITEM_CHECK
);
_
(
"Deselect current tool"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_PIN_BUTT
,
wxEmptyString
,
wx
Bitmap
(
pin_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_PIN_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
pin_xpm
),
HELP_ADD_PIN
,
wxITEM_CHECK
);
HELP_ADD_PIN
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_TEXT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_text_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_TEXT_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_text_xpm
),
HELP_ADD_BODYTEXT
,
wxITEM_CHECK
);
HELP_ADD_BODYTEXT
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_RECT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_rectangle_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_RECT_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_rectangle_xpm
),
HELP_ADD_BODYRECT
,
wxITEM_CHECK
);
HELP_ADD_BODYRECT
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_CIRCLE_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_circle_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_CIRCLE_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_circle_xpm
),
HELP_ADD_BODYCIRCLE
,
wxITEM_CHECK
);
HELP_ADD_BODYCIRCLE
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_ARC_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_arc_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_ARC_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_arc_xpm
),
HELP_ADD_BODYARC
,
wxITEM_CHECK
);
HELP_ADD_BODYARC
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_LINE_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_polygon_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_BODY_LINE_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_polygon_xpm
),
HELP_ADD_BODYPOLYGON
,
wxITEM_CHECK
);
HELP_ADD_BODYPOLYGON
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_ANCHOR_ITEM_BUTT
,
wxEmptyString
,
wx
Bitmap
(
anchor_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_ANCHOR_ITEM_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
anchor_xpm
),
_
(
"Move part anchor"
),
wxITEM_CHECK
);
_
(
"Move part anchor"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_IMPORT_BODY_BUTT
,
wxEmptyString
,
wx
Bitmap
(
import_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_IMPORT_BODY_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
import_xpm
),
_
(
"Import existing drawings"
),
wxITEM_CHECK
);
_
(
"Import existing drawings"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_EXPORT_BODY_BUTT
,
wxEmptyString
,
wx
Bitmap
(
export_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_EXPORT_BODY_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
export_xpm
),
_
(
"Export current drawing"
),
wxITEM_CHECK
);
_
(
"Export current drawing"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LIBEDIT_DELETE_ITEM_BUTT
,
wxEmptyString
,
wx
Bitmap
(
delete_body_xpm
),
m_VToolBar
->
AddTool
(
ID_LIBEDIT_DELETE_ITEM_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
delete_body_xpm
),
HELP_DELETE_ITEMS
,
wxITEM_CHECK
);
HELP_DELETE_ITEMS
,
wxITEM_CHECK
);
m_VToolBar
->
Realize
();
m_VToolBar
->
Realize
();
...
@@ -83,78 +83,78 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
...
@@ -83,78 +83,78 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
true
);
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
true
);
// Set up toolbar
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SAVE_CURRENT_LIB
,
wxEmptyString
,
wx
Bitmap
(
save_library_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SAVE_CURRENT_LIB
,
wxEmptyString
,
Ki
Bitmap
(
save_library_xpm
),
_
(
"Save current library to disk"
)
);
_
(
"Save current library to disk"
)
);
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SELECT_CURRENT_LIB
,
wxEmptyString
,
wx
Bitmap
(
library_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SELECT_CURRENT_LIB
,
wxEmptyString
,
Ki
Bitmap
(
library_xpm
),
_
(
"Select working library"
)
);
_
(
"Select working library"
)
);
m_HToolBar
->
AddTool
(
ID_LIBEDIT_DELETE_PART
,
wxEmptyString
,
wx
Bitmap
(
delete_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_DELETE_PART
,
wxEmptyString
,
Ki
Bitmap
(
delete_xpm
),
_
(
"Delete component in current library"
)
);
_
(
"Delete component in current library"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBEDIT_NEW_PART
,
wxEmptyString
,
wx
Bitmap
(
new_component_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_NEW_PART
,
wxEmptyString
,
Ki
Bitmap
(
new_component_xpm
),
_
(
"Create a new component"
)
);
_
(
"Create a new component"
)
);
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SELECT_PART
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SELECT_PART
,
wxEmptyString
,
wx
Bitmap
(
import_cmp_from_lib_xpm
),
Ki
Bitmap
(
import_cmp_from_lib_xpm
),
_
(
"Load component to edit from the current lib"
)
);
_
(
"Load component to edit from the current lib"
)
);
m_HToolBar
->
AddTool
(
ID_LIBEDIT_NEW_PART_FROM_EXISTING
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBEDIT_NEW_PART_FROM_EXISTING
,
wxEmptyString
,
wx
Bitmap
(
copyComponent_xpm
),
Ki
Bitmap
(
copyComponent_xpm
),
_
(
"Create a new component from the current one"
)
);
_
(
"Create a new component from the current one"
)
);
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SAVE_CURRENT_PART
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBEDIT_SAVE_CURRENT_PART
,
wxEmptyString
,
wx
Bitmap
(
save_part_in_mem_xpm
),
Ki
Bitmap
(
save_part_in_mem_xpm
),
_
(
"Update current component in current library"
)
);
_
(
"Update current component in current library"
)
);
m_HToolBar
->
AddTool
(
ImportPartId
,
wxEmptyString
,
wx
Bitmap
(
import_xpm
),
m_HToolBar
->
AddTool
(
ImportPartId
,
wxEmptyString
,
Ki
Bitmap
(
import_xpm
),
_
(
"Import component"
)
);
_
(
"Import component"
)
);
m_HToolBar
->
AddTool
(
ExportPartId
,
wxEmptyString
,
wx
Bitmap
(
export_xpm
),
m_HToolBar
->
AddTool
(
ExportPartId
,
wxEmptyString
,
Ki
Bitmap
(
export_xpm
),
_
(
"Export component"
)
);
_
(
"Export component"
)
);
m_HToolBar
->
AddTool
(
CreateNewLibAndSavePartId
,
wxEmptyString
,
wx
Bitmap
(
new_library_xpm
),
m_HToolBar
->
AddTool
(
CreateNewLibAndSavePartId
,
wxEmptyString
,
Ki
Bitmap
(
new_library_xpm
),
_
(
"Save current component to new library"
)
);
_
(
"Save current component to new library"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
_
(
"Undo last command"
),
s_Schematic_Hokeys_Descr
,
HK_UNDO
,
false
);
msg
=
AddHotkeyName
(
_
(
"Undo last command"
),
s_Schematic_Hokeys_Descr
,
HK_UNDO
,
false
);
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
wx
Bitmap
(
undo_xpm
),
msg
);
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
Ki
Bitmap
(
undo_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Redo the last command"
),
s_Schematic_Hokeys_Descr
,
HK_REDO
,
false
);
msg
=
AddHotkeyName
(
_
(
"Redo the last command"
),
s_Schematic_Hokeys_Descr
,
HK_REDO
,
false
);
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
wx
Bitmap
(
redo_xpm
),
msg
);
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
Ki
Bitmap
(
redo_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBEDIT_GET_FRAME_EDIT_PART
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBEDIT_GET_FRAME_EDIT_PART
,
wxEmptyString
,
wx
Bitmap
(
part_properties_xpm
),
_
(
"Edit component properties"
)
);
Ki
Bitmap
(
part_properties_xpm
),
_
(
"Edit component properties"
)
);
m_HToolBar
->
AddTool
(
ID_LIBEDIT_GET_FRAME_EDIT_FIELDS
,
wxEmptyString
,
wx
Bitmap
(
add_text_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_GET_FRAME_EDIT_FIELDS
,
wxEmptyString
,
Ki
Bitmap
(
add_text_xpm
),
_
(
"Add and remove fields and edit field properties"
)
);
_
(
"Add and remove fields and edit field properties"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBEDIT_CHECK_PART
,
wxEmptyString
,
wx
Bitmap
(
erc_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_CHECK_PART
,
wxEmptyString
,
Ki
Bitmap
(
erc_xpm
),
_
(
"Test for duplicate pins and off grid pins"
)
);
_
(
"Test for duplicate pins and off grid pins"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_ZOOM_IN
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_IN
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
Ki
Bitmap
(
zoom_in_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_OUT
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_OUT
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
Ki
Bitmap
(
zoom_out_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_REDRAW
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_REDRAW
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
Ki
Bitmap
(
zoom_redraw_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_FIT
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_FIT
,
s_Libedit_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_DE_MORGAN_NORMAL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
morgan1_xpm
),
m_HToolBar
->
AddTool
(
ID_DE_MORGAN_NORMAL_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
morgan1_xpm
),
_
(
"Show as
\"
De Morgan
\"
normal part"
),
wxITEM_CHECK
);
_
(
"Show as
\"
De Morgan
\"
normal part"
),
wxITEM_CHECK
);
m_HToolBar
->
AddTool
(
ID_DE_MORGAN_CONVERT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
morgan2_xpm
),
m_HToolBar
->
AddTool
(
ID_DE_MORGAN_CONVERT_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
morgan2_xpm
),
_
(
"Show as
\"
De Morgan
\"
convert part"
),
wxITEM_CHECK
);
_
(
"Show as
\"
De Morgan
\"
convert part"
),
wxITEM_CHECK
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBEDIT_VIEW_DOC
,
wxEmptyString
,
wx
Bitmap
(
datasheet_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_VIEW_DOC
,
wxEmptyString
,
Ki
Bitmap
(
datasheet_xpm
),
_
(
"Edit document file"
)
);
_
(
"Edit document file"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
...
@@ -180,7 +180,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
...
@@ -180,7 +180,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
msg
+=
_
(
"Usual option = OFF when parts are not locked"
);
msg
+=
_
(
"Usual option = OFF when parts are not locked"
);
msg
<<
wxT
(
"
\n
"
);
msg
<<
wxT
(
"
\n
"
);
msg
+=
_
(
"Usual option = ON when parts are locked"
);
msg
+=
_
(
"Usual option = ON when parts are locked"
);
m_HToolBar
->
AddTool
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
wxEmptyString
,
wx
Bitmap
(
pin2pin_xpm
),
m_HToolBar
->
AddTool
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
wxEmptyString
,
Ki
Bitmap
(
pin2pin_xpm
),
msg
,
wxITEM_CHECK
);
msg
,
wxITEM_CHECK
);
// 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
...
@@ -195,18 +195,18 @@ void LIB_EDIT_FRAME::CreateOptionToolbar()
...
@@ -195,18 +195,18 @@ void LIB_EDIT_FRAME::CreateOptionToolbar()
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
wx
Bitmap
(
grid_xpm
),
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
Ki
Bitmap
(
grid_xpm
),
_
(
"Turn grid off"
),
wxITEM_CHECK
);
_
(
"Turn grid off"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
wx
Bitmap
(
unit_inch_xpm
),
_
(
"Units in inches"
),
wxITEM_CHECK
);
Ki
Bitmap
(
unit_inch_xpm
),
_
(
"Units in inches"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
wx
Bitmap
(
unit_mm_xpm
),
Ki
Bitmap
(
unit_mm_xpm
),
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
Realize
();
m_OptionsToolBar
->
Realize
();
...
...
eeschema/tool_sch.cpp
View file @
82d5ed1e
...
@@ -28,90 +28,90 @@ void SCH_EDIT_FRAME::ReCreateHToolbar()
...
@@ -28,90 +28,90 @@ void SCH_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
TRUE
);
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
TRUE
);
// Set up toolbar
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_NEW_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
new_xpm
),
m_HToolBar
->
AddTool
(
ID_NEW_PROJECT
,
wxEmptyString
,
Ki
Bitmap
(
new_xpm
),
_
(
"New schematic project"
)
);
_
(
"New schematic project"
)
);
m_HToolBar
->
AddTool
(
ID_LOAD_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
open_document_xpm
),
m_HToolBar
->
AddTool
(
ID_LOAD_PROJECT
,
wxEmptyString
,
Ki
Bitmap
(
open_document_xpm
),
_
(
"Open schematic project"
)
);
_
(
"Open schematic project"
)
);
m_HToolBar
->
AddTool
(
ID_SAVE_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
save_project_xpm
),
m_HToolBar
->
AddTool
(
ID_SAVE_PROJECT
,
wxEmptyString
,
Ki
Bitmap
(
save_project_xpm
),
_
(
"Save schematic project"
)
);
_
(
"Save schematic project"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_SHEET_SET
,
wxEmptyString
,
wx
Bitmap
(
sheetset_xpm
),
m_HToolBar
->
AddTool
(
ID_SHEET_SET
,
wxEmptyString
,
Ki
Bitmap
(
sheetset_xpm
),
_
(
"Page settings"
)
);
_
(
"Page settings"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_TO_LIBRARY
,
wxEmptyString
,
wx
Bitmap
(
libedit_xpm
),
m_HToolBar
->
AddTool
(
ID_TO_LIBRARY
,
wxEmptyString
,
Ki
Bitmap
(
libedit_xpm
),
_
(
"Library editor"
)
);
_
(
"Library editor"
)
);
m_HToolBar
->
AddTool
(
ID_TO_LIBVIEW
,
wxEmptyString
,
wx
Bitmap
(
library_browse_xpm
),
m_HToolBar
->
AddTool
(
ID_TO_LIBVIEW
,
wxEmptyString
,
Ki
Bitmap
(
library_browse_xpm
),
_
(
"Library browser"
)
);
_
(
"Library browser"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_HIERARCHY
,
wxEmptyString
,
wx
Bitmap
(
hierarchy_nav_xpm
),
m_HToolBar
->
AddTool
(
ID_HIERARCHY
,
wxEmptyString
,
Ki
Bitmap
(
hierarchy_nav_xpm
),
_
(
"Navigate schematic hierarchy"
)
);
_
(
"Navigate schematic hierarchy"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
wxID_CUT
,
wxEmptyString
,
wx
Bitmap
(
cut_button
),
m_HToolBar
->
AddTool
(
wxID_CUT
,
wxEmptyString
,
Ki
Bitmap
(
cut_button
),
_
(
"Cut selected item"
)
);
_
(
"Cut selected item"
)
);
m_HToolBar
->
AddTool
(
wxID_COPY
,
wxEmptyString
,
wx
Bitmap
(
copy_button
),
m_HToolBar
->
AddTool
(
wxID_COPY
,
wxEmptyString
,
Ki
Bitmap
(
copy_button
),
_
(
"Copy selected item"
)
);
_
(
"Copy selected item"
)
);
m_HToolBar
->
AddTool
(
wxID_PASTE
,
wxEmptyString
,
wx
Bitmap
(
paste_xpm
),
m_HToolBar
->
AddTool
(
wxID_PASTE
,
wxEmptyString
,
Ki
Bitmap
(
paste_xpm
),
_
(
"Paste"
)
);
_
(
"Paste"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_UNDO
,
s_Schematic_Hokeys_Descr
,
HK_UNDO
,
false
);
msg
=
AddHotkeyName
(
HELP_UNDO
,
s_Schematic_Hokeys_Descr
,
HK_UNDO
,
false
);
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
wx
Bitmap
(
undo_xpm
),
msg
);
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
Ki
Bitmap
(
undo_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_REDO
,
s_Schematic_Hokeys_Descr
,
HK_REDO
,
false
);
msg
=
AddHotkeyName
(
HELP_REDO
,
s_Schematic_Hokeys_Descr
,
HK_REDO
,
false
);
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
wx
Bitmap
(
redo_xpm
),
msg
);
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
Ki
Bitmap
(
redo_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
wx
Bitmap
(
print_button
),
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
Ki
Bitmap
(
print_button
),
_
(
"Print schematic"
)
);
_
(
"Print schematic"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_TO_CVPCB
,
wxEmptyString
,
wx
Bitmap
(
cvpcb_xpm
),
m_HToolBar
->
AddTool
(
ID_TO_CVPCB
,
wxEmptyString
,
Ki
Bitmap
(
cvpcb_xpm
),
_
(
"Run Cvpcb"
)
);
_
(
"Run Cvpcb"
)
);
m_HToolBar
->
AddTool
(
ID_TO_PCB
,
wxEmptyString
,
wx
Bitmap
(
pcbnew_xpm
),
m_HToolBar
->
AddTool
(
ID_TO_PCB
,
wxEmptyString
,
Ki
Bitmap
(
pcbnew_xpm
),
_
(
"Run pcbnew"
)
);
_
(
"Run pcbnew"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_ZOOM_IN
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_IN
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
Ki
Bitmap
(
zoom_in_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_OUT
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_OUT
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
Ki
Bitmap
(
zoom_out_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_REDRAW
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_REDRAW
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
Ki
Bitmap
(
zoom_redraw_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_FIT
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_FIT
,
s_Schematic_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_FIND
,
s_Schematic_Hokeys_Descr
,
HK_FIND_ITEM
,
false
);
msg
=
AddHotkeyName
(
HELP_FIND
,
s_Schematic_Hokeys_Descr
,
HK_FIND_ITEM
,
false
);
m_HToolBar
->
AddTool
(
ID_FIND_ITEMS
,
wxEmptyString
,
wx
Bitmap
(
find_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_FIND_ITEMS
,
wxEmptyString
,
Ki
Bitmap
(
find_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
wx
Bitmap
(
netlist_xpm
),
m_HToolBar
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
Ki
Bitmap
(
netlist_xpm
),
_
(
"Generate netlist"
)
);
_
(
"Generate netlist"
)
);
m_HToolBar
->
AddTool
(
ID_GET_ANNOTATE
,
wxEmptyString
,
wx
Bitmap
(
annotate_xpm
),
m_HToolBar
->
AddTool
(
ID_GET_ANNOTATE
,
wxEmptyString
,
Ki
Bitmap
(
annotate_xpm
),
_
(
"Annotate schematic"
)
);
_
(
"Annotate schematic"
)
);
m_HToolBar
->
AddTool
(
ID_GET_ERC
,
wxEmptyString
,
wx
Bitmap
(
erc_xpm
),
m_HToolBar
->
AddTool
(
ID_GET_ERC
,
wxEmptyString
,
Ki
Bitmap
(
erc_xpm
),
_
(
"Perform electric rules check"
)
);
_
(
"Perform electric rules check"
)
);
m_HToolBar
->
AddTool
(
ID_GET_TOOLS
,
wxEmptyString
,
wx
Bitmap
(
tools_xpm
),
m_HToolBar
->
AddTool
(
ID_GET_TOOLS
,
wxEmptyString
,
Ki
Bitmap
(
tools_xpm
),
_
(
"Generate bill of materials and/or cross references"
)
);
_
(
"Generate bill of materials and/or cross references"
)
);
m_HToolBar
->
AddTool
(
ID_BACKANNO_ITEMS
,
wxEmptyString
,
wx
Bitmap
(
import_footprint_names_xpm
),
m_HToolBar
->
AddTool
(
ID_BACKANNO_ITEMS
,
wxEmptyString
,
Ki
Bitmap
(
import_footprint_names_xpm
),
_
(
"Back annotate component foot prints"
)
);
_
(
"Back annotate component foot prints"
)
);
// after adding the tools to the toolbar, must call Realize() to reflect the changes
// after adding the tools to the toolbar, must call Realize() to reflect the changes
...
@@ -129,66 +129,66 @@ void SCH_EDIT_FRAME::ReCreateVToolbar()
...
@@ -129,66 +129,66 @@ void SCH_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// Set up toolbar
// Set up toolbar
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
wx
Bitmap
(
cursor_xpm
),
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
Ki
Bitmap
(
cursor_xpm
),
wxEmptyString
,
wxITEM_CHECK
);
wxEmptyString
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_HIERARCHY_PUSH_POP_BUTT
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_HIERARCHY_PUSH_POP_BUTT
,
wxEmptyString
,
wx
Bitmap
(
hierarchy_cursor_xpm
),
Ki
Bitmap
(
hierarchy_cursor_xpm
),
_
(
"Ascend or descend hierarchy"
),
wxITEM_CHECK
);
_
(
"Ascend or descend hierarchy"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_SCH_PLACE_COMPONENT
,
wxEmptyString
,
wx
Bitmap
(
add_component_xpm
),
m_VToolBar
->
AddTool
(
ID_SCH_PLACE_COMPONENT
,
wxEmptyString
,
Ki
Bitmap
(
add_component_xpm
),
HELP_PLACE_COMPONENTS
,
wxITEM_CHECK
);
HELP_PLACE_COMPONENTS
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PLACE_POWER_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_power_xpm
),
m_VToolBar
->
AddTool
(
ID_PLACE_POWER_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_power_xpm
),
HELP_PLACE_POWERPORT
,
wxITEM_CHECK
);
HELP_PLACE_POWERPORT
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_WIRE_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_line_xpm
),
m_VToolBar
->
AddTool
(
ID_WIRE_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_line_xpm
),
HELP_PLACE_WIRE
,
wxITEM_CHECK
);
HELP_PLACE_WIRE
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_BUS_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_bus_xpm
),
m_VToolBar
->
AddTool
(
ID_BUS_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_bus_xpm
),
HELP_PLACE_BUS
,
wxITEM_CHECK
);
HELP_PLACE_BUS
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_WIRETOBUS_ENTRY_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_line2bus_xpm
),
m_VToolBar
->
AddTool
(
ID_WIRETOBUS_ENTRY_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_line2bus_xpm
),
HELP_PLACE_WIRE2BUS_ENTRY
,
wxITEM_CHECK
);
HELP_PLACE_WIRE2BUS_ENTRY
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_BUSTOBUS_ENTRY_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_bus2bus_xpm
),
m_VToolBar
->
AddTool
(
ID_BUSTOBUS_ENTRY_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_bus2bus_xpm
),
HELP_PLACE_BUS2BUS_ENTRY
,
wxITEM_CHECK
);
HELP_PLACE_BUS2BUS_ENTRY
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_NOCONN_BUTT
,
wxEmptyString
,
wxBitmap
(
noconn_button
),
m_VToolBar
->
AddTool
(
ID_NOCONN_BUTT
,
wxEmptyString
,
wxBitmap
(
noconn_button
),
HELP_PLACE_NC_FLAG
,
wxITEM_CHECK
);
HELP_PLACE_NC_FLAG
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LABEL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_line_label_xpm
),
m_VToolBar
->
AddTool
(
ID_LABEL_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_line_label_xpm
),
HELP_PLACE_NETLABEL
,
wxITEM_CHECK
);
HELP_PLACE_NETLABEL
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_GLABEL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_glabel_xpm
),
m_VToolBar
->
AddTool
(
ID_GLABEL_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_glabel_xpm
),
HELP_PLACE_GLOBALLABEL
,
wxITEM_CHECK
);
HELP_PLACE_GLOBALLABEL
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_JUNCTION_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_junction_xpm
),
m_VToolBar
->
AddTool
(
ID_JUNCTION_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_junction_xpm
),
HELP_PLACE_JUNCTION
,
wxITEM_CHECK
);
HELP_PLACE_JUNCTION
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_HIERLABEL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_hierarchical_label_xpm
),
m_VToolBar
->
AddTool
(
ID_HIERLABEL_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_hierarchical_label_xpm
),
HELP_PLACE_HIER_LABEL
,
wxITEM_CHECK
);
HELP_PLACE_HIER_LABEL
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_SHEET_SYMBOL_BUTT
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_SHEET_SYMBOL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_hierarchical_subsheet_xpm
),
Ki
Bitmap
(
add_hierarchical_subsheet_xpm
),
HELP_PLACE_SHEET
,
wxITEM_CHECK
);
HELP_PLACE_SHEET
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_IMPORT_HLABEL_BUTT
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_IMPORT_HLABEL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
import_hierarchical_label_xpm
),
Ki
Bitmap
(
import_hierarchical_label_xpm
),
HELP_IMPORT_SHEETPIN
,
wxITEM_CHECK
);
HELP_IMPORT_SHEETPIN
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_SHEET_PIN_BUTT
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_SHEET_PIN_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_hierar_pin_xpm
),
Ki
Bitmap
(
add_hierar_pin_xpm
),
HELP_PLACE_SHEETPIN
,
wxITEM_CHECK
);
HELP_PLACE_SHEETPIN
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_LINE_COMMENT_BUTT
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_LINE_COMMENT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_dashed_line_xpm
),
Ki
Bitmap
(
add_dashed_line_xpm
),
HELP_PLACE_GRAPHICLINES
,
wxITEM_CHECK
);
HELP_PLACE_GRAPHICLINES
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_TEXT_COMMENT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_text_xpm
),
m_VToolBar
->
AddTool
(
ID_TEXT_COMMENT_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_text_xpm
),
HELP_PLACE_GRAPHICTEXTS
,
wxITEM_CHECK
);
HELP_PLACE_GRAPHICTEXTS
,
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_SCHEMATIC_DELETE_ITEM_BUTT
,
wxEmptyString
,
wx
Bitmap
(
delete_body_xpm
),
m_VToolBar
->
AddTool
(
ID_SCHEMATIC_DELETE_ITEM_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
delete_body_xpm
),
HELP_DELETE_ITEMS
,
wxITEM_CHECK
);
HELP_DELETE_ITEMS
,
wxITEM_CHECK
);
m_VToolBar
->
Realize
();
m_VToolBar
->
Realize
();
...
@@ -205,29 +205,29 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
...
@@ -205,29 +205,29 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
wx
Bitmap
(
grid_xpm
),
Ki
Bitmap
(
grid_xpm
),
_
(
"Turn grid off"
),
wxITEM_CHECK
);
_
(
"Turn grid off"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
wx
Bitmap
(
unit_inch_xpm
),
Ki
Bitmap
(
unit_inch_xpm
),
_
(
"Units in inches"
),
wxITEM_CHECK
);
_
(
"Units in inches"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
wx
Bitmap
(
unit_mm_xpm
),
Ki
Bitmap
(
unit_mm_xpm
),
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_HIDDEN_PINS
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_HIDDEN_PINS
,
wxEmptyString
,
wx
Bitmap
(
hidden_pin_xpm
),
Ki
Bitmap
(
hidden_pin_xpm
),
_
(
"Show hidden pins"
),
wxITEM_CHECK
);
_
(
"Show hidden pins"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_BUS_WIRES_ORIENT
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_BUS_WIRES_ORIENT
,
wxEmptyString
,
wx
Bitmap
(
lines90_xpm
),
Ki
Bitmap
(
lines90_xpm
),
_
(
"HV orientation for wires and bus"
),
_
(
"HV orientation for wires and bus"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
...
eeschema/tool_viewlib.cpp
View file @
82d5ed1e
...
@@ -32,51 +32,51 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
...
@@ -32,51 +32,51 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
// Set up toolbar
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_LIBVIEW_SELECT_LIB
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_SELECT_LIB
,
wxEmptyString
,
wx
Bitmap
(
library_xpm
),
Ki
Bitmap
(
library_xpm
),
_
(
"Select library to browse"
)
);
_
(
"Select library to browse"
)
);
m_HToolBar
->
AddTool
(
ID_LIBVIEW_SELECT_PART
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_SELECT_PART
,
wxEmptyString
,
wx
Bitmap
(
add_component_xpm
),
Ki
Bitmap
(
add_component_xpm
),
_
(
"Select part to browse"
)
);
_
(
"Select part to browse"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBVIEW_PREVIOUS
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_PREVIOUS
,
wxEmptyString
,
wx
Bitmap
(
lib_previous_xpm
),
Ki
Bitmap
(
lib_previous_xpm
),
_
(
"Display previous part"
)
);
_
(
"Display previous part"
)
);
m_HToolBar
->
AddTool
(
ID_LIBVIEW_NEXT
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_NEXT
,
wxEmptyString
,
wx
Bitmap
(
lib_next_xpm
),
Ki
Bitmap
(
lib_next_xpm
),
_
(
"Display next part"
)
);
_
(
"Display next part"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
s_Viewlib_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
s_Viewlib_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
HK_ZOOM_IN
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
msg
);
Ki
Bitmap
(
zoom_in_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
s_Viewlib_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
s_Viewlib_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
HK_ZOOM_OUT
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
msg
);
Ki
Bitmap
(
zoom_out_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Redraw view"
),
s_Viewlib_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Redraw view"
),
s_Viewlib_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
HK_ZOOM_REDRAW
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
msg
);
Ki
Bitmap
(
zoom_redraw_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Zoom auto"
),
s_Viewlib_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Zoom auto"
),
s_Viewlib_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
HK_ZOOM_AUTO
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
morgan1_xpm
),
Ki
Bitmap
(
morgan1_xpm
),
_
(
"Show as
\"
De Morgan
\"
normal part"
),
_
(
"Show as
\"
De Morgan
\"
normal part"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_HToolBar
->
AddTool
(
ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
morgan2_xpm
),
Ki
Bitmap
(
morgan2_xpm
),
_
(
"Show as
\"
De Morgan
\"
convert part"
),
_
(
"Show as
\"
De Morgan
\"
convert part"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
@@ -89,7 +89,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
...
@@ -89,7 +89,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBVIEW_VIEWDOC
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_VIEWDOC
,
wxEmptyString
,
wx
Bitmap
(
datasheet_xpm
),
Ki
Bitmap
(
datasheet_xpm
),
_
(
"View component documents"
)
);
_
(
"View component documents"
)
);
m_HToolBar
->
EnableTool
(
ID_LIBVIEW_VIEWDOC
,
false
);
m_HToolBar
->
EnableTool
(
ID_LIBVIEW_VIEWDOC
,
false
);
...
@@ -98,7 +98,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
...
@@ -98,7 +98,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
// The library browser is called from a "load component" command
// The library browser is called from a "load component" command
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC
,
m_HToolBar
->
AddTool
(
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC
,
wxEmptyString
,
wx
Bitmap
(
export_xpm
),
wxEmptyString
,
Ki
Bitmap
(
export_xpm
),
_
(
"Insert component in schematic"
)
);
_
(
"Insert component in schematic"
)
);
}
}
...
...
gerbview/toolbars_gerber.cpp
View file @
82d5ed1e
...
@@ -27,14 +27,14 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
...
@@ -27,14 +27,14 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
// Set up toolbar
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_GERBVIEW_ERASE_ALL
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_GERBVIEW_ERASE_ALL
,
wxEmptyString
,
wx
Bitmap
(
gerbview_clear_layers_xpm
),
Ki
Bitmap
(
gerbview_clear_layers_xpm
),
_
(
"Erase all layers"
)
);
_
(
"Erase all layers"
)
);
m_HToolBar
->
AddTool
(
wxID_FILE
,
wxEmptyString
,
wx
Bitmap
(
gerber_file_xpm
),
m_HToolBar
->
AddTool
(
wxID_FILE
,
wxEmptyString
,
Ki
Bitmap
(
gerber_file_xpm
),
_
(
"Load a new Gerber file on the current layer. Previous data will be deleted"
)
);
_
(
"Load a new Gerber file on the current layer. Previous data will be deleted"
)
);
m_HToolBar
->
AddTool
(
ID_GERBVIEW_LOAD_DRILL_FILE
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_GERBVIEW_LOAD_DRILL_FILE
,
wxEmptyString
,
wx
Bitmap
(
gerbview_drill_file_xpm
),
Ki
Bitmap
(
gerbview_drill_file_xpm
),
_
(
"Load an excellon drill file on the current layer. Previous data will be deleted"
)
);
_
(
"Load an excellon drill file on the current layer. Previous data will be deleted"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
...
@@ -43,16 +43,16 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
...
@@ -43,16 +43,16 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
Ki
Bitmap
(
zoom_in_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
Ki
Bitmap
(
zoom_out_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Redraw view"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
msg
=
AddHotkeyName
(
_
(
"Redraw view"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
Ki
Bitmap
(
zoom_redraw_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Zoom auto"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
msg
=
AddHotkeyName
(
_
(
"Zoom auto"
),
s_Gerbview_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
...
@@ -106,7 +106,7 @@ void GERBVIEW_FRAME::ReCreateVToolbar( void )
...
@@ -106,7 +106,7 @@ void GERBVIEW_FRAME::ReCreateVToolbar( void )
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
FALSE
);
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
FALSE
);
// Set up toolbar
// Set up toolbar
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
wx
Bitmap
(
cursor_xpm
)
);
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
Ki
Bitmap
(
cursor_xpm
)
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
Realize
();
m_VToolBar
->
Realize
();
...
@@ -124,57 +124,57 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
...
@@ -124,57 +124,57 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
// creation of tool bar options
// creation of tool bar options
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
FALSE
);
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
FALSE
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
wx
Bitmap
(
grid_xpm
),
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
Ki
Bitmap
(
grid_xpm
),
_
(
"Turn grid off"
),
wxITEM_CHECK
);
_
(
"Turn grid off"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
wx
Bitmap
(
polar_coord_xpm
),
Ki
Bitmap
(
polar_coord_xpm
),
_
(
"Turn polar coordinate on"
),
wxITEM_CHECK
);
_
(
"Turn polar coordinate on"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
wx
Bitmap
(
unit_inch_xpm
),
Ki
Bitmap
(
unit_inch_xpm
),
_
(
"Set units to inches"
),
wxITEM_CHECK
);
_
(
"Set units to inches"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
wx
Bitmap
(
unit_mm_xpm
),
Ki
Bitmap
(
unit_mm_xpm
),
_
(
"Set units to millimeters"
),
wxITEM_CHECK
);
_
(
"Set units to millimeters"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_FLASHED_ITEMS_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_FLASHED_ITEMS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
pad_sketch_xpm
),
Ki
Bitmap
(
pad_sketch_xpm
),
_
(
"Show spots in sketch mode"
),
wxITEM_CHECK
);
_
(
"Show spots in sketch mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_LINES_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_LINES_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
showtrack_xpm
),
Ki
Bitmap
(
showtrack_xpm
),
_
(
"Show lines in sketch mode"
),
wxITEM_CHECK
);
_
(
"Show lines in sketch mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLYGONS_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLYGONS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
opt_show_polygon_xpm
),
Ki
Bitmap
(
opt_show_polygon_xpm
),
_
(
"Show polygons in sketch mode"
),
_
(
"Show polygons in sketch mode"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_DCODES
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_DCODES
,
wxEmptyString
,
wx
Bitmap
(
show_dcodenumber_xpm
),
Ki
Bitmap
(
show_dcodenumber_xpm
),
_
(
"Show dcode number"
),
wxITEM_CHECK
);
_
(
"Show dcode number"
),
wxITEM_CHECK
);
// tools to select draw mode in gerbview
// tools to select draw mode in gerbview
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GBR_MODE_0
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GBR_MODE_0
,
wxEmptyString
,
wx
Bitmap
(
gbr_select_mode0_xpm
),
Ki
Bitmap
(
gbr_select_mode0_xpm
),
_
(
"Show layers in raw mode \
_
(
"Show layers in raw mode \
(could have problems with negative items when more than one gerber file is shown)"
),
(could have problems with negative items when more than one gerber file is shown)"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GBR_MODE_1
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GBR_MODE_1
,
wxEmptyString
,
wx
Bitmap
(
gbr_select_mode1_xpm
),
Ki
Bitmap
(
gbr_select_mode1_xpm
),
_
(
"Show layers in stacked mode \
_
(
"Show layers in stacked mode \
(show negative items without artefact, sometimes slow)"
),
(show negative items without artefact, sometimes slow)"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GBR_MODE_2
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GBR_MODE_2
,
wxEmptyString
,
wx
Bitmap
(
gbr_select_mode2_xpm
),
Ki
Bitmap
(
gbr_select_mode2_xpm
),
_
(
"Show layers in tranparency mode \
_
(
"Show layers in tranparency mode \
(show negative items without artefact, sometimes slow)"
),
(show negative items without artefact, sometimes slow)"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
@@ -183,7 +183,7 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
...
@@ -183,7 +183,7 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_LAYERS_MANAGER_VERTICAL_TOOLBAR
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_LAYERS_MANAGER_VERTICAL_TOOLBAR
,
wxEmptyString
,
wxEmptyString
,
wx
Bitmap
(
layers_manager_xpm
),
Ki
Bitmap
(
layers_manager_xpm
),
_
(
"Show/hide the layers manager toolbar"
),
_
(
"Show/hide the layers manager toolbar"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
...
include/bitmaps.h
View file @
82d5ed1e
...
@@ -2,12 +2,21 @@
...
@@ -2,12 +2,21 @@
#ifndef BITMAPS_H_
#ifndef BITMAPS_H_
#define BITMAPS_H_
#define BITMAPS_H_
#include <wx/bitmap.h>
#define VTOOLBAR_WIDTH 26
#define VTOOLBAR_WIDTH 26
#define TOOL_SIZE 23
#define TOOL_SIZE 23
#if !defined(USE_PNG_BITMAPS)
// temporary during migration to KiBitmap() and KiBitmapNew().
typedef
const
char
**
BITMAP_DEF
;
#else
/// PNG memory record (file in memory).
/// PNG memory record (file in memory).
struct
BITMAP_DEF
struct
BITMAP_DEF
...
@@ -16,14 +25,25 @@ struct BITMAP_DEF
...
@@ -16,14 +25,25 @@ struct BITMAP_DEF
int
byteCount
;
int
byteCount
;
};
};
#endif
/**
* Function KiBitmap
* constructs a wxBitmap from a memory record, held in a
* BITMAP_DEF.
*/
wxBitmap
KiBitmap
(
const
BITMAP_DEF
&
aBitmap
);
/**
/**
* Function Bitmap
* Function KiBitmapNew
* constructs a wxBitmap from a PNG memory record, held in a
* allocates a wxBitmap on heap from a memory record, held in a
* BITMAP_DEF. This name and interface is chose to ease migration
* BITMAP_DEF.
* into PNG usage from XPM usage.
*
* @return wxBitmap* - caller owns it.
*/
*/
wxBitmap
Bitmap
(
const
BITMAP_DEF
&
aBitmap
);
wxBitmap
*
KiBitmapNew
(
const
BITMAP_DEF
&
aBitmap
);
// Please keep list sorted alphabetically, ignoring case.
// Please keep list sorted alphabetically, ignoring case.
...
...
kicad/class_treeprojectfiles.cpp
View file @
82d5ed1e
...
@@ -30,15 +30,15 @@ TREEPROJECTFILES::TREEPROJECTFILES( TREE_PROJECT_FRAME* parent ) :
...
@@ -30,15 +30,15 @@ TREEPROJECTFILES::TREEPROJECTFILES( TREE_PROJECT_FRAME* parent ) :
// Make an image list containing small icons
// Make an image list containing small icons
m_ImageList
=
new
wxImageList
(
16
,
16
,
TRUE
,
TREE_MAX
);
m_ImageList
=
new
wxImageList
(
16
,
16
,
TRUE
,
TREE_MAX
);
m_ImageList
->
Add
(
wx
Bitmap
(
kicad_icon_small_xpm
)
);
// TREE_PROJECT
m_ImageList
->
Add
(
Ki
Bitmap
(
kicad_icon_small_xpm
)
);
// TREE_PROJECT
m_ImageList
->
Add
(
wx
Bitmap
(
eeschema_xpm
)
);
// TREE_SCHEMA
m_ImageList
->
Add
(
Ki
Bitmap
(
eeschema_xpm
)
);
// TREE_SCHEMA
m_ImageList
->
Add
(
wx
Bitmap
(
pcbnew_xpm
)
);
// TREE_PCB
m_ImageList
->
Add
(
Ki
Bitmap
(
pcbnew_xpm
)
);
// TREE_PCB
m_ImageList
->
Add
(
wx
Bitmap
(
icon_gerbview_small_xpm
)
);
// TREE_GERBER
m_ImageList
->
Add
(
Ki
Bitmap
(
icon_gerbview_small_xpm
)
);
// TREE_GERBER
m_ImageList
->
Add
(
wx
Bitmap
(
datasheet_xpm
)
);
// TREE_PDF
m_ImageList
->
Add
(
Ki
Bitmap
(
datasheet_xpm
)
);
// TREE_PDF
m_ImageList
->
Add
(
wx
Bitmap
(
icon_txt_xpm
)
);
// TREE_TXT
m_ImageList
->
Add
(
Ki
Bitmap
(
icon_txt_xpm
)
);
// TREE_TXT
m_ImageList
->
Add
(
wx
Bitmap
(
icon_cvpcb_small_xpm
)
);
// TREE_NET
m_ImageList
->
Add
(
Ki
Bitmap
(
icon_cvpcb_small_xpm
)
);
// TREE_NET
m_ImageList
->
Add
(
wx
Bitmap
(
unknown_xpm
)
);
// TREE_UNKNOWN
m_ImageList
->
Add
(
Ki
Bitmap
(
unknown_xpm
)
);
// TREE_UNKNOWN
m_ImageList
->
Add
(
wx
Bitmap
(
directory_xpm
)
);
// TREE_DIRECTORY
m_ImageList
->
Add
(
Ki
Bitmap
(
directory_xpm
)
);
// TREE_DIRECTORY
SetImageList
(
m_ImageList
);
SetImageList
(
m_ImageList
);
}
}
...
...
kicad/commandframe.cpp
View file @
82d5ed1e
...
@@ -72,23 +72,23 @@ void RIGHT_KM_FRAME::CreateCommandToolbar( void )
...
@@ -72,23 +72,23 @@ void RIGHT_KM_FRAME::CreateCommandToolbar( void )
{
{
wxBitmapButton
*
btn
;
wxBitmapButton
*
btn
;
btn
=
AddBitmapButton
(
ID_TO_EESCHEMA
,
wx
Bitmap
(
icon_eeschema_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_EESCHEMA
,
Ki
Bitmap
(
icon_eeschema_xpm
)
);
btn
->
SetToolTip
(
_
(
"EESchema (Schematic editor)"
)
);
btn
->
SetToolTip
(
_
(
"EESchema (Schematic editor)"
)
);
btn
=
AddBitmapButton
(
ID_TO_CVPCB
,
wx
Bitmap
(
icon_cvpcb_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_CVPCB
,
Ki
Bitmap
(
icon_cvpcb_xpm
)
);
btn
->
SetToolTip
(
_
(
"CVpcb (Components to modules)"
)
);
btn
->
SetToolTip
(
_
(
"CVpcb (Components to modules)"
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB
,
wx
Bitmap
(
a_icon_pcbnew_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB
,
Ki
Bitmap
(
a_icon_pcbnew_xpm
)
);
btn
->
SetToolTip
(
_
(
"PCBnew (PCB editor)"
)
);
btn
->
SetToolTip
(
_
(
"PCBnew (PCB editor)"
)
);
btn
=
AddBitmapButton
(
ID_TO_GERBVIEW
,
wx
Bitmap
(
icon_gerbview_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_GERBVIEW
,
Ki
Bitmap
(
icon_gerbview_xpm
)
);
btn
->
SetToolTip
(
_
(
"GerbView (Gerber viewer)"
)
);
btn
->
SetToolTip
(
_
(
"GerbView (Gerber viewer)"
)
);
btn
=
AddBitmapButton
(
ID_TO_BITMAP_CONVERTER
,
wx
Bitmap
(
bitmap2component_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_BITMAP_CONVERTER
,
Ki
Bitmap
(
bitmap2component_xpm
)
);
btn
->
SetToolTip
(
_
(
"Bitmap2Component (a tool to build a logo from a bitmap)
\n
\
btn
->
SetToolTip
(
_
(
"Bitmap2Component (a tool to build a logo from a bitmap)
\n
\
Creates a component (for Eeschema) or a footprint (for Pcbnew) that shows a B&W picture"
)
);
Creates a component (for Eeschema) or a footprint (for Pcbnew) that shows a B&W picture"
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB_CALCULATOR
,
wx
Bitmap
(
pcb_calculator_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB_CALCULATOR
,
Ki
Bitmap
(
pcb_calculator_xpm
)
);
btn
->
SetToolTip
(
_
(
"Pcb calculator"
)
);
btn
->
SetToolTip
(
_
(
"Pcb calculator"
)
);
}
}
...
...
kicad/menubar.cpp
View file @
82d5ed1e
...
@@ -275,17 +275,17 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
...
@@ -275,17 +275,17 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
// New
// New
m_HToolBar
->
AddTool
(
ID_NEW_PROJECT
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_NEW_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
new_project_xpm
),
Ki
Bitmap
(
new_project_xpm
),
_
(
"Start a new project"
)
);
_
(
"Start a new project"
)
);
// Load
// Load
m_HToolBar
->
AddTool
(
ID_LOAD_PROJECT
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_LOAD_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
open_project_xpm
),
Ki
Bitmap
(
open_project_xpm
),
_
(
"Load existing project"
)
);
_
(
"Load existing project"
)
);
// Save
// Save
m_HToolBar
->
AddTool
(
ID_SAVE_PROJECT
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_SAVE_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
save_project_xpm
),
Ki
Bitmap
(
save_project_xpm
),
_
(
"Save current project"
)
);
_
(
"Save current project"
)
);
// Separator
// Separator
...
@@ -293,7 +293,7 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
...
@@ -293,7 +293,7 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
// Archive
// Archive
m_HToolBar
->
AddTool
(
ID_SAVE_AND_ZIP_FILES
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_SAVE_AND_ZIP_FILES
,
wxEmptyString
,
wx
Bitmap
(
zip_xpm
),
Ki
Bitmap
(
zip_xpm
),
_
(
"Archive all project files"
)
);
_
(
"Archive all project files"
)
);
// Separator
// Separator
...
@@ -301,7 +301,7 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
...
@@ -301,7 +301,7 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
// Refresh project tree
// Refresh project tree
m_HToolBar
->
AddTool
(
ID_PROJECT_TREE_REFRESH
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_PROJECT_TREE_REFRESH
,
wxEmptyString
,
wx
Bitmap
(
reload_xpm
),
Ki
Bitmap
(
reload_xpm
),
_
(
"Refresh project tree"
)
);
_
(
"Refresh project tree"
)
);
// Create m_HToolBar
// Create m_HToolBar
...
...
pcbnew/tool_modedit.cpp
View file @
82d5ed1e
...
@@ -31,83 +31,83 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
...
@@ -31,83 +31,83 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
// Set up toolbar
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_MODEDIT_SELECT_CURRENT_LIB
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_MODEDIT_SELECT_CURRENT_LIB
,
wxEmptyString
,
wx
Bitmap
(
open_library_xpm
),
Ki
Bitmap
(
open_library_xpm
),
_
(
"Select active library"
)
);
_
(
"Select active library"
)
);
m_HToolBar
->
AddTool
(
ID_MODEDIT_SAVE_LIBMODULE
,
wxEmptyString
,
wx
Bitmap
(
save_library_xpm
),
m_HToolBar
->
AddTool
(
ID_MODEDIT_SAVE_LIBMODULE
,
wxEmptyString
,
Ki
Bitmap
(
save_library_xpm
),
_
(
"Save module in active library"
)
);
_
(
"Save module in active library"
)
);
m_HToolBar
->
AddTool
(
ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART
,
wxEmptyString
,
wx
Bitmap
(
new_library_xpm
),
Ki
Bitmap
(
new_library_xpm
),
_
(
"Create new library and save current module"
)
);
_
(
"Create new library and save current module"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_DELETE_PART
,
wxEmptyString
,
wx
Bitmap
(
delete_xpm
),
m_HToolBar
->
AddTool
(
ID_MODEDIT_DELETE_PART
,
wxEmptyString
,
Ki
Bitmap
(
delete_xpm
),
_
(
"Delete part from active library"
)
);
_
(
"Delete part from active library"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_NEW_MODULE
,
wxEmptyString
,
wx
Bitmap
(
new_footprint_xpm
),
m_HToolBar
->
AddTool
(
ID_MODEDIT_NEW_MODULE
,
wxEmptyString
,
Ki
Bitmap
(
new_footprint_xpm
),
_
(
"New module"
)
);
_
(
"New module"
)
);
m_HToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE
,
wxEmptyString
,
wx
Bitmap
(
module_xpm
),
m_HToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE
,
wxEmptyString
,
Ki
Bitmap
(
module_xpm
),
_
(
"Load module from library"
)
);
_
(
"Load module from library"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE_FROM_BOARD
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_MODEDIT_LOAD_MODULE_FROM_BOARD
,
wxEmptyString
,
wx
Bitmap
(
load_module_board_xpm
),
Ki
Bitmap
(
load_module_board_xpm
),
_
(
"Load module from current board"
)
);
_
(
"Load module from current board"
)
);
m_HToolBar
->
AddTool
(
ID_MODEDIT_UPDATE_MODULE_IN_BOARD
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_MODEDIT_UPDATE_MODULE_IN_BOARD
,
wxEmptyString
,
wx
Bitmap
(
update_module_board_xpm
),
Ki
Bitmap
(
update_module_board_xpm
),
_
(
"Update module in current board"
)
);
_
(
"Update module in current board"
)
);
m_HToolBar
->
AddTool
(
ID_MODEDIT_INSERT_MODULE_IN_BOARD
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_MODEDIT_INSERT_MODULE_IN_BOARD
,
wxEmptyString
,
wx
Bitmap
(
insert_module_board_xpm
),
Ki
Bitmap
(
insert_module_board_xpm
),
_
(
"Insert module into current board"
)
);
_
(
"Insert module into current board"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_IMPORT_PART
,
wxEmptyString
,
wx
Bitmap
(
import_module_xpm
),
m_HToolBar
->
AddTool
(
ID_MODEDIT_IMPORT_PART
,
wxEmptyString
,
Ki
Bitmap
(
import_module_xpm
),
_
(
"Import module"
)
);
_
(
"Import module"
)
);
m_HToolBar
->
AddTool
(
ID_MODEDIT_EXPORT_PART
,
wxEmptyString
,
wx
Bitmap
(
export_module_xpm
),
m_HToolBar
->
AddTool
(
ID_MODEDIT_EXPORT_PART
,
wxEmptyString
,
Ki
Bitmap
(
export_module_xpm
),
_
(
"Export module"
)
);
_
(
"Export module"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
wx
Bitmap
(
undo_xpm
),
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
Ki
Bitmap
(
undo_xpm
),
_
(
"Undo last edition"
)
);
_
(
"Undo last edition"
)
);
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
wx
Bitmap
(
redo_xpm
),
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
Ki
Bitmap
(
redo_xpm
),
_
(
"Redo the last undo command"
)
);
_
(
"Redo the last undo command"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_EDIT_MODULE_PROPERTIES
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_MODEDIT_EDIT_MODULE_PROPERTIES
,
wxEmptyString
,
wx
Bitmap
(
module_options_xpm
),
Ki
Bitmap
(
module_options_xpm
),
_
(
"Module properties"
)
);
_
(
"Module properties"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
wx
Bitmap
(
print_button
),
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
Ki
Bitmap
(
print_button
),
_
(
"Print module"
)
);
_
(
"Print module"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
Ki
Bitmap
(
zoom_in_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
Ki
Bitmap
(
zoom_out_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Redraw view"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
msg
=
AddHotkeyName
(
_
(
"Redraw view"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
Ki
Bitmap
(
zoom_redraw_xpm
),
msg
);
msg
=
AddHotkeyName
(
_
(
"Zoom auto"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
msg
=
AddHotkeyName
(
_
(
"Zoom auto"
),
g_Module_Editor_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_PAD_SETTINGS
,
wxEmptyString
,
wx
Bitmap
(
options_pad_xpm
),
m_HToolBar
->
AddTool
(
ID_MODEDIT_PAD_SETTINGS
,
wxEmptyString
,
Ki
Bitmap
(
options_pad_xpm
),
_
(
"Pad settings"
)
);
_
(
"Pad settings"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_CHECK
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_MODEDIT_CHECK
,
wxEmptyString
,
wx
Bitmap
(
module_check_xpm
),
Ki
Bitmap
(
module_check_xpm
),
_
(
"Check module"
)
);
_
(
"Check module"
)
);
// 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
...
@@ -123,37 +123,37 @@ void FOOTPRINT_EDIT_FRAME::ReCreateVToolbar()
...
@@ -123,37 +123,37 @@ void FOOTPRINT_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// Set up toolbar
// Set up toolbar
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
wx
Bitmap
(
cursor_xpm
),
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
Ki
Bitmap
(
cursor_xpm
),
wxEmptyString
,
wxITEM_CHECK
);
wxEmptyString
,
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_MODEDIT_PAD_TOOL
,
wxEmptyString
,
wx
Bitmap
(
pad_xpm
),
m_VToolBar
->
AddTool
(
ID_MODEDIT_PAD_TOOL
,
wxEmptyString
,
Ki
Bitmap
(
pad_xpm
),
_
(
"Add pads"
),
wxITEM_CHECK
);
_
(
"Add pads"
),
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_MODEDIT_LINE_TOOL
,
wxEmptyString
,
wx
Bitmap
(
add_polygon_xpm
),
m_VToolBar
->
AddTool
(
ID_MODEDIT_LINE_TOOL
,
wxEmptyString
,
Ki
Bitmap
(
add_polygon_xpm
),
_
(
"Add graphic line or polygon"
),
wxITEM_CHECK
);
_
(
"Add graphic line or polygon"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_MODEDIT_CIRCLE_TOOL
,
wxEmptyString
,
wx
Bitmap
(
add_circle_xpm
),
m_VToolBar
->
AddTool
(
ID_MODEDIT_CIRCLE_TOOL
,
wxEmptyString
,
Ki
Bitmap
(
add_circle_xpm
),
_
(
"Add graphic circle"
),
wxITEM_CHECK
);
_
(
"Add graphic circle"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_MODEDIT_ARC_TOOL
,
wxEmptyString
,
wx
Bitmap
(
add_arc_xpm
),
m_VToolBar
->
AddTool
(
ID_MODEDIT_ARC_TOOL
,
wxEmptyString
,
Ki
Bitmap
(
add_arc_xpm
),
_
(
"Add graphic arc"
),
wxITEM_CHECK
);
_
(
"Add graphic arc"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_MODEDIT_TEXT_TOOL
,
wxEmptyString
,
wx
Bitmap
(
add_text_xpm
),
m_VToolBar
->
AddTool
(
ID_MODEDIT_TEXT_TOOL
,
wxEmptyString
,
Ki
Bitmap
(
add_text_xpm
),
_
(
"Add Text"
),
wxITEM_CHECK
);
_
(
"Add Text"
),
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_MODEDIT_ANCHOR_TOOL
,
wxEmptyString
,
wx
Bitmap
(
anchor_xpm
),
m_VToolBar
->
AddTool
(
ID_MODEDIT_ANCHOR_TOOL
,
wxEmptyString
,
Ki
Bitmap
(
anchor_xpm
),
_
(
"Place the footprint module reference anchor"
),
_
(
"Place the footprint module reference anchor"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_MODEDIT_DELETE_TOOL
,
wxEmptyString
,
wx
Bitmap
(
delete_body_xpm
),
m_VToolBar
->
AddTool
(
ID_MODEDIT_DELETE_TOOL
,
wxEmptyString
,
Ki
Bitmap
(
delete_body_xpm
),
_
(
"Delete items"
),
wxITEM_CHECK
);
_
(
"Delete items"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_MODEDIT_PLACE_GRID_COORD
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_MODEDIT_PLACE_GRID_COORD
,
wxEmptyString
,
wx
Bitmap
(
grid_select_axis_xpm
),
Ki
Bitmap
(
grid_select_axis_xpm
),
_
(
"Set the origin point for the grid"
),
_
(
"Set the origin point for the grid"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
@@ -168,36 +168,36 @@ void FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar()
...
@@ -168,36 +168,36 @@ void FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar()
// Create options tool bar.
// Create options tool bar.
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
wx
Bitmap
(
grid_xpm
),
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
Ki
Bitmap
(
grid_xpm
),
_
(
"Hide grid"
),
wxITEM_CHECK
);
_
(
"Hide grid"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
wx
Bitmap
(
polar_coord_xpm
),
Ki
Bitmap
(
polar_coord_xpm
),
_
(
"Display Polar Coord ON"
),
wxITEM_CHECK
);
_
(
"Display Polar Coord ON"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
wx
Bitmap
(
unit_inch_xpm
),
Ki
Bitmap
(
unit_inch_xpm
),
_
(
"Units in inches"
),
wxITEM_CHECK
);
_
(
"Units in inches"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
wx
Bitmap
(
unit_mm_xpm
),
Ki
Bitmap
(
unit_mm_xpm
),
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change Cursor Shape"
),
wxITEM_CHECK
);
_
(
"Change Cursor Shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
pad_sketch_xpm
),
Ki
Bitmap
(
pad_sketch_xpm
),
_
(
"Show Pads Sketch"
),
wxITEM_CHECK
);
_
(
"Show Pads Sketch"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
text_sketch_xpm
),
Ki
Bitmap
(
text_sketch_xpm
),
_
(
"Show Texts Sketch"
),
wxITEM_CHECK
);
_
(
"Show Texts Sketch"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
show_mod_edge_xpm
),
Ki
Bitmap
(
show_mod_edge_xpm
),
_
(
"Show Edges Sketch"
),
wxITEM_CHECK
);
_
(
"Show Edges Sketch"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
Realize
();
m_OptionsToolBar
->
Realize
();
...
...
pcbnew/tool_pcb.cpp
View file @
82d5ed1e
...
@@ -191,66 +191,66 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
...
@@ -191,66 +191,66 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar
->
SetRows
(
1
);
m_HToolBar
->
SetRows
(
1
);
// Set up toolbar
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_NEW_BOARD
,
wxEmptyString
,
wx
Bitmap
(
new_xpm
),
m_HToolBar
->
AddTool
(
ID_NEW_BOARD
,
wxEmptyString
,
Ki
Bitmap
(
new_xpm
),
_
(
"New board"
)
);
_
(
"New board"
)
);
m_HToolBar
->
AddTool
(
ID_LOAD_FILE
,
wxEmptyString
,
wx
Bitmap
(
open_document_xpm
),
m_HToolBar
->
AddTool
(
ID_LOAD_FILE
,
wxEmptyString
,
Ki
Bitmap
(
open_document_xpm
),
_
(
"Open existing board"
)
);
_
(
"Open existing board"
)
);
m_HToolBar
->
AddTool
(
ID_SAVE_BOARD
,
wxEmptyString
,
wx
Bitmap
(
save_xpm
),
m_HToolBar
->
AddTool
(
ID_SAVE_BOARD
,
wxEmptyString
,
Ki
Bitmap
(
save_xpm
),
_
(
"Save board"
)
);
_
(
"Save board"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_SHEET_SET
,
wxEmptyString
,
wx
Bitmap
(
sheetset_xpm
),
m_HToolBar
->
AddTool
(
ID_SHEET_SET
,
wxEmptyString
,
Ki
Bitmap
(
sheetset_xpm
),
_
(
"Page settings for paper size and texts"
)
);
_
(
"Page settings for paper size and texts"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_OPEN_MODULE_EDITOR
,
wxEmptyString
,
wx
Bitmap
(
modedit_xpm
),
m_HToolBar
->
AddTool
(
ID_OPEN_MODULE_EDITOR
,
wxEmptyString
,
Ki
Bitmap
(
modedit_xpm
),
_
(
"Open module editor"
)
);
_
(
"Open module editor"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
wxID_CUT
,
wxEmptyString
,
wx
Bitmap
(
cut_button
),
m_HToolBar
->
AddTool
(
wxID_CUT
,
wxEmptyString
,
Ki
Bitmap
(
cut_button
),
_
(
"Cut selected item"
)
);
_
(
"Cut selected item"
)
);
#if 0
#if 0
m_HToolBar->AddTool( wxID_COPY, wxEmptyString,
wx
Bitmap( copy_button ),
m_HToolBar->AddTool( wxID_COPY, wxEmptyString,
Ki
Bitmap( copy_button ),
_( "Copy selected item" ) );
_( "Copy selected item" ) );
m_HToolBar->AddTool( wxID_PASTE, wxEmptyString,
wx
Bitmap( paste_xpm ),
m_HToolBar->AddTool( wxID_PASTE, wxEmptyString,
Ki
Bitmap( paste_xpm ),
_( "Paste" ) );
_( "Paste" ) );
#endif
#endif
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_UNDO
,
g_Board_Editor_Hokeys_Descr
,
HK_UNDO
,
false
);
msg
=
AddHotkeyName
(
HELP_UNDO
,
g_Board_Editor_Hokeys_Descr
,
HK_UNDO
,
false
);
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
wx
Bitmap
(
undo_xpm
),
HELP_UNDO
);
m_HToolBar
->
AddTool
(
wxID_UNDO
,
wxEmptyString
,
Ki
Bitmap
(
undo_xpm
),
HELP_UNDO
);
msg
=
AddHotkeyName
(
HELP_REDO
,
g_Board_Editor_Hokeys_Descr
,
HK_REDO
,
false
);
msg
=
AddHotkeyName
(
HELP_REDO
,
g_Board_Editor_Hokeys_Descr
,
HK_REDO
,
false
);
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
wx
Bitmap
(
redo_xpm
),
HELP_REDO
);
m_HToolBar
->
AddTool
(
wxID_REDO
,
wxEmptyString
,
Ki
Bitmap
(
redo_xpm
),
HELP_REDO
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
wx
Bitmap
(
print_button
),
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
Ki
Bitmap
(
print_button
),
_
(
"Print board"
)
);
_
(
"Print board"
)
);
m_HToolBar
->
AddTool
(
ID_GEN_PLOT
,
wxEmptyString
,
wx
Bitmap
(
plot_xpm
),
m_HToolBar
->
AddTool
(
ID_GEN_PLOT
,
wxEmptyString
,
Ki
Bitmap
(
plot_xpm
),
_
(
"Plot (HPGL, PostScript, or GERBER format)"
)
);
_
(
"Plot (HPGL, PostScript, or GERBER format)"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_ZOOM_IN
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_IN
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
wx
Bitmap
(
zoom_in_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_IN
,
wxEmptyString
,
Ki
Bitmap
(
zoom_in_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_OUT
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_OUT
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_OUT
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
wx
Bitmap
(
zoom_out_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_OUT
,
wxEmptyString
,
Ki
Bitmap
(
zoom_out_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_REDRAW
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_REDRAW
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_REDRAW
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
Ki
Bitmap
(
zoom_redraw_xpm
),
msg
);
msg
=
AddHotkeyName
(
HELP_ZOOM_FIT
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
msg
=
AddHotkeyName
(
HELP_ZOOM_FIT
,
g_Board_Editor_Hokeys_Descr
,
HK_ZOOM_AUTO
,
false
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
wx
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_ZOOM_PAGE
,
wxEmptyString
,
Ki
Bitmap
(
zoom_fit_in_page_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
HELP_FIND
,
g_Board_Editor_Hokeys_Descr
,
HK_FIND_ITEM
,
false
);
msg
=
AddHotkeyName
(
HELP_FIND
,
g_Board_Editor_Hokeys_Descr
,
HK_FIND_ITEM
,
false
);
m_HToolBar
->
AddTool
(
ID_FIND_ITEMS
,
wxEmptyString
,
wx
Bitmap
(
find_xpm
),
msg
);
m_HToolBar
->
AddTool
(
ID_FIND_ITEMS
,
wxEmptyString
,
Ki
Bitmap
(
find_xpm
),
msg
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
wx
Bitmap
(
netlist_xpm
),
m_HToolBar
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
Ki
Bitmap
(
netlist_xpm
),
_
(
"Read netlist"
)
);
_
(
"Read netlist"
)
);
m_HToolBar
->
AddTool
(
ID_DRC_CONTROL
,
wxEmptyString
,
wx
Bitmap
(
erc_xpm
),
m_HToolBar
->
AddTool
(
ID_DRC_CONTROL
,
wxEmptyString
,
Ki
Bitmap
(
erc_xpm
),
_
(
"Perform design rules check"
)
);
_
(
"Perform design rules check"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
...
@@ -267,16 +267,16 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
...
@@ -267,16 +267,16 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
*
LayerPairBitmap
,
SEL_LAYER_HELP
);
*
LayerPairBitmap
,
SEL_LAYER_HELP
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_MODULE
,
wxEmptyString
,
wx
Bitmap
(
mode_module_xpm
),
m_HToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_MODULE
,
wxEmptyString
,
Ki
Bitmap
(
mode_module_xpm
),
_
(
"Mode footprint: manual and automatic move and place modules"
),
_
(
"Mode footprint: manual and automatic move and place modules"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_HToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_TRACKS
,
wxEmptyString
,
wx
Bitmap
(
mode_track_xpm
),
m_HToolBar
->
AddTool
(
ID_TOOLBARH_PCB_MODE_TRACKS
,
wxEmptyString
,
Ki
Bitmap
(
mode_track_xpm
),
_
(
"Mode track: autorouting"
),
wxITEM_CHECK
);
_
(
"Mode track: autorouting"
),
wxITEM_CHECK
);
// Fast call to FreeROUTE Web Bases router
// Fast call to FreeROUTE Web Bases router
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_TOOLBARH_PCB_FREEROUTE_ACCESS
,
wxEmptyString
,
m_HToolBar
->
AddTool
(
ID_TOOLBARH_PCB_FREEROUTE_ACCESS
,
wxEmptyString
,
wx
Bitmap
(
web_support_xpm
),
Ki
Bitmap
(
web_support_xpm
),
_
(
"Fast access to the Web Based FreeROUTE advanced router"
)
);
_
(
"Fast access to the Web Based FreeROUTE advanced router"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
...
@@ -295,65 +295,65 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
...
@@ -295,65 +295,65 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_OPTION
,
this
,
ID_OPT_TOOLBAR
,
false
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_DRC_OFF
,
wxEmptyString
,
wx
Bitmap
(
drc_off_xpm
),
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_DRC_OFF
,
wxEmptyString
,
Ki
Bitmap
(
drc_off_xpm
),
_
(
"Enable design rule checking"
),
wxITEM_CHECK
);
_
(
"Enable design rule checking"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
wx
Bitmap
(
grid_xpm
),
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_GRID
,
wxEmptyString
,
Ki
Bitmap
(
grid_xpm
),
_
(
"Hide grid"
),
wxITEM_CHECK
);
_
(
"Hide grid"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
wxEmptyString
,
wx
Bitmap
(
polar_coord_xpm
),
Ki
Bitmap
(
polar_coord_xpm
),
_
(
"Display polar coordinates"
),
wxITEM_CHECK
);
_
(
"Display polar coordinates"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_INCH
,
wxEmptyString
,
wx
Bitmap
(
unit_inch_xpm
),
Ki
Bitmap
(
unit_inch_xpm
),
_
(
"Units in inches"
),
wxITEM_CHECK
);
_
(
"Units in inches"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
wxEmptyString
,
wx
Bitmap
(
unit_mm_xpm
),
Ki
Bitmap
(
unit_mm_xpm
),
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_RATSNEST
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_RATSNEST
,
wxEmptyString
,
wx
Bitmap
(
general_ratsnet_xpm
),
Ki
Bitmap
(
general_ratsnet_xpm
),
_
(
"Show board ratsnest"
),
wxITEM_CHECK
);
_
(
"Show board ratsnest"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_RATSNEST
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MODULE_RATSNEST
,
wxEmptyString
,
wx
Bitmap
(
local_ratsnet_xpm
),
Ki
Bitmap
(
local_ratsnet_xpm
),
_
(
"Show module ratsnest when moving"
),
_
(
"Show module ratsnest when moving"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_AUTO_DEL_TRACK
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_AUTO_DEL_TRACK
,
wxEmptyString
,
wx
Bitmap
(
auto_delete_track_xpm
),
Ki
Bitmap
(
auto_delete_track_xpm
),
_
(
"Enable automatic track deletion"
),
_
(
"Enable automatic track deletion"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddRadioTool
(
ID_TB_OPTIONS_SHOW_ZONES
,
wxEmptyString
,
m_OptionsToolBar
->
AddRadioTool
(
ID_TB_OPTIONS_SHOW_ZONES
,
wxEmptyString
,
wx
Bitmap
(
show_zone_xpm
),
wxNullBitmap
,
Ki
Bitmap
(
show_zone_xpm
),
wxNullBitmap
,
_
(
"Show filled areas in zones"
)
);
_
(
"Show filled areas in zones"
)
);
m_OptionsToolBar
->
AddRadioTool
(
ID_TB_OPTIONS_SHOW_ZONES_DISABLE
,
wxEmptyString
,
m_OptionsToolBar
->
AddRadioTool
(
ID_TB_OPTIONS_SHOW_ZONES_DISABLE
,
wxEmptyString
,
wx
Bitmap
(
show_zone_disable_xpm
),
Ki
Bitmap
(
show_zone_disable_xpm
),
wxNullBitmap
,
_
(
"Do not show filled areas in zones"
));
wxNullBitmap
,
_
(
"Do not show filled areas in zones"
));
m_OptionsToolBar
->
AddRadioTool
(
ID_TB_OPTIONS_SHOW_ZONES_OUTLINES_ONLY
,
wxEmptyString
,
m_OptionsToolBar
->
AddRadioTool
(
ID_TB_OPTIONS_SHOW_ZONES_OUTLINES_ONLY
,
wxEmptyString
,
wx
Bitmap
(
show_zone_outline_only_xpm
),
wxNullBitmap
,
Ki
Bitmap
(
show_zone_outline_only_xpm
),
wxNullBitmap
,
_
(
"Show outlines of filled areas only in zones"
)
);
_
(
"Show outlines of filled areas only in zones"
)
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
pad_sketch_xpm
),
Ki
Bitmap
(
pad_sketch_xpm
),
_
(
"Show pads in outline mode"
),
wxITEM_CHECK
);
_
(
"Show pads in outline mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_VIAS_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_VIAS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
via_sketch_xpm
),
Ki
Bitmap
(
via_sketch_xpm
),
_
(
"Show vias in outline mode"
),
wxITEM_CHECK
);
_
(
"Show vias in outline mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_TRACKS_SKETCH
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_TRACKS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
showtrack_xpm
),
Ki
Bitmap
(
showtrack_xpm
),
_
(
"Show tracks in outline mode"
),
_
(
"Show tracks in outline mode"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE
,
wxEmptyString
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE
,
wxEmptyString
,
wx
Bitmap
(
palette_xpm
),
Ki
Bitmap
(
palette_xpm
),
_
(
"Enable high contrast display mode"
),
_
(
"Enable high contrast display mode"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
@@ -361,12 +361,12 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
...
@@ -361,12 +361,12 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MANAGE_LAYERS_VERTICAL_TOOLBAR
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MANAGE_LAYERS_VERTICAL_TOOLBAR
,
wxEmptyString
,
wxEmptyString
,
wx
Bitmap
(
layers_manager_xpm
),
Ki
Bitmap
(
layers_manager_xpm
),
HELP_SHOW_HIDE_LAYERMANAGER
,
HELP_SHOW_HIDE_LAYERMANAGER
,
wxITEM_CHECK
);
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_EXTRA_VERTICAL_TOOLBAR_MICROWAVE
,
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_EXTRA_VERTICAL_TOOLBAR_MICROWAVE
,
wxEmptyString
,
wxEmptyString
,
wx
Bitmap
(
mw_toolbar_xpm
),
Ki
Bitmap
(
mw_toolbar_xpm
),
_
(
"Show/hide the toolbar for microwaves tools
\n
This is a experimental feature (under development)"
),
_
(
"Show/hide the toolbar for microwaves tools
\n
This is a experimental feature (under development)"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
@@ -388,57 +388,57 @@ void PCB_EDIT_FRAME::ReCreateVToolbar()
...
@@ -388,57 +388,57 @@ void PCB_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// Set up toolbar
// Set up toolbar
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
wx
Bitmap
(
cursor_xpm
),
m_VToolBar
->
AddTool
(
ID_NO_TOOL_SELECTED
,
wxEmptyString
,
Ki
Bitmap
(
cursor_xpm
),
wxEmptyString
,
wxITEM_CHECK
);
wxEmptyString
,
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_PCB_HIGHLIGHT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
net_highlight_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_HIGHLIGHT_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
net_highlight_xpm
),
_
(
"Highlight net"
),
wxITEM_CHECK
);
_
(
"Highlight net"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PCB_SHOW_1_RATSNEST_BUTT
,
wxEmptyString
,
wx
Bitmap
(
tool_ratsnet_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_SHOW_1_RATSNEST_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
tool_ratsnet_xpm
),
_
(
"Display local ratsnest"
),
wxITEM_CHECK
);
_
(
"Display local ratsnest"
),
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_PCB_MODULE_BUTT
,
wxEmptyString
,
wx
Bitmap
(
module_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_MODULE_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
module_xpm
),
_
(
"Add modules"
),
wxITEM_CHECK
);
_
(
"Add modules"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_TRACK_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_tracks_xpm
),
m_VToolBar
->
AddTool
(
ID_TRACK_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_tracks_xpm
),
_
(
"Add tracks and vias"
),
wxITEM_CHECK
);
_
(
"Add tracks and vias"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PCB_ZONES_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_zone_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_ZONES_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_zone_xpm
),
_
(
"Add filled zones"
),
wxITEM_CHECK
);
_
(
"Add filled zones"
),
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_PCB_ADD_LINE_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_dashed_line_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_ADD_LINE_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_dashed_line_xpm
),
_
(
"Add graphic line or polygon"
),
wxITEM_CHECK
);
_
(
"Add graphic line or polygon"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PCB_CIRCLE_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_circle_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_CIRCLE_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_circle_xpm
),
_
(
"Add graphic circle"
),
wxITEM_CHECK
);
_
(
"Add graphic circle"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PCB_ARC_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_arc_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_ARC_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_arc_xpm
),
_
(
"Add graphic arc"
),
wxITEM_CHECK
);
_
(
"Add graphic arc"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PCB_ADD_TEXT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_text_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_ADD_TEXT_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_text_xpm
),
_
(
"Add text on copper layers or graphic text"
),
wxITEM_CHECK
);
_
(
"Add text on copper layers or graphic text"
),
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_PCB_DIMENSION_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_dimension_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_DIMENSION_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_dimension_xpm
),
_
(
"Add dimension"
),
wxITEM_CHECK
);
_
(
"Add dimension"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PCB_MIRE_BUTT
,
wxEmptyString
,
wx
Bitmap
(
add_mires_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_MIRE_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
add_mires_xpm
),
_
(
"Add layer alignment target"
),
wxITEM_CHECK
);
_
(
"Add layer alignment target"
),
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_PCB_DELETE_ITEM_BUTT
,
wxEmptyString
,
wx
Bitmap
(
delete_body_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_DELETE_ITEM_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
delete_body_xpm
),
_
(
"Delete items"
),
wxITEM_CHECK
);
_
(
"Delete items"
),
wxITEM_CHECK
);
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddSeparator
();
m_VToolBar
->
AddTool
(
ID_PCB_PLACE_OFFSET_COORD_BUTT
,
wxEmptyString
,
wx
Bitmap
(
pcb_offset_xpm
),
m_VToolBar
->
AddTool
(
ID_PCB_PLACE_OFFSET_COORD_BUTT
,
wxEmptyString
,
Ki
Bitmap
(
pcb_offset_xpm
),
_
(
"Place the origin point for drill and place files"
),
_
(
"Place the origin point for drill and place files"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_PCB_PLACE_GRID_COORD_BUTT
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_PCB_PLACE_GRID_COORD_BUTT
,
wxEmptyString
,
wx
Bitmap
(
grid_select_axis_xpm
),
Ki
Bitmap
(
grid_select_axis_xpm
),
_
(
"Set the origin point for the grid"
),
_
(
"Set the origin point for the grid"
),
wxITEM_CHECK
);
wxITEM_CHECK
);
...
@@ -460,26 +460,26 @@ void PCB_EDIT_FRAME::ReCreateMicrowaveVToolbar()
...
@@ -460,26 +460,26 @@ void PCB_EDIT_FRAME::ReCreateMicrowaveVToolbar()
// Set up toolbar
// Set up toolbar
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_SELF_CMD
,
wxEmptyString
,
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_SELF_CMD
,
wxEmptyString
,
wx
Bitmap
(
mw_Add_Line_xpm
),
Ki
Bitmap
(
mw_Add_Line_xpm
),
_
(
"Create line of specified length for microwave applications"
)
);
_
(
"Create line of specified length for microwave applications"
)
);
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_GAP_CMD
,
wxEmptyString
,
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_GAP_CMD
,
wxEmptyString
,
wx
Bitmap
(
mw_Add_Gap_xpm
),
Ki
Bitmap
(
mw_Add_Gap_xpm
),
_
(
"Create gap of specified length for microwave applications"
)
);
_
(
"Create gap of specified length for microwave applications"
)
);
m_AuxVToolBar
->
AddSeparator
();
m_AuxVToolBar
->
AddSeparator
();
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_STUB_CMD
,
wxEmptyString
,
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_STUB_CMD
,
wxEmptyString
,
wx
Bitmap
(
mw_Add_Stub_xpm
),
Ki
Bitmap
(
mw_Add_Stub_xpm
),
_
(
"Create stub of specified length for microwave applications"
)
);
_
(
"Create stub of specified length for microwave applications"
)
);
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_STUB_ARC_CMD
,
wxEmptyString
,
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_STUB_ARC_CMD
,
wxEmptyString
,
wx
Bitmap
(
mw_Add_stub_arc_xpm
),
Ki
Bitmap
(
mw_Add_stub_arc_xpm
),
_
(
"Create stub (arc) of specified length for microwave applications"
)
_
(
"Create stub (arc) of specified length for microwave applications"
)
);
);
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_FUNCTION_SHAPE_CMD
,
wxEmptyString
,
m_AuxVToolBar
->
AddTool
(
ID_PCB_MUWAVE_TOOL_FUNCTION_SHAPE_CMD
,
wxEmptyString
,
wx
Bitmap
(
mw_Add_Shape_xpm
),
Ki
Bitmap
(
mw_Add_Shape_xpm
),
_
(
"Create a polynomial shape for microwave applications"
)
);
_
(
"Create a polynomial shape for microwave applications"
)
);
m_AuxVToolBar
->
Realize
();
m_AuxVToolBar
->
Realize
();
...
@@ -531,7 +531,7 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar()
...
@@ -531,7 +531,7 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar()
// Creates box to display and choose strategy to handle tracks an vias sizes:
// Creates box to display and choose strategy to handle tracks an vias sizes:
m_AuxiliaryToolBar
->
AddTool
(
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
m_AuxiliaryToolBar
->
AddTool
(
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
wxEmptyString
,
wxEmptyString
,
wx
Bitmap
(
auto_track_width_xpm
),
Ki
Bitmap
(
auto_track_width_xpm
),
_
(
"Auto track width: when starting on \
_
(
"Auto track width: when starting on \
an existing track use its width
\n
otherwise, use current width setting"
),
an existing track use its width
\n
otherwise, use current width setting"
),
wxITEM_CHECK
);
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