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
de9fb14f
Commit
de9fb14f
authored
May 16, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor updates
parent
26b20cad
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
4922 additions
and
5099 deletions
+4922
-5099
class_text-label.cpp
eeschema/class_text-label.cpp
+1
-1
dialog_eeschema_config.cpp
eeschema/dialog_eeschema_config.cpp
+0
-23
dialog_eeschema_config_fbp.cpp
eeschema/dialog_eeschema_config_fbp.cpp
+1
-12
dialog_eeschema_config_fbp.fbp
eeschema/dialog_eeschema_config_fbp.fbp
+1
-77
dialog_eeschema_config_fbp.h
eeschema/dialog_eeschema_config_fbp.h
+1
-3
eeconfig.cpp
eeschema/eeconfig.cpp
+2
-4
eelibs_read_libraryfiles.cpp
eeschema/eelibs_read_libraryfiles.cpp
+5
-11
onrightclick.cpp
eeschema/onrightclick.cpp
+4
-0
read_from_file_schematic_items_descriptions.cpp
eeschema/read_from_file_schematic_items_descriptions.cpp
+2
-2
schedit.cpp
eeschema/schedit.cpp
+9
-4
tool_sch.cpp
eeschema/tool_sch.cpp
+2
-2
id.h
include/id.h
+1
-0
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+4892
-4959
treeprj_frame.cpp
kicad/treeprj_frame.cpp
+1
-1
No files found.
eeschema/class_text-label.cpp
View file @
de9fb14f
...
...
@@ -512,7 +512,7 @@ bool SCH_TEXT::Save( FILE* aFile ) const
break
;
text
.
erase
(
i
,
1
);
text
.
insert
(
i
,
_
(
"
\\
n"
)
);
text
.
insert
(
i
,
wxT
(
"
\\
n"
)
);
}
if
(
fprintf
(
aFile
,
"Text Notes %-4d %-4d %-4d %-4d %s %d
\n
%s
\n
"
,
...
...
eeschema/dialog_eeschema_config.cpp
View file @
de9fb14f
...
...
@@ -93,26 +93,6 @@ void DIALOG_EESCHEMA_CONFIG::Init()
m_LibPathChanged
=
false
;
m_UserLibDirBufferImg
=
m_Parent
->
m_UserLibraryPath
;
// Init currently availlable netlist formats
wxArrayString
NetlistNameItems
;
NetlistNameItems
.
Add
(
wxT
(
"Pcbnew"
)
);
NetlistNameItems
.
Add
(
wxT
(
"OrcadPcb2"
)
);
NetlistNameItems
.
Add
(
wxT
(
"CadStar"
)
);
NetlistNameItems
.
Add
(
wxT
(
"Spice"
)
);
// Add extra neltlist format (using external converter)
msg
=
ReturnUserNetlistTypeName
(
true
);
while
(
!
msg
.
IsEmpty
()
)
{
NetlistNameItems
.
Add
(
msg
);
msg
=
ReturnUserNetlistTypeName
(
false
);
}
m_NetFormatBox
->
InsertItems
(
NetlistNameItems
,
0
);
if
(
m_Parent
->
m_NetlistFormat
>
(
int
)
m_NetFormatBox
->
GetCount
()
)
m_Parent
->
m_NetlistFormat
=
NET_TYPE_PCBNEW
;
m_NetFormatBox
->
SetSelection
(
m_Parent
->
m_NetlistFormat
-
NET_TYPE_PCBNEW
);
m_ListLibr
->
InsertItems
(
m_Parent
->
m_ComponentLibFiles
,
0
);
...
...
@@ -158,9 +138,6 @@ void DIALOG_EESCHEMA_CONFIG::OnCancelClick( wxCommandEvent& event )
void
DIALOG_EESCHEMA_CONFIG
::
OnOkClick
(
wxCommandEvent
&
event
)
/**************************************************************/
{
// Set new netlist format
m_Parent
->
m_NetlistFormat
=
m_NetFormatBox
->
GetSelection
()
+
NET_TYPE_PCBNEW
;
// Recreate the user lib path
if
(
m_LibPathChanged
)
{
...
...
eeschema/dialog_eeschema_config_fbp.cpp
View file @
de9fb14f
...
...
@@ -16,23 +16,12 @@ DIALOG_EESCHEMA_CONFIG_FBP::DIALOG_EESCHEMA_CONFIG_FBP( wxWindow* parent, wxWind
wxBoxSizer
*
bMainSizer
;
bMainSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxStaticBoxSizer
*
sbSizer5
;
sbSizer5
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"Default netlist format"
)
),
wxHORIZONTAL
);
m_NetFormatBox
=
new
wxListBox
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxSize
(
150
,
70
),
0
,
NULL
,
wxLB_NEEDED_SB
|
wxLB_SINGLE
);
sbSizer5
->
Add
(
m_NetFormatBox
,
0
,
wxALL
|
wxEXPAND
,
5
);
sbSizer5
->
Add
(
0
,
15
,
0
,
wxEXPAND
,
5
);
bMainSizer
->
Add
(
sbSizer5
,
0
,
wxALL
,
5
);
wxStaticBoxSizer
*
sbLibsChoiceSizer
;
sbLibsChoiceSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"Component library files"
)
),
wxHORIZONTAL
);
m_ListLibr
=
new
wxListBox
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
0
,
NULL
,
wxLB_HSCROLL
|
wxLB_NEEDED_SB
|
wxLB_SINGLE
);
m_ListLibr
->
SetToolTip
(
_
(
"List of active library files.
\n
Only library files in this list are loaded by Eeschema.
\n
The order of this list is important:
\n
Eeschema searchs for a given component using this list order priority."
)
);
m_ListLibr
->
SetMinSize
(
wxSize
(
400
,
9
0
)
);
m_ListLibr
->
SetMinSize
(
wxSize
(
400
,
25
0
)
);
sbLibsChoiceSizer
->
Add
(
m_ListLibr
,
1
,
wxALL
|
wxEXPAND
,
5
);
...
...
eeschema/dialog_eeschema_config_fbp.fbp
View file @
de9fb14f
...
...
@@ -75,82 +75,6 @@
<property
name=
"name"
>
bMainSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Default netlist format
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
sbSizer5
</property>
<property
name=
"orient"
>
wxHORIZONTAL
</property>
<property
name=
"permission"
>
none
</property>
<event
name=
"OnUpdateUI"
></event>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxListBox"
expanded=
"1"
>
<property
name=
"bg"
></property>
<property
name=
"choices"
></property>
<property
name=
"context_help"
></property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"font"
></property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
m_NetFormatBox
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
<property
name=
"size"
>
150,70
</property>
<property
name=
"style"
>
wxLB_NEEDED_SB|wxLB_SINGLE
</property>
<property
name=
"subclass"
></property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnListBox"
></event>
<event
name=
"OnListBoxDClick"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"spacer"
expanded=
"1"
>
<property
name=
"height"
>
15
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"width"
>
0
</property>
</object>
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
...
...
@@ -177,7 +101,7 @@
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"minimum_size"
>
400,
9
0
</property>
<property
name=
"minimum_size"
>
400,
25
0
</property>
<property
name=
"name"
>
m_ListLibr
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
...
...
eeschema/dialog_eeschema_config_fbp.h
View file @
de9fb14f
...
...
@@ -16,9 +16,9 @@
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/button.h>
#include <wx/statline.h>
#include <wx/dialog.h>
...
...
@@ -41,8 +41,6 @@ class DIALOG_EESCHEMA_CONFIG_FBP : public wxDialog
wxID_REMOVE_PATH
,
};
wxListBox
*
m_NetFormatBox
;
wxListBox
*
m_ListLibr
;
wxButton
*
m_buttonAddLib
;
wxButton
*
m_buttonIns
;
...
...
eeschema/eeconfig.cpp
View file @
de9fb14f
...
...
@@ -259,12 +259,10 @@ bool WinEDA_SchematicFrame::LoadProjectFile( const wxString& CfgFileName,
/* User library path takes precedent over default library search paths. */
wxGetApp
().
InsertLibraryPath
(
m_UserLibraryPath
,
1
);
// If the list is void, load the libraries "power.lib" and "device.lib"
/* If the list is void, force loadind the library "power.lib" that is the "standard" library for power symbols
*/
if
(
m_ComponentLibFiles
.
GetCount
()
==
0
)
{
m_ComponentLibFiles
.
Add
(
wxT
(
"power"
)
);
m_ComponentLibFiles
.
Add
(
wxT
(
"device"
)
);
}
if
(
frame
)
{
...
...
eeschema/eelibs_read_libraryfiles.cpp
View file @
de9fb14f
...
...
@@ -35,7 +35,7 @@ static wxString currentLibraryName;
/** Function LoadLibraryName
* Routine to load the given library name. FullLibName should hold full path
* of file name to open, while LibName should hold only its name.
* I
F
library already exists, it is NOT reloaded.
* I
f
library already exists, it is NOT reloaded.
* @return : new lib or NULL
*/
/****************************************************************************/
...
...
@@ -101,20 +101,16 @@ LibraryStruct* LoadLibraryName( WinEDA_DrawFrame* frame,
}
/******************************************/
/* Function LoadLibraries
* Clear all alredy loaded librries and load all librairies
/** Function LoadLibraries
* Clear all already loaded libraries and load all librairies
* given in frame->m_ComponentLibFiles
*/
/******************************************/
void
LoadLibraries
(
WinEDA_SchematicFrame
*
frame
)
{
wxFileName
fn
;
wxString
msg
,
tmp
;
unsigned
ii
,
iimax
=
frame
->
m_ComponentLibFiles
.
GetCount
();
frame
->
PrintMsg
(
_
(
"Loading schematic component libraries"
)
);
// Free the unwanted libraries (i.e. not in list) but keep the cache lib
LibraryStruct
*
nextlib
,
*
lib
=
g_LibraryList
;
...
...
@@ -143,10 +139,8 @@ void LoadLibraries( WinEDA_SchematicFrame* frame )
tmp
=
wxGetApp
().
FindLibraryPath
(
fn
);
if
(
!
tmp
)
{
msg
.
Printf
(
_
(
"Library file <%s> not found."
),
fn
.
GetName
().
c_str
()
);
wxMessageBox
(
msg
,
_
(
"Library Load Error"
),
wxOK
|
wxICON_ERROR
,
frame
);
msg
.
Printf
(
_
(
"Library file <%s> not found."
),
fn
.
GetName
().
c_str
()
);
wxMessageBox
(
msg
,
_
(
"Library Load Error"
),
wxOK
|
wxICON_ERROR
,
frame
);
continue
;
}
}
...
...
eeschema/onrightclick.cpp
View file @
de9fb14f
...
...
@@ -580,9 +580,13 @@ void AddMenusForHierchicalSheet( wxMenu* PopMenu, DrawSheetStruct* Sheet )
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_EDIT_SHEET
,
_
(
"Edit Sheet"
),
edit_sheet_xpm
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_RESIZE_SHEET
,
_
(
"Resize Sheet"
),
resize_sheet_xpm
);
PopMenu
->
AppendSeparator
();
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_IMPORT_GLABEL
,
_
(
"Import PinSheets"
),
import_hierarchical_label_xpm
);
if
(
Sheet
->
m_Label
)
// Sheet has pin labels, and can be cleaned
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_CLEANUP_SHEET
,
_
(
"Cleanup PinSheets"
),
options_pinsheet_xpm
);
PopMenu
->
AppendSeparator
();
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_SCH_DELETE
,
_
(
"Delete Sheet"
),
delete_sheet_xpm
);
}
}
...
...
eeschema/read_from_file_schematic_items_descriptions.cpp
View file @
de9fb14f
...
...
@@ -135,12 +135,12 @@ SCH_ITEM* ReadTextDescr( FILE* aFile,
wxString
val
=
CONV_FROM_UTF8
(
text
);
for
(;;)
{
int
i
=
val
.
find
(
_
(
"
\\
n"
));
int
i
=
val
.
find
(
wxT
(
"
\\
n"
));
if
(
i
==
wxNOT_FOUND
)
break
;
val
.
erase
(
i
,
2
);
val
.
insert
(
i
,
_
(
"
\n
"
));
val
.
insert
(
i
,
wxT
(
"
\n
"
));
}
SCH_TEXT
*
TextStruct
=
new
SCH_TEXT
(
pos
,
val
);
...
...
eeschema/schedit.cpp
View file @
de9fb14f
...
...
@@ -54,6 +54,7 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_POPUP_SCH_CLEANUP_SHEET
:
case
ID_POPUP_SCH_END_SHEET
:
case
ID_POPUP_SCH_RESIZE_SHEET
:
case
ID_POPUP_IMPORT_GLABEL
:
case
ID_POPUP_SCH_EDIT_PINSHEET
:
case
ID_POPUP_SCH_MOVE_PINSHEET
:
case
ID_POPUP_SCH_MOVE_ITEM_REQUEST
:
...
...
@@ -386,15 +387,19 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_POPUP_SCH_EDIT_SHEET
:
EditSheet
(
(
DrawSheetStruct
*
)
screen
->
GetCurItem
(),
&
dc
);
break
;
case
ID_POPUP_IMPORT_GLABEL
:
if
(
screen
->
GetCurItem
()
&&
screen
->
GetCurItem
()
->
Type
()
==
DRAW_SHEET_STRUCT_TYPE
)
GetScreen
()
->
SetCurItem
(
Import_PinSheet
(
(
DrawSheetStruct
*
)
screen
->
GetCurItem
(),
&
dc
)
);
break
;
case
ID_POPUP_SCH_CLEANUP_SHEET
:
(
(
DrawSheetStruct
*
)
screen
->
GetCurItem
()
)
->
CleanupSheet
(
this
,
true
);
if
(
screen
->
GetCurItem
()
&&
screen
->
GetCurItem
()
->
Type
()
==
DRAW_SHEET_STRUCT_TYPE
)
(
(
DrawSheetStruct
*
)
screen
->
GetCurItem
()
)
->
CleanupSheet
(
this
,
true
);
break
;
case
ID_POPUP_SCH_EDIT_PINSHEET
:
Edit_PinSheet
(
(
Hierarchical_PIN_Sheet_Struct
*
)
screen
->
GetCurItem
(),
&
dc
);
Edit_PinSheet
(
(
Hierarchical_PIN_Sheet_Struct
*
)
screen
->
GetCurItem
(),
&
dc
);
break
;
case
ID_POPUP_SCH_MOVE_PINSHEET
:
...
...
eeschema/tool_sch.cpp
View file @
de9fb14f
...
...
@@ -201,9 +201,9 @@ void WinEDA_SchematicFrame::ReCreateVToolbar()
wxBitmap
(
add_hierarchical_subsheet_xpm
),
_
(
"Place hierarchical sheet"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_
IMPORT_GLABEL_BUTT
,
wxEmptyString
,
m_VToolBar
->
AddTool
(
ID_
POPUP_IMPORT_GLABEL
,
wxEmptyString
,
wxBitmap
(
import_hierarchical_label_xpm
),
_
(
"Place a pin sheet , imported from
a
hierarchical label in sheet"
),
_
(
"Place a pin sheet , imported from
the corresponding
hierarchical label in sheet"
),
wxITEM_CHECK
);
m_VToolBar
->
AddTool
(
ID_SHEET_LABEL_BUTT
,
wxEmptyString
,
...
...
include/id.h
View file @
de9fb14f
...
...
@@ -289,6 +289,7 @@ enum main_id {
ID_POPUP_SCH_CLEANUP_SHEET
,
ID_POPUP_SCH_EDIT_PINSHEET
,
ID_POPUP_SCH_MOVE_PINSHEET
,
ID_POPUP_IMPORT_GLABEL
,
ID_POPUP_SCH_GENERIC_ORIENT_CMP
,
ID_POPUP_SCH_GENERIC_EDIT_CMP
,
ID_POPUP_SCH_EDIT_VALUE_CMP
,
...
...
internat/fr/kicad.mo
View file @
de9fb14f
No preview for this file type
internat/fr/kicad.po
View file @
de9fb14f
This diff is collapsed.
Click to expand it.
kicad/treeprj_frame.cpp
View file @
de9fb14f
...
...
@@ -985,7 +985,7 @@ void WinEDA_PrjFrame::OnRight( wxTreeEvent& Event )
{
// Grrrr! wxMenu does not have any copy constructor !! (do it by hand)
wxMenuItem
*
src
=
list
[
i
];
wxString
label
=
src
->
Get
Label
();
wxString
label
=
src
->
Get
ItemLabelText
();
// for obscure reasons, the & is translated into _ ... so replace it
label
.
Replace
(
wxT
(
"_"
),
wxT
(
"&"
),
true
);
...
...
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