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
26af2661
Commit
26af2661
authored
Sep 22, 2008
by
jerryjacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(confirm.cpp) Get_Message frame caption added
parent
fcb27438
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
7308 additions
and
7251 deletions
+7308
-7251
about_kicad.cpp
common/about_kicad.cpp
+2
-1
confirm.cpp
common/confirm.cpp
+5
-2
edit_component_in_lib.cpp
eeschema/edit_component_in_lib.cpp
+2
-2
edit_component_in_schematic.cpp
eeschema/edit_component_in_schematic.cpp
+18
-18
libfield.cpp
eeschema/libfield.cpp
+9
-9
menubar.cpp
eeschema/menubar.cpp
+11
-3
sheetlab.cpp
eeschema/sheetlab.cpp
+1
-1
viewlib_frame.cpp
eeschema/viewlib_frame.cpp
+2
-2
common.h
include/common.h
+4
-1
kicad.mo
internat/nl/kicad.mo
+0
-0
kicad.po
internat/nl/kicad.po
+7240
-7198
treeprj_frame.cpp
kicad/treeprj_frame.cpp
+2
-2
edgemod.cpp
pcbnew/edgemod.cpp
+1
-1
gen_self.h
pcbnew/gen_self.h
+2
-2
librairi.cpp
pcbnew/librairi.cpp
+2
-2
modules.cpp
pcbnew/modules.cpp
+1
-1
muonde.cpp
pcbnew/muonde.cpp
+5
-5
surbrill.cpp
pcbnew/surbrill.cpp
+1
-1
No files found.
common/about_kicad.cpp
View file @
26af2661
...
@@ -96,8 +96,9 @@ void InitKiCadAbout( wxAboutDialogInfo& info )
...
@@ -96,8 +96,9 @@ void InitKiCadAbout( wxAboutDialogInfo& info )
/* Add developers */
/* Add developers */
info
.
AddDeveloper
(
wxT
(
"Jean-Pierre Charras <jean-pierre.charras@inpg.fr>"
)
);
info
.
AddDeveloper
(
wxT
(
"Jean-Pierre Charras <jean-pierre.charras@inpg.fr>"
)
);
info
.
AddDeveloper
(
SetMsg
(
wxT
(
"Jerry Jacobs <jerkejacobs@gmail.com>"
)
)
);
info
.
AddDeveloper
(
SetMsg
(
wxT
(
"Dick Hollenbeck <dick@softplc.com>"
)
)
);
info
.
AddDeveloper
(
SetMsg
(
wxT
(
"Dick Hollenbeck <dick@softplc.com>"
)
)
);
info
.
AddDeveloper
(
SetMsg
(
wxT
(
"
kbool library: http://boolean.klaasholwerda.nl/bool.html
"
)
)
);
info
.
AddDeveloper
(
SetMsg
(
wxT
(
"
KBool Library <http://boolean.klaasholwerda.nl/bool.html>
"
)
)
);
/* Add document writers */
/* Add document writers */
info
.
AddDocWriter
(
wxT
(
"Jean-Pierre Charras <jean-pierre.charras@inpg.fr>"
)
);
info
.
AddDocWriter
(
wxT
(
"Jean-Pierre Charras <jean-pierre.charras@inpg.fr>"
)
);
...
...
common/confirm.cpp
View file @
26af2661
...
@@ -124,7 +124,10 @@ bool IsOK( wxWindow* parent, const wxString& text )
...
@@ -124,7 +124,10 @@ bool IsOK( wxWindow* parent, const wxString& text )
/***********************************************************************/
/***********************************************************************/
int
Get_Message
(
const
wxString
&
title
,
wxString
&
buffer
,
wxWindow
*
frame
)
int
Get_Message
(
const
wxString
&
title
,
// The question
const
wxString
&
frame_caption
,
// The frame caption
wxString
&
buffer
,
// String input buffer
wxWindow
*
frame
)
/***********************************************************************/
/***********************************************************************/
/* Get a text from user
/* Get a text from user
...
@@ -142,7 +145,7 @@ int Get_Message( const wxString& title, wxString& buffer, wxWindow* frame )
...
@@ -142,7 +145,7 @@ int Get_Message( const wxString& title, wxString& buffer, wxWindow* frame )
if
(
buffer
)
if
(
buffer
)
default_text
=
buffer
;
default_text
=
buffer
;
message
=
wxGetTextFromUser
(
title
,
_
(
"Text:"
)
,
message
=
wxGetTextFromUser
(
title
,
frame_title
,
default_text
,
frame
);
default_text
,
frame
);
if
(
!
message
.
IsEmpty
()
)
if
(
!
message
.
IsEmpty
()
)
{
{
...
...
eeschema/edit_component_in_lib.cpp
View file @
26af2661
...
@@ -912,7 +912,7 @@ void WinEDA_PartPropertiesFrame::AddAliasOfPart( wxCommandEvent& WXUNUSED (event
...
@@ -912,7 +912,7 @@ void WinEDA_PartPropertiesFrame::AddAliasOfPart( wxCommandEvent& WXUNUSED (event
if
(
CurrentLibEntry
==
NULL
)
if
(
CurrentLibEntry
==
NULL
)
return
;
return
;
if
(
Get_Message
(
_
(
"New alias:"
),
Line
,
this
)
!=
0
)
if
(
Get_Message
(
_
(
"New alias:"
),
_
(
"Component Alias"
),
Line
,
this
)
!=
0
)
return
;
return
;
Line
.
Replace
(
wxT
(
" "
),
wxT
(
"_"
)
);
Line
.
Replace
(
wxT
(
" "
),
wxT
(
"_"
)
);
...
@@ -1186,7 +1186,7 @@ void WinEDA_PartPropertiesFrame::AddFootprintFilter( wxCommandEvent& WXUNUSED (e
...
@@ -1186,7 +1186,7 @@ void WinEDA_PartPropertiesFrame::AddFootprintFilter( wxCommandEvent& WXUNUSED (e
if
(
CurrentLibEntry
==
NULL
)
if
(
CurrentLibEntry
==
NULL
)
return
;
return
;
if
(
Get_Message
(
_
(
"New FootprintFilter:"
),
Line
,
this
)
!=
0
)
if
(
Get_Message
(
_
(
"New FootprintFilter:"
),
_
(
"Footprint Filter"
),
Line
,
this
)
!=
0
)
return
;
return
;
Line
.
Replace
(
wxT
(
" "
),
wxT
(
"_"
)
);
Line
.
Replace
(
wxT
(
" "
),
wxT
(
"_"
)
);
...
...
eeschema/edit_component_in_schematic.cpp
View file @
26af2661
...
@@ -332,9 +332,9 @@ void WinEDA_ComponentPropertiesFrame::ComponentPropertiesAccept( wxCommandEvent&
...
@@ -332,9 +332,9 @@ void WinEDA_ComponentPropertiesFrame::ComponentPropertiesAccept( wxCommandEvent&
{
{
if
(
FindLibPart
(
newname
.
GetData
(),
wxEmptyString
,
FIND_ALIAS
)
==
NULL
)
if
(
FindLibPart
(
newname
.
GetData
(),
wxEmptyString
,
FIND_ALIAS
)
==
NULL
)
{
{
wxString
m
sg
;
wxString
m
essage
;
m
sg
.
Printf
(
_
(
"Component [%s] not found!"
),
newname
.
GetData
()
);
m
essage
.
Printf
(
_
(
"Component [%s] not found!"
),
newname
.
GetData
()
);
DisplayError
(
this
,
m
sg
);
DisplayError
(
this
,
m
essage
);
}
}
else
// Changement de composant!
else
// Changement de composant!
{
{
...
@@ -555,7 +555,7 @@ void WinEDA_SchematicFrame::EditCmpFieldText( SCH_CMP_FIELD* Field, wxDC* DC )
...
@@ -555,7 +555,7 @@ void WinEDA_SchematicFrame::EditCmpFieldText( SCH_CMP_FIELD* Field, wxDC* DC )
wxString
newtext
=
Field
->
m_Text
;
wxString
newtext
=
Field
->
m_Text
;
DrawPanel
->
m_IgnoreMouseEvents
=
TRUE
;
DrawPanel
->
m_IgnoreMouseEvents
=
TRUE
;
Get_Message
(
Field
->
m_Name
,
newtext
,
this
);
Get_Message
(
Field
->
m_Name
,
_
(
"Component field text"
),
newtext
,
this
);
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
MouseToCursorSchema
();
DrawPanel
->
m_IgnoreMouseEvents
=
FALSE
;
DrawPanel
->
m_IgnoreMouseEvents
=
FALSE
;
...
@@ -755,7 +755,7 @@ void WinEDA_SchematicFrame::EditComponentReference( SCH_COMPONENT* Cmp, wxDC* DC
...
@@ -755,7 +755,7 @@ void WinEDA_SchematicFrame::EditComponentReference( SCH_COMPONENT* Cmp, wxDC* DC
flag
=
1
;
flag
=
1
;
wxString
ref
=
Cmp
->
GetRef
(
GetSheet
());
wxString
ref
=
Cmp
->
GetRef
(
GetSheet
());
Get_Message
(
_
(
"Reference"
),
ref
,
this
);
Get_Message
(
_
(
"Reference"
),
_
(
"Component Reference"
),
ref
,
this
);
if
(
!
ref
.
IsEmpty
()
)
// New text entered
if
(
!
ref
.
IsEmpty
()
)
// New text entered
{
{
...
@@ -780,7 +780,7 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
...
@@ -780,7 +780,7 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
/*****************************************************************************************/
/*****************************************************************************************/
/* Routine de changement du texte selectionne */
/* Routine de changement du texte selectionne */
{
{
wxString
m
sg
;
wxString
m
essage
;
EDA_LibComponentStruct
*
Entry
;
EDA_LibComponentStruct
*
Entry
;
if
(
Cmp
==
NULL
)
if
(
Cmp
==
NULL
)
...
@@ -792,18 +792,18 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
...
@@ -792,18 +792,18 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
SCH_CMP_FIELD
*
TextField
=
&
Cmp
->
m_Field
[
VALUE
];
SCH_CMP_FIELD
*
TextField
=
&
Cmp
->
m_Field
[
VALUE
];
m
sg
=
TextField
->
m_Text
;
m
essage
=
TextField
->
m_Text
;
if
(
Get_Message
(
_
(
"Value"
),
msg
,
this
)
)
if
(
Get_Message
(
_
(
"Value"
),
_
(
"Component Value"
),
message
,
this
)
)
m
sg
.
Empty
();
//allow the user to remove the value.
m
essage
.
Empty
();
//allow the user to remove the value.
if
(
!
m
sg
.
IsEmpty
()
&&
!
msg
.
IsEmpty
())
if
(
!
m
essage
.
IsEmpty
()
&&
!
message
.
IsEmpty
())
{
{
/* save old cmp in undo list if not already in edit, or moving ... */
/* save old cmp in undo list if not already in edit, or moving ... */
if
(
Cmp
->
m_Flags
==
0
)
if
(
Cmp
->
m_Flags
==
0
)
SaveCopyInUndoList
(
Cmp
,
IS_CHANGED
);
SaveCopyInUndoList
(
Cmp
,
IS_CHANGED
);
TextField
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
TextField
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
TextField
->
m_Text
=
m
sg
;
TextField
->
m_Text
=
m
essage
;
TextField
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
TextField
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
GetScreen
()
->
SetModify
();
GetScreen
()
->
SetModify
();
...
@@ -816,7 +816,7 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
...
@@ -816,7 +816,7 @@ void WinEDA_SchematicFrame::EditComponentValue( SCH_COMPONENT* Cmp, wxDC* DC )
void
WinEDA_SchematicFrame
::
EditComponentFootprint
(
SCH_COMPONENT
*
Cmp
,
wxDC
*
DC
)
void
WinEDA_SchematicFrame
::
EditComponentFootprint
(
SCH_COMPONENT
*
Cmp
,
wxDC
*
DC
)
/*****************************************************************************************/
/*****************************************************************************************/
{
{
wxString
m
sg
;
wxString
m
essage
;
EDA_LibComponentStruct
*
Entry
;
EDA_LibComponentStruct
*
Entry
;
bool
wasEmpty
=
false
;
bool
wasEmpty
=
false
;
...
@@ -829,18 +829,18 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
...
@@ -829,18 +829,18 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
SCH_CMP_FIELD
*
TextField
=
&
Cmp
->
m_Field
[
FOOTPRINT
];
SCH_CMP_FIELD
*
TextField
=
&
Cmp
->
m_Field
[
FOOTPRINT
];
m
sg
=
TextField
->
m_Text
;
m
essage
=
TextField
->
m_Text
;
if
(
m
sg
.
IsEmpty
()
)
if
(
m
essage
.
IsEmpty
()
)
wasEmpty
=
true
;
wasEmpty
=
true
;
if
(
Get_Message
(
_
(
"Footprint"
),
msg
,
this
)
)
if
(
Get_Message
(
_
(
"Footprint"
),
_
(
"Component Footprint"
),
message
,
this
)
)
m
sg
.
Empty
();
//allow the user to remove the value.
m
essage
.
Empty
();
//allow the user to remove the value.
/* save old cmp in undo list if not already in edit, or moving ... */
/* save old cmp in undo list if not already in edit, or moving ... */
if
(
Cmp
->
m_Flags
==
0
)
if
(
Cmp
->
m_Flags
==
0
)
SaveCopyInUndoList
(
Cmp
,
IS_CHANGED
);
SaveCopyInUndoList
(
Cmp
,
IS_CHANGED
);
Cmp
->
m_Field
[
FOOTPRINT
].
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
Cmp
->
m_Field
[
FOOTPRINT
].
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
g_XorMode
);
//move the field if it was new.
//move the field if it was new.
if
(
wasEmpty
&&
!
m
sg
.
IsEmpty
())
if
(
wasEmpty
&&
!
m
essage
.
IsEmpty
())
{
{
Cmp
->
m_Field
[
FOOTPRINT
].
m_Pos
=
Cmp
->
m_Field
[
REFERENCE
].
m_Pos
;
Cmp
->
m_Field
[
FOOTPRINT
].
m_Pos
=
Cmp
->
m_Field
[
REFERENCE
].
m_Pos
;
//add offset here - ? suitable heuristic below?
//add offset here - ? suitable heuristic below?
...
@@ -853,7 +853,7 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
...
@@ -853,7 +853,7 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
Cmp
->
m_Field
[
FOOTPRINT
].
m_Orient
=
Cmp
->
m_Field
[
REFERENCE
].
m_Orient
;
Cmp
->
m_Field
[
FOOTPRINT
].
m_Orient
=
Cmp
->
m_Field
[
REFERENCE
].
m_Orient
;
}
}
TextField
->
m_Text
=
m
sg
;
TextField
->
m_Text
=
m
essage
;
Cmp
->
m_Field
[
FOOTPRINT
].
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
Cmp
->
m_Field
[
FOOTPRINT
].
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
Cmp
->
m_Flags
?
g_XorMode
:
GR_DEFAULT_DRAWMODE
);
...
...
eeschema/libfield.cpp
View file @
26af2661
...
@@ -176,9 +176,10 @@ int LineWidth = MAX(Field->m_Width, g_DrawMinimunLineWidth);
...
@@ -176,9 +176,10 @@ int LineWidth = MAX(Field->m_Width, g_DrawMinimunLineWidth);
void
WinEDA_LibeditFrame
::
EditField
(
wxDC
*
DC
,
LibDrawField
*
Field
)
void
WinEDA_LibeditFrame
::
EditField
(
wxDC
*
DC
,
LibDrawField
*
Field
)
/******************************************************************/
/******************************************************************/
{
{
wxString
Text
;
wxString
Text
;
int
color
;
wxString
title
;
wxString
title
=
wxT
(
"Text:"
);
int
color
;
int
LineWidth
=
MAX
(
Field
->
m_Width
,
g_DrawMinimunLineWidth
);
if
(
Field
==
NULL
)
return
;
if
(
Field
==
NULL
)
return
;
...
@@ -202,11 +203,10 @@ wxString title = wxT("Text:");
...
@@ -202,11 +203,10 @@ wxString title = wxT("Text:");
if
(
Field
->
m_Attributs
&
TEXT_NO_VISIBLE
)
color
=
DARKGRAY
;
if
(
Field
->
m_Attributs
&
TEXT_NO_VISIBLE
)
color
=
DARKGRAY
;
Text
=
Field
->
m_Text
;
Text
=
Field
->
m_Text
;
Get_Message
(
title
,
Text
,
this
);
Get_Message
(
title
,
_
(
"Edit field"
),
Text
,
this
);
Text
.
Replace
(
wxT
(
" "
)
,
wxT
(
"_"
)
);
Text
.
Replace
(
wxT
(
" "
)
,
wxT
(
"_"
)
);
GRSetDrawMode
(
DC
,
g_XorMode
);
GRSetDrawMode
(
DC
,
g_XorMode
);
int
LineWidth
=
MAX
(
Field
->
m_Width
,
g_DrawMinimunLineWidth
);
DrawGraphicText
(
DrawPanel
,
DC
,
wxPoint
(
Field
->
m_Pos
.
x
,
-
Field
->
m_Pos
.
y
),
DrawGraphicText
(
DrawPanel
,
DC
,
wxPoint
(
Field
->
m_Pos
.
x
,
-
Field
->
m_Pos
.
y
),
color
,
Field
->
m_Text
,
color
,
Field
->
m_Text
,
Field
->
m_Orient
?
TEXT_ORIENT_VERT
:
TEXT_ORIENT_HORIZ
,
Field
->
m_Orient
?
TEXT_ORIENT_VERT
:
TEXT_ORIENT_HORIZ
,
...
...
eeschema/menubar.cpp
View file @
26af2661
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include "id.h"
#include "id.h"
#include "hotkeys.h"
#include "hotkeys.h"
#include "icons.h"
/************************************************/
/************************************************/
void
WinEDA_SchematicFrame
::
ReCreateMenuBar
()
void
WinEDA_SchematicFrame
::
ReCreateMenuBar
()
...
@@ -32,6 +33,11 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
...
@@ -32,6 +33,11 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
if
(
menuBar
==
NULL
)
if
(
menuBar
==
NULL
)
{
{
wxImage
::
AddHandler
(
new
wxPNGHandler
);
/* Support PNG Images */
initialise_icons
();
menuBar
=
new
wxMenuBar
();
menuBar
=
new
wxMenuBar
();
m_FilesMenu
=
new
wxMenu
;
m_FilesMenu
=
new
wxMenu
;
...
@@ -137,7 +143,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
...
@@ -137,7 +143,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
item
=
new
wxMenuItem
(
editMenu
,
ID_SCHEMATIC_REDO
,
item
=
new
wxMenuItem
(
editMenu
,
ID_SCHEMATIC_REDO
,
msg
,
_
(
"Redo the last undo command"
),
msg
,
_
(
"Redo the last undo command"
),
wxITEM_NORMAL
);
wxITEM_NORMAL
);
item
->
SetBitmap
(
redo_xpm
);
extern
wxBitmap
zoom_in_png
;
item
->
SetBitmap
(
zoom_in_png
);
editMenu
->
Append
(
item
);
editMenu
->
Append
(
item
);
editMenu
->
AppendSeparator
();
editMenu
->
AppendSeparator
();
...
@@ -153,7 +160,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
...
@@ -153,7 +160,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
item
=
new
wxMenuItem
(
editMenu
,
ID_FIND_ITEMS
,
item
=
new
wxMenuItem
(
editMenu
,
ID_FIND_ITEMS
,
_
(
"Find"
),
_
(
"Find components and texts"
),
_
(
"Find"
),
_
(
"Find components and texts"
),
wxITEM_NORMAL
);
wxITEM_NORMAL
);
item
->
SetBitmap
(
find_xpm
);
extern
wxBitmap
edit_find_png
;
item
->
SetBitmap
(
edit_find_png
);
editMenu
->
Append
(
item
);
editMenu
->
Append
(
item
);
editMenu
->
AppendSeparator
();
editMenu
->
AppendSeparator
();
...
@@ -171,7 +179,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
...
@@ -171,7 +179,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
item
=
new
wxMenuItem
(
viewMenu
,
ID_ZOOM_IN_BUTT
,
item
=
new
wxMenuItem
(
viewMenu
,
ID_ZOOM_IN_BUTT
,
msg
,
_
(
"Zoom in"
),
msg
,
_
(
"Zoom in"
),
wxITEM_NORMAL
);
wxITEM_NORMAL
);
item
->
SetBitmap
(
zoom_in
_xpm
);
item
->
SetBitmap
(
find
_xpm
);
viewMenu
->
Append
(
item
);
viewMenu
->
Append
(
item
);
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
s_Schematic_Hokeys_Descr
,
msg
=
AddHotkeyName
(
_
(
"Zoom out"
),
s_Schematic_Hokeys_Descr
,
...
...
eeschema/sheetlab.cpp
View file @
26af2661
...
@@ -325,7 +325,7 @@ Hierarchical_PIN_Sheet_Struct* WinEDA_SchematicFrame::Create_PinSheet(
...
@@ -325,7 +325,7 @@ Hierarchical_PIN_Sheet_Struct* WinEDA_SchematicFrame::Create_PinSheet(
break
;
break
;
}
}
Get_Message
(
Text
,
Line
,
this
);
Get_Message
(
Text
,
_
(
"PinSheet"
),
Line
,
this
);
if
(
Line
.
IsEmpty
()
)
if
(
Line
.
IsEmpty
()
)
return
NULL
;
return
NULL
;
...
...
eeschema/viewlib_frame.cpp
View file @
26af2661
...
@@ -72,7 +72,7 @@ WinEDA_ViewlibFrame::WinEDA_ViewlibFrame( wxWindow* father, WinEDA_App* parent,
...
@@ -72,7 +72,7 @@ WinEDA_ViewlibFrame::WinEDA_ViewlibFrame( wxWindow* father, WinEDA_App* parent,
if
(
Library
==
NULL
)
if
(
Library
==
NULL
)
{
{
m_LibListSize
.
x
=
90
;
m_LibListSize
.
x
=
150
;
// Width of library list
m_LibListSize
.
y
=
-
1
;
m_LibListSize
.
y
=
-
1
;
m_LibList
=
new
wxListBox
(
this
,
ID_LIBVIEW_LIB_LIST
,
wxPoint
(
0
,
0
),
m_LibList
=
new
wxListBox
(
this
,
ID_LIBVIEW_LIB_LIST
,
wxPoint
(
0
,
0
),
m_LibListSize
,
0
,
NULL
,
wxLB_HSCROLL
);
m_LibListSize
,
0
,
NULL
,
wxLB_HSCROLL
);
...
@@ -83,7 +83,7 @@ WinEDA_ViewlibFrame::WinEDA_ViewlibFrame( wxWindow* father, WinEDA_App* parent,
...
@@ -83,7 +83,7 @@ WinEDA_ViewlibFrame::WinEDA_ViewlibFrame( wxWindow* father, WinEDA_App* parent,
else
else
g_CurrentViewLibraryName
=
Library
->
m_Name
;
g_CurrentViewLibraryName
=
Library
->
m_Name
;
m_CmpListSize
.
x
=
150
;
m_CmpListSize
.
x
=
150
;
// Width of component list
m_CmpListSize
.
y
=
-
1
;
m_CmpListSize
.
y
=
-
1
;
m_CmpList
=
new
wxListBox
(
this
,
ID_LIBVIEW_CMP_LIST
,
wxPoint
(
m_LibListSize
.
x
,
0
),
m_CmpList
=
new
wxListBox
(
this
,
ID_LIBVIEW_CMP_LIST
,
wxPoint
(
m_LibListSize
.
x
,
0
),
m_CmpListSize
,
0
,
NULL
,
wxLB_HSCROLL
);
m_CmpListSize
,
0
,
NULL
,
wxLB_HSCROLL
);
...
...
include/common.h
View file @
26af2661
...
@@ -437,7 +437,10 @@ bool IsOK( wxWindow* parent, const wxString& msg );
...
@@ -437,7 +437,10 @@ bool IsOK( wxWindow* parent, const wxString& msg );
/* Routine affichant la fenetre "CONFIRMATION"
/* Routine affichant la fenetre "CONFIRMATION"
* Retourne 1 ou 0 selon reponse Yes / No */
* Retourne 1 ou 0 selon reponse Yes / No */
int
Get_Message
(
const
wxString
&
titre
,
wxString
&
buffer
,
wxWindow
*
frame
);
int
Get_Message
(
const
wxString
&
title
,
const
wxString
&
frame_caption
,
wxString
&
buffer
,
wxWindow
*
frame
);
/* Fonction d'installation du menu de Dialogue
/* Fonction d'installation du menu de Dialogue
* entree: titre = titre a afficher
* entree: titre = titre a afficher
...
...
internat/nl/kicad.mo
View file @
26af2661
No preview for this file type
internat/nl/kicad.po
View file @
26af2661
This source diff could not be displayed because it is too large. You can
view the blob
instead.
kicad/treeprj_frame.cpp
View file @
26af2661
...
@@ -875,8 +875,8 @@ void WinEDA_PrjFrame::OnRenameFile( wxCommandEvent& )
...
@@ -875,8 +875,8 @@ void WinEDA_PrjFrame::OnRenameFile( wxCommandEvent& )
return
;
return
;
wxString
buffer
=
m_TreeProject
->
GetItemText
(
curr_item
);
wxString
buffer
=
m_TreeProject
->
GetItemText
(
curr_item
);
wxString
msg
=
_
(
"Change File
N
ame: "
)
+
tree_data
->
m_FileName
;
wxString
msg
=
_
(
"Change File
n
ame: "
)
+
tree_data
->
m_FileName
;
if
(
Get_Message
(
msg
,
buffer
,
this
)
!=
0
)
if
(
Get_Message
(
msg
,
_
(
"Change Filename"
)
,
buffer
,
this
)
!=
0
)
return
;
//Abort command
return
;
//Abort command
if
(
tree_data
->
Rename
(
buffer
,
true
)
)
if
(
tree_data
->
Rename
(
buffer
,
true
)
)
...
...
pcbnew/edgemod.cpp
View file @
26af2661
...
@@ -243,7 +243,7 @@ void WinEDA_ModuleEditFrame::Enter_Edge_Width( EDGE_MODULE* Edge, wxDC* DC )
...
@@ -243,7 +243,7 @@ void WinEDA_ModuleEditFrame::Enter_Edge_Width( EDGE_MODULE* Edge, wxDC* DC )
long
ll
;
long
ll
;
buffer
<<
ModuleSegmentWidth
;
buffer
<<
ModuleSegmentWidth
;
if
(
Get_Message
(
_
(
"New Width (1/10000
\"
):"
),
buffer
,
this
)
)
if
(
Get_Message
(
_
(
"New Width (1/10000
\"
):"
),
_
(
"Edge Width"
),
buffer
,
this
)
)
return
;
return
;
if
(
buffer
.
ToLong
(
&
ll
)
)
if
(
buffer
.
ToLong
(
&
ll
)
)
...
...
pcbnew/gen_self.h
View file @
26af2661
...
@@ -214,13 +214,13 @@ MODULE* WinEDA_PcbFrame::Genere_Self( wxDC* DC )
...
@@ -214,13 +214,13 @@ MODULE* WinEDA_PcbFrame::Genere_Self( wxDC* DC )
{
{
fcoeff
=
10000
.
0
;
fcoeff
=
10000
.
0
;
msg
.
Printf
(
wxT
(
"%1.4f"
),
Mself
.
lng
/
fcoeff
);
msg
.
Printf
(
wxT
(
"%1.4f"
),
Mself
.
lng
/
fcoeff
);
abort
=
Get_Message
(
_
(
"Length(inch):"
),
msg
,
this
);
abort
=
Get_Message
(
_
(
"Length(inch):"
),
_
(
"Lenght"
),
msg
,
this
);
}
}
else
else
{
{
fcoeff
=
10000
.
0
/
25
.
4
;
fcoeff
=
10000
.
0
/
25
.
4
;
msg
.
Printf
(
wxT
(
"%2.3f"
),
Mself
.
lng
/
fcoeff
);
msg
.
Printf
(
wxT
(
"%2.3f"
),
Mself
.
lng
/
fcoeff
);
abort
=
Get_Message
(
_
(
"Length(mm):"
),
msg
,
this
);
abort
=
Get_Message
(
_
(
"Length(mm):"
),
_
(
"Lenght"
),
msg
,
this
);
}
}
if
(
abort
)
if
(
abort
)
return
NULL
;
return
NULL
;
...
...
pcbnew/librairi.cpp
View file @
26af2661
...
@@ -524,7 +524,7 @@ int WinEDA_BasePcbFrame::Save_1_Module( const wxString& LibName,
...
@@ -524,7 +524,7 @@ int WinEDA_BasePcbFrame::Save_1_Module( const wxString& LibName,
if
(
DisplayDialog
)
if
(
DisplayDialog
)
{
{
Get_Message
(
_
(
"Name:"
),
Name_Cmp
,
this
);
Get_Message
(
_
(
"Name:"
),
_
(
"Save module"
),
Name_Cmp
,
this
);
if
(
Name_Cmp
.
IsEmpty
()
)
if
(
Name_Cmp
.
IsEmpty
()
)
return
0
;
return
0
;
Name_Cmp
.
Trim
(
TRUE
);
Name_Cmp
.
Trim
(
TRUE
);
...
@@ -720,7 +720,7 @@ MODULE* WinEDA_BasePcbFrame::Create_1_Module( wxDC* DC, const wxString& module_n
...
@@ -720,7 +720,7 @@ MODULE* WinEDA_BasePcbFrame::Create_1_Module( wxDC* DC, const wxString& module_n
/* Demande du nom du nouveau module */
/* Demande du nom du nouveau module */
if
(
module_name
.
IsEmpty
()
)
if
(
module_name
.
IsEmpty
()
)
{
{
if
(
Get_Message
(
_
(
"Module Reference:"
),
Line
,
this
)
!=
0
)
if
(
Get_Message
(
_
(
"Module Reference:"
),
_
(
"Create module"
),
Line
,
this
)
!=
0
)
return
NULL
;
return
NULL
;
}
}
else
else
...
...
pcbnew/modules.cpp
View file @
26af2661
...
@@ -78,7 +78,7 @@ MODULE* WinEDA_BasePcbFrame::GetModuleByName()
...
@@ -78,7 +78,7 @@ MODULE* WinEDA_BasePcbFrame::GetModuleByName()
wxString
modulename
;
wxString
modulename
;
MODULE
*
module
=
NULL
;
MODULE
*
module
=
NULL
;
Get_Message
(
_
(
"Footprint name:"
),
modulename
,
this
);
Get_Message
(
_
(
"Footprint name:"
),
_
(
"Search Footprint"
),
modulename
,
this
);
if
(
!
modulename
.
IsEmpty
()
)
if
(
!
modulename
.
IsEmpty
()
)
{
{
module
=
m_Pcb
->
m_Modules
;
module
=
m_Pcb
->
m_Modules
;
...
...
pcbnew/muonde.cpp
View file @
26af2661
...
@@ -173,14 +173,14 @@ MODULE* WinEDA_PcbFrame::Create_MuWaveComponent( wxDC* DC, int shape_type )
...
@@ -173,14 +173,14 @@ MODULE* WinEDA_PcbFrame::Create_MuWaveComponent( wxDC* DC, int shape_type )
fcoeff
=
10000.0
/
25.4
;
fcoeff
=
10000.0
/
25.4
;
value
.
Printf
(
wxT
(
"%2.4f"
),
gap_size
/
fcoeff
);
value
.
Printf
(
wxT
(
"%2.4f"
),
gap_size
/
fcoeff
);
msg
+=
_
(
" (mm):"
);
msg
+=
_
(
" (mm):"
);
abort
=
Get_Message
(
msg
,
value
,
this
);
abort
=
Get_Message
(
msg
,
_
(
"Create microwave module"
),
value
,
this
);
}
}
else
else
{
{
fcoeff
=
10000.0
;
fcoeff
=
10000.0
;
value
.
Printf
(
wxT
(
"%2.3f"
),
gap_size
/
fcoeff
);
value
.
Printf
(
wxT
(
"%2.3f"
),
gap_size
/
fcoeff
);
msg
+=
_
(
" (inch):"
);
msg
+=
_
(
" (inch):"
);
abort
=
Get_Message
(
msg
,
value
,
this
);
abort
=
Get_Message
(
msg
,
_
(
"Create microwave module"
),
value
,
this
);
}
}
double
fval
;
double
fval
;
...
@@ -196,7 +196,7 @@ MODULE* WinEDA_PcbFrame::Create_MuWaveComponent( wxDC* DC, int shape_type )
...
@@ -196,7 +196,7 @@ MODULE* WinEDA_PcbFrame::Create_MuWaveComponent( wxDC* DC, int shape_type )
fcoeff
=
10.0
;
fcoeff
=
10.0
;
value
.
Printf
(
wxT
(
"%3.1f"
),
angle
/
fcoeff
);
value
.
Printf
(
wxT
(
"%3.1f"
),
angle
/
fcoeff
);
msg
=
_
(
"Angle (0.1deg):"
);
msg
=
_
(
"Angle (0.1deg):"
);
abort
=
Get_Message
(
msg
,
value
,
this
);
abort
=
Get_Message
(
msg
,
_
(
"Create microwave module"
),
value
,
this
);
if
(
!
value
.
ToDouble
(
&
fval
)
)
if
(
!
value
.
ToDouble
(
&
fval
)
)
{
{
DisplayError
(
this
,
_
(
"Incorrect number, abort"
)
);
DisplayError
(
this
,
_
(
"Incorrect number, abort"
)
);
...
@@ -695,13 +695,13 @@ void WinEDA_PcbFrame::Edit_Gap( wxDC* DC, MODULE* Module )
...
@@ -695,13 +695,13 @@ void WinEDA_PcbFrame::Edit_Gap( wxDC* DC, MODULE* Module )
{
{
fcoeff
=
10000.0
/
25.4
;
fcoeff
=
10000.0
/
25.4
;
msg
.
Printf
(
wxT
(
"%2.3f"
),
gap_size
/
fcoeff
);
msg
.
Printf
(
wxT
(
"%2.3f"
),
gap_size
/
fcoeff
);
Get_Message
(
_
(
"Gap (mm):"
),
msg
,
this
);
Get_Message
(
_
(
"Gap (mm):"
),
_
(
"Create Microwave Gap"
),
msg
,
this
);
}
}
else
else
{
{
fcoeff
=
10000.0
;
fcoeff
=
10000.0
;
msg
.
Printf
(
wxT
(
"%2.4f"
),
gap_size
/
fcoeff
);
msg
.
Printf
(
wxT
(
"%2.4f"
),
gap_size
/
fcoeff
);
Get_Message
(
_
(
"Gap (inch):"
),
msg
,
this
);
Get_Message
(
_
(
"Gap (inch):"
),
_
(
"Create Microwave Gap"
),
msg
,
this
);
}
}
if
(
!
msg
.
IsEmpty
()
)
if
(
!
msg
.
IsEmpty
()
)
...
...
pcbnew/surbrill.cpp
View file @
26af2661
...
@@ -34,7 +34,7 @@ void WinEDA_PcbFrame::Liste_Equipot( wxCommandEvent& event )
...
@@ -34,7 +34,7 @@ void WinEDA_PcbFrame::Liste_Equipot( wxCommandEvent& event )
int
ii
,
jj
;
int
ii
,
jj
;
msg
=
wxT
(
"*"
);
msg
=
wxT
(
"*"
);
Get_Message
(
_
(
"Filter for net names:"
),
msg
,
this
);
Get_Message
(
_
(
"Filter for net names:"
),
_
(
"Net Filter"
),
msg
,
this
);
if
(
msg
.
IsEmpty
()
)
if
(
msg
.
IsEmpty
()
)
return
;
return
;
...
...
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