Loading common/common_plot_functions.cpp +7 −7 Original line number Original line Diff line number Diff line Loading @@ -319,7 +319,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMPANY_NAME: case WS_COMPANY_NAME: msg = screen->m_Company; msg = GetTitleBlock().GetCompany(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -330,7 +330,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_TITLE: case WS_TITLE: msg = screen->m_Title; msg = GetTitleBlock().GetTitle(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -341,7 +341,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT1: case WS_COMMENT1: msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -358,7 +358,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT2: case WS_COMMENT2: msg = screen->m_Commentaire2; msg = GetTitleBlock().GetComment2(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -369,7 +369,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT3: case WS_COMMENT3: msg = screen->m_Commentaire3; msg = GetTitleBlock().GetComment3(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -380,7 +380,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT4: case WS_COMMENT4: msg = screen->m_Commentaire4; msg = GetTitleBlock().GetComment4(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading Loading @@ -415,7 +415,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) { { case WS_CADRE: case WS_CADRE: // Begin list number > 1 // Begin list number > 1 msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading common/worksheet.cpp +12 −12 Original line number Original line Diff line number Diff line Loading @@ -1072,7 +1072,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid refx = pageInfo.GetLeftMarginMils(); refx = pageInfo.GetLeftMarginMils(); #if defined(KICAD_GOST) #if defined(KICAD_GOST) refy = pageSize.y - pageInfo.GetBottomMargin(); // Lower left corner refy = pageSize.y - pageInfo.GetBottomMarginMils(); // Lower left corner for( WsItem = &WS_Segm1_LU; WsItem != NULL; WsItem = WsItem->Pnext ) for( WsItem = &WS_Segm1_LU; WsItem != NULL; WsItem = WsItem->Pnext ) { { pos.x = ( refx - WsItem->m_Posx ) * scale; pos.x = ( refx - WsItem->m_Posx ) * scale; Loading @@ -1093,7 +1093,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_SEGMENT_LU: case WS_SEGMENT_LU: xg = pageInfo.GetLeftMargin() - WsItem->m_Endx; xg = pageInfo.GetLeftMarginMils() - WsItem->m_Endx; yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); Loading @@ -1112,7 +1112,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid case WS_SEGMENT_LT: case WS_SEGMENT_LT: xg = pageInfo.GetLeftMarginMils() + WsItem->m_Endx; xg = pageInfo.GetLeftMarginMils() + WsItem->m_Endx; yg = pageInfo.GetBottomMarginMils() + WsItem->m_Endy; yg = pageInfo.GetBottomMarginMils() + WsItem->m_Endy; GRLine( &m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); break; break; } } Loading Loading @@ -1251,7 +1251,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMPANY_NAME: case WS_COMPANY_NAME: msg = screen->m_Company; msg = GetTitleBlock().GetCompany(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1263,7 +1263,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_TITLE: case WS_TITLE: msg = screen->m_Title; msg = GetTitleBlock().GetTitle(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1275,7 +1275,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT1: case WS_COMMENT1: msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1294,7 +1294,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT2: case WS_COMMENT2: msg = screen->m_Commentaire2; msg = GetTitleBlock().GetComment2(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1305,7 +1305,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT3: case WS_COMMENT3: msg = screen->m_Commentaire3; msg = GetTitleBlock().GetComment3(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1316,7 +1316,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT4: case WS_COMMENT4: msg = screen->m_Commentaire4; msg = GetTitleBlock().GetComment4(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1337,7 +1337,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid pageInfo.GetRightMarginMils() - WsItem->m_Endx; pageInfo.GetRightMarginMils() - WsItem->m_Endx; yg = pageSize.y - yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; pageInfo.GetBottomMarginMils() - WsItem->m_Endy; GRLine( &m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); break; break; } } Loading @@ -1355,7 +1355,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid { { case WS_CADRE: case WS_CADRE: // Begin list number > 1 // Begin list number > 1 msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading Loading @@ -1401,7 +1401,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid pageInfo.GetRightMarginMils() - WsItem->m_Endx; pageInfo.GetRightMarginMils() - WsItem->m_Endx; yg = pageSize.y - yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; pageInfo.GetBottomMarginMils() - WsItem->m_Endy; GRLine( &m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); break; break; } } Loading Loading
common/common_plot_functions.cpp +7 −7 Original line number Original line Diff line number Diff line Loading @@ -319,7 +319,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMPANY_NAME: case WS_COMPANY_NAME: msg = screen->m_Company; msg = GetTitleBlock().GetCompany(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -330,7 +330,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_TITLE: case WS_TITLE: msg = screen->m_Title; msg = GetTitleBlock().GetTitle(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -341,7 +341,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT1: case WS_COMMENT1: msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -358,7 +358,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT2: case WS_COMMENT2: msg = screen->m_Commentaire2; msg = GetTitleBlock().GetComment2(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -369,7 +369,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT3: case WS_COMMENT3: msg = screen->m_Commentaire3; msg = GetTitleBlock().GetComment3(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading @@ -380,7 +380,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) break; break; case WS_COMMENT4: case WS_COMMENT4: msg = screen->m_Commentaire4; msg = GetTitleBlock().GetComment4(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading Loading @@ -415,7 +415,7 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen ) { { case WS_CADRE: case WS_CADRE: // Begin list number > 1 // Begin list number > 1 msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { plotter->text( pos, color, plotter->text( pos, color, Loading
common/worksheet.cpp +12 −12 Original line number Original line Diff line number Diff line Loading @@ -1072,7 +1072,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid refx = pageInfo.GetLeftMarginMils(); refx = pageInfo.GetLeftMarginMils(); #if defined(KICAD_GOST) #if defined(KICAD_GOST) refy = pageSize.y - pageInfo.GetBottomMargin(); // Lower left corner refy = pageSize.y - pageInfo.GetBottomMarginMils(); // Lower left corner for( WsItem = &WS_Segm1_LU; WsItem != NULL; WsItem = WsItem->Pnext ) for( WsItem = &WS_Segm1_LU; WsItem != NULL; WsItem = WsItem->Pnext ) { { pos.x = ( refx - WsItem->m_Posx ) * scale; pos.x = ( refx - WsItem->m_Posx ) * scale; Loading @@ -1093,7 +1093,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_SEGMENT_LU: case WS_SEGMENT_LU: xg = pageInfo.GetLeftMargin() - WsItem->m_Endx; xg = pageInfo.GetLeftMarginMils() - WsItem->m_Endx; yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); Loading @@ -1112,7 +1112,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid case WS_SEGMENT_LT: case WS_SEGMENT_LT: xg = pageInfo.GetLeftMarginMils() + WsItem->m_Endx; xg = pageInfo.GetLeftMarginMils() + WsItem->m_Endx; yg = pageInfo.GetBottomMarginMils() + WsItem->m_Endy; yg = pageInfo.GetBottomMarginMils() + WsItem->m_Endy; GRLine( &m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); break; break; } } Loading Loading @@ -1251,7 +1251,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMPANY_NAME: case WS_COMPANY_NAME: msg = screen->m_Company; msg = GetTitleBlock().GetCompany(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1263,7 +1263,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_TITLE: case WS_TITLE: msg = screen->m_Title; msg = GetTitleBlock().GetTitle(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1275,7 +1275,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT1: case WS_COMMENT1: msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1294,7 +1294,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT2: case WS_COMMENT2: msg = screen->m_Commentaire2; msg = GetTitleBlock().GetComment2(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1305,7 +1305,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT3: case WS_COMMENT3: msg = screen->m_Commentaire3; msg = GetTitleBlock().GetComment3(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1316,7 +1316,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid break; break; case WS_COMMENT4: case WS_COMMENT4: msg = screen->m_Commentaire4; msg = GetTitleBlock().GetComment4(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading @@ -1337,7 +1337,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid pageInfo.GetRightMarginMils() - WsItem->m_Endx; pageInfo.GetRightMarginMils() - WsItem->m_Endx; yg = pageSize.y - yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; pageInfo.GetBottomMarginMils() - WsItem->m_Endy; GRLine( &m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); break; break; } } Loading @@ -1355,7 +1355,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid { { case WS_CADRE: case WS_CADRE: // Begin list number > 1 // Begin list number > 1 msg = screen->m_Commentaire1; msg = GetTitleBlock().GetComment1(); if( !msg.IsEmpty() ) if( !msg.IsEmpty() ) { { DrawGraphicText( m_canvas, DC, pos, Color, DrawGraphicText( m_canvas, DC, pos, Color, Loading Loading @@ -1401,7 +1401,7 @@ void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_wid pageInfo.GetRightMarginMils() - WsItem->m_Endx; pageInfo.GetRightMarginMils() - WsItem->m_Endx; yg = pageSize.y - yg = pageSize.y - pageInfo.GetBottomMarginMils() - WsItem->m_Endy; pageInfo.GetBottomMarginMils() - WsItem->m_Endy; GRLine( &m_canvas->GetClipBox(), DC, pos.x, pos.y, GRLine( m_canvas->GetClipBox(), DC, pos.x, pos.y, xg * scale, yg * scale, width, Color ); xg * scale, yg * scale, width, Color ); break; break; } } Loading