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
40d0a145
Commit
40d0a145
authored
Dec 10, 2013
by
Marco Mattila
Committed by
Wayne Stambaugh
Dec 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wxWidgets 2.8 validator bug in footprint name entry dialog. (fixes lp:1259204)
parent
4940bff8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
librairi.cpp
pcbnew/librairi.cpp
+13
-15
No files found.
pcbnew/librairi.cpp
View file @
40d0a145
...
@@ -57,25 +57,25 @@
...
@@ -57,25 +57,25 @@
#define FMT_OK_OVERWRITE _( "Library '%s' exists, OK to replace ?" )
#define FMT_OK_OVERWRITE _( "Library '%s' exists, OK to replace ?" )
#define FMT_CREATE_LIB _( "Create New Library" )
#define FMT_CREATE_LIB _( "Create New Library" )
#define FMT_OK_DELETE _( "OK to delete module %s in library '%s'" )
#define FMT_OK_DELETE _( "OK to delete module %s in library '%s'" )
#define FMT_IMPORT_MODULE _( "Import Footprint
Module
" )
#define FMT_IMPORT_MODULE _( "Import Footprint" )
#define FMT_FILE_NOT_FOUND _( "File '%s' not found" )
#define FMT_FILE_NOT_FOUND _( "File '%s' not found" )
#define FMT_NOT_MODULE _( "Not a
module
file" )
#define FMT_NOT_MODULE _( "Not a
footprint
file" )
#define FMT_MOD_NOT_FOUND _( "Unable to find or load footprint %s from lib path '%s'" )
#define FMT_MOD_NOT_FOUND _( "Unable to find or load footprint %s from lib path '%s'" )
#define FMT_BAD_PATH _( "Unable to find or load footprint from path '%s'" )
#define FMT_BAD_PATH _( "Unable to find or load footprint from path '%s'" )
#define FMT_BAD_PATHS _( "The footprint library '%s' could not be found in any of the search paths." )
#define FMT_BAD_PATHS _( "The footprint library '%s' could not be found in any of the search paths." )
#define FMT_LIB_READ_ONLY _( "Library '%s' is read only, not writable" )
#define FMT_LIB_READ_ONLY _( "Library '%s' is read only, not writable" )
#define FMT_EXPORT_MODULE _( "Export
Module
" )
#define FMT_EXPORT_MODULE _( "Export
Footprint
" )
#define FMT_SAVE_MODULE _( "Save
Module
" )
#define FMT_SAVE_MODULE _( "Save
Footprint
" )
#define FMT_MOD_REF _( "
Module Referenc
e:" )
#define FMT_MOD_REF _( "
Enter footprint nam
e:" )
#define FMT_EXPORTED _( "
Module
exported to file '%s'" )
#define FMT_EXPORTED _( "
Footprint
exported to file '%s'" )
#define FMT_MOD_DELETED _( "
Module
%s deleted from library '%s'" )
#define FMT_MOD_DELETED _( "
Footprint
%s deleted from library '%s'" )
#define FMT_MOD_CREATE _( "
Module Creation
" )
#define FMT_MOD_CREATE _( "
New Footprint
" )
#define FMT_NO_MODULES _( "No
module
s to archive!" )
#define FMT_NO_MODULES _( "No
footprint
s to archive!" )
#define FMT_LIBRARY _( "Library" ) // window title
#define FMT_LIBRARY _( "Library" ) // window title
#define FMT_MOD_EXISTS _( "
Module
%s already exists in library '%s'" )
#define FMT_MOD_EXISTS _( "
Footprint
%s already exists in library '%s'" )
#define FMT_NO_REF_ABORTED _( "No
reference, aborted
" )
#define FMT_NO_REF_ABORTED _( "No
footprint name defined.
" )
#define FMT_SELECT_LIB _( "Select Library" )
#define FMT_SELECT_LIB _( "Select Library" )
...
@@ -846,18 +846,16 @@ MODULE* PCB_BASE_FRAME::Create_1_Module( const wxString& aModuleName )
...
@@ -846,18 +846,16 @@ MODULE* PCB_BASE_FRAME::Create_1_Module( const wxString& aModuleName )
if
(
moduleName
.
IsEmpty
()
)
if
(
moduleName
.
IsEmpty
()
)
{
{
wxTextEntryDialog
dlg
(
this
,
FMT_MOD_REF
,
FMT_MOD_CREATE
,
moduleName
);
wxTextEntryDialog
dlg
(
this
,
FMT_MOD_REF
,
FMT_MOD_CREATE
,
moduleName
);
dlg
.
SetTextValidator
(
FOOTPRINT_NAME_VALIDATOR
()
);
dlg
.
SetTextValidator
(
FOOTPRINT_NAME_VALIDATOR
(
&
moduleName
)
);
if
(
dlg
.
ShowModal
()
!=
wxID_OK
)
if
(
dlg
.
ShowModal
()
!=
wxID_OK
)
return
NULL
;
//Aborted by user
return
NULL
;
//Aborted by user
moduleName
=
dlg
.
GetValue
();
}
}
moduleName
.
Trim
(
true
);
moduleName
.
Trim
(
true
);
moduleName
.
Trim
(
false
);
moduleName
.
Trim
(
false
);
if
(
moduleName
.
IsEmpty
(
)
)
if
(
moduleName
.
IsEmpty
()
)
{
{
DisplayInfoMessage
(
this
,
FMT_NO_REF_ABORTED
);
DisplayInfoMessage
(
this
,
FMT_NO_REF_ABORTED
);
return
NULL
;
return
NULL
;
...
...
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