mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 00:21:31 +00:00
switch to C++'s false and true from C's FALSE and TRUE
This commit is contained in:
parent
ec307ef62c
commit
e6c8515873
common
cvpcb
eeschema
class_libentry.cppdatabase.cpp
dialogs
dialog_build_BOM.cppdialog_build_BOM.hdialog_eeschema_config.cppdialog_erc.hdialog_lib_edit_text.cppdialog_plot_schematic_HPGL.cppdialog_plot_schematic_PS.cpp
eeredraw.cpperc.cpplib_pin.cppsch_component.cppviewlibs.cppgerbview
include
kicad
pcbnew
dialogs
dialog_copper_zones.cppdialog_display_options.cppdialog_edit_module_for_BoardEditor.cppdialog_edit_module_for_Modedit.cppdialog_gendrill.cppdialog_graphic_item_properties.cppdialog_netlist.cppdialog_orient_footprints.cppdialog_pcbnew_config_libs_and_paths.cppdialog_print_for_modedit.cppdialog_print_using_printer.cpp
export_vrml.cpppolygon
@ -30,9 +30,9 @@
|
||||
#include "wx/image.h"
|
||||
#include "macros.h"
|
||||
|
||||
#define wxSVG_DEBUG FALSE
|
||||
#define wxSVG_DEBUG false
|
||||
|
||||
// or TRUE to see the calls being executed
|
||||
// or true to see the calls being executed
|
||||
#define newline wxString( wxT( "\n" ) )
|
||||
#define space wxString( wxT( " " ) )
|
||||
#define semicolon wxString( wxT( ";" ) )
|
||||
@ -85,7 +85,7 @@ wxString wxBrushString( wxColour c, int style )
|
||||
break;
|
||||
|
||||
default:
|
||||
wxASSERT_MSG( FALSE, wxT( "wxSVGFileDC::Requested Brush Style not available" ) );
|
||||
wxASSERT_MSG( false, wxT( "wxSVGFileDC::Requested Brush Style not available" ) );
|
||||
}
|
||||
|
||||
s = s + newline;
|
||||
@ -103,8 +103,8 @@ void wxSVGFileDC::Init( wxString f, int Width, int Height, float dpi )
|
||||
m_width = Width;
|
||||
m_height = Height;
|
||||
|
||||
m_clipping = FALSE;
|
||||
m_OK = TRUE;
|
||||
m_clipping = false;
|
||||
m_OK = true;
|
||||
|
||||
m_mm_to_pix_x = dpi / 25.4;
|
||||
m_mm_to_pix_y = dpi / 25.4;
|
||||
@ -132,7 +132,7 @@ void wxSVGFileDC::Init( wxString f, int Width, int Height, float dpi )
|
||||
m_font = *wxNORMAL_FONT;
|
||||
m_brush = *wxWHITE_BRUSH;
|
||||
|
||||
m_graphics_changed = TRUE;
|
||||
m_graphics_changed = true;
|
||||
|
||||
////////////////////code here
|
||||
|
||||
@ -626,7 +626,7 @@ void wxSVGFileDC::SetBrush( const wxBrush& brush )
|
||||
{
|
||||
m_brush = brush;
|
||||
|
||||
m_graphics_changed = TRUE;
|
||||
m_graphics_changed = true;
|
||||
wxASSERT_MSG( !wxSVG_DEBUG, wxT( "wxSVGFileDC::SetBrush Call executed" ) );
|
||||
}
|
||||
|
||||
@ -637,7 +637,7 @@ void wxSVGFileDC::SetPen( const wxPen& pen )
|
||||
// dashes, stipple : not implemented
|
||||
m_pen = pen;
|
||||
|
||||
m_graphics_changed = TRUE;
|
||||
m_graphics_changed = true;
|
||||
wxASSERT_MSG( !wxSVG_DEBUG, wxT( "wxSVGFileDC::SetPen Call executed" ) );
|
||||
}
|
||||
|
||||
@ -697,7 +697,7 @@ void wxSVGFileDC::NewGraphics()
|
||||
break;
|
||||
|
||||
default:
|
||||
wxASSERT_MSG( FALSE,
|
||||
wxASSERT_MSG( false,
|
||||
wxT( "wxSVGFileDC::SetPen Call called to set a Style which is not available" )
|
||||
);
|
||||
sWarn = sWarn + wxT(
|
||||
@ -710,7 +710,7 @@ void wxSVGFileDC::NewGraphics()
|
||||
|
||||
s = sBrush + sPenCap + sPenJoin + sPenStyle + sLast + newline + sWarn;
|
||||
write( s );
|
||||
m_graphics_changed = FALSE;
|
||||
m_graphics_changed = false;
|
||||
wxASSERT_MSG( !wxSVG_DEBUG, wxT( "wxSVGFileDC::NewGraphics Call executed" ) );
|
||||
}
|
||||
|
||||
@ -730,7 +730,7 @@ void wxSVGFileDC::ComputeScaleAndOrigin()
|
||||
m_scaleY = m_logicalScaleY * m_userScaleY;
|
||||
m_OriginX = m_logicalOriginX * m_logicalScaleX + m_deviceOriginX;
|
||||
m_OriginY = m_logicalOriginY * m_logicalScaleY + m_deviceOriginY;
|
||||
m_graphics_changed = TRUE;
|
||||
m_graphics_changed = true;
|
||||
}
|
||||
|
||||
|
||||
@ -771,8 +771,8 @@ void wxSVGFileDC::SetMapMode( int mode )
|
||||
/* we don't do this mega optimisation
|
||||
* if (mode != wxMM_TEXT)
|
||||
* {
|
||||
* m_needComputeScaleX = TRUE;
|
||||
* m_needComputeScaleY = TRUE;
|
||||
* m_needComputeScaleX = true;
|
||||
* m_needComputeScaleY = true;
|
||||
* }
|
||||
*/
|
||||
}
|
||||
@ -833,22 +833,22 @@ void wxSVGFileDC::SetAxisOrientation( bool xLeftRight, bool yBottomUp )
|
||||
// export a bitmap as a raster image in png
|
||||
bool wxSVGFileDC::DoBlit( wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
||||
wxDC* source, wxCoord xsrc, wxCoord ysrc,
|
||||
int logicalFunc /*= wxCOPY*/, bool useMask /*= FALSE*/,
|
||||
int logicalFunc /*= wxCOPY*/, bool useMask /*= false*/,
|
||||
wxCoord /*xsrcMask = -1*/, wxCoord /*ysrcMask = -1*/ )
|
||||
{
|
||||
if( logicalFunc != wxCOPY )
|
||||
{
|
||||
wxASSERT_MSG( FALSE,
|
||||
wxASSERT_MSG( false,
|
||||
wxT( "wxSVGFileDC::DoBlit Call requested nonCopy mode; this is not possible" )
|
||||
);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
if( useMask != FALSE )
|
||||
if( useMask != false )
|
||||
{
|
||||
wxASSERT_MSG( FALSE,
|
||||
wxASSERT_MSG( false,
|
||||
wxT( "wxSVGFileDC::DoBlit Call requested False mask ; this is not possible" )
|
||||
);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
wxBitmap myBitmap( width, height );
|
||||
wxMemoryDC memDC;
|
||||
@ -857,7 +857,7 @@ bool wxSVGFileDC::DoBlit( wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord h
|
||||
memDC.SelectObject( wxNullBitmap );
|
||||
DoDrawBitmap( myBitmap, xdest, ydest );
|
||||
wxASSERT_MSG( !wxSVG_DEBUG, wxT( "wxSVGFileDC::DoBlit Call executed" ) );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -249,7 +249,7 @@ void DIALOG_PAGES_SETTINGS::SavePageSettings( wxCommandEvent& event )
|
||||
// here we assume translators will keep original paper size spellings
|
||||
if( !pageInfo.SetType( paperType ) )
|
||||
{
|
||||
wxASSERT_MSG( FALSE, wxT( "the translation for paper size must preserve original spellings" ) );
|
||||
wxASSERT_MSG( false, wxT( "the translation for paper size must preserve original spellings" ) );
|
||||
}
|
||||
|
||||
// set portrait _after_ setting size/type above
|
||||
|
@ -101,7 +101,7 @@ bool EDA_APP::OnInit()
|
||||
SetTopWindow( frame );
|
||||
|
||||
frame->LoadProjectFile( filename.GetFullPath() );
|
||||
frame->Show( TRUE );
|
||||
frame->Show( true );
|
||||
frame->BuildFOOTPRINTS_LISTBOX();
|
||||
|
||||
if( filename.IsOk() && filename.FileExists() )
|
||||
|
@ -48,13 +48,13 @@ public:
|
||||
~FOOTPRINTS_LISTBOX();
|
||||
|
||||
int GetCount();
|
||||
void SetSelection( unsigned index, bool State = TRUE );
|
||||
void SetSelection( unsigned index, bool State = true );
|
||||
void SetString( unsigned linecount, const wxString& text );
|
||||
void AppendLine( const wxString& text );
|
||||
void SetFootprintFullList( FOOTPRINT_LIST& list );
|
||||
void SetFootprintFilteredList( COMPONENT* Component,
|
||||
FOOTPRINT_LIST& list );
|
||||
void SetActiveFootprintList( bool FullList, bool Redraw = FALSE );
|
||||
void SetActiveFootprintList( bool FullList, bool Redraw = false );
|
||||
|
||||
wxString GetSelectedFootprint();
|
||||
wxString OnGetItemText( long item, long column ) const;
|
||||
@ -88,7 +88,7 @@ public:
|
||||
void Clear();
|
||||
int GetCount();
|
||||
wxString OnGetItemText( long item, long column ) const;
|
||||
void SetSelection( unsigned index, bool State = TRUE );
|
||||
void SetSelection( unsigned index, bool State = true );
|
||||
void SetString( unsigned linecount, const wxString& text );
|
||||
void AppendLine( const wxString& text );
|
||||
|
||||
|
@ -186,7 +186,7 @@ void DIALOG_CVPCB_CONFIG::OnButtonUpClick( wxCommandEvent& event )
|
||||
list->SetSelection( jj-1 );
|
||||
}
|
||||
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
}
|
||||
|
||||
|
||||
@ -229,7 +229,7 @@ void DIALOG_CVPCB_CONFIG::OnButtonDownClick( wxCommandEvent& event )
|
||||
list->SetSelection(jj+1);
|
||||
}
|
||||
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
}
|
||||
|
||||
|
||||
@ -250,7 +250,7 @@ void DIALOG_CVPCB_CONFIG::OnRemoveLibClick( wxCommandEvent& event )
|
||||
for( int ii = selections.GetCount()-1; ii >= 0; ii-- )
|
||||
{
|
||||
list->Delete(selections[ii] );
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -330,7 +330,7 @@ void DIALOG_CVPCB_CONFIG::OnAddOrInsertLibClick( wxCommandEvent& event )
|
||||
// Add or insert new library name, if not already in list
|
||||
if( list->FindString( libfilename, fn.IsCaseSensitive() ) == wxNOT_FOUND )
|
||||
{
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
|
||||
if( ! insert )
|
||||
list->Append( libfilename );
|
||||
|
@ -53,13 +53,13 @@ void CVPCB_MAINFRAME::SetNewPkg( const wxString& package )
|
||||
m_undefinedComponentCnt -= 1;
|
||||
|
||||
m_ListCmp->SetString( NumCmp, msg );
|
||||
m_ListCmp->SetSelection( NumCmp, FALSE );
|
||||
m_ListCmp->SetSelection( NumCmp, false );
|
||||
|
||||
// We activate next component:
|
||||
if( NumCmp < (m_ListCmp->GetCount() - 1) )
|
||||
NumCmp++;
|
||||
|
||||
m_ListCmp->SetSelection( NumCmp, TRUE );
|
||||
m_ListCmp->SetSelection( NumCmp, true );
|
||||
|
||||
DisplayStatus();
|
||||
}
|
||||
@ -107,7 +107,7 @@ bool CVPCB_MAINFRAME::ReadNetList()
|
||||
}
|
||||
|
||||
if( !m_components.empty() )
|
||||
m_ListCmp->SetSelection( 0, TRUE );
|
||||
m_ListCmp->SetSelection( 0, true );
|
||||
|
||||
DisplayStatus();
|
||||
|
||||
|
@ -97,7 +97,7 @@ void CVPCB_MAINFRAME::BuildCmpListBox()
|
||||
}
|
||||
|
||||
m_ListCmp->SetItemCount( m_ListCmp->m_ComponentList.Count() );
|
||||
m_ListCmp->SetSelection( 0, TRUE );
|
||||
m_ListCmp->SetSelection( 0, true );
|
||||
}
|
||||
|
||||
|
||||
|
@ -116,7 +116,7 @@ int CVPCB_MAINFRAME::GenNetlistPcbnew( FILE* file,bool isEESchemaNetlist )
|
||||
*/
|
||||
void WriteFootprintFilterInfos( FILE* file, COMPONENT_LIST& list )
|
||||
{
|
||||
bool WriteHeader = FALSE;
|
||||
bool WriteHeader = false;
|
||||
|
||||
BOOST_FOREACH( COMPONENT& component, list )
|
||||
{
|
||||
@ -127,7 +127,7 @@ void WriteFootprintFilterInfos( FILE* file, COMPONENT_LIST& list )
|
||||
if( !WriteHeader )
|
||||
{
|
||||
fprintf( file, "{ Allowed footprints by component:\n" );
|
||||
WriteHeader = TRUE;
|
||||
WriteHeader = true;
|
||||
}
|
||||
fprintf( file, "$component %s\n",
|
||||
TO_UTF8( component.m_Reference ) );
|
||||
|
@ -166,7 +166,7 @@ LIB_COMPONENT::LIB_COMPONENT( const wxString& aName, CMP_LIBRARY* aLibrary ) :
|
||||
m_unitCount = 1;
|
||||
m_pinNameOffset = 40;
|
||||
m_options = ENTRY_NORMAL;
|
||||
m_unitsLocked = FALSE;
|
||||
m_unitsLocked = false;
|
||||
m_showPinNumbers = true;
|
||||
m_showPinNames = true;
|
||||
|
||||
@ -763,7 +763,7 @@ bool LIB_COMPONENT::Load( LINE_READER& aLineReader, wxString& aErrorMsg )
|
||||
|
||||
p = strtok( line, " \t\r\n" );
|
||||
|
||||
/* This is the error flag ( if an error occurs, Res = FALSE) */
|
||||
/* This is the error flag ( if an error occurs, Res = false) */
|
||||
Res = true;
|
||||
|
||||
if( *line == '#' ) // a comment
|
||||
|
@ -26,7 +26,7 @@
|
||||
*
|
||||
* Returns
|
||||
* true if the selected component
|
||||
* FALSE canceled order
|
||||
* false canceled order
|
||||
* Place the name of the component has loaded, select from a list in
|
||||
* BufName
|
||||
*/
|
||||
|
@ -56,8 +56,8 @@ extern int PrintListeGLabel( FILE* f, std::vector <BOM_LABEL>& aList );
|
||||
|
||||
|
||||
/* Local variables */
|
||||
static bool s_ListByRef = TRUE;
|
||||
static bool s_ListByValue = TRUE;
|
||||
static bool s_ListByRef = true;
|
||||
static bool s_ListByValue = true;
|
||||
static bool s_ListWithSubCmponents;
|
||||
static bool s_ListHierarchicalPinByName;
|
||||
static bool s_ListBySheet;
|
||||
@ -465,7 +465,7 @@ void DIALOG_BUILD_BOM::CreateExportList( const wxString& aFullFileName,
|
||||
cmplist.RemoveSubComponentsFromList();
|
||||
|
||||
// create the file
|
||||
PrintComponentsListByRef( f, cmplist, TRUE, aIncludeSubComponents );
|
||||
PrintComponentsListByRef( f, cmplist, true, aIncludeSubComponents );
|
||||
|
||||
fclose( f );
|
||||
}
|
||||
|
@ -56,9 +56,9 @@ private:
|
||||
bool aIncludeSubComponents );
|
||||
|
||||
#if defined(KICAD_GOST)
|
||||
wxString PrintFieldData( SCH_COMPONENT* DrawLibItem, bool CompactForm = FALSE );
|
||||
wxString PrintFieldData( SCH_COMPONENT* DrawLibItem, bool CompactForm = false );
|
||||
#else
|
||||
void PrintFieldData( FILE* f, SCH_COMPONENT* DrawLibItem, bool CompactForm = FALSE );
|
||||
void PrintFieldData( FILE* f, SCH_COMPONENT* DrawLibItem, bool CompactForm = false );
|
||||
#endif
|
||||
|
||||
bool IsFieldChecked( int aFieldId );
|
||||
|
@ -128,7 +128,7 @@ void DIALOG_EESCHEMA_CONFIG::OnButtonUpClick( wxCommandEvent& event )
|
||||
m_ListLibr->SetSelection(jj-1);
|
||||
}
|
||||
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
}
|
||||
|
||||
|
||||
@ -162,7 +162,7 @@ void DIALOG_EESCHEMA_CONFIG::OnButtonDownClick( wxCommandEvent& event )
|
||||
m_ListLibr->SetSelection(jj+1);
|
||||
}
|
||||
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
}
|
||||
|
||||
|
||||
@ -243,7 +243,7 @@ void DIALOG_EESCHEMA_CONFIG::OnRemoveLibClick( wxCommandEvent& event )
|
||||
for( int ii = selections.GetCount()-1; ii >= 0; ii-- )
|
||||
{
|
||||
m_ListLibr->Delete( selections[ii] );
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
}
|
||||
|
||||
// Select next item after deleted in m_ListLibr
|
||||
@ -321,7 +321,7 @@ void DIALOG_EESCHEMA_CONFIG::OnAddOrInsertLibClick( wxCommandEvent& event )
|
||||
//Add or insert new library name, if not already in list
|
||||
if( m_ListLibr->FindString( libfilename, fn.IsCaseSensitive() ) == wxNOT_FOUND )
|
||||
{
|
||||
m_LibListChanged = TRUE;
|
||||
m_LibListChanged = true;
|
||||
|
||||
if( event.GetId() == ID_ADD_LIB )
|
||||
m_ListLibr->Append( libfilename );
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
/* Variable locales */
|
||||
extern int DiagErc[PIN_NMAX][PIN_NMAX];
|
||||
extern bool DiagErcTableInit; // go to TRUE after DiagErc init
|
||||
extern bool DiagErcTableInit; // go to true after DiagErc init
|
||||
extern int DefaultDiagErc[PIN_NMAX][PIN_NMAX];
|
||||
extern const wxChar* CommentERC_H[];
|
||||
extern const wxChar* CommentERC_V[];
|
||||
@ -57,7 +57,7 @@ public:
|
||||
void OnResetMatrixClick( wxCommandEvent& event );
|
||||
|
||||
// Double click on a marker info:
|
||||
void OnLeftDClickMarkersList( wxCommandEvent& event );
|
||||
void OnLeftDClickMarkersList( wxCommandEvent& event );
|
||||
|
||||
void TestErc( wxArrayString* aMessagesList );
|
||||
void DisplayERC_MarkersList();
|
||||
|
@ -66,11 +66,11 @@ void DIALOG_LIB_EDIT_TEXT::initDlg( )
|
||||
m_TextValue->SetValue( m_GraphicText->m_Text );
|
||||
|
||||
if ( m_GraphicText->GetUnit() == 0 )
|
||||
m_CommonUnit->SetValue( TRUE );
|
||||
m_CommonUnit->SetValue( true );
|
||||
if ( m_GraphicText->GetConvert() == 0 )
|
||||
m_CommonConvert->SetValue( TRUE );
|
||||
m_CommonConvert->SetValue( true );
|
||||
if ( m_GraphicText->m_Orient == TEXT_ORIENT_VERT )
|
||||
m_Orient->SetValue( TRUE );
|
||||
m_Orient->SetValue( true );
|
||||
|
||||
int shape = 0;
|
||||
if ( m_GraphicText->m_Italic )
|
||||
@ -118,11 +118,11 @@ void DIALOG_LIB_EDIT_TEXT::initDlg( )
|
||||
m_TextSize->SetValue( msg );
|
||||
|
||||
if ( ! m_Parent->m_drawSpecificUnit )
|
||||
m_CommonUnit->SetValue( TRUE );
|
||||
m_CommonUnit->SetValue( true );
|
||||
if ( ! m_Parent->m_drawSpecificConvert )
|
||||
m_CommonConvert->SetValue( TRUE );
|
||||
m_CommonConvert->SetValue( true );
|
||||
if ( m_Parent->m_textOrientation == TEXT_ORIENT_VERT )
|
||||
m_Orient->SetValue( TRUE );
|
||||
m_Orient->SetValue( true );
|
||||
}
|
||||
|
||||
msg = m_TextSizeText->GetLabel() + ReturnUnitSymbol();
|
||||
|
@ -191,13 +191,13 @@ void DIALOG_PLOT_SCHEMATIC_HPGL::SetPageOffsetValue()
|
||||
|
||||
m_PlotOrgPosition_Y->SetValue( msg );
|
||||
|
||||
m_PlotOrgPosition_X->Enable( TRUE );
|
||||
m_PlotOrgPosition_Y->Enable( TRUE );
|
||||
m_PlotOrgPosition_X->Enable( true );
|
||||
m_PlotOrgPosition_Y->Enable( true );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_PlotOrgPosition_X->Enable( FALSE );
|
||||
m_PlotOrgPosition_Y->Enable( FALSE );
|
||||
m_PlotOrgPosition_X->Enable( false );
|
||||
m_PlotOrgPosition_Y->Enable( false );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ void DIALOG_PLOT_SCHEMATIC_PS::OnPlotCurrent( wxCommandEvent& event )
|
||||
|
||||
void DIALOG_PLOT_SCHEMATIC_PS::OnPlotAll( wxCommandEvent& event )
|
||||
{
|
||||
m_select_PlotAll = TRUE;
|
||||
m_select_PlotAll = true;
|
||||
|
||||
initOptVars();
|
||||
createPSFile();
|
||||
|
@ -73,7 +73,7 @@ void SCH_EDIT_FRAME::RedrawActiveWindow( wxDC* DC, bool EraseBg )
|
||||
TraceWorkSheet( DC, GetScreen(), g_DrawDefaultLineThickness );
|
||||
|
||||
if( m_canvas->IsMouseCaptured() )
|
||||
m_canvas->CallMouseCapture( DC, wxDefaultPosition, FALSE );
|
||||
m_canvas->CallMouseCapture( DC, wxDefaultPosition, false );
|
||||
|
||||
m_canvas->DrawCrossHair( DC );
|
||||
|
||||
|
@ -500,7 +500,7 @@ bool WriteDiagnosticERC( const wxString& aFullFileName )
|
||||
int count = 0;
|
||||
|
||||
if( ( file = wxFopen( aFullFileName, wxT( "wt" ) ) ) == NULL )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
msg = _( "ERC report" );
|
||||
|
||||
|
@ -1120,7 +1120,7 @@ void LIB_PIN::DrawPinTexts( EDA_DRAW_PANEL* panel,
|
||||
}
|
||||
|
||||
if( m_name.IsEmpty() )
|
||||
DrawPinName = FALSE;
|
||||
DrawPinName = false;
|
||||
|
||||
if( TextInside ) /* Draw the text inside, but the pin numbers outside. */
|
||||
{
|
||||
@ -1415,7 +1415,7 @@ void LIB_PIN::PlotPinTexts( PLOTTER* plotter,
|
||||
}
|
||||
|
||||
if( m_name.IsEmpty() )
|
||||
DrawPinName = FALSE;
|
||||
DrawPinName = false;
|
||||
|
||||
/* Draw the text inside, but the pin numbers outside. */
|
||||
if( TextInside )
|
||||
|
@ -293,7 +293,7 @@ int SCH_COMPONENT::GetPartCount() const
|
||||
void SCH_COMPONENT::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& offset,
|
||||
int DrawMode, int Color, bool DrawPinText )
|
||||
{
|
||||
bool dummy = FALSE;
|
||||
bool dummy = false;
|
||||
|
||||
LIB_COMPONENT* Entry = CMP_LIBRARY::FindLibraryComponent( m_ChipName );
|
||||
|
||||
@ -854,7 +854,7 @@ void SCH_COMPONENT::SetOrientation( int aOrientation )
|
||||
break;
|
||||
|
||||
default:
|
||||
transform = FALSE;
|
||||
transform = false;
|
||||
wxMessageBox( wxT( "SetRotateMiroir() error: ill value" ) );
|
||||
break;
|
||||
}
|
||||
|
@ -57,13 +57,13 @@ void LIB_VIEW_FRAME::Process_Special_Functions( wxCommandEvent& event )
|
||||
|
||||
case ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT:
|
||||
m_mainToolBar->ToggleTool( ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT, true );
|
||||
m_mainToolBar->ToggleTool( ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT, FALSE );
|
||||
m_mainToolBar->ToggleTool( ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT, false );
|
||||
m_convert = 1;
|
||||
m_canvas->Refresh();
|
||||
break;
|
||||
|
||||
case ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT:
|
||||
m_mainToolBar->ToggleTool( ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT, FALSE );
|
||||
m_mainToolBar->ToggleTool( ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT, false );
|
||||
m_mainToolBar->ToggleTool( ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT, true );
|
||||
m_convert = 2;
|
||||
m_canvas->Refresh();
|
||||
|
@ -85,8 +85,8 @@ void D_CODE::Clear_D_CODE_Data()
|
||||
m_Shape = APT_CIRCLE;
|
||||
m_Drill.x = m_Drill.y = 0;
|
||||
m_DrillShape = APT_DEF_NO_HOLE;
|
||||
m_InUse = FALSE;
|
||||
m_Defined = FALSE;
|
||||
m_InUse = false;
|
||||
m_Defined = false;
|
||||
m_Macro = NULL;
|
||||
m_Rotation = 0.0;
|
||||
m_EdgesCount = 0;
|
||||
|
@ -99,8 +99,8 @@ public:
|
||||
APERTURE_DEF_HOLETYPE m_DrillShape; /* shape of the hole (0 = no hole, round = 1, rect = 2) */
|
||||
double m_Rotation; /* shape rotation in degrees */
|
||||
int m_EdgesCount; /* in aperture definition Polygon only: number of edges for the polygon */
|
||||
bool m_InUse; /* FALSE if not used */
|
||||
bool m_Defined; /* FALSE if not defined */
|
||||
bool m_InUse; /* false if not used */
|
||||
bool m_Defined; /* false if not defined */
|
||||
wxString m_SpecialDescr;
|
||||
|
||||
public:
|
||||
|
@ -158,7 +158,7 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( )
|
||||
m_BoxSelectLayer[ii] = new wxCheckBox( this, -1, msg );
|
||||
|
||||
if( mask & s_SelectedLayers )
|
||||
m_BoxSelectLayer[ii]->SetValue( TRUE );
|
||||
m_BoxSelectLayer[ii]->SetValue( true );
|
||||
if( ii < 16 )
|
||||
m_leftLayersBoxSizer->Add( m_BoxSelectLayer[ii],
|
||||
wxGROW | wxLEFT | wxRIGHT | wxTOP | wxADJUST_MINSIZE );
|
||||
@ -418,7 +418,7 @@ void DIALOG_PRINT_USING_PRINTER::OnPrintPreview( wxCommandEvent& event )
|
||||
wxPreviewFrame* frame = new wxPreviewFrame( preview, this, title, WPos, WSize );
|
||||
|
||||
frame->Initialize();
|
||||
frame->Show( TRUE );
|
||||
frame->Show( true );
|
||||
}
|
||||
|
||||
|
||||
@ -451,7 +451,7 @@ void DIALOG_PRINT_USING_PRINTER::OnPrintButtonClick( wxCommandEvent& event )
|
||||
( (wxPostScriptDC*) dc )->SetResolution( 600 ); // Postscript DC resolution is 600 ppi
|
||||
#endif
|
||||
|
||||
if( !printer.Print( this, &printout, TRUE ) )
|
||||
if( !printer.Print( this, &printout, true ) )
|
||||
{
|
||||
if( wxPrinter::GetLastError() == wxPRINTER_ERROR )
|
||||
DisplayError( this, _( "There was a problem printing" ) );
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user