Loading cvpcb/dialogs/dialog_display_options.cpp +27 −4 Original line number Diff line number Diff line ///////////////////////////////////////////////////////////////////////////// // Name: dialog_display_options.cpp // Licence: GPL ///////////////////////////////////////////////////////////////////////////// /** * @file cvpcb/dialogs/dialog_display_options.cpp */ /* * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, you may find one here: * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * or you may search the http://www.gnu.org website for the version 2 license, * or you may write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include <fctsys.h> #include <wxstruct.h> Loading cvpcb/dialogs/dialog_display_options.h +1 −1 Original line number Diff line number Diff line /** * @file dialog_display_options.h * @file cvpcb/dialogs/dialog_display_options.h */ #ifndef _DIALOG_DISPLAY_OPTIONS_H_ Loading gerbview/class_gerbview_layer_widget.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -110,9 +110,11 @@ void GERBER_LAYER_WIDGET::ReFillRender() { if( renderRows[row].color != -1 ) // does this row show a color? { renderRows[row].color = myframe->GetVisibleElementColor( renderRows[row].id ); renderRows[row].color = myframe->GetVisibleElementColor( (GERBER_VISIBLE_ID)renderRows[row].id ); } renderRows[row].state = myframe->IsElementVisible( renderRows[row].id ); renderRows[row].state = myframe->IsElementVisible( (GERBER_VISIBLE_ID)renderRows[row].id ); } AppendRenderRows( renderRows, DIM(renderRows) ); Loading Loading @@ -246,13 +248,13 @@ void GERBER_LAYER_WIDGET::OnLayerVisible( int aLayer, bool isVisible, bool isFin void GERBER_LAYER_WIDGET::OnRenderColorChange( int aId, EDA_COLOR_T aColor ) { myframe->SetVisibleElementColor( aId, aColor ); myframe->SetVisibleElementColor( (GERBER_VISIBLE_ID)aId, aColor ); myframe->GetCanvas()->Refresh(); } void GERBER_LAYER_WIDGET::OnRenderEnable( int aId, bool isEnabled ) { myframe->SetElementVisibility( aId, isEnabled ); myframe->SetElementVisibility( (GERBER_VISIBLE_ID)aId, isEnabled ); myframe->GetCanvas()->Refresh(); } Loading gerbview/export_to_pcbnew.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ private: * write a via to the board file (always uses a via through). * @param aGbrItem = the flashed Gerber item to export */ void export_flashed_copper_item( GERBER_DRAW_ITEM* aGbrItemr ); void export_flashed_copper_item( GERBER_DRAW_ITEM* aGbrItem ); /** * Function export_segline_copper_item Loading gerbview/gerbview.h +3 −11 Original line number Diff line number Diff line Loading @@ -34,20 +34,12 @@ extern const wxChar* g_GerberPageSizeList[8]; #define GERB_STOP_DRAW 2 // Extinguish light (lift pen) #define GERB_FLASH 3 // Flash /* enum PlotFormat { FORMAT_HPGL, FORMAT_GERBER, FORMAT_POST }; */ /** * Enum ITEM_VISIBLE * is a set of visible PCB elements. * Enum GERBER_VISIBLE_ID * is a set of visible GERBVIEW elements. */ enum GERBER_VISIBLE enum GERBER_VISIBLE_ID { DCODES_VISIBLE = 1, // visible item id cannot be 0 because this id is used as wxWidget id GERBER_GRID_VISIBLE, Loading Loading
cvpcb/dialogs/dialog_display_options.cpp +27 −4 Original line number Diff line number Diff line ///////////////////////////////////////////////////////////////////////////// // Name: dialog_display_options.cpp // Licence: GPL ///////////////////////////////////////////////////////////////////////////// /** * @file cvpcb/dialogs/dialog_display_options.cpp */ /* * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, you may find one here: * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * or you may search the http://www.gnu.org website for the version 2 license, * or you may write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include <fctsys.h> #include <wxstruct.h> Loading
cvpcb/dialogs/dialog_display_options.h +1 −1 Original line number Diff line number Diff line /** * @file dialog_display_options.h * @file cvpcb/dialogs/dialog_display_options.h */ #ifndef _DIALOG_DISPLAY_OPTIONS_H_ Loading
gerbview/class_gerbview_layer_widget.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -110,9 +110,11 @@ void GERBER_LAYER_WIDGET::ReFillRender() { if( renderRows[row].color != -1 ) // does this row show a color? { renderRows[row].color = myframe->GetVisibleElementColor( renderRows[row].id ); renderRows[row].color = myframe->GetVisibleElementColor( (GERBER_VISIBLE_ID)renderRows[row].id ); } renderRows[row].state = myframe->IsElementVisible( renderRows[row].id ); renderRows[row].state = myframe->IsElementVisible( (GERBER_VISIBLE_ID)renderRows[row].id ); } AppendRenderRows( renderRows, DIM(renderRows) ); Loading Loading @@ -246,13 +248,13 @@ void GERBER_LAYER_WIDGET::OnLayerVisible( int aLayer, bool isVisible, bool isFin void GERBER_LAYER_WIDGET::OnRenderColorChange( int aId, EDA_COLOR_T aColor ) { myframe->SetVisibleElementColor( aId, aColor ); myframe->SetVisibleElementColor( (GERBER_VISIBLE_ID)aId, aColor ); myframe->GetCanvas()->Refresh(); } void GERBER_LAYER_WIDGET::OnRenderEnable( int aId, bool isEnabled ) { myframe->SetElementVisibility( aId, isEnabled ); myframe->SetElementVisibility( (GERBER_VISIBLE_ID)aId, isEnabled ); myframe->GetCanvas()->Refresh(); } Loading
gerbview/export_to_pcbnew.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ private: * write a via to the board file (always uses a via through). * @param aGbrItem = the flashed Gerber item to export */ void export_flashed_copper_item( GERBER_DRAW_ITEM* aGbrItemr ); void export_flashed_copper_item( GERBER_DRAW_ITEM* aGbrItem ); /** * Function export_segline_copper_item Loading
gerbview/gerbview.h +3 −11 Original line number Diff line number Diff line Loading @@ -34,20 +34,12 @@ extern const wxChar* g_GerberPageSizeList[8]; #define GERB_STOP_DRAW 2 // Extinguish light (lift pen) #define GERB_FLASH 3 // Flash /* enum PlotFormat { FORMAT_HPGL, FORMAT_GERBER, FORMAT_POST }; */ /** * Enum ITEM_VISIBLE * is a set of visible PCB elements. * Enum GERBER_VISIBLE_ID * is a set of visible GERBVIEW elements. */ enum GERBER_VISIBLE enum GERBER_VISIBLE_ID { DCODES_VISIBLE = 1, // visible item id cannot be 0 because this id is used as wxWidget id GERBER_GRID_VISIBLE, Loading