pcb calculator: fix localize GUI, native *nix string
This commit is contained in:
parent
e77af399a5
commit
58a3504c5a
|
@ -3,6 +3,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/dialogs
|
${CMAKE_CURRENT_SOURCE_DIR}/dialogs
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/transline
|
${CMAKE_CURRENT_SOURCE_DIR}/transline
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/attenuators
|
${CMAKE_CURRENT_SOURCE_DIR}/attenuators
|
||||||
|
../polygon
|
||||||
|
${CMAKE_SOURCE_DIR}/common
|
||||||
)
|
)
|
||||||
|
|
||||||
set(PCB_CALCULATOR_SRCS
|
set(PCB_CALCULATOR_SRCS
|
||||||
|
@ -60,7 +62,7 @@ if(APPLE)
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
|
${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
target_link_libraries( pcb_calculator
|
target_link_libraries( pcb_calculator common polygon bitmaps
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -21,31 +21,40 @@
|
||||||
* or you may write to the Free Software Foundation, Inc.,
|
* or you may write to the Free Software Foundation, Inc.,
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* 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/wx.h"
|
||||||
#include "wx/config.h"
|
#include "wx/config.h"
|
||||||
|
|
||||||
#include "pcb_calculator_frame_base.h"
|
#include "pcb_calculator_frame_base.h"
|
||||||
#include "pcb_calculator.h"
|
#include "pcb_calculator.h"
|
||||||
|
|
||||||
|
#include "bitmaps.h"
|
||||||
|
#include "colors_selection.h"
|
||||||
|
#include "build_version.h"
|
||||||
|
|
||||||
// PCB_CALCULATOR_APP
|
// PCB_CALCULATOR_APP
|
||||||
|
|
||||||
class PCB_CALCULATOR_APP : public wxApp
|
void WinEDA_App::MacOpenFile(const wxString &fileName)
|
||||||
{
|
{
|
||||||
public:
|
}
|
||||||
virtual bool OnInit();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
IMPLEMENT_APP( WinEDA_App )
|
||||||
IMPLEMENT_APP( PCB_CALCULATOR_APP )
|
|
||||||
|
|
||||||
///-----------------------------------------------------------------------------
|
///-----------------------------------------------------------------------------
|
||||||
// PCB_CALCULATOR_APP
|
// PCB_CALCULATOR_APP
|
||||||
// main program
|
// 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 );
|
wxFrame* frame = new PCB_CALCULATOR_FRAME( NULL );
|
||||||
SetTopWindow( frame );
|
SetTopWindow( frame );
|
||||||
|
|
Loading…
Reference in New Issue