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
58a3504c
Commit
58a3504c
authored
Aug 12, 2011
by
Andrey Fedorushkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcb calculator: fix localize GUI, native *nix string
parent
e77af399
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
305 additions
and
294 deletions
+305
-294
CMakeLists.txt
pcb_calculator/CMakeLists.txt
+72
-70
UnitSelector.cpp
pcb_calculator/UnitSelector.cpp
+119
-119
UnitSelector.h
pcb_calculator/UnitSelector.h
+97
-97
pcb_calculator.cpp
pcb_calculator/pcb_calculator.cpp
+17
-8
No files found.
pcb_calculator/CMakeLists.txt
View file @
58a3504c
...
...
@@ -3,6 +3,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${
CMAKE_CURRENT_SOURCE_DIR
}
/dialogs
${
CMAKE_CURRENT_SOURCE_DIR
}
/transline
${
CMAKE_CURRENT_SOURCE_DIR
}
/attenuators
../polygon
${
CMAKE_SOURCE_DIR
}
/common
)
set
(
PCB_CALCULATOR_SRCS
...
...
@@ -60,7 +62,7 @@ if(APPLE)
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
(
APPLE
)
target_link_libraries
(
pcb_calculator
target_link_libraries
(
pcb_calculator
common polygon bitmaps
${
wxWidgets_LIBRARIES
}
)
...
...
pcb_calculator/UnitSelector.cpp
View file @
58a3504c
pcb_calculator/UnitSelector.h
View file @
58a3504c
pcb_calculator/pcb_calculator.cpp
View file @
58a3504c
...
...
@@ -21,31 +21,40 @@
* 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 "pcb_calculator_frame_base.h"
#include "pcb_calculator.h"
#include "bitmaps.h"
#include "colors_selection.h"
#include "build_version.h"
// PCB_CALCULATOR_APP
class
PCB_CALCULATOR_APP
:
public
wxApp
void
WinEDA_App
::
MacOpenFile
(
const
wxString
&
fileName
)
{
public
:
virtual
bool
OnInit
();
};
}
IMPLEMENT_APP
(
PCB_CALCULATOR_APP
)
IMPLEMENT_APP
(
WinEDA_App
)
///-----------------------------------------------------------------------------
// PCB_CALCULATOR_APP
// main program
//-----------------------------------------------------------------------------
bool
PCB_CALCULATOR_APP
::
OnInit
()
bool
WinEDA_App
::
OnInit
()
{
SetVendorName
(
wxT
(
"kicad"
)
);
InitEDA_Appl
(
wxT
(
"PCBcalc"
)
);
wxFrame
*
frame
=
new
PCB_CALCULATOR_FRAME
(
NULL
);
SetTopWindow
(
frame
);
...
...
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