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
2b453357
Commit
2b453357
authored
Aug 16, 2011
by
Andrey Fedorushkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitmap2component: fix localize GUI, fix *nix native string
parent
6f33e6da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
58 deletions
+67
-58
CMakeLists.txt
bitmap2component/CMakeLists.txt
+51
-50
bitmap2cmp_gui.cpp
bitmap2component/bitmap2cmp_gui.cpp
+16
-8
No files found.
bitmap2component/CMakeLists.txt
View file @
2b453357
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
../potrace
../polygon/kbool/include
${
CMAKE_SOURCE_DIR
}
/common
)
set
(
BITMAP2COMPONENT_SRCS
...
...
@@ -39,7 +40,7 @@ if(APPLE)
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
(
APPLE
)
target_link_libraries
(
bitmap2component
target_link_libraries
(
bitmap2component
common polygon bitmaps
${
wxWidgets_LIBRARIES
}
potrace
kbool
)
...
...
bitmap2component/bitmap2cmp_gui.cpp
View file @
2b453357
...
...
@@ -21,6 +21,13 @@
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "fctsys.h"
#include "appl_wxstruct.h"
#include "wxstruct.h"
#include "common.h"
#include "confirm.h"
#include "gestfich.h"
#include "wx/wx.h"
#include "wx/config.h"
#include "wx/filename.h"
...
...
@@ -32,6 +39,9 @@
#include "bitmap2component.xpm"
#include "bitmaps.h"
#include "colors_selection.h"
#include "build_version.h"
#define KEYWORD_FRAME_POSX wxT( "Bmconverter_Pos_x" )
#define KEYWORD_FRAME_POSY wxT( "Bmconverter_Pos_y" )
...
...
@@ -367,27 +377,25 @@ void BM2CMP_FRAME::ExportFile( FILE* aOutfile, int aFormat )
// BM_TO_CMP_APP
class
BM_TO_CMP_APP
:
public
wxApp
void
WinEDA_App
::
MacOpenFile
(
const
wxString
&
fileName
)
{
public
:
virtual
bool
OnInit
();
};
}
IMPLEMENT_APP
(
BM_TO_CMP_APP
)
IMPLEMENT_APP
(
WinEDA_App
)
///-----------------------------------------------------------------------------
// BM_TO_CMP_APP
// main program
//-----------------------------------------------------------------------------
bool
BM_TO_CMP_APP
::
OnInit
()
bool
WinEDA_App
::
OnInit
()
{
wxInitAllImageHandlers
();
SetVendorName
(
wxT
(
"kicad
"
)
);
InitEDA_Appl
(
wxT
(
"BMP2CMP
"
)
);
wxFrame
*
frame
=
new
BM2CMP_FRAME
();
SetTopWindow
(
frame
);
frame
->
Show
(
true
);
return
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