Commit ac539b95 authored by jean-pierre charras's avatar jean-pierre charras

Minor and very minors fixes: move -DKICAD_USE_WEBKIT definition to the main...

Minor and very minors fixes: move -DKICAD_USE_WEBKIT definition to the main CMakeLists.txt. Remove duplicate semi-colon at end of some lines.
parent 77fb1897
...@@ -421,6 +421,7 @@ set( wxWidgets_CONFIG_OPTIONS --static=no ) ...@@ -421,6 +421,7 @@ set( wxWidgets_CONFIG_OPTIONS --static=no )
if( KICAD_USE_WEBKIT AND BUILD_GITHUB_PLUGIN ) if( KICAD_USE_WEBKIT AND BUILD_GITHUB_PLUGIN )
set( webkitlib "webview" ) set( webkitlib "webview" )
add_definitions( -DKICAD_USE_WEBKIT )
else() else()
set( webkitlib "" ) set( webkitlib "" )
endif() endif()
......
...@@ -83,7 +83,7 @@ std::string Double2Str( double aValue ) ...@@ -83,7 +83,7 @@ std::string Double2Str( double aValue )
len = sprintf( buf, "%.16g", aValue ); len = sprintf( buf, "%.16g", aValue );
} }
return std::string( buf, len );; return std::string( buf, len );
} }
......
...@@ -411,14 +411,14 @@ public: ...@@ -411,14 +411,14 @@ public:
// wxModalEventLoop depends on this (so we can't just use ON_BLOCK_EXIT or // wxModalEventLoop depends on this (so we can't just use ON_BLOCK_EXIT or
// something similar here) // something similar here)
#if wxUSE_EXCEPTIONS #if wxUSE_EXCEPTIONS
for ( ;; ) for( ; ; )
{ {
try try
{ {
#endif // wxUSE_EXCEPTIONS #endif // wxUSE_EXCEPTIONS
// this is the event loop itself // this is the event loop itself
for ( ;; ) for( ; ; )
{ {
// generate and process idle events for as long as we don't // generate and process idle events for as long as we don't
// have anything else to do // have anything else to do
...@@ -446,7 +446,7 @@ public: ...@@ -446,7 +446,7 @@ public:
// handlers endlessly generate new events but they shouldn't do // handlers endlessly generate new events but they shouldn't do
// this in a well-behaved program and we shouldn't just discard the // this in a well-behaved program and we shouldn't just discard the
// events we already have, they might be important. // events we already have, they might be important.
for ( ;; ) for( ; ; )
{ {
bool hasMoreEvents = false; bool hasMoreEvents = false;
if ( wxTheApp && wxTheApp->HasPendingEvents() ) if ( wxTheApp && wxTheApp->HasPendingEvents() )
......
...@@ -41,7 +41,7 @@ DIALOG_IMAGE_EDITOR::DIALOG_IMAGE_EDITOR( wxWindow* aParent, BITMAP_BASE* aItem ...@@ -41,7 +41,7 @@ DIALOG_IMAGE_EDITOR::DIALOG_IMAGE_EDITOR( wxWindow* aParent, BITMAP_BASE* aItem
m_buttonUndoLast->Enable( false ); m_buttonUndoLast->Enable( false );
wxString msg; wxString msg;
msg.Printf( wxT("%f"), m_workingImage->m_Scale ); msg.Printf( wxT("%f"), m_workingImage->m_Scale );
m_textCtrlScale->SetValue( msg );; m_textCtrlScale->SetValue( msg );
GetSizer()->SetSizeHints( this ); GetSizer()->SetSizeHints( this );
Layout(); Layout();
......
...@@ -125,7 +125,7 @@ struct APP_SINGLE_TOP : public wxApp ...@@ -125,7 +125,7 @@ struct APP_SINGLE_TOP : public wxApp
{ {
wxLogError( wxT( "Unhandled exception class: %s what: %s" ), wxLogError( wxT( "Unhandled exception class: %s what: %s" ),
GetChars( FROM_UTF8( typeid(e).name() )), GetChars( FROM_UTF8( typeid(e).name() )),
GetChars( FROM_UTF8( e.what() ) ) );; GetChars( FROM_UTF8( e.what() ) ) );
} }
catch( const IO_ERROR& ioe ) catch( const IO_ERROR& ioe )
{ {
...@@ -158,7 +158,7 @@ struct APP_SINGLE_TOP : public wxApp ...@@ -158,7 +158,7 @@ struct APP_SINGLE_TOP : public wxApp
{ {
wxLogError( wxT( "Unhandled exception class: %s what: %s" ), wxLogError( wxT( "Unhandled exception class: %s what: %s" ),
GetChars( FROM_UTF8( typeid(e).name() )), GetChars( FROM_UTF8( typeid(e).name() )),
GetChars( FROM_UTF8( e.what() ) ) );; GetChars( FROM_UTF8( e.what() ) ) );
} }
catch( const IO_ERROR& ioe ) catch( const IO_ERROR& ioe )
{ {
......
...@@ -10,7 +10,6 @@ add_definitions( -DCVPCB ) ...@@ -10,7 +10,6 @@ add_definitions( -DCVPCB )
if( KICAD_USE_WEBKIT AND BUILD_GITHUB_PLUGIN ) if( KICAD_USE_WEBKIT AND BUILD_GITHUB_PLUGIN )
set( WEBVIEWER_WXLIB "webviewer" ) set( WEBVIEWER_WXLIB "webviewer" )
add_definitions( -DKICAD_USE_WEBKIT )
endif() endif()
......
...@@ -306,7 +306,7 @@ bool CVPCB_MAINFRAME::ReadNetListAndLinkFiles() ...@@ -306,7 +306,7 @@ bool CVPCB_MAINFRAME::ReadNetListAndLinkFiles()
if( component->GetFPID().IsLegacy() || component->GetAltFPID().IsLegacy()) if( component->GetFPID().IsLegacy() || component->GetAltFPID().IsLegacy())
continue; continue;
m_indexes.push_back( ii );; m_indexes.push_back( ii );
} }
// If a n assignment conflict is found, // If a n assignment conflict is found,
......
...@@ -550,7 +550,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers() ...@@ -550,7 +550,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers()
if( !it->m_Visible ) if( !it->m_Visible )
fld.SetVisible( false ); fld.SetVisible( false );
else else
fld.SetVisible( true );; fld.SetVisible( true );
} }
else else
{ {
......
...@@ -172,7 +172,7 @@ void GERBER_LAYER_WIDGET::onPopupSelection( wxCommandEvent& event ) ...@@ -172,7 +172,7 @@ void GERBER_LAYER_WIDGET::onPopupSelection( wxCommandEvent& event )
{ {
int rowCount; int rowCount;
int menuId = event.GetId(); int menuId = event.GetId();
bool visible = (menuId == ID_SHOW_ALL_LAYERS) ? true : false;; bool visible = (menuId == ID_SHOW_ALL_LAYERS) ? true : false;
long visibleLayers = 0; long visibleLayers = 0;
bool force_active_layer_visible; bool force_active_layer_visible;
......
...@@ -172,7 +172,7 @@ void GERBVIEW_FRAME::ExportDataInPcbnewFormat( wxCommandEvent& event ) ...@@ -172,7 +172,7 @@ void GERBVIEW_FRAME::ExportDataInPcbnewFormat( wxCommandEvent& event )
} }
wxString fileName; wxString fileName;
wxString path = wxGetCwd();; wxString path = wxGetCwd();
wxFileDialog filedlg( this, _( "Board file name:" ), wxFileDialog filedlg( this, _( "Board file name:" ),
path, fileName, PcbFileWildcard, path, fileName, PcbFileWildcard,
......
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
const wxString& GetTitle() const const wxString& GetTitle() const
{ {
return getTbText( titleIdx );; return getTbText( titleIdx );
} }
/** /**
......
...@@ -271,7 +271,7 @@ struct APP_KICAD : public wxApp ...@@ -271,7 +271,7 @@ struct APP_KICAD : public wxApp
{ {
wxLogError( wxT( "Unhandled exception class: %s what: %s" ), wxLogError( wxT( "Unhandled exception class: %s what: %s" ),
GetChars( FROM_UTF8( typeid(e).name() )), GetChars( FROM_UTF8( typeid(e).name() )),
GetChars( FROM_UTF8( e.what() ) ) );; GetChars( FROM_UTF8( e.what() ) ) );
} }
catch( const IO_ERROR& ioe ) catch( const IO_ERROR& ioe )
{ {
......
...@@ -198,7 +198,7 @@ void PROPERTIES_FRAME::CopyPrmsFromItemToPanel( WORKSHEET_DATAITEM* aItem ) ...@@ -198,7 +198,7 @@ void PROPERTIES_FRAME::CopyPrmsFromItemToPanel( WORKSHEET_DATAITEM* aItem )
WORKSHEET_DATAITEM_TEXT* item = (WORKSHEET_DATAITEM_TEXT*) aItem; WORKSHEET_DATAITEM_TEXT* item = (WORKSHEET_DATAITEM_TEXT*) aItem;
item->m_FullText = item->m_TextBase; item->m_FullText = item->m_TextBase;
// Replace our '\' 'n' sequence by the EOL char // Replace our '\' 'n' sequence by the EOL char
item->ReplaceAntiSlashSequence();; item->ReplaceAntiSlashSequence();
m_textCtrlText->SetValue( item->m_FullText ); m_textCtrlText->SetValue( item->m_FullText );
msg.Printf( wxT("%d"), item->m_IncrementLabel ); msg.Printf( wxT("%d"), item->m_IncrementLabel );
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/* /*
* This program source code file is part of KICAD, a free EDA CAD application. * This program source code file is part of KICAD, a free EDA CAD application.
* *
* Copyright (C) 12011 jean-pierre.charras * Copyright (C) 2011 jean-pierre.charras
* Copyright (C) 2011 Kicad Developers, see change_log.txt for contributors. * Copyright (C) 2011 Kicad Developers, see change_log.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -83,10 +83,12 @@ void PCB_CALCULATOR_FRAME::TransfAttenuatorDataToPanel() ...@@ -83,10 +83,12 @@ void PCB_CALCULATOR_FRAME::TransfAttenuatorDataToPanel()
m_AttValueCtrl->Enable( m_currAttenuator->m_Attenuation_Enable ); m_AttValueCtrl->Enable( m_currAttenuator->m_Attenuation_Enable );
m_ZinValueCtrl->Enable( m_currAttenuator->m_Zin_Enable ); m_ZinValueCtrl->Enable( m_currAttenuator->m_Zin_Enable );
if( m_currAttenuator->m_Zin_Enable ) if( m_currAttenuator->m_Zin_Enable )
msg.Printf( wxT( "%g" ), m_currAttenuator->m_Zin ); msg.Printf( wxT( "%g" ), m_currAttenuator->m_Zin );
else else
msg.Clear();; msg.Clear();
m_ZinValueCtrl->SetValue( msg ); m_ZinValueCtrl->SetValue( msg );
msg.Printf( wxT( "%g" ), m_currAttenuator->m_Zout ); msg.Printf( wxT( "%g" ), m_currAttenuator->m_Zout );
......
...@@ -373,7 +373,6 @@ endif() ...@@ -373,7 +373,6 @@ endif()
if( KICAD_USE_WEBKIT AND BUILD_GITHUB_PLUGIN ) if( KICAD_USE_WEBKIT AND BUILD_GITHUB_PLUGIN )
set( WEBVIEWER_WXLIB "webviewer" ) set( WEBVIEWER_WXLIB "webviewer" )
add_definitions( -DKICAD_USE_WEBKIT )
endif() endif()
......
...@@ -678,7 +678,7 @@ void D_PAD::GetOblongDrillGeometry( wxPoint& aStartPoint, ...@@ -678,7 +678,7 @@ void D_PAD::GetOblongDrillGeometry( wxPoint& aStartPoint,
// of an equivalent segment which have the same position and width as the hole // of an equivalent segment which have the same position and width as the hole
int delta_cx, delta_cy; int delta_cx, delta_cy;
wxSize halfsize = GetDrillSize();; wxSize halfsize = GetDrillSize();
halfsize.x /= 2; halfsize.x /= 2;
halfsize.y /= 2; halfsize.y /= 2;
......
...@@ -207,7 +207,7 @@ public: ...@@ -207,7 +207,7 @@ public:
void TransformShapeWithClearanceToPolygon( CPOLYGONS_LIST& aCornerBuffer, void TransformShapeWithClearanceToPolygon( CPOLYGONS_LIST& aCornerBuffer,
int aClearanceValue, int aClearanceValue,
int aCircleToSegmentsCount, int aCircleToSegmentsCount,
double aCorrectionFactor ) const;; double aCorrectionFactor ) const;
/** /**
* Function GetClearance * Function GetClearance
......
...@@ -431,7 +431,7 @@ void DIALOG_DESIGN_RULES::InitializeRulesSelectionBoxes() ...@@ -431,7 +431,7 @@ void DIALOG_DESIGN_RULES::InitializeRulesSelectionBoxes()
m_leftClassChoice->Select( 0 ); m_leftClassChoice->Select( 0 );
m_buttonRightToLeft->Enable( false ); m_buttonRightToLeft->Enable( false );
m_buttonLeftToRight->Enable( false );; m_buttonLeftToRight->Enable( false );
FillListBoxWithNetNames( m_leftListCtrl, m_leftClassChoice->GetStringSelection() ); FillListBoxWithNetNames( m_leftListCtrl, m_leftClassChoice->GetStringSelection() );
FillListBoxWithNetNames( m_rightListCtrl, m_rightClassChoice->GetStringSelection() ); FillListBoxWithNetNames( m_rightListCtrl, m_rightClassChoice->GetStringSelection() );
...@@ -821,7 +821,7 @@ void DIALOG_DESIGN_RULES::OnRightCBSelection( wxCommandEvent& event ) ...@@ -821,7 +821,7 @@ void DIALOG_DESIGN_RULES::OnRightCBSelection( wxCommandEvent& event )
if( m_leftClassChoice->GetStringSelection() == m_rightClassChoice->GetStringSelection() ) if( m_leftClassChoice->GetStringSelection() == m_rightClassChoice->GetStringSelection() )
{ {
m_buttonRightToLeft->Enable( false ); m_buttonRightToLeft->Enable( false );
m_buttonLeftToRight->Enable( false );; m_buttonLeftToRight->Enable( false );
} }
else else
{ {
......
...@@ -188,7 +188,7 @@ void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event ) ...@@ -188,7 +188,7 @@ void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event )
command = value + wxFileName::GetPathSeparator(); command = value + wxFileName::GetPathSeparator();
command << wxT("bin\\java"); command << wxT("bin\\java");
#else // __WINDOWS__ #else // __WINDOWS__
command = wxT( "java" );; command = wxT( "java" );
#endif #endif
command << wxT(" -jar "); command << wxT(" -jar ");
......
...@@ -101,7 +101,7 @@ bool GITHUB_GETLIBLIST::GetLibraryList( wxArrayString& aList ) ...@@ -101,7 +101,7 @@ bool GITHUB_GETLIBLIST::GetLibraryList( wxArrayString& aList )
// The URL lib names are relative to the server name. // The URL lib names are relative to the server name.
// so add the server name to them. // so add the server name to them.
wxURI repo( m_repoURL ); wxURI repo( m_repoURL );
wxString urlPrefix = wxT( "https://" ) + repo.GetServer() + wxT( "/" );; wxString urlPrefix = wxT( "https://" ) + repo.GetServer() + wxT( "/" );
wxString errorMsg; wxString errorMsg;
const char sep = ','; // Separator fields, in json returned file const char sep = ','; // Separator fields, in json returned file
......
...@@ -883,7 +883,7 @@ void PCB_BASE_FRAME::BuildAirWiresTargetsList( BOARD_CONNECTED_ITEM* aItemRef, ...@@ -883,7 +883,7 @@ void PCB_BASE_FRAME::BuildAirWiresTargetsList( BOARD_CONNECTED_ITEM* aItemRef,
if( track->GetNetCode() < net_code ) if( track->GetNetCode() < net_code )
continue; continue;
if( track->GetNetCode() > net_code ) if( track->GetNetCode() > net_code )
break;; break;
if( !track->GetSubNet() || (track->GetSubNet() != subnet) ) if( !track->GetSubNet() || (track->GetSubNet() != subnet) )
{ {
......
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