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
28e63562
Commit
28e63562
authored
Feb 21, 2014
by
Fabrizio Tappero
Committed by
jean-pierre charras
Feb 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch from Fabrizio Tappero: better kicad and eeschema menu entries and labels, which minor fixes.
parent
b26d1b61
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
118 additions
and
110 deletions
+118
-110
.bzrignore
.bzrignore
+1
-0
HOW_TO_CONTRIBUTE.txt
Documentation/HOW_TO_CONTRIBUTE.txt
+24
-16
help_common_strings.h
eeschema/help_common_strings.h
+32
-33
menubar.cpp
eeschema/menubar.cpp
+28
-28
commandframe.cpp
kicad/commandframe.cpp
+8
-8
menubar.cpp
kicad/menubar.cpp
+25
-25
No files found.
.bzrignore
View file @
28e63562
boost_root
boost_root
.downloads-by-cmake
.downloads-by-cmake
Build
common/netlist_keywords.*
common/netlist_keywords.*
common/netlist_lexer.h
common/netlist_lexer.h
common/pcb_plot_params_lexer.h
common/pcb_plot_params_lexer.h
...
...
HOW_TO_CONTRIBUTE.txt
→
Documentation/
HOW_TO_CONTRIBUTE.txt
View file @
28e63562
...
@@ -11,32 +11,40 @@ Contribute to KiCad (under Linux)
...
@@ -11,32 +11,40 @@ Contribute to KiCad (under Linux)
2) initialize Bazaar:
2) initialize Bazaar:
bzr whoami "John Doe <john.doe@gmail.com>"
bzr whoami "John Doe <john.doe@gmail.com>"
3) get
LATEST KiCad source tree and name it, for instance, "kicad_john"
:
3) get
latest KiCad source tree
:
cd ~/
cd ~/
bzr branch lp:kicad kicad
_john
bzr branch lp:kicad kicad
.bzr
4) Read coding_style_policy.pdf, in <kicad_sources>/Documentation,
this should leave you with the folder kicad.bzr
4) Read coding_style_policy.pdf, in kicad.bzr/Documentation,
and other docs.
and other docs.
5) Modify/add source code.
5) create a local (branch) copy of the KiCad project
cd kicad_john
bzr branch ./kicad.bzr ./kicad.my_contrib
6) Modify/add source code in
cd kicad.my_contrib
gedit .......
gedit .......
if you need to create and add the file foo.cpp do so and:
bzr add foo.cpp
if you need to delete files:
bzr rm foo.cpp
6
) Compile:
7
) Compile:
cd kicad
_john
cd kicad
.my_contrib
mkdir build; cd build
mkdir build; cd build
cmake ../ -DCMAKE_BUILD_TYPE=Debug
cmake ../ -DCMAKE_BUILD_TYPE=Debug
to build a debug version
to build a debug version
or
or
cmake ../ -DCMAKE_BUILD_TYPE=Release
cmake ../ -DCMAKE_BUILD_TYPE=Release
to build a release version
to build a release version
make
make
-j8
7) Repeat step 5 and 6
until satisfied.
8) Repeat step 6 and 7
until satisfied.
8) Create a patch:
9) Create a patch file:
in kicad_john:
cd kicad.my_contrib
if some files are added: bzr add [FILE...]
bzr diff > my_changes.patch
bzr diff > my_changes.patch
9) Send the patch file "my_changes.patch" to the KiCad developers mailing list.
9) Send the patch file "my_changes.patch" to the KiCad developers mailing list.
...
...
eeschema/help_common_strings.h
View file @
28e63562
...
@@ -13,55 +13,54 @@
...
@@ -13,55 +13,54 @@
*/
*/
// Common to schematic editor and component editor
// Common to schematic editor and component editor
#define HELP_UNDO _( "Undo last
edition
" )
#define HELP_UNDO _( "Undo last
command
" )
#define HELP_REDO _( "Redo
the last undo
command" )
#define HELP_REDO _( "Redo
last
command" )
#define HELP_ZOOM_IN _( "Zoom in" )
#define HELP_ZOOM_IN _( "Zoom in" )
#define HELP_ZOOM_OUT _( "Zoom out" )
#define HELP_ZOOM_OUT _( "Zoom out" )
#define HELP_ZOOM_FIT _( "Fit
the schematic sheet on the
screen" )
#define HELP_ZOOM_FIT _( "Fit
schematic sheet on
screen" )
#define HELP_ZOOM_REDRAW _( "Redraw
the
schematic view" )
#define HELP_ZOOM_REDRAW _( "Redraw schematic view" )
#define HELP_DELETE_ITEMS _( "Delete item
s
" )
#define HELP_DELETE_ITEMS _( "Delete item" )
// Schematic editor:
// Schematic editor:
#define HELP_FIND _( "Find components and text
s
" )
#define HELP_FIND _( "Find components and text" )
#define HELP_REPLACE _( "Find and replace text in schematic items" )
#define HELP_REPLACE _( "Find and replace text in schematic items" )
#define HELP_PLACE_COMPONENTS _( "Place
a
component" )
#define HELP_PLACE_COMPONENTS _( "Place component" )
#define HELP_PLACE_POWERPORT _( "Place
a
power port" )
#define HELP_PLACE_POWERPORT _( "Place power port" )
#define HELP_PLACE_WIRE _( "Place
a
wire" )
#define HELP_PLACE_WIRE _( "Place wire" )
#define HELP_PLACE_BUS _( "Place
a
bus" )
#define HELP_PLACE_BUS _( "Place bus" )
#define HELP_PLACE_WIRE2BUS_ENTRY _( "Place
a
wire to bus entry" )
#define HELP_PLACE_WIRE2BUS_ENTRY _( "Place wire to bus entry" )
#define HELP_PLACE_BUS2BUS_ENTRY _( "Place
a
bus to bus entry" )
#define HELP_PLACE_BUS2BUS_ENTRY _( "Place bus to bus entry" )
#define HELP_PLACE_NC_FLAG _( "Place
a no connect
flag" )
#define HELP_PLACE_NC_FLAG _( "Place
not-connected
flag" )
#define HELP_PLACE_NETLABEL _( "Place
a net name (local label)
" )
#define HELP_PLACE_NETLABEL _( "Place
net name - local label
" )
#define HELP_PLACE_GLOBALLABEL \
#define HELP_PLACE_GLOBALLABEL \
_(\
_(\
"Place
a global label.\nWarning: all global labels with the same name are connected in whole hierarchy
" )
"Place
global label.\nWarning: inside global hierarchy , all global labels with same name are connected
" )
#define HELP_PLACE_HIER_LABEL \
#define HELP_PLACE_HIER_LABEL \
_( "Place a hierarchical label.
This l
abel will be seen as a hierarchical pin in the sheet symbol" )
_( "Place a hierarchical label.
L
abel will be seen as a hierarchical pin in the sheet symbol" )
#define HELP_PLACE_JUNCTION _( "Place
a
junction" )
#define HELP_PLACE_JUNCTION _( "Place junction" )
#define HELP_PLACE_SHEET _( "Create
a
hierarchical sheet" )
#define HELP_PLACE_SHEET _( "Create hierarchical sheet" )
#define HELP_IMPORT_SHEETPIN _( \
#define HELP_IMPORT_SHEETPIN _( \
"Place
a hierarchical pin imported from the corresponding hierarchical label in sheet
" )
"Place
hierarchical pin imported from the corresponding hierarchical label
" )
#define HELP_PLACE_SHEETPIN _( "Place
a
hierarchical pin in sheet" )
#define HELP_PLACE_SHEETPIN _( "Place hierarchical pin in sheet" )
#define HELP_PLACE_GRAPHICLINES _( "Place graphic lines or polygons" )
#define HELP_PLACE_GRAPHICLINES _( "Place graphic lines or polygons" )
#define HELP_PLACE_GRAPHICTEXTS _( "Place graphic text
(comment)
" )
#define HELP_PLACE_GRAPHICTEXTS _( "Place graphic text
/comment
" )
#define HELP_ANNOTATE _( "Annotate
the components in the schematic
" )
#define HELP_ANNOTATE _( "Annotate
schematic components
" )
#define HELP_RUN_LIB_EDITOR _( "Library
editor - Create and
edit components" )
#define HELP_RUN_LIB_EDITOR _( "Library
Editor - Create/
edit components" )
#define HELP_RUN_LIB_VIEWER _( "Library
b
rowser - Browse components" )
#define HELP_RUN_LIB_VIEWER _( "Library
B
rowser - Browse components" )
#define HELP_GENERATE_BOM _( "Generate bill of materials and/or cross references" )
#define HELP_GENERATE_BOM _( "Generate bill of materials and/or cross references" )
#define HELP_IMPORT_FOOTPRINTS \
#define HELP_IMPORT_FOOTPRINTS \
_( "Import the footprint selection from CvPcb (the .cmp file)\n\
_( "Back-import component footprint fields via CvPcb .cmp file" )
in component footprint fields" )
// Component editor:
// Component editor:
#define HELP_ADD_PIN _( "Add pins to
the
component" )
#define HELP_ADD_PIN _( "Add pins to component" )
#define HELP_ADD_BODYTEXT _( "Add
graphic texts to the
component body" )
#define HELP_ADD_BODYTEXT _( "Add
text to
component body" )
#define HELP_ADD_BODYRECT _( "Add graphic rectangle
s to the
component body" )
#define HELP_ADD_BODYRECT _( "Add graphic rectangle
to
component body" )
#define HELP_ADD_BODYCIRCLE _( "Add circles to
the
component body" )
#define HELP_ADD_BODYCIRCLE _( "Add circles to component body" )
#define HELP_ADD_BODYARC _( "Add arcs to
the
component body" )
#define HELP_ADD_BODYARC _( "Add arcs to component body" )
#define HELP_ADD_BODYPOLYGON _( "Add lines and polygons to
the
component body" )
#define HELP_ADD_BODYPOLYGON _( "Add lines and polygons to component body" )
#define HELP_PLACE_GRAPHICIMAGES _("Add
a
bitmap image")
#define HELP_PLACE_GRAPHICIMAGES _("Add bitmap image")
eeschema/menubar.cpp
View file @
28e63562
/*
/*
* This program source code file is part of KiCad, a free EDA CAD application.
* This program source code file is part of KiCad, a free EDA CAD application.
*
*
* Copyright (C) 20
07 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
* Copyright (C) 20
14 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2009-201
1
Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 2009-201
4
Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-201
1
KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-201
4
KiCad Developers, see AUTHORS.txt for contributors.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
...
@@ -66,15 +66,15 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -66,15 +66,15 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
// New
// New
AddMenuItem
(
fileMenu
,
AddMenuItem
(
fileMenu
,
ID_NEW_PROJECT
,
ID_NEW_PROJECT
,
_
(
"&New"
),
_
(
"&New
Schematic Project
"
),
_
(
"
New schematic projec
t"
),
_
(
"
Clear current schematic hierarchy and start a new schematic root shee
t"
),
KiBitmap
(
new_xpm
)
);
KiBitmap
(
new_xpm
)
);
// Open
// Open
text
=
AddHotkeyName
(
_
(
"&Open"
),
s_Schematic_Hokeys_Descr
,
HK_LOAD_SCH
);
text
=
AddHotkeyName
(
_
(
"&Open
Schematic Sheet
"
),
s_Schematic_Hokeys_Descr
,
HK_LOAD_SCH
);
AddMenuItem
(
fileMenu
,
AddMenuItem
(
fileMenu
,
ID_LOAD_PROJECT
,
text
,
ID_LOAD_PROJECT
,
text
,
_
(
"Open an existing schematic
projec
t"
),
_
(
"Open an existing schematic
shee
t"
),
KiBitmap
(
open_document_xpm
)
);
KiBitmap
(
open_document_xpm
)
);
// Open Recent submenu
// Open Recent submenu
...
@@ -95,19 +95,19 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -95,19 +95,19 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
// Import
// Import
AddMenuItem
(
fileMenu
,
AddMenuItem
(
fileMenu
,
ID_APPEND_PROJECT
,
_
(
"&Append Schematic"
),
ID_APPEND_PROJECT
,
_
(
"&Append Schematic
Sheet
"
),
_
(
"Append
another schematic project to the current loaded schematic
"
),
_
(
"Append
schematic sheet to current project
"
),
KiBitmap
(
open_document_xpm
)
);
KiBitmap
(
open_document_xpm
)
);
// Separator
// Separator
fileMenu
->
AppendSeparator
();
fileMenu
->
AppendSeparator
();
// Save schematic project
// Save schematic project
text
=
AddHotkeyName
(
_
(
"&Save
Whole
Schematic Project"
),
text
=
AddHotkeyName
(
_
(
"&Save Schematic Project"
),
s_Schematic_Hokeys_Descr
,
HK_SAVE_SCH
);
s_Schematic_Hokeys_Descr
,
HK_SAVE_SCH
);
AddMenuItem
(
fileMenu
,
AddMenuItem
(
fileMenu
,
ID_SAVE_PROJECT
,
text
,
ID_SAVE_PROJECT
,
text
,
_
(
"Save all sheets in
the
schematic project"
),
_
(
"Save all sheets in schematic project"
),
KiBitmap
(
save_project_xpm
)
);
KiBitmap
(
save_project_xpm
)
);
// Save current sheet
// Save current sheet
...
@@ -131,14 +131,14 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -131,14 +131,14 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
AddMenuItem
(
fileMenu
,
AddMenuItem
(
fileMenu
,
ID_SHEET_SET
,
ID_SHEET_SET
,
_
(
"Pa&ge Settings"
),
_
(
"Pa&ge Settings"
),
_
(
"Setti
gns for page size and information
"
),
_
(
"Setti
ng for sheet size and frame references
"
),
KiBitmap
(
sheetset_xpm
)
);
KiBitmap
(
sheetset_xpm
)
);
// Print
// Print
AddMenuItem
(
fileMenu
,
AddMenuItem
(
fileMenu
,
wxID_PRINT
,
wxID_PRINT
,
_
(
"Pri&nt"
),
_
(
"Pri&nt"
),
_
(
"Print schematic"
),
_
(
"Print schematic
sheet
"
),
KiBitmap
(
print_button_xpm
)
);
KiBitmap
(
print_button_xpm
)
);
#ifdef __WINDOWS__ // __WINDOWS__
#ifdef __WINDOWS__ // __WINDOWS__
...
@@ -259,8 +259,8 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -259,8 +259,8 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
// Hierarchy
// Hierarchy
AddMenuItem
(
viewMenu
,
AddMenuItem
(
viewMenu
,
ID_HIERARCHY
,
ID_HIERARCHY
,
_
(
"
&Hierarchy
"
),
_
(
"
Show &Hierarchical Navigator
"
),
_
(
"Navigate
schematic hierarchy
"
),
_
(
"Navigate
hierarchical sheets
"
),
KiBitmap
(
hierarchy_nav_xpm
)
);
KiBitmap
(
hierarchy_nav_xpm
)
);
// Redraw
// Redraw
...
@@ -399,15 +399,15 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -399,15 +399,15 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
// Library
// Library
AddMenuItem
(
preferencesMenu
,
AddMenuItem
(
preferencesMenu
,
ID_CONFIG_REQ
,
ID_CONFIG_REQ
,
_
(
"
&Library
"
),
_
(
"
Set &Library Path
"
),
_
(
"
L
ibrary preferences"
),
_
(
"
Set l
ibrary preferences"
),
KiBitmap
(
library_xpm
)
);
KiBitmap
(
library_xpm
)
);
// Colors
// Colors
AddMenuItem
(
preferencesMenu
,
AddMenuItem
(
preferencesMenu
,
ID_COLORS_SETUP
,
ID_COLORS_SETUP
,
_
(
"
&Colors
"
),
_
(
"
Set &Colors Scheme
"
),
_
(
"
C
olor preferences"
),
_
(
"
Set c
olor preferences"
),
KiBitmap
(
palette_xpm
)
);
KiBitmap
(
palette_xpm
)
);
// Options (Preferences on WXMAC)
// Options (Preferences on WXMAC)
...
@@ -417,8 +417,8 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -417,8 +417,8 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
#else
#else
AddMenuItem
(
preferencesMenu
,
AddMenuItem
(
preferencesMenu
,
wxID_PREFERENCES
,
wxID_PREFERENCES
,
_
(
"&Options"
),
_
(
"
Schematic Editor
&Options"
),
_
(
"Eeschema preferences"
),
_
(
"
Set
Eeschema preferences"
),
KiBitmap
(
preference_xpm
)
);
KiBitmap
(
preference_xpm
)
);
#endif // __WXMAC__
#endif // __WXMAC__
...
@@ -467,21 +467,21 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -467,21 +467,21 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
// Annotate
// Annotate
AddMenuItem
(
toolsMenu
,
AddMenuItem
(
toolsMenu
,
ID_GET_ANNOTATE
,
ID_GET_ANNOTATE
,
_
(
"&Annotate"
),
HELP_ANNOTATE
,
_
(
"&Annotate
Schematic
"
),
HELP_ANNOTATE
,
KiBitmap
(
annotate_xpm
)
);
KiBitmap
(
annotate_xpm
)
);
// ERC
// ERC
AddMenuItem
(
toolsMenu
,
AddMenuItem
(
toolsMenu
,
ID_GET_ERC
,
ID_GET_ERC
,
_
(
"E
R&C
"
),
_
(
"E
lectric Rules &Checker
"
),
_
(
"Perform electrical rule check"
),
_
(
"Perform electrical rule check"
),
KiBitmap
(
erc_xpm
)
);
KiBitmap
(
erc_xpm
)
);
// Generate netlist
// Generate netlist
AddMenuItem
(
toolsMenu
,
AddMenuItem
(
toolsMenu
,
ID_GET_NETLIST
,
ID_GET_NETLIST
,
_
(
"Generate &Netlist"
),
_
(
"Generate &Netlist
File
"
),
_
(
"Generate the component netlist"
),
_
(
"Generate the component netlist
file
"
),
KiBitmap
(
netlist_xpm
)
);
KiBitmap
(
netlist_xpm
)
);
// Generate bill of materials
// Generate bill of materials
...
@@ -517,14 +517,14 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
...
@@ -517,14 +517,14 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
// Contents
// Contents
AddMenuItem
(
helpMenu
,
AddMenuItem
(
helpMenu
,
wxID_HELP
,
wxID_HELP
,
_
(
"
&Contents
"
),
_
(
"
Eesc&hema Manual
"
),
_
(
"Open
the Eeschema handbook
"
),
_
(
"Open
Eeschema manual
"
),
KiBitmap
(
online_help_xpm
)
);
KiBitmap
(
online_help_xpm
)
);
AddMenuItem
(
helpMenu
,
AddMenuItem
(
helpMenu
,
wxID_INDEX
,
wxID_INDEX
,
_
(
"&Getting Started in KiCad"
),
_
(
"&Getting Started in KiCad"
),
_
(
"Open
the
\"
Getting Started in KiCad
\"
guide for beginners"
),
_
(
"Open
\"
Getting Started in KiCad
\"
guide for beginners"
),
KiBitmap
(
help_xpm
)
);
KiBitmap
(
help_xpm
)
);
// About Eeschema
// About Eeschema
...
...
kicad/commandframe.cpp
View file @
28e63562
...
@@ -64,27 +64,27 @@ void LAUNCHER_PANEL::CreateCommandToolbar( void )
...
@@ -64,27 +64,27 @@ void LAUNCHER_PANEL::CreateCommandToolbar( void )
wxBitmapButton
*
btn
;
wxBitmapButton
*
btn
;
btn
=
AddBitmapButton
(
ID_TO_EESCHEMA
,
KiBitmap
(
icon_eeschema_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_EESCHEMA
,
KiBitmap
(
icon_eeschema_xpm
)
);
btn
->
SetToolTip
(
_
(
"Eeschema
(Schematic editor)
"
)
);
btn
->
SetToolTip
(
_
(
"Eeschema
- Electronic schematic editor
"
)
);
btn
=
AddBitmapButton
(
ID_TO_CVPCB
,
KiBitmap
(
icon_cvpcb_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_CVPCB
,
KiBitmap
(
icon_cvpcb_xpm
)
);
btn
->
SetToolTip
(
_
(
"CvPcb
(Components to modules)
"
)
);
btn
->
SetToolTip
(
_
(
"CvPcb
- Associate footprint to components
"
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB
,
KiBitmap
(
icon_pcbnew_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB
,
KiBitmap
(
icon_pcbnew_xpm
)
);
btn
->
SetToolTip
(
_
(
"Pcbnew
(PCB editor)
"
)
);
btn
->
SetToolTip
(
_
(
"Pcbnew
- Printed circuit board editor
"
)
);
btn
=
AddBitmapButton
(
ID_TO_GERBVIEW
,
KiBitmap
(
icon_gerbview_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_GERBVIEW
,
KiBitmap
(
icon_gerbview_xpm
)
);
btn
->
SetToolTip
(
_
(
"GerbView
(Gerber viewer)
"
)
);
btn
->
SetToolTip
(
_
(
"GerbView
- Gerber viewer
"
)
);
btn
=
AddBitmapButton
(
ID_TO_BITMAP_CONVERTER
,
KiBitmap
(
icon_bitmap2component_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_BITMAP_CONVERTER
,
KiBitmap
(
icon_bitmap2component_xpm
)
);
btn
->
SetToolTip
(
_
(
btn
->
SetToolTip
(
_
(
"Bitmap2Component
(a tool to build a logo from a bitmap)
\n
\
"Bitmap2Component
- Convert bitmap images to Eeschema
\n
"
Creates a component (for Eeschema) or a footprint (for Pcbnew) that shows a B&W picture"
)
);
"or Pcbnew elements."
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB_CALCULATOR
,
KiBitmap
(
icon_pcbcalculator_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_PCB_CALCULATOR
,
KiBitmap
(
icon_pcbcalculator_xpm
)
);
btn
->
SetToolTip
(
_
(
"Pcb calculator
, the Swiss army knife..
."
)
);
btn
->
SetToolTip
(
_
(
"Pcb calculator
- Calculator for components, track width, etc
."
)
);
btn
=
AddBitmapButton
(
ID_TO_PL_EDITOR
,
KiBitmap
(
icon_pagelayout_editor_xpm
)
);
btn
=
AddBitmapButton
(
ID_TO_PL_EDITOR
,
KiBitmap
(
icon_pagelayout_editor_xpm
)
);
btn
->
SetToolTip
(
_
(
"
pl_editor, the page layout and title block shape
editor"
)
);
btn
->
SetToolTip
(
_
(
"
Pl editor - Worksheet layout
editor"
)
);
}
}
...
...
kicad/menubar.cpp
View file @
28e63562
...
@@ -123,8 +123,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -123,8 +123,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
// Open
// Open
AddMenuItem
(
fileMenu
,
AddMenuItem
(
fileMenu
,
ID_LOAD_PROJECT
,
ID_LOAD_PROJECT
,
_
(
"&Open
\t
Ctrl+O"
),
_
(
"&Open
Project
\t
Ctrl+O"
),
_
(
"Open
an
existing project"
),
_
(
"Open existing project"
),
KiBitmap
(
open_project_xpm
)
);
KiBitmap
(
open_project_xpm
)
);
// File history
// File history
...
@@ -134,25 +134,25 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -134,25 +134,25 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
AddMenuItem
(
fileMenu
,
openRecentMenu
,
AddMenuItem
(
fileMenu
,
openRecentMenu
,
wxID_ANY
,
wxID_ANY
,
_
(
"Open &Recent"
),
_
(
"Open &Recent"
),
_
(
"Open
a recent opened
schematic project"
),
_
(
"Open
recent
schematic project"
),
KiBitmap
(
open_project_xpm
)
);
KiBitmap
(
open_project_xpm
)
);
// New
// New
wxMenu
*
newMenu
=
new
wxMenu
();
wxMenu
*
newMenu
=
new
wxMenu
();
AddMenuItem
(
newMenu
,
ID_NEW_PROJECT
,
AddMenuItem
(
newMenu
,
ID_NEW_PROJECT
,
_
(
"&Blank
\t
Ctrl+N"
),
_
(
"&Blank
Project
\t
Ctrl+N"
),
_
(
"
Start a
blank project"
),
_
(
"
Create
blank project"
),
KiBitmap
(
new_project_xpm
)
);
KiBitmap
(
new_project_xpm
)
);
AddMenuItem
(
newMenu
,
ID_NEW_PROJECT_FROM_TEMPLATE
,
AddMenuItem
(
newMenu
,
ID_NEW_PROJECT_FROM_TEMPLATE
,
_
(
"
New
from &Template
\t
Ctrl+T"
),
_
(
"
Project
from &Template
\t
Ctrl+T"
),
_
(
"
Start a new project from a
template"
),
_
(
"
Create new project from
template"
),
KiBitmap
(
new_project_with_template_xpm
)
);
KiBitmap
(
new_project_with_template_xpm
)
);
AddMenuItem
(
fileMenu
,
newMenu
,
AddMenuItem
(
fileMenu
,
newMenu
,
wxID_ANY
,
wxID_ANY
,
_
(
"New"
),
_
(
"New"
),
_
(
"
Start a
new project"
),
_
(
"
Create
new project"
),
KiBitmap
(
new_project_xpm
)
);
KiBitmap
(
new_project_xpm
)
);
// Save
// Save
...
@@ -193,15 +193,15 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -193,15 +193,15 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
// Text editor
// Text editor
AddMenuItem
(
browseMenu
,
AddMenuItem
(
browseMenu
,
ID_TO_EDITOR
,
ID_TO_EDITOR
,
_
(
"Text E&ditor"
),
_
(
"
Open
Text E&ditor"
),
_
(
"Launch preferred text editor"
),
_
(
"Launch preferred text editor"
),
KiBitmap
(
editor_xpm
)
);
KiBitmap
(
editor_xpm
)
);
// View file
// View file
AddMenuItem
(
browseMenu
,
AddMenuItem
(
browseMenu
,
ID_BROWSE_AN_SELECT_FILE
,
ID_BROWSE_AN_SELECT_FILE
,
_
(
"&
View
File"
),
_
(
"&
Open Local
File"
),
_
(
"
View, read or edit file with a text editor
"
),
_
(
"
Edit local file
"
),
KiBitmap
(
browse_files_xpm
)
);
KiBitmap
(
browse_files_xpm
)
);
// Menu Preferences:
// Menu Preferences:
...
@@ -210,8 +210,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -210,8 +210,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
// Text editor
// Text editor
AddMenuItem
(
preferencesMenu
,
AddMenuItem
(
preferencesMenu
,
ID_SELECT_PREFERED_EDITOR
,
ID_SELECT_PREFERED_EDITOR
,
_
(
"&Text Editor"
),
_
(
"&
Set
Text Editor"
),
_
(
"Se
lec
t your preferred text editor"
),
_
(
"Set your preferred text editor"
),
KiBitmap
(
editor_xpm
)
);
KiBitmap
(
editor_xpm
)
);
// PDF Viewer submenu:System browser or user defined checkbox
// PDF Viewer submenu:System browser or user defined checkbox
...
@@ -219,8 +219,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -219,8 +219,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
// Default
// Default
AddMenuItem
(
SubMenuPdfBrowserChoice
,
ID_SELECT_DEFAULT_PDF_BROWSER
,
AddMenuItem
(
SubMenuPdfBrowserChoice
,
ID_SELECT_DEFAULT_PDF_BROWSER
,
_
(
"
&Default
"
),
_
(
"
System &Default PDF Viewer
"
),
_
(
"Use system default PDF viewer
used to browse datasheets
"
),
_
(
"Use system default PDF viewer"
),
KiBitmap
(
datasheet_xpm
),
KiBitmap
(
datasheet_xpm
),
wxITEM_CHECK
);
wxITEM_CHECK
);
SubMenuPdfBrowserChoice
->
Check
(
ID_SELECT_DEFAULT_PDF_BROWSER
,
SubMenuPdfBrowserChoice
->
Check
(
ID_SELECT_DEFAULT_PDF_BROWSER
,
...
@@ -228,8 +228,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -228,8 +228,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
// Favourite
// Favourite
AddMenuItem
(
SubMenuPdfBrowserChoice
,
ID_SELECT_PREFERED_PDF_BROWSER
,
AddMenuItem
(
SubMenuPdfBrowserChoice
,
ID_SELECT_PREFERED_PDF_BROWSER
,
_
(
"&Favourite"
),
_
(
"&Favourite
PDF Viewer
"
),
_
(
"Use
your favourite PDF viewer used to browse datasheets
"
),
_
(
"Use
favourite PDF viewer
"
),
KiBitmap
(
datasheet_xpm
),
KiBitmap
(
datasheet_xpm
),
wxITEM_CHECK
);
wxITEM_CHECK
);
SubMenuPdfBrowserChoice
->
Check
(
ID_SELECT_PREFERED_PDF_BROWSER
,
SubMenuPdfBrowserChoice
->
Check
(
ID_SELECT_PREFERED_PDF_BROWSER
,
...
@@ -239,8 +239,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -239,8 +239,8 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
// Append PDF Viewer submenu to preferences
// Append PDF Viewer submenu to preferences
AddMenuItem
(
SubMenuPdfBrowserChoice
,
AddMenuItem
(
SubMenuPdfBrowserChoice
,
ID_SELECT_PREFERED_PDF_BROWSER_NAME
,
ID_SELECT_PREFERED_PDF_BROWSER_NAME
,
_
(
"Se
lec
t &PDF Viewer"
),
_
(
"Set &PDF Viewer"
),
_
(
"Se
lect your favourite PDF viewer used to browse datasheets
"
),
_
(
"Se
t favourite PDF viewer
"
),
KiBitmap
(
datasheet_xpm
)
);
KiBitmap
(
datasheet_xpm
)
);
// PDF viewer submenu
// PDF viewer submenu
...
@@ -261,13 +261,13 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
...
@@ -261,13 +261,13 @@ void KICAD_MANAGER_FRAME::ReCreateMenuBar()
// Contents
// Contents
AddMenuItem
(
helpMenu
,
wxID_HELP
,
AddMenuItem
(
helpMenu
,
wxID_HELP
,
_
(
"
&Contents
"
),
_
(
"
KiCad Manual
"
),
_
(
"Open
the KiCad handbook
"
),
_
(
"Open
KiCad user manual
"
),
KiBitmap
(
online_help_xpm
)
);
KiBitmap
(
online_help_xpm
)
);
AddMenuItem
(
helpMenu
,
wxID_INDEX
,
AddMenuItem
(
helpMenu
,
wxID_INDEX
,
_
(
"&Getting Started in KiCad"
),
_
(
"&Getting Started in KiCad"
),
_
(
"Open
the
\"
Getting Started in KiCad
\"
guide for beginners"
),
_
(
"Open
\"
Getting Started in KiCad
\"
guide for beginners"
),
KiBitmap
(
help_xpm
)
);
KiBitmap
(
help_xpm
)
);
// Separator
// Separator
...
@@ -311,16 +311,16 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
...
@@ -311,16 +311,16 @@ void KICAD_MANAGER_FRAME::RecreateBaseHToolbar()
// New
// New
m_mainToolBar
->
AddTool
(
ID_NEW_PROJECT
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_NEW_PROJECT
,
wxEmptyString
,
KiBitmap
(
new_project_xpm
),
KiBitmap
(
new_project_xpm
),
_
(
"
Start a
new project"
)
);
_
(
"
Create
new project"
)
);
m_mainToolBar
->
AddTool
(
ID_NEW_PROJECT_FROM_TEMPLATE
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_NEW_PROJECT_FROM_TEMPLATE
,
wxEmptyString
,
KiBitmap
(
new_project_with_template_xpm
),
KiBitmap
(
new_project_with_template_xpm
),
_
(
"
Start a new project from a
template"
)
);
_
(
"
Create new project from
template"
)
);
// Load
// Load
m_mainToolBar
->
AddTool
(
ID_LOAD_PROJECT
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_LOAD_PROJECT
,
wxEmptyString
,
KiBitmap
(
open_project_xpm
),
KiBitmap
(
open_project_xpm
),
_
(
"
Load
existing project"
)
);
_
(
"
Open
existing project"
)
);
// Save
// Save
m_mainToolBar
->
AddTool
(
ID_SAVE_PROJECT
,
wxEmptyString
,
m_mainToolBar
->
AddTool
(
ID_SAVE_PROJECT
,
wxEmptyString
,
...
...
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