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
7d85aa92
Commit
7d85aa92
authored
Dec 18, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor issues.
parent
b8eba35c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
53 deletions
+29
-53
basicframe.cpp
common/basicframe.cpp
+3
-5
libeditframe.cpp
eeschema/libeditframe.cpp
+3
-0
class_DCodeSelectionbox.cpp
gerbview/class_DCodeSelectionbox.cpp
+4
-4
class_DCodeSelectionbox.h
gerbview/class_DCodeSelectionbox.h
+2
-2
menubar.cpp
kicad/menubar.cpp
+16
-35
preferences.cpp
kicad/preferences.cpp
+1
-7
No files found.
common/basicframe.cpp
View file @
7d85aa92
...
...
@@ -93,11 +93,9 @@ void WinEDA_BasicFrame::SetLanguage( wxCommandEvent& event )
int
id
=
event
.
GetId
();
wxGetApp
().
SetLanguageIdentifier
(
id
);
if
(
wxGetApp
().
SetLanguage
()
)
{
ReCreateMenuBar
();
Refresh
();
}
wxGetApp
().
SetLanguage
();
ReCreateMenuBar
();
GetMenuBar
()
->
Refresh
();
}
...
...
eeschema/libeditframe.cpp
View file @
7d85aa92
...
...
@@ -958,6 +958,9 @@ void LIB_EDIT_FRAME::SetLanguage( wxCommandEvent& event )
{
WinEDA_BasicFrame
::
SetLanguage
(
event
);
SCH_EDIT_FRAME
*
parent
=
(
SCH_EDIT_FRAME
*
)
GetParent
();
// Call parent->WinEDA_BasicFrame::SetLanguage and NOT
// parent->SetLanguage because parent->SetLanguage call
// LIB_EDIT_FRAME::SetLanguage
parent
->
WinEDA_BasicFrame
::
SetLanguage
(
event
);
}
...
...
gerbview/class_DCodeSelectionbox.cpp
View file @
7d85aa92
...
...
@@ -11,14 +11,14 @@
#include "class_DCodeSelectionbox.h"
/***************************************/
/*
ListBox handling the footprint
list */
/***************************************/
/***************************************
****
/
/*
Helper class for displaying DCodes
list */
/***************************************
****
/
DCODE_SELECTION_BOX
::
DCODE_SELECTION_BOX
(
WinEDA_Toolbar
*
aParent
,
wxWindowID
aId
,
const
wxPoint
&
aLocation
,
const
wxSize
&
aSize
,
const
wxArrayString
&
aChoices
)
:
wxC
hoice
(
aParent
,
aId
,
aLocation
,
aSize
,
aChoices
)
wxC
omboBox
(
aParent
,
aId
,
wxEmptyString
,
aLocation
,
aSize
,
aChoices
,
wxCB_READONLY
)
{
m_dcodeList
=
&
aChoices
;
}
...
...
gerbview/class_DCodeSelectionbox.h
View file @
7d85aa92
...
...
@@ -7,9 +7,9 @@
*/
// Define event type for DCODE_SELECTION_BOX
#define EVT_SELECT_DCODE EVT_C
HOICE
#define EVT_SELECT_DCODE EVT_C
OMBOBOX
class
DCODE_SELECTION_BOX
:
public
wxC
hoice
class
DCODE_SELECTION_BOX
:
public
wxC
omboBox
{
private
:
const
wxArrayString
*
m_dcodeList
;
...
...
kicad/menubar.cpp
View file @
7d85aa92
...
...
@@ -71,7 +71,7 @@ END_EVENT_TABLE()
void
WinEDA_MainFrame
::
ReCreateMenuBar
()
{
wxMenuItem
*
item
;
wxMenuBar
*
menuBar
=
Get
MenuBar
();
wxMenuBar
*
menuBar
=
new
wx
MenuBar
();
if
(
!
menuBar
)
menuBar
=
new
wxMenuBar
();
...
...
@@ -87,7 +87,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
// Files menu
wxMenu
*
filesMenu
=
new
wxMenu
;
/
* Open */
/
/ Open
item
=
new
wxMenuItem
(
filesMenu
,
ID_LOAD_PROJECT
,
_
(
"&Open
\t
Ctrl+O"
),
_
(
"Open an existing project"
)
);
...
...
@@ -97,7 +97,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
filesMenu
->
Append
(
item
);
/
* Open Recent submenu */
/
/ Open Recent submenu
wxMenu
*
openRecentMenu
=
new
wxMenu
();
wxGetApp
().
m_fileHistory
.
AddFilesToMenu
(
openRecentMenu
);
ADD_MENUITEM_WITH_HELP_AND_SUBMENU
(
filesMenu
,
openRecentMenu
,
...
...
@@ -105,7 +105,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
_
(
"Open a recent opened schematic project"
),
open_project_xpm
);
/
* New */
/
/ New
item
=
new
wxMenuItem
(
filesMenu
,
ID_NEW_PROJECT
,
_
(
"&New
\t
Ctrl+N"
),
_
(
"Start a new project"
)
);
...
...
@@ -125,10 +125,8 @@ void WinEDA_MainFrame::ReCreateMenuBar()
filesMenu
->
Append
(
item
);
/
* Separator */
/
/ Archive
filesMenu
->
AppendSeparator
();
/* Archive */
item
=
new
wxMenuItem
(
filesMenu
,
ID_SAVE_AND_ZIP_FILES
,
_
(
"&Archive"
),
_
(
"Archive project files in zip archive"
)
);
...
...
@@ -138,7 +136,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
filesMenu
->
Append
(
item
);
/
* Unarchive */
/
/ Unarchive
item
=
new
wxMenuItem
(
filesMenu
,
ID_READ_ZIP_ARCHIVE
,
_
(
"&Unarchive"
),
_
(
"Unarchive project files from zip file"
)
);
...
...
@@ -161,12 +159,10 @@ void WinEDA_MainFrame::ReCreateMenuBar()
/**
* Browse menu
*/
// Browse menu
wxMenu
*
browseMenu
=
new
wxMenu
();
/
* Text editor */
/
/ Text editor
item
=
new
wxMenuItem
(
browseMenu
,
ID_TO_EDITOR
,
_
(
"Text E&ditor"
),
_
(
"Open preferred text editor"
)
);
#if !defined( __WXMAC__ )
...
...
@@ -187,12 +183,10 @@ void WinEDA_MainFrame::ReCreateMenuBar()
/**
* Preferences menu
*/
// Preferences menu
wxMenu
*
PreferencesMenu
=
new
wxMenu
;
/
* Text editor */
/
/ Text editor
item
=
new
wxMenuItem
(
PreferencesMenu
,
ID_SELECT_PREFERED_EDITOR
,
_
(
"&Text Editor"
),
_
(
"Select your preferred text editor"
)
);
...
...
@@ -202,13 +196,10 @@ void WinEDA_MainFrame::ReCreateMenuBar()
PreferencesMenu
->
Append
(
item
);
/**
* PDF Viewer submenu
* System browser or user defined checkbox
*/
// PDF Viewer submenu:System browser or user defined checkbox
wxMenu
*
SubMenuPdfBrowserChoice
=
new
wxMenu
;
/
* Default */
/
/ Default
item
=
new
wxMenuItem
(
SubMenuPdfBrowserChoice
,
ID_SELECT_DEFAULT_PDF_BROWSER
,
_
(
"Default"
),
...
...
@@ -223,7 +214,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
SubMenuPdfBrowserChoice
->
Check
(
ID_SELECT_DEFAULT_PDF_BROWSER
,
wxGetApp
().
m_PdfBrowserIsDefault
);
/
* Favourite */
/
/ Favourite viewer
item
=
new
wxMenuItem
(
SubMenuPdfBrowserChoice
,
ID_SELECT_PREFERED_PDF_BROWSER
,
_
(
"Favourite"
),
...
...
@@ -258,11 +249,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
PreferencesMenu
->
AppendSeparator
();
wxGetApp
().
AddMenuLanguageList
(
PreferencesMenu
);
/**
* Help menu
*/
// Help menu
wxMenu
*
helpMenu
=
new
wxMenu
;
AddHelpVersionInfoMenuEntry
(
helpMenu
);
...
...
@@ -277,20 +264,14 @@ void WinEDA_MainFrame::ReCreateMenuBar()
helpMenu
->
Append
(
item
);
/* About on all platforms except WXMAC */
#if !defined( __WXMAC__ )
// About
helpMenu
->
AppendSeparator
();
item
=
new
wxMenuItem
(
helpMenu
,
ID_KICAD_ABOUT
,
_
(
"&About"
),
_
(
"About kicad project manager"
)
);
item
->
SetBitmap
(
info_xpm
);
helpMenu
->
Append
(
item
);
#endif
/* !defined( __WXMAC__ ) */
/**
* Create the menubar and append all submenus
*/
// Create the menubar and append all submenus
menuBar
->
Append
(
filesMenu
,
_
(
"&File"
)
);
menuBar
->
Append
(
browseMenu
,
_
(
"&Browse"
)
);
menuBar
->
Append
(
PreferencesMenu
,
_
(
"&Preferences"
)
);
...
...
kicad/preferences.cpp
View file @
7d85aa92
...
...
@@ -98,11 +98,5 @@ void WinEDA_MainFrame::OnSelectPreferredEditor( wxCommandEvent& event )
void
WinEDA_MainFrame
::
SetLanguage
(
wxCommandEvent
&
event
)
{
wxGetApp
().
SetLanguageIdentifier
(
event
.
GetId
()
);
if
(
wxGetApp
().
SetLanguage
()
)
{
wxLogDebug
(
wxT
(
"Recreating menu bar due to language change."
)
);
ReCreateMenuBar
();
Refresh
();
}
WinEDA_BasicFrame
::
SetLanguage
(
event
);
}
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