Commit 58a3504c authored by Andrey Fedorushkov's avatar Andrey Fedorushkov

pcb calculator: fix localize GUI, native *nix string

parent e77af399
......@@ -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}
)
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment