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
Show 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 )
pos
.
x
=
event
.
GetX
();
pos
.
y
=
event
.
GetY
();
wxMenuItem
*
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMIN
,
_
(
"Zoom +"
)
);
item
->
SetBitmap
(
zoom_in_xpm
);
item
->
SetBitmap
(
KiBitmap
(
zoom_in_xpm
)
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_ZOOMOUT
,
_
(
"Zoom -"
)
);
item
->
SetBitmap
(
zoom_out_xpm
);
item
->
SetBitmap
(
KiBitmap
(
zoom_out_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZPOS
,
_
(
"Top View"
)
);
item
->
SetBitmap
(
axis3d_top_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_top_xpm
)
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_ZNEG
,
_
(
"Bottom View"
)
);
item
->
SetBitmap
(
axis3d_bottom_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_bottom_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XPOS
,
_
(
"Right View"
)
);
item
->
SetBitmap
(
axis3d_right_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_right_xpm
)
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_XNEG
,
_
(
"Left View"
)
);
item
->
SetBitmap
(
axis3d_left_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_left_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YPOS
,
_
(
"Front View"
)
);
item
->
SetBitmap
(
axis3d_front_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_front_xpm
)
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_VIEW_YNEG
,
_
(
"Back View"
)
);
item
->
SetBitmap
(
axis3d_back_xpm
);
item
->
SetBitmap
(
KiBitmap
(
axis3d_back_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopUpMenu
.
AppendSeparator
();
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_LEFT
,
_
(
"Move left <-"
)
);
item
->
SetBitmap
(
left_xpm
);
item
->
SetBitmap
(
KiBitmap
(
left_xpm
)
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_RIGHT
,
_
(
"Move right ->"
)
);
item
->
SetBitmap
(
right_xpm
);
item
->
SetBitmap
(
KiBitmap
(
right_xpm
)
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_UP
,
_
(
"Move Up ^"
)
);
item
->
SetBitmap
(
up_xpm
);
item
->
SetBitmap
(
KiBitmap
(
up_xpm
)
);
PopUpMenu
.
Append
(
item
);
item
=
new
wxMenuItem
(
&
PopUpMenu
,
ID_POPUP_MOVE3D_DOWN
,
_
(
"Move Down"
)
);
item
->
SetBitmap
(
down_xpm
);
item
->
SetBitmap
(
KiBitmap
(
down_xpm
)
);
PopUpMenu
.
Append
(
item
);
PopupMenu
(
&
PopUpMenu
,
pos
);
...
...
3d-viewer/3d_toolbar.cpp
View file @
82d5ed1e
...
...
@@ -23,7 +23,7 @@ void EDA_3D_FRAME::ReCreateHToolbar()
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_RELOAD3D_BOARD
,
wxEmptyString
,
wx
Bitmap
(
import3d_xpm
),
Ki
Bitmap
(
import3d_xpm
),
_
(
"Reload board"
)
);
#if (defined(__WINDOWS__) || defined(__APPLE__ ) )
...
...
@@ -31,66 +31,66 @@ void EDA_3D_FRAME::ReCreateHToolbar()
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_TOOL_SCREENCOPY_TOCLIBBOARD
,
wxEmptyString
,
wx
Bitmap
(
copy_button
),
Ki
Bitmap
(
copy_button
),
_
(
"Copy 3D Image to Clipboard"
)
);
#endif
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"
)
);
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"
)
);
m_HToolBar
->
AddTool
(
ID_ZOOM_REDRAW
,
wxEmptyString
,
wx
Bitmap
(
zoom_redraw_xpm
),
Ki
Bitmap
(
zoom_redraw_xpm
),
_
(
"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"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ROTATE3D_X_NEG
,
wxEmptyString
,
wx
Bitmap
(
rotate_neg_X_xpm
),
Ki
Bitmap
(
rotate_neg_X_xpm
),
_
(
"Rotate X <-"
)
);
m_HToolBar
->
AddTool
(
ID_ROTATE3D_X_POS
,
wxEmptyString
,
wx
Bitmap
(
rotate_pos_X_xpm
),
Ki
Bitmap
(
rotate_pos_X_xpm
),
_
(
"Rotate X ->"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Y_NEG
,
wxEmptyString
,
wx
Bitmap
(
rotate_neg_Y_xpm
),
Ki
Bitmap
(
rotate_neg_Y_xpm
),
_
(
"Rotate Y <-"
)
);
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Y_POS
,
wxEmptyString
,
wx
Bitmap
(
rotate_pos_Y_xpm
),
Ki
Bitmap
(
rotate_pos_Y_xpm
),
_
(
"Rotate Y ->"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Z_NEG
,
wxEmptyString
,
wx
Bitmap
(
rotate_neg_Z_xpm
),
Ki
Bitmap
(
rotate_neg_Z_xpm
),
_
(
"Rotate Z <-"
)
);
m_HToolBar
->
AddTool
(
ID_ROTATE3D_Z_POS
,
wxEmptyString
,
wx
Bitmap
(
rotate_pos_Z_xpm
),
Ki
Bitmap
(
rotate_pos_Z_xpm
),
_
(
"Rotate Z ->"
)
);
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 <-"
)
);
m_HToolBar
->
AddTool
(
ID_MOVE3D_RIGHT
,
wxEmptyString
,
wx
Bitmap
(
right_xpm
),
m_HToolBar
->
AddTool
(
ID_MOVE3D_RIGHT
,
wxEmptyString
,
Ki
Bitmap
(
right_xpm
),
_
(
"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 ^"
)
);
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"
)
);
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"
),
wxITEM_CHECK
);
...
...
bitmaps/CMakeLists.txt
View file @
82d5ed1e
...
...
@@ -363,12 +363,12 @@ set(BITMAP_SRCS
Rotate_Pin.xpm
Rotate_CCW.xpm
Rotate_CW.xpm
rotate
-
x.xpm
rotate
+
x.xpm
rotate
-
y.xpm
rotate
+
y.xpm
rotate
-
z.xpm
rotate
+
z.xpm
rotate
_neg_
x.xpm
rotate
_pos_
x.xpm
rotate
_neg_
y.xpm
rotate
_pos_
y.xpm
rotate
_neg_
z.xpm
rotate
_pos_
z.xpm
save_as.xpm
Save_Library.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 @@
#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
);
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 )
* and as icon the national flag of the corresponding country.
*/
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"
),
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"
),
wxT
(
"Finnish (FI)"
),
new
wxBitmap
(
lang_fi_xpm
)
)
);
wxT
(
"Finnish (FI)"
),
KiBitmapNew
(
lang_fi_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Jean-Pierre Charras"
),
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"
),
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"
),
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"
),
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"
),
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"
),
wxT
(
"Spanish (ES)"
),
new
wxBitmap
(
lang_es_xpm
)
)
);
wxT
(
"Spanish (ES)"
),
KiBitmapNew
(
lang_es_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Rafael Sokolowski"
),
wxT
(
"rafael.sokolowski@web.de"
),
wxT
(
"German (DE)"
),
new
wxBitmap
(
lang_de_xpm
)
)
);
KiBitmapNew
(
lang_de_xpm
)
)
);
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Kenta Yonekura"
),
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"
),
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"
),
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 */
info
.
AddTranslator
(
new
Contributor
(
wxT
(
"Remy Halvick"
),
wxEmptyString
,
wxT
(
"Others"
)
)
);
...
...
@@ -267,11 +267,11 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
/* Programm credits for icons */
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"
),
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"
),
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 @@
dialog_about
::
dialog_about
(
wxWindow
*
parent
,
AboutAppInfo
&
appInfo
)
:
dialog_about_base
(
parent
),
info
(
appInfo
)
{
picInformation
=
wxBitmap
(
info_xpm
);
picDevelopers
=
wxBitmap
(
preference_xpm
);
picDocWriters
=
wxBitmap
(
editor_xpm
);
picArtists
=
wxBitmap
(
palette_xpm
);
picTranslators
=
wxBitmap
(
language_xpm
);
picLicense
=
wxBitmap
(
tools_xpm
);
picInformation
=
KiBitmap
(
info_xpm
);
picDevelopers
=
KiBitmap
(
preference_xpm
);
picDocWriters
=
KiBitmap
(
editor_xpm
);
picArtists
=
KiBitmap
(
palette_xpm
);
picTranslators
=
KiBitmap
(
language_xpm
);
picLicense
=
KiBitmap
(
tools_xpm
);
m_bitmapApp
->
SetBitmap
(
info
.
GetIcon
()
);
...
...
common/edaappl.cpp
View file @
82d5ed1e
...
...
@@ -69,7 +69,7 @@ struct LANGUAGE_DESCR
int
m_KI_Lang_Identifier
;
/* The menu language icons */
const
char
**
m_Lang_Icon
;
const
BITMAP_DEF
&
m_Lang_Icon
;
/* Labels used in menus */
const
wxChar
*
m_Lang_Label
;
...
...
cvpcb/class_DisplayFootprintsFrame.cpp
View file @
82d5ed1e
...
...
@@ -156,36 +156,36 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar()
// Create options tool bar.
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
);
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
);
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
);
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
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
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
);
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
);
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
);
m_OptionsToolBar
->
Realize
();
...
...
@@ -199,25 +199,25 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar()
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"
)
);
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)"
)
);
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)"
)
);
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)"
)
);
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)"
)
);
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"
)
);
// 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()
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
TRUE
);
m_HToolBar
->
AddTool
(
ID_CVPCB_READ_INPUT_NETLIST
,
wxEmptyString
,
wx
Bitmap
(
open_document_xpm
),
Ki
Bitmap
(
open_document_xpm
),
_
(
"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"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_CONFIGWINDOW
,
wxEmptyString
,
wx
Bitmap
(
config_xpm
),
Ki
Bitmap
(
config_xpm
),
_
(
"Configuration"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_SCREENCMP
,
wxEmptyString
,
wx
Bitmap
(
show_footprint_xpm
),
Ki
Bitmap
(
show_footprint_xpm
),
_
(
"View selected footprint"
)
);
m_HToolBar
->
AddTool
(
ID_CVPCB_AUTO_ASSOCIE
,
wxEmptyString
,
wx
Bitmap
(
auto_associe_xpm
),
Ki
Bitmap
(
auto_associe_xpm
),
_
(
"Perform automatic footprint association"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_GOTO_PREVIOUSNA
,
wxEmptyString
,
wx
Bitmap
(
left_xpm
),
Ki
Bitmap
(
left_xpm
),
_
(
"Select previous free component"
)
);
m_HToolBar
->
AddTool
(
ID_CVPCB_GOTO_FIRSTNA
,
wxEmptyString
,
wx
Bitmap
(
right_xpm
),
Ki
Bitmap
(
right_xpm
),
_
(
"Select next free component"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_DEL_ASSOCIATIONS
,
wxEmptyString
,
wx
Bitmap
(
delete_association_xpm
),
Ki
Bitmap
(
delete_association_xpm
),
_
(
"Delete all associations"
)
);
m_HToolBar
->
AddSeparator
();
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, \
used by eeschema to fill the footprint field of components)"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_PCB_DISPLAY_FOOTPRINT_DOC
,
wxEmptyString
,
wx
Bitmap
(
datasheet_xpm
),
Ki
Bitmap
(
datasheet_xpm
),
_
(
"Display footprints list documentation"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddRadioTool
(
ID_CVPCB_FOOTPRINT_DISPLAY_FILTERED_LIST
,
wxEmptyString
,
wx
Bitmap
(
module_filtered_list_xpm
),
Ki
Bitmap
(
module_filtered_list_xpm
),
wxNullBitmap
,
_
(
"Display the filtered footprint list for the current component"
)
);
m_HToolBar
->
AddRadioTool
(
ID_CVPCB_FOOTPRINT_DISPLAY_FULL_LIST
,
wxEmptyString
,
wx
Bitmap
(
module_full_list_xpm
),
wxEmptyString
,
Ki
Bitmap
(
module_full_list_xpm
),
wxNullBitmap
,
_
(
"Display the full footprint list (without filtering)"
)
);
...
...
eeschema/dialogs/dialog_erc.cpp
View file @
82d5ed1e
...
...
@@ -267,7 +267,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
case
OK
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
wx
Bitmap
(
erc_green_xpm
),
Ki
Bitmap
(
erc_green_xpm
),
wxPoint
(
x
,
y
)
);
break
;
...
...
@@ -275,7 +275,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
case
WAR
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
wx
Bitmap
(
warning_xpm
),
Ki
Bitmap
(
warning_xpm
),
wxPoint
(
x
,
y
)
);
break
;
...
...
@@ -283,7 +283,7 @@ void DIALOG_ERC::ReBuildMatrixPanel()
case
ERR
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
wx
Bitmap
(
error_xpm
),
Ki
Bitmap
(
error_xpm
),
wxPoint
(
x
,
y
)
);
break
;
...
...
@@ -381,7 +381,7 @@ void DIALOG_ERC::ChangeErrorLevel( wxCommandEvent& event )
if
(
new_bitmap_xpm
)
{
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
;
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,
if
(
aBitmaps
==
NULL
)
m_choiceOrientation
->
Append
(
list
[
ii
]
);
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,
if
(
aBitmaps
==
NULL
)
m_choiceElectricalType
->
Append
(
list
[
ii
]
);
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***
if
(
aBitmaps
==
NULL
)
m_choiceStyle
->
Append
(
list
[
ii
]
);
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 ) :
// Make an image list containing small icons
imageList
=
new
wxImageList
(
16
,
15
,
TRUE
,
2
);
imageList
->
Add
(
wx
Bitmap
(
tree_nosel_xpm
)
);
imageList
->
Add
(
wx
Bitmap
(
tree_sel_xpm
)
);
imageList
->
Add
(
Ki
Bitmap
(
tree_nosel_xpm
)
);
imageList
->
Add
(
Ki
Bitmap
(
tree_sel_xpm
)
);
AssignImageList
(
imageList
);
}
...
...
eeschema/tool_lib.cpp
View file @
82d5ed1e
...
...
@@ -35,37 +35,37 @@ void LIB_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// 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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
m_VToolBar
->
Realize
();
...
...
@@ -83,78 +83,78 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
true
);
// 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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
m_HToolBar
->
AddTool
(
ImportPartId
,
wxEmptyString
,
wx
Bitmap
(
import_xpm
),
m_HToolBar
->
AddTool
(
ImportPartId
,
wxEmptyString
,
Ki
Bitmap
(
import_xpm
),
_
(
"Import component"
)
);
m_HToolBar
->
AddTool
(
ExportPartId
,
wxEmptyString
,
wx
Bitmap
(
export_xpm
),
m_HToolBar
->
AddTool
(
ExportPartId
,
wxEmptyString
,
Ki
Bitmap
(
export_xpm
),
_
(
"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"
)
);
m_HToolBar
->
AddSeparator
();
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
);
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
->
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"
)
);
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"
)
);
m_HToolBar
->
AddSeparator
();
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
);
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
);
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
);
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
->
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
);
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
);
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"
)
);
m_HToolBar
->
AddSeparator
();
...
...
@@ -180,7 +180,7 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
msg
+=
_
(
"Usual option = OFF when parts are not locked"
);
msg
<<
wxT
(
"
\n
"
);
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
);
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
...
...
@@ -195,18 +195,18 @@ void LIB_EDIT_FRAME::CreateOptionToolbar()
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
);
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
,
wx
Bitmap
(
unit_mm_xpm
),
Ki
Bitmap
(
unit_mm_xpm
),
_
(
"Units in millimeters"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
Realize
();
...
...
eeschema/tool_sch.cpp
View file @
82d5ed1e
...
...
@@ -28,90 +28,90 @@ void SCH_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_MAIN
,
this
,
ID_H_TOOLBAR
,
TRUE
);
// 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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
m_HToolBar
->
AddTool
(
wxID_COPY
,
wxEmptyString
,
wx
Bitmap
(
copy_button
),
m_HToolBar
->
AddTool
(
wxID_COPY
,
wxEmptyString
,
Ki
Bitmap
(
copy_button
),
_
(
"Copy selected item"
)
);
m_HToolBar
->
AddTool
(
wxID_PASTE
,
wxEmptyString
,
wx
Bitmap
(
paste_xpm
),
m_HToolBar
->
AddTool
(
wxID_PASTE
,
wxEmptyString
,
Ki
Bitmap
(
paste_xpm
),
_
(
"Paste"
)
);
m_HToolBar
->
AddSeparator
();
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
);
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
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
wx
Bitmap
(
print_button
),
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
Ki
Bitmap
(
print_button
),
_
(
"Print schematic"
)
);
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"
)
);
m_HToolBar
->
AddTool
(
ID_TO_PCB
,
wxEmptyString
,
wx
Bitmap
(
pcbnew_xpm
),
m_HToolBar
->
AddTool
(
ID_TO_PCB
,
wxEmptyString
,
Ki
Bitmap
(
pcbnew_xpm
),
_
(
"Run pcbnew"
)
);
m_HToolBar
->
AddSeparator
();
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
);
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
);
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
);
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
();
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
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
wx
Bitmap
(
netlist_xpm
),
m_HToolBar
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
Ki
Bitmap
(
netlist_xpm
),
_
(
"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"
)
);
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"
)
);
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"
)
);
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"
)
);
// after adding the tools to the toolbar, must call Realize() to reflect the changes
...
...
@@ -129,66 +129,66 @@ void SCH_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// 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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
m_VToolBar
->
AddTool
(
ID_NOCONN_BUTT
,
wxEmptyString
,
wxBitmap
(
noconn_button
),
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
m_VToolBar
->
Realize
();
...
...
@@ -205,29 +205,29 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
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
),
Ki
Bitmap
(
grid_xpm
),
_
(
"Turn grid off"
),
wxITEM_CHECK
);
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
);
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
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_HIDDEN_PINS
,
wxEmptyString
,
wx
Bitmap
(
hidden_pin_xpm
),
Ki
Bitmap
(
hidden_pin_xpm
),
_
(
"Show hidden pins"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_BUS_WIRES_ORIENT
,
wxEmptyString
,
wx
Bitmap
(
lines90_xpm
),
Ki
Bitmap
(
lines90_xpm
),
_
(
"HV orientation for wires and bus"
),
wxITEM_CHECK
);
...
...
eeschema/tool_viewlib.cpp
View file @
82d5ed1e
...
...
@@ -32,51 +32,51 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_LIBVIEW_SELECT_LIB
,
wxEmptyString
,
wx
Bitmap
(
library_xpm
),
Ki
Bitmap
(
library_xpm
),
_
(
"Select library to browse"
)
);
m_HToolBar
->
AddTool
(
ID_LIBVIEW_SELECT_PART
,
wxEmptyString
,
wx
Bitmap
(
add_component_xpm
),
Ki
Bitmap
(
add_component_xpm
),
_
(
"Select part to browse"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBVIEW_PREVIOUS
,
wxEmptyString
,
wx
Bitmap
(
lib_previous_xpm
),
Ki
Bitmap
(
lib_previous_xpm
),
_
(
"Display previous part"
)
);
m_HToolBar
->
AddTool
(
ID_LIBVIEW_NEXT
,
wxEmptyString
,
wx
Bitmap
(
lib_next_xpm
),
Ki
Bitmap
(
lib_next_xpm
),
_
(
"Display next part"
)
);
m_HToolBar
->
AddSeparator
();
msg
=
AddHotkeyName
(
_
(
"Zoom in"
),
s_Viewlib_Hokeys_Descr
,
HK_ZOOM_IN
,
false
);
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
,
HK_ZOOM_OUT
,
false
);
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
,
HK_ZOOM_REDRAW
,
false
);
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
,
HK_ZOOM_AUTO
,
false
);
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
->
AddTool
(
ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT
,
wxEmptyString
,
wx
Bitmap
(
morgan1_xpm
),
Ki
Bitmap
(
morgan1_xpm
),
_
(
"Show as
\"
De Morgan
\"
normal part"
),
wxITEM_CHECK
);
m_HToolBar
->
AddTool
(
ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT
,
wxEmptyString
,
wx
Bitmap
(
morgan2_xpm
),
Ki
Bitmap
(
morgan2_xpm
),
_
(
"Show as
\"
De Morgan
\"
convert part"
),
wxITEM_CHECK
);
...
...
@@ -89,7 +89,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBVIEW_VIEWDOC
,
wxEmptyString
,
wx
Bitmap
(
datasheet_xpm
),
Ki
Bitmap
(
datasheet_xpm
),
_
(
"View component documents"
)
);
m_HToolBar
->
EnableTool
(
ID_LIBVIEW_VIEWDOC
,
false
);
...
...
@@ -98,7 +98,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
// The library browser is called from a "load component" command
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC
,
wxEmptyString
,
wx
Bitmap
(
export_xpm
),
wxEmptyString
,
Ki
Bitmap
(
export_xpm
),
_
(
"Insert component in schematic"
)
);
}
...
...
gerbview/toolbars_gerber.cpp
View file @
82d5ed1e
...
...
@@ -27,14 +27,14 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_GERBVIEW_ERASE_ALL
,
wxEmptyString
,
wx
Bitmap
(
gerbview_clear_layers_xpm
),
Ki
Bitmap
(
gerbview_clear_layers_xpm
),
_
(
"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"
)
);
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"
)
);
m_HToolBar
->
AddSeparator
();
...
...
@@ -43,16 +43,16 @@ void GERBVIEW_FRAME::ReCreateHToolbar( void )
m_HToolBar
->
AddSeparator
();
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
);
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
);
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
);
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
();
...
...
@@ -106,7 +106,7 @@ void GERBVIEW_FRAME::ReCreateVToolbar( void )
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
FALSE
);
// 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
->
Realize
();
...
...
@@ -124,57 +124,57 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
// creation of tool bar options
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
);
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
);
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
);
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
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
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
);
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
);
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"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_DCODES
,
wxEmptyString
,
wx
Bitmap
(
show_dcodenumber_xpm
),
Ki
Bitmap
(
show_dcodenumber_xpm
),
_
(
"Show dcode number"
),
wxITEM_CHECK
);
// tools to select draw mode in gerbview
m_OptionsToolBar
->
AddSeparator
();
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 \
(could have problems with negative items when more than one gerber file is shown)"
),
wxITEM_CHECK
);
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 negative items without artefact, sometimes slow)"
),
wxITEM_CHECK
);
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 negative items without artefact, sometimes slow)"
),
wxITEM_CHECK
);
...
...
@@ -183,7 +183,7 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_LAYERS_MANAGER_VERTICAL_TOOLBAR
,
wxEmptyString
,
wx
Bitmap
(
layers_manager_xpm
),
Ki
Bitmap
(
layers_manager_xpm
),
_
(
"Show/hide the layers manager toolbar"
),
wxITEM_CHECK
);
...
...
include/bitmaps.h
View file @
82d5ed1e
...
...
@@ -2,12 +2,21 @@
#ifndef BITMAPS_H_
#define BITMAPS_H_
#include <wx/bitmap.h>
#define VTOOLBAR_WIDTH 26
#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).
struct
BITMAP_DEF
...
...
@@ -16,14 +25,25 @@ struct BITMAP_DEF
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
* constructs a wxBitmap from a PNG memory record, held in a
* BITMAP_DEF. This name and interface is chose to ease migration
* into PNG usage from XPM usage.
* Function KiBitmapNew
* allocates a wxBitmap on heap from a memory record, held in a
* BITMAP_DEF.
*
* @return wxBitmap* - caller owns it.
*/
wxBitmap
Bitmap
(
const
BITMAP_DEF
&
aBitmap
);
wxBitmap
*
KiBitmapNew
(
const
BITMAP_DEF
&
aBitmap
);
// Please keep list sorted alphabetically, ignoring case.
...
...
kicad/class_treeprojectfiles.cpp
View file @
82d5ed1e
...
...
@@ -30,15 +30,15 @@ TREEPROJECTFILES::TREEPROJECTFILES( TREE_PROJECT_FRAME* parent ) :
// Make an image list containing small icons
m_ImageList
=
new
wxImageList
(
16
,
16
,
TRUE
,
TREE_MAX
);
m_ImageList
->
Add
(
wx
Bitmap
(
kicad_icon_small_xpm
)
);
// TREE_PROJECT
m_ImageList
->
Add
(
wx
Bitmap
(
eeschema_xpm
)
);
// TREE_SCHEMA
m_ImageList
->
Add
(
wx
Bitmap
(
pcbnew_xpm
)
);
// TREE_PCB
m_ImageList
->
Add
(
wx
Bitmap
(
icon_gerbview_small_xpm
)
);
// TREE_GERBER
m_ImageList
->
Add
(
wx
Bitmap
(
datasheet_xpm
)
);
// TREE_PDF
m_ImageList
->
Add
(
wx
Bitmap
(
icon_txt_xpm
)
);
// TREE_TXT
m_ImageList
->
Add
(
wx
Bitmap
(
icon_cvpcb_small_xpm
)
);
// TREE_NET
m_ImageList
->
Add
(
wx
Bitmap
(
unknown_xpm
)
);
// TREE_UNKNOWN
m_ImageList
->
Add
(
wx
Bitmap
(
directory_xpm
)
);
// TREE_DIRECTORY
m_ImageList
->
Add
(
Ki
Bitmap
(
kicad_icon_small_xpm
)
);
// TREE_PROJECT
m_ImageList
->
Add
(
Ki
Bitmap
(
eeschema_xpm
)
);
// TREE_SCHEMA
m_ImageList
->
Add
(
Ki
Bitmap
(
pcbnew_xpm
)
);
// TREE_PCB
m_ImageList
->
Add
(
Ki
Bitmap
(
icon_gerbview_small_xpm
)
);
// TREE_GERBER
m_ImageList
->
Add
(
Ki
Bitmap
(
datasheet_xpm
)
);
// TREE_PDF
m_ImageList
->
Add
(
Ki
Bitmap
(
icon_txt_xpm
)
);
// TREE_TXT
m_ImageList
->
Add
(
Ki
Bitmap
(
icon_cvpcb_small_xpm
)
);
// TREE_NET
m_ImageList
->
Add
(
Ki
Bitmap
(
unknown_xpm
)
);
// TREE_UNKNOWN
m_ImageList
->
Add
(
Ki
Bitmap
(
directory_xpm
)
);
// TREE_DIRECTORY
SetImageList
(
m_ImageList
);
}
...
...
kicad/commandframe.cpp
View file @
82d5ed1e
...
...
@@ -72,23 +72,23 @@ void RIGHT_KM_FRAME::CreateCommandToolbar( void )
{
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
=
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
=
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
=
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
=
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
\
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"
)
);
}
...
...
kicad/menubar.cpp
View file @
82d5ed1e
...
...
@@ -275,17 +275,17 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
// New
m_HToolBar
->
AddTool
(
ID_NEW_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
new_project_xpm
),
Ki
Bitmap
(
new_project_xpm
),
_
(
"Start a new project"
)
);
// Load
m_HToolBar
->
AddTool
(
ID_LOAD_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
open_project_xpm
),
Ki
Bitmap
(
open_project_xpm
),
_
(
"Load existing project"
)
);
// Save
m_HToolBar
->
AddTool
(
ID_SAVE_PROJECT
,
wxEmptyString
,
wx
Bitmap
(
save_project_xpm
),
Ki
Bitmap
(
save_project_xpm
),
_
(
"Save current project"
)
);
// Separator
...
...
@@ -293,7 +293,7 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
// Archive
m_HToolBar
->
AddTool
(
ID_SAVE_AND_ZIP_FILES
,
wxEmptyString
,
wx
Bitmap
(
zip_xpm
),
Ki
Bitmap
(
zip_xpm
),
_
(
"Archive all project files"
)
);
// Separator
...
...
@@ -301,7 +301,7 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
// Refresh project tree
m_HToolBar
->
AddTool
(
ID_PROJECT_TREE_REFRESH
,
wxEmptyString
,
wx
Bitmap
(
reload_xpm
),
Ki
Bitmap
(
reload_xpm
),
_
(
"Refresh project tree"
)
);
// Create m_HToolBar
...
...
pcbnew/tool_modedit.cpp
View file @
82d5ed1e
...
...
@@ -31,83 +31,83 @@ void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
// Set up toolbar
m_HToolBar
->
AddTool
(
ID_MODEDIT_SELECT_CURRENT_LIB
,
wxEmptyString
,
wx
Bitmap
(
open_library_xpm
),
Ki
Bitmap
(
open_library_xpm
),
_
(
"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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
m_HToolBar
->
AddSeparator
();
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
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"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_EDIT_MODULE_PROPERTIES
,
wxEmptyString
,
wx
Bitmap
(
module_options_xpm
),
Ki
Bitmap
(
module_options_xpm
),
_
(
"Module properties"
)
);
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"
)
);
m_HToolBar
->
AddSeparator
();
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
);
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
);
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
);
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
->
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"
)
);
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_MODEDIT_CHECK
,
wxEmptyString
,
wx
Bitmap
(
module_check_xpm
),
Ki
Bitmap
(
module_check_xpm
),
_
(
"Check module"
)
);
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
...
...
@@ -123,37 +123,37 @@ void FOOTPRINT_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// 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
);
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
);
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
);
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
);
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
);
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
);
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"
),
wxITEM_CHECK
);
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
);
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"
),
wxITEM_CHECK
);
...
...
@@ -168,36 +168,36 @@ void FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar()
// Create options tool bar.
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
);
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
);
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
);
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
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change Cursor Shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
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
);
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
);
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
);
m_OptionsToolBar
->
Realize
();
...
...
pcbnew/tool_pcb.cpp
View file @
82d5ed1e
...
...
@@ -191,66 +191,66 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
m_HToolBar
->
SetRows
(
1
);
// 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"
)
);
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"
)
);
m_HToolBar
->
AddTool
(
ID_SAVE_BOARD
,
wxEmptyString
,
wx
Bitmap
(
save_xpm
),
m_HToolBar
->
AddTool
(
ID_SAVE_BOARD
,
wxEmptyString
,
Ki
Bitmap
(
save_xpm
),
_
(
"Save board"
)
);
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"
)
);
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"
)
);
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"
)
);
#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" ) );
m_HToolBar->AddTool( wxID_PASTE, wxEmptyString,
wx
Bitmap( paste_xpm ),
m_HToolBar->AddTool( wxID_PASTE, wxEmptyString,
Ki
Bitmap( paste_xpm ),
_( "Paste" ) );
#endif
m_HToolBar
->
AddSeparator
();
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
);
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
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
wx
Bitmap
(
print_button
),
m_HToolBar
->
AddTool
(
wxID_PRINT
,
wxEmptyString
,
Ki
Bitmap
(
print_button
),
_
(
"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)"
)
);
m_HToolBar
->
AddSeparator
();
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
);
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
);
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
);
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
();
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
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
wx
Bitmap
(
netlist_xpm
),
m_HToolBar
->
AddTool
(
ID_GET_NETLIST
,
wxEmptyString
,
Ki
Bitmap
(
netlist_xpm
),
_
(
"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"
)
);
m_HToolBar
->
AddSeparator
();
...
...
@@ -267,16 +267,16 @@ void PCB_EDIT_FRAME::ReCreateHToolbar()
*
LayerPairBitmap
,
SEL_LAYER_HELP
);
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"
),
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
);
// Fast call to FreeROUTE Web Bases router
m_HToolBar
->
AddSeparator
();
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"
)
);
m_HToolBar
->
AddSeparator
();
...
...
@@ -295,65 +295,65 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
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
);
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
);
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
);
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
);
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
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
wxEmptyString
,
wx
Bitmap
(
cursor_shape_xpm
),
Ki
Bitmap
(
cursor_shape_xpm
),
_
(
"Change cursor shape"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_RATSNEST
,
wxEmptyString
,
wx
Bitmap
(
general_ratsnet_xpm
),
Ki
Bitmap
(
general_ratsnet_xpm
),
_
(
"Show board ratsnest"
),
wxITEM_CHECK
);
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"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
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"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddSeparator
();
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"
)
);
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"
));
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"
)
);
m_OptionsToolBar
->
AddSeparator
();
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
);
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
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_TRACKS_SKETCH
,
wxEmptyString
,
wx
Bitmap
(
showtrack_xpm
),
Ki
Bitmap
(
showtrack_xpm
),
_
(
"Show tracks in outline mode"
),
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE
,
wxEmptyString
,
wx
Bitmap
(
palette_xpm
),
Ki
Bitmap
(
palette_xpm
),
_
(
"Enable high contrast display mode"
),
wxITEM_CHECK
);
...
...
@@ -361,12 +361,12 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
m_OptionsToolBar
->
AddSeparator
();
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_MANAGE_LAYERS_VERTICAL_TOOLBAR
,
wxEmptyString
,
wx
Bitmap
(
layers_manager_xpm
),
Ki
Bitmap
(
layers_manager_xpm
),
HELP_SHOW_HIDE_LAYERMANAGER
,
wxITEM_CHECK
);
m_OptionsToolBar
->
AddTool
(
ID_TB_OPTIONS_SHOW_EXTRA_VERTICAL_TOOLBAR_MICROWAVE
,
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)"
),
wxITEM_CHECK
);
...
...
@@ -388,57 +388,57 @@ void PCB_EDIT_FRAME::ReCreateVToolbar()
m_VToolBar
=
new
EDA_TOOLBAR
(
TOOLBAR_TOOL
,
this
,
ID_V_TOOLBAR
,
false
);
// 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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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
);
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"
),
wxITEM_CHECK
);
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"
),
wxITEM_CHECK
);
...
...
@@ -460,26 +460,26 @@ void PCB_EDIT_FRAME::ReCreateMicrowaveVToolbar()
// Set up toolbar
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"
)
);
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"
)
);
m_AuxVToolBar
->
AddSeparator
();
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"
)
);
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"
)
);
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"
)
);
m_AuxVToolBar
->
Realize
();
...
...
@@ -531,7 +531,7 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar()
// Creates box to display and choose strategy to handle tracks an vias sizes:
m_AuxiliaryToolBar
->
AddTool
(
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
wxEmptyString
,
wx
Bitmap
(
auto_track_width_xpm
),
Ki
Bitmap
(
auto_track_width_xpm
),
_
(
"Auto track width: when starting on \
an existing track use its width
\n
otherwise, use current width setting"
),
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