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
4536e274
Commit
4536e274
authored
Jun 17, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema: Fix wx28 compatibility issue.
parent
b4d0cd74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
dialog_bom.cpp
eeschema/dialogs/dialog_bom.cpp
+6
-7
No files found.
eeschema/dialogs/dialog_bom.cpp
View file @
4536e274
...
@@ -204,8 +204,6 @@ DIALOG_BOM::DIALOG_BOM( SCH_EDIT_FRAME* parent ) :
...
@@ -204,8 +204,6 @@ DIALOG_BOM::DIALOG_BOM( SCH_EDIT_FRAME* parent ) :
DIALOG_BOM
::~
DIALOG_BOM
()
DIALOG_BOM
::~
DIALOG_BOM
()
{
{
wxString
list
;
// Save the plugin descriptions in config.
// Save the plugin descriptions in config.
// the config stores only one string.
// the config stores only one string.
// plugins are saved inside a S expr:
// plugins are saved inside a S expr:
...
@@ -215,16 +213,16 @@ DIALOG_BOM::~DIALOG_BOM()
...
@@ -215,16 +213,16 @@ DIALOG_BOM::~DIALOG_BOM()
// )
// )
STRING_FORMATTER
writer
;
STRING_FORMATTER
writer
;
list
<<
wxT
(
"(plugins"
);
writer
.
Print
(
0
,
"(plugins"
);
for
(
unsigned
ii
=
0
;
ii
<
m_plugins
.
GetCount
();
ii
+=
2
)
for
(
unsigned
ii
=
0
;
ii
<
m_plugins
.
GetCount
();
ii
+=
2
)
{
{
writer
.
Print
(
1
,
"(plugin %s (cmd %s))"
,
writer
.
Print
(
1
,
"(plugin %s (cmd %s))"
,
writer
.
Quotew
(
m_plugins
[
ii
]
).
c_str
(),
writer
.
Quotew
(
m_plugins
[
ii
]
).
c_str
(),
writer
.
Quotew
(
m_plugins
[
ii
+
1
]
).
c_str
()
);
writer
.
Quotew
(
m_plugins
[
ii
+
1
]
).
c_str
()
);
}
}
writer
.
Print
(
0
,
")"
);
list
<<
writer
.
GetString
();
wxString
list
(
FROM_UTF8
(
writer
.
GetString
().
c_str
()
)
);
list
<<
wxT
(
")"
);
m_config
->
Write
(
BOM_PLUGINS_KEY
,
list
);
m_config
->
Write
(
BOM_PLUGINS_KEY
,
list
);
...
@@ -238,13 +236,14 @@ DIALOG_BOM::~DIALOG_BOM()
...
@@ -238,13 +236,14 @@ DIALOG_BOM::~DIALOG_BOM()
*/
*/
void
DIALOG_BOM
::
installPluginsList
()
void
DIALOG_BOM
::
installPluginsList
()
{
{
wxString
list
,
text
,
active_plugin_name
;
wxString
list
,
active_plugin_name
;
m_config
->
Read
(
BOM_PLUGINS_KEY
,
&
list
);
m_config
->
Read
(
BOM_PLUGINS_KEY
,
&
list
);
m_config
->
Read
(
BOM_PLUGIN_SELECTED_KEY
,
&
active_plugin_name
);
m_config
->
Read
(
BOM_PLUGIN_SELECTED_KEY
,
&
active_plugin_name
);
if
(
!
list
.
IsEmpty
()
)
if
(
!
list
.
IsEmpty
()
)
{
{
BOM_CFG_READER_PARSER
cfg_parser
(
&
m_plugins
,
list
.
c_str
(),
wxT
(
"plugins"
)
);
BOM_CFG_READER_PARSER
cfg_parser
(
&
m_plugins
,
TO_UTF8
(
list
),
wxT
(
"plugins"
)
);
try
try
{
{
cfg_parser
.
Parse
();
cfg_parser
.
Parse
();
...
...
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