Pcbnew: simplify draw code in default canvas and plot functions by removing the plot LINE option, which is not existing in all plotters, not existing in opengl/cairo canvas, and not usefull in default canvas.
This commit is contained in:
parent
2ff623dcb9
commit
b1cd42cf08
|
@ -433,19 +433,16 @@ void PLOTTER::sketchOval( const wxPoint& pos, const wxSize& aSize, double orient
|
||||||
void PLOTTER::ThickSegment( const wxPoint& start, const wxPoint& end, int width,
|
void PLOTTER::ThickSegment( const wxPoint& start, const wxPoint& end, int width,
|
||||||
EDA_DRAW_MODE_T tracemode )
|
EDA_DRAW_MODE_T tracemode )
|
||||||
{
|
{
|
||||||
switch( tracemode )
|
if( tracemode == FILLED )
|
||||||
{
|
{
|
||||||
case FILLED:
|
SetCurrentLineWidth( width );
|
||||||
case LINE:
|
|
||||||
SetCurrentLineWidth( tracemode==FILLED ? width : -1 );
|
|
||||||
MoveTo( start );
|
MoveTo( start );
|
||||||
FinishTo( end );
|
FinishTo( end );
|
||||||
break;
|
}
|
||||||
|
else
|
||||||
case SKETCH:
|
{
|
||||||
SetCurrentLineWidth( -1 );
|
SetCurrentLineWidth( -1 );
|
||||||
segmentAsOval( start, end, width, tracemode );
|
segmentAsOval( start, end, width, tracemode );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -453,24 +450,15 @@ void PLOTTER::ThickSegment( const wxPoint& start, const wxPoint& end, int width,
|
||||||
void PLOTTER::ThickArc( const wxPoint& centre, double StAngle, double EndAngle,
|
void PLOTTER::ThickArc( const wxPoint& centre, double StAngle, double EndAngle,
|
||||||
int radius, int width, EDA_DRAW_MODE_T tracemode )
|
int radius, int width, EDA_DRAW_MODE_T tracemode )
|
||||||
{
|
{
|
||||||
switch( tracemode )
|
if( tracemode == FILLED )
|
||||||
{
|
|
||||||
case LINE:
|
|
||||||
SetCurrentLineWidth( -1 );
|
|
||||||
Arc( centre, StAngle, EndAngle, radius, NO_FILL, -1 );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case FILLED:
|
|
||||||
Arc( centre, StAngle, EndAngle, radius, NO_FILL, width );
|
Arc( centre, StAngle, EndAngle, radius, NO_FILL, width );
|
||||||
break;
|
else
|
||||||
|
{
|
||||||
case SKETCH:
|
|
||||||
SetCurrentLineWidth( -1 );
|
SetCurrentLineWidth( -1 );
|
||||||
Arc( centre, StAngle, EndAngle,
|
Arc( centre, StAngle, EndAngle,
|
||||||
radius - ( width - currentPenWidth ) / 2, NO_FILL, -1 );
|
radius - ( width - currentPenWidth ) / 2, NO_FILL, -1 );
|
||||||
Arc( centre, StAngle, EndAngle,
|
Arc( centre, StAngle, EndAngle,
|
||||||
radius + ( width - currentPenWidth ) / 2, NO_FILL, -1 );
|
radius + ( width - currentPenWidth ) / 2, NO_FILL, -1 );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -478,17 +466,10 @@ void PLOTTER::ThickArc( const wxPoint& centre, double StAngle, double EndAngle,
|
||||||
void PLOTTER::ThickRect( const wxPoint& p1, const wxPoint& p2, int width,
|
void PLOTTER::ThickRect( const wxPoint& p1, const wxPoint& p2, int width,
|
||||||
EDA_DRAW_MODE_T tracemode )
|
EDA_DRAW_MODE_T tracemode )
|
||||||
{
|
{
|
||||||
switch( tracemode )
|
if( tracemode == FILLED )
|
||||||
{
|
|
||||||
case LINE:
|
|
||||||
Rect( p1, p2, NO_FILL, -1 );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case FILLED:
|
|
||||||
Rect( p1, p2, NO_FILL, width );
|
Rect( p1, p2, NO_FILL, width );
|
||||||
break;
|
else
|
||||||
|
{
|
||||||
case SKETCH:
|
|
||||||
SetCurrentLineWidth( -1 );
|
SetCurrentLineWidth( -1 );
|
||||||
wxPoint offsetp1( p1.x - (width - currentPenWidth) / 2,
|
wxPoint offsetp1( p1.x - (width - currentPenWidth) / 2,
|
||||||
p1.y - (width - currentPenWidth) / 2 );
|
p1.y - (width - currentPenWidth) / 2 );
|
||||||
|
@ -500,28 +481,19 @@ void PLOTTER::ThickRect( const wxPoint& p1, const wxPoint& p2, int width,
|
||||||
offsetp2.x -= (width - currentPenWidth);
|
offsetp2.x -= (width - currentPenWidth);
|
||||||
offsetp2.y -= (width - currentPenWidth);
|
offsetp2.y -= (width - currentPenWidth);
|
||||||
Rect( offsetp1, offsetp2, NO_FILL, -1 );
|
Rect( offsetp1, offsetp2, NO_FILL, -1 );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void PLOTTER::ThickCircle( const wxPoint& pos, int diametre, int width, EDA_DRAW_MODE_T tracemode )
|
void PLOTTER::ThickCircle( const wxPoint& pos, int diametre, int width, EDA_DRAW_MODE_T tracemode )
|
||||||
{
|
{
|
||||||
switch( tracemode )
|
if( tracemode == FILLED )
|
||||||
{
|
|
||||||
case LINE:
|
|
||||||
Circle( pos, diametre, NO_FILL, -1 );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case FILLED:
|
|
||||||
Circle( pos, diametre, NO_FILL, width );
|
Circle( pos, diametre, NO_FILL, width );
|
||||||
break;
|
else
|
||||||
|
{
|
||||||
case SKETCH:
|
|
||||||
SetCurrentLineWidth( -1 );
|
SetCurrentLineWidth( -1 );
|
||||||
Circle( pos, diametre - width + currentPenWidth, NO_FILL, -1 );
|
Circle( pos, diametre - width + currentPenWidth, NO_FILL, -1 );
|
||||||
Circle( pos, diametre + width - currentPenWidth, NO_FILL, -1 );
|
Circle( pos, diametre + width - currentPenWidth, NO_FILL, -1 );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -466,17 +466,9 @@ void DXF_PLOTTER::SetDash( bool dashed )
|
||||||
|
|
||||||
void DXF_PLOTTER::ThickSegment( const wxPoint& aStart, const wxPoint& aEnd, int aWidth,
|
void DXF_PLOTTER::ThickSegment( const wxPoint& aStart, const wxPoint& aEnd, int aWidth,
|
||||||
EDA_DRAW_MODE_T aPlotMode )
|
EDA_DRAW_MODE_T aPlotMode )
|
||||||
{
|
|
||||||
if( aPlotMode == LINE ) // In line mode, just a line is OK
|
|
||||||
{
|
|
||||||
MoveTo( aStart );
|
|
||||||
FinishTo( aEnd );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
segmentAsOval( aStart, aEnd, aWidth, aPlotMode );
|
segmentAsOval( aStart, aEnd, aWidth, aPlotMode );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Plot an arc in DXF format
|
/* Plot an arc in DXF format
|
||||||
* Filling is not supported
|
* Filling is not supported
|
||||||
|
|
|
@ -432,19 +432,16 @@ void GERBER_PLOTTER::FlashPadCircle( const wxPoint& pos, int diametre, EDA_DRAW_
|
||||||
wxASSERT( outputFile );
|
wxASSERT( outputFile );
|
||||||
wxSize size( diametre, diametre );
|
wxSize size( diametre, diametre );
|
||||||
|
|
||||||
switch( trace_mode )
|
if( trace_mode == SKETCH )
|
||||||
{
|
{
|
||||||
case LINE:
|
|
||||||
case SKETCH:
|
|
||||||
SetCurrentLineWidth( -1 );
|
SetCurrentLineWidth( -1 );
|
||||||
Circle( pos, diametre - currentPenWidth, NO_FILL );
|
Circle( pos, diametre - currentPenWidth, NO_FILL );
|
||||||
break;
|
}
|
||||||
|
else
|
||||||
case FILLED:
|
{
|
||||||
DPOINT pos_dev = userToDeviceCoordinates( pos );
|
DPOINT pos_dev = userToDeviceCoordinates( pos );
|
||||||
selectAperture( size, APERTURE::Circle );
|
selectAperture( size, APERTURE::Circle );
|
||||||
emitDcode( pos_dev, 3 );
|
emitDcode( pos_dev, 3 );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -519,23 +516,20 @@ void GERBER_PLOTTER::FlashPadRect( const wxPoint& pos, const wxSize& aSize,
|
||||||
// Pass through
|
// Pass through
|
||||||
case 0:
|
case 0:
|
||||||
case 1800:
|
case 1800:
|
||||||
switch( trace_mode )
|
if( trace_mode == SKETCH )
|
||||||
{
|
{
|
||||||
case LINE:
|
|
||||||
case SKETCH:
|
|
||||||
SetCurrentLineWidth( -1 );
|
SetCurrentLineWidth( -1 );
|
||||||
Rect( wxPoint( pos.x - (size.x - currentPenWidth) / 2,
|
Rect( wxPoint( pos.x - (size.x - currentPenWidth) / 2,
|
||||||
pos.y - (size.y - currentPenWidth) / 2 ),
|
pos.y - (size.y - currentPenWidth) / 2 ),
|
||||||
wxPoint( pos.x + (size.x - currentPenWidth) / 2,
|
wxPoint( pos.x + (size.x - currentPenWidth) / 2,
|
||||||
pos.y + (size.y - currentPenWidth) / 2 ),
|
pos.y + (size.y - currentPenWidth) / 2 ),
|
||||||
NO_FILL );
|
NO_FILL );
|
||||||
break;
|
}
|
||||||
|
else
|
||||||
case FILLED:
|
{
|
||||||
DPOINT pos_dev = userToDeviceCoordinates( pos );
|
DPOINT pos_dev = userToDeviceCoordinates( pos );
|
||||||
selectAperture( size, APERTURE::Rect );
|
selectAperture( size, APERTURE::Rect );
|
||||||
emitDcode( pos_dev, 3 );
|
emitDcode( pos_dev, 3 );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -388,8 +388,8 @@ void HPGL_PLOTTER::ThickSegment( const wxPoint& start, const wxPoint& end,
|
||||||
wxPoint center;
|
wxPoint center;
|
||||||
wxSize size;
|
wxSize size;
|
||||||
|
|
||||||
// Suppress overlap if pen is too big or in line mode
|
// Suppress overlap if pen is too big
|
||||||
if( (penDiameter >= width) || (tracemode == LINE) )
|
if( penDiameter >= width )
|
||||||
{
|
{
|
||||||
MoveTo( start );
|
MoveTo( start );
|
||||||
FinishTo( end );
|
FinishTo( end );
|
||||||
|
@ -491,15 +491,10 @@ void HPGL_PLOTTER::FlashPadCircle( const wxPoint& pos, int diametre,
|
||||||
int delta = KiROUND( penDiameter - penOverlap );
|
int delta = KiROUND( penDiameter - penOverlap );
|
||||||
int radius = diametre / 2;
|
int radius = diametre / 2;
|
||||||
|
|
||||||
if( trace_mode != LINE )
|
|
||||||
{
|
|
||||||
radius = ( diametre - KiROUND( penDiameter ) ) / 2;
|
radius = ( diametre - KiROUND( penDiameter ) ) / 2;
|
||||||
}
|
|
||||||
|
|
||||||
if( radius < 0 )
|
if( radius < 0 )
|
||||||
{
|
|
||||||
radius = 0;
|
radius = 0;
|
||||||
}
|
|
||||||
|
|
||||||
double rsize = userToDeviceSize( radius );
|
double rsize = userToDeviceSize( radius );
|
||||||
|
|
||||||
|
@ -534,11 +529,8 @@ void HPGL_PLOTTER::FlashPadRect( const wxPoint& pos, const wxSize& padsize,
|
||||||
size.x = padsize.x / 2;
|
size.x = padsize.x / 2;
|
||||||
size.y = padsize.y / 2;
|
size.y = padsize.y / 2;
|
||||||
|
|
||||||
if( trace_mode != LINE )
|
|
||||||
{
|
|
||||||
size.x = (padsize.x - (int) penDiameter) / 2;
|
size.x = (padsize.x - (int) penDiameter) / 2;
|
||||||
size.y = (padsize.y - (int) penDiameter) / 2;
|
size.y = (padsize.y - (int) penDiameter) / 2;
|
||||||
}
|
|
||||||
|
|
||||||
if( size.x < 0 )
|
if( size.x < 0 )
|
||||||
size.x = 0;
|
size.x = 0;
|
||||||
|
|
|
@ -346,9 +346,6 @@ void EDA_TEXT::drawOneLineOfText( EDA_RECT* aClipBox, wxDC* aDC,
|
||||||
{
|
{
|
||||||
int width = m_Thickness;
|
int width = m_Thickness;
|
||||||
|
|
||||||
if( aFillMode == LINE )
|
|
||||||
width = 0;
|
|
||||||
|
|
||||||
if( aDrawMode != UNSPECIFIED_DRAWMODE )
|
if( aDrawMode != UNSPECIFIED_DRAWMODE )
|
||||||
GRSetDrawMode( aDC, aDrawMode );
|
GRSetDrawMode( aDC, aDrawMode );
|
||||||
|
|
||||||
|
|
|
@ -252,9 +252,9 @@ void DISPLAY_FOOTPRINTS_FRAME::OnUpdateTextDrawMode( wxUpdateUIEvent& aEvent )
|
||||||
wxString msgTextsFill[2] = { _( "Show texts in filled mode" ),
|
wxString msgTextsFill[2] = { _( "Show texts in filled mode" ),
|
||||||
_( "Show texts in sketch mode" ) };
|
_( "Show texts in sketch mode" ) };
|
||||||
|
|
||||||
unsigned i = displ_opts->m_DisplayModText == SKETCH ? 0 : 1;
|
unsigned i = displ_opts->m_DisplayModTextFill == SKETCH ? 0 : 1;
|
||||||
|
|
||||||
aEvent.Check( displ_opts->m_DisplayModText == SKETCH );
|
aEvent.Check( displ_opts->m_DisplayModTextFill == SKETCH );
|
||||||
m_optionsToolBar->SetToolShortHelp( ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH, msgTextsFill[i] );
|
m_optionsToolBar->SetToolShortHelp( ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH, msgTextsFill[i] );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -267,9 +267,9 @@ void DISPLAY_FOOTPRINTS_FRAME::OnUpdateLineDrawMode( wxUpdateUIEvent& aEvent )
|
||||||
wxString msgEdgesFill[2] = { _( "Show outlines in filled mode" ),
|
wxString msgEdgesFill[2] = { _( "Show outlines in filled mode" ),
|
||||||
_( "Show outlines in sketch mode" ) };
|
_( "Show outlines in sketch mode" ) };
|
||||||
|
|
||||||
int i = displ_opts->m_DisplayModEdge == SKETCH ? 0 : 1;
|
int i = displ_opts->m_DisplayModEdgeFill == SKETCH ? 0 : 1;
|
||||||
|
|
||||||
aEvent.Check( displ_opts->m_DisplayModEdge == SKETCH );
|
aEvent.Check( displ_opts->m_DisplayModEdgeFill == SKETCH );
|
||||||
m_optionsToolBar->SetToolShortHelp( ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH, msgEdgesFill[i] );
|
m_optionsToolBar->SetToolShortHelp( ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH, msgEdgesFill[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,12 +298,12 @@ void DISPLAY_FOOTPRINTS_FRAME::OnSelectOptionToolbar( wxCommandEvent& event )
|
||||||
switch( id )
|
switch( id )
|
||||||
{
|
{
|
||||||
case ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH:
|
case ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH:
|
||||||
displ_opts->m_DisplayModText = displ_opts->m_DisplayModText == FILLED ? SKETCH : FILLED;
|
displ_opts->m_DisplayModTextFill = displ_opts->m_DisplayModTextFill == FILLED ? SKETCH : FILLED;
|
||||||
m_canvas->Refresh( );
|
m_canvas->Refresh( );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH:
|
case ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH:
|
||||||
displ_opts->m_DisplayModEdge = displ_opts->m_DisplayModEdge == FILLED ? SKETCH : FILLED;
|
displ_opts->m_DisplayModEdgeFill = displ_opts->m_DisplayModEdgeFill == FILLED ? SKETCH : FILLED;
|
||||||
m_canvas->Refresh();
|
m_canvas->Refresh();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -74,10 +74,10 @@ void DIALOG_FOOTPRINTS_DISPLAY_OPTIONS::initDialog()
|
||||||
|
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
||||||
|
|
||||||
m_EdgesDisplayOption->SetSelection( displ_opts->m_DisplayModEdge );
|
m_EdgesDisplayOption->SetValue( not displ_opts->m_DisplayModEdgeFill );
|
||||||
m_TextDisplayOption->SetSelection( displ_opts->m_DisplayModText );
|
m_TextDisplayOption->SetValue( not displ_opts->m_DisplayModTextFill );
|
||||||
m_IsShowPadFill->SetValue( displ_opts->m_DisplayPadFill );
|
m_ShowPadSketch->SetValue( not displ_opts->m_DisplayPadFill );
|
||||||
m_IsShowPadNum->SetValue( displ_opts->m_DisplayPadNum );
|
m_ShowPadNum->SetValue( displ_opts->m_DisplayPadNum );
|
||||||
m_IsZoomNoCenter->SetValue( m_Parent->GetCanvas()->GetEnableZoomNoCenter() );
|
m_IsZoomNoCenter->SetValue( m_Parent->GetCanvas()->GetEnableZoomNoCenter() );
|
||||||
m_IsMiddleButtonPan->SetValue( m_Parent->GetCanvas()->GetEnableMiddleButtonPan() );
|
m_IsMiddleButtonPan->SetValue( m_Parent->GetCanvas()->GetEnableMiddleButtonPan() );
|
||||||
m_IsMiddleButtonPanLimited->SetValue( m_Parent->GetCanvas()->GetMiddleButtonPanLimited() );
|
m_IsMiddleButtonPanLimited->SetValue( m_Parent->GetCanvas()->GetMiddleButtonPanLimited() );
|
||||||
|
@ -94,10 +94,10 @@ void DIALOG_FOOTPRINTS_DISPLAY_OPTIONS::UpdateObjectSettings( void )
|
||||||
{
|
{
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
||||||
|
|
||||||
displ_opts->m_DisplayModEdge = m_EdgesDisplayOption->GetSelection();
|
displ_opts->m_DisplayModEdgeFill = not m_EdgesDisplayOption->GetValue();
|
||||||
displ_opts->m_DisplayModText = m_TextDisplayOption->GetSelection();
|
displ_opts->m_DisplayModTextFill = not m_TextDisplayOption->GetValue();
|
||||||
displ_opts->m_DisplayPadNum = m_IsShowPadNum->GetValue();
|
displ_opts->m_DisplayPadNum = m_ShowPadNum->GetValue();
|
||||||
displ_opts->m_DisplayPadFill = m_IsShowPadFill->GetValue();
|
displ_opts->m_DisplayPadFill = not m_ShowPadSketch->GetValue();
|
||||||
m_Parent->GetCanvas()->SetEnableZoomNoCenter( m_IsZoomNoCenter->GetValue() );
|
m_Parent->GetCanvas()->SetEnableZoomNoCenter( m_IsZoomNoCenter->GetValue() );
|
||||||
m_Parent->GetCanvas()->SetEnableMiddleButtonPan( m_IsMiddleButtonPan->GetValue() );
|
m_Parent->GetCanvas()->SetEnableMiddleButtonPan( m_IsMiddleButtonPan->GetValue() );
|
||||||
m_Parent->GetCanvas()->SetMiddleButtonPanLimited( m_IsMiddleButtonPanLimited->GetValue() );
|
m_Parent->GetCanvas()->SetMiddleButtonPanLimited( m_IsMiddleButtonPanLimited->GetValue() );
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 8 2012)
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -19,38 +19,23 @@ DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE(
|
||||||
wxBoxSizer* bUpperSizer;
|
wxBoxSizer* bUpperSizer;
|
||||||
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxBoxSizer* bSizerLeft;
|
wxStaticBoxSizer* sbSizerDrawMode;
|
||||||
bSizerLeft = new wxBoxSizer( wxVERTICAL );
|
sbSizerDrawMode = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Draw options") ), wxVERTICAL );
|
||||||
|
|
||||||
wxString m_EdgesDisplayOptionChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
m_EdgesDisplayOption = new wxCheckBox( this, wxID_ANY, _("Graphic items sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
int m_EdgesDisplayOptionNChoices = sizeof( m_EdgesDisplayOptionChoices ) / sizeof( wxString );
|
sbSizerDrawMode->Add( m_EdgesDisplayOption, 0, wxALL, 5 );
|
||||||
m_EdgesDisplayOption = new wxRadioBox( this, ID_EDGE_SELECT, _("Edges"), wxDefaultPosition, wxDefaultSize, m_EdgesDisplayOptionNChoices, m_EdgesDisplayOptionChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_EdgesDisplayOption->SetSelection( 0 );
|
|
||||||
bSizerLeft->Add( m_EdgesDisplayOption, 1, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
wxString m_TextDisplayOptionChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
m_TextDisplayOption = new wxCheckBox( this, wxID_ANY, _("Texts sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
int m_TextDisplayOptionNChoices = sizeof( m_TextDisplayOptionChoices ) / sizeof( wxString );
|
sbSizerDrawMode->Add( m_TextDisplayOption, 0, wxALL, 5 );
|
||||||
m_TextDisplayOption = new wxRadioBox( this, ID_TEXT_SELECT, _("Text"), wxDefaultPosition, wxDefaultSize, m_TextDisplayOptionNChoices, m_TextDisplayOptionChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_TextDisplayOption->SetSelection( 0 );
|
m_ShowPadSketch = new wxCheckBox( this, ID_PADFILL_OPT, _("Pad sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizerLeft->Add( m_TextDisplayOption, 1, wxALL|wxEXPAND, 5 );
|
sbSizerDrawMode->Add( m_ShowPadSketch, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
m_ShowPadNum = new wxCheckBox( this, wxID_ANY, _("Show pad &number"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
sbSizerDrawMode->Add( m_ShowPadNum, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bUpperSizer->Add( bSizerLeft, 1, wxEXPAND, 5 );
|
bUpperSizer->Add( sbSizerDrawMode, 1, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizerRight;
|
|
||||||
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizerPads;
|
|
||||||
sbSizerPads = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pads") ), wxVERTICAL );
|
|
||||||
|
|
||||||
m_IsShowPadFill = new wxCheckBox( this, ID_PADFILL_OPT, _("Fill &pad"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
sbSizerPads->Add( m_IsShowPadFill, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
|
|
||||||
|
|
||||||
m_IsShowPadNum = new wxCheckBox( this, wxID_ANY, _("Show pad &number"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
sbSizerPads->Add( m_IsShowPadNum, 0, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
bSizerRight->Add( sbSizerPads, 1, wxEXPAND|wxALL, 5 );
|
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizerViewOpt;
|
wxStaticBoxSizer* sbSizerViewOpt;
|
||||||
sbSizerViewOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pan and Zoom") ), wxVERTICAL );
|
sbSizerViewOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pan and Zoom") ), wxVERTICAL );
|
||||||
|
@ -58,19 +43,16 @@ DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE(
|
||||||
m_IsZoomNoCenter = new wxCheckBox( this, wxID_ANY, _("Do not center and warp cusor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_IsZoomNoCenter = new wxCheckBox( this, wxID_ANY, _("Do not center and warp cusor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_IsZoomNoCenter->SetToolTip( _("Keep the cursor at its current location when zooming") );
|
m_IsZoomNoCenter->SetToolTip( _("Keep the cursor at its current location when zooming") );
|
||||||
|
|
||||||
sbSizerViewOpt->Add( m_IsZoomNoCenter, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
|
sbSizerViewOpt->Add( m_IsZoomNoCenter, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
m_IsMiddleButtonPan = new wxCheckBox( this, wxID_ANY, _("Use middle mouse button to pan"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_IsMiddleButtonPan = new wxCheckBox( this, wxID_ANY, _("Use middle mouse button to pan"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerViewOpt->Add( m_IsMiddleButtonPan, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
|
sbSizerViewOpt->Add( m_IsMiddleButtonPan, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
m_IsMiddleButtonPanLimited = new wxCheckBox( this, wxID_ANY, _("Limit panning to scroll size"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_IsMiddleButtonPanLimited = new wxCheckBox( this, wxID_ANY, _("Limit panning to scroll size"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerViewOpt->Add( m_IsMiddleButtonPanLimited, 0, wxALL|wxEXPAND, 5 );
|
sbSizerViewOpt->Add( m_IsMiddleButtonPanLimited, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizerRight->Add( sbSizerViewOpt, 1, wxALL|wxEXPAND, 5 );
|
bUpperSizer->Add( sbSizerViewOpt, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bUpperSizer->Add( bSizerRight, 2, wxEXPAND, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
bSizerMain->Add( bUpperSizer, 1, wxEXPAND, 5 );
|
bSizerMain->Add( bUpperSizer, 1, wxEXPAND, 5 );
|
||||||
|
@ -92,7 +74,6 @@ DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE(
|
||||||
|
|
||||||
this->SetSizer( bSizerMain );
|
this->SetSizer( bSizerMain );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
bSizerMain->Fit( this );
|
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
m_IsMiddleButtonPan->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnMiddleBtnPanEnbl ), NULL, this );
|
m_IsMiddleButtonPan->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnMiddleBtnPanEnbl ), NULL, this );
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||||
<wxFormBuilder_Project>
|
<wxFormBuilder_Project>
|
||||||
<FileVersion major="1" minor="11" />
|
<FileVersion major="1" minor="13" />
|
||||||
<object class="Project" expanded="1">
|
<object class="Project" expanded="1">
|
||||||
<property name="class_decoration"></property>
|
<property name="class_decoration"></property>
|
||||||
<property name="code_generation">C++</property>
|
<property name="code_generation">C++</property>
|
||||||
|
@ -20,8 +20,10 @@
|
||||||
<property name="path">.</property>
|
<property name="path">.</property>
|
||||||
<property name="precompiled_header"></property>
|
<property name="precompiled_header"></property>
|
||||||
<property name="relative_path">1</property>
|
<property name="relative_path">1</property>
|
||||||
|
<property name="skip_lua_events">1</property>
|
||||||
<property name="skip_php_events">1</property>
|
<property name="skip_php_events">1</property>
|
||||||
<property name="skip_python_events">1</property>
|
<property name="skip_python_events">1</property>
|
||||||
|
<property name="ui_table">UI</property>
|
||||||
<property name="use_enum">0</property>
|
<property name="use_enum">0</property>
|
||||||
<property name="use_microsoft_bom">0</property>
|
<property name="use_microsoft_bom">0</property>
|
||||||
<object class="Dialog" expanded="1">
|
<object class="Dialog" expanded="1">
|
||||||
|
@ -42,7 +44,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE</property>
|
<property name="name">DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">-1,-1</property>
|
<property name="size">425,206</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Display Options</property>
|
<property name="title">Display Options</property>
|
||||||
|
@ -102,18 +104,21 @@
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxBoxSizer" expanded="1">
|
<object class="wxStaticBoxSizer" expanded="1">
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Draw options</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizerLeft</property>
|
<property name="name">sbSizerDrawMode</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -127,7 +132,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Line" "Filled" "Sketch"</property>
|
<property name="checked">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -141,9 +146,8 @@
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">ID_EDGE_SELECT</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Edges</property>
|
<property name="label">Graphic items sketch mode</property>
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -159,10 +163,9 @@
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">0</property>
|
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
|
@ -174,6 +177,7 @@
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -190,7 +194,6 @@
|
||||||
<event name="OnMouseEvents"></event>
|
<event name="OnMouseEvents"></event>
|
||||||
<event name="OnMouseWheel"></event>
|
<event name="OnMouseWheel"></event>
|
||||||
<event name="OnPaint"></event>
|
<event name="OnPaint"></event>
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
<event name="OnRightDClick"></event>
|
||||||
<event name="OnRightDown"></event>
|
<event name="OnRightDown"></event>
|
||||||
<event name="OnRightUp"></event>
|
<event name="OnRightUp"></event>
|
||||||
|
@ -201,9 +204,9 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -217,7 +220,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Line" "Filled" "Sketch"</property>
|
<property name="checked">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -231,9 +234,8 @@
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">ID_TEXT_SELECT</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Text</property>
|
<property name="label">Texts sketch mode</property>
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -249,10 +251,9 @@
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">0</property>
|
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
|
@ -264,6 +265,7 @@
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -280,7 +282,6 @@
|
||||||
<event name="OnMouseEvents"></event>
|
<event name="OnMouseEvents"></event>
|
||||||
<event name="OnMouseWheel"></event>
|
<event name="OnMouseWheel"></event>
|
||||||
<event name="OnPaint"></event>
|
<event name="OnPaint"></event>
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
<event name="OnRightDClick"></event>
|
||||||
<event name="OnRightDown"></event>
|
<event name="OnRightDown"></event>
|
||||||
<event name="OnRightUp"></event>
|
<event name="OnRightUp"></event>
|
||||||
|
@ -289,32 +290,9 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxEXPAND</property>
|
|
||||||
<property name="proportion">2</property>
|
|
||||||
<object class="wxBoxSizer" expanded="1">
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="name">bSizerRight</property>
|
|
||||||
<property name="orient">wxVERTICAL</property>
|
|
||||||
<property name="permission">none</property>
|
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxALL</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
<property name="proportion">1</property>
|
|
||||||
<object class="wxStaticBoxSizer" expanded="1">
|
|
||||||
<property name="id">wxID_ANY</property>
|
|
||||||
<property name="label">Pads</property>
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="name">sbSizerPads</property>
|
|
||||||
<property name="orient">wxVERTICAL</property>
|
|
||||||
<property name="permission">none</property>
|
|
||||||
<event name="OnUpdateUI"></event>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT|wxTOP</property>
|
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxCheckBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -345,7 +323,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">ID_PADFILL_OPT</property>
|
<property name="id">ID_PADFILL_OPT</property>
|
||||||
<property name="label">Fill &pad</property>
|
<property name="label">Pad sketch mode</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -353,7 +331,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_IsShowPadFill</property>
|
<property name="name">m_ShowPadSketch</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -441,7 +419,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_IsShowPadNum</property>
|
<property name="name">m_ShowPadNum</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -504,7 +482,7 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT|wxTOP</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxCheckBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -592,7 +570,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT|wxTOP</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxCheckBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -770,8 +748,6 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND | wxALL</property>
|
<property name="flag">wxEXPAND | wxALL</property>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 8 2012)
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -15,13 +15,12 @@ class DIALOG_SHIM;
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/radiobox.h>
|
#include <wx/checkbox.h>
|
||||||
#include <wx/gdicmn.h>
|
#include <wx/gdicmn.h>
|
||||||
#include <wx/font.h>
|
#include <wx/font.h>
|
||||||
#include <wx/colour.h>
|
#include <wx/colour.h>
|
||||||
#include <wx/settings.h>
|
#include <wx/settings.h>
|
||||||
#include <wx/sizer.h>
|
#include <wx/sizer.h>
|
||||||
#include <wx/checkbox.h>
|
|
||||||
#include <wx/statbox.h>
|
#include <wx/statbox.h>
|
||||||
#include <wx/statline.h>
|
#include <wx/statline.h>
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
|
@ -29,9 +28,7 @@ class DIALOG_SHIM;
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#define ID_EDGE_SELECT 1000
|
#define ID_PADFILL_OPT 1000
|
||||||
#define ID_TEXT_SELECT 1001
|
|
||||||
#define ID_PADFILL_OPT 1002
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
/// Class DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE
|
/// Class DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE
|
||||||
|
@ -41,10 +38,10 @@ class DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE : public DIALOG_SHIM
|
||||||
private:
|
private:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxRadioBox* m_EdgesDisplayOption;
|
wxCheckBox* m_EdgesDisplayOption;
|
||||||
wxRadioBox* m_TextDisplayOption;
|
wxCheckBox* m_TextDisplayOption;
|
||||||
wxCheckBox* m_IsShowPadFill;
|
wxCheckBox* m_ShowPadSketch;
|
||||||
wxCheckBox* m_IsShowPadNum;
|
wxCheckBox* m_ShowPadNum;
|
||||||
wxCheckBox* m_IsZoomNoCenter;
|
wxCheckBox* m_IsZoomNoCenter;
|
||||||
wxCheckBox* m_IsMiddleButtonPan;
|
wxCheckBox* m_IsMiddleButtonPan;
|
||||||
wxCheckBox* m_IsMiddleButtonPanLimited;
|
wxCheckBox* m_IsMiddleButtonPanLimited;
|
||||||
|
@ -63,7 +60,7 @@ class DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Display Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Display Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 425,206 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE();
|
~DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -52,11 +52,10 @@ enum EDA_TEXT_VJUSTIFY_T {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Options to show solid segments (segments, texts...) */
|
/* Options to draw items with thickness ( segments, arcs, circles, texts...) */
|
||||||
enum EDA_DRAW_MODE_T {
|
enum EDA_DRAW_MODE_T {
|
||||||
LINE = 0, // segments are drawn as lines
|
FILLED = true, // normal mode: solid segments
|
||||||
FILLED, // normal mode: segments have thickness
|
SKETCH = false // sketch mode: draw segments outlines only
|
||||||
SKETCH // sketch mode: segments have thickness, but are not filled
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -199,12 +198,12 @@ public:
|
||||||
* @param aOffset = draw offset (usually (0,0))
|
* @param aOffset = draw offset (usually (0,0))
|
||||||
* @param aColor = text color
|
* @param aColor = text color
|
||||||
* @param aDrawMode = GR_OR, GR_XOR.., -1 to use the current mode.
|
* @param aDrawMode = GR_OR, GR_XOR.., -1 to use the current mode.
|
||||||
* @param aDisplay_mode = LINE, FILLED or SKETCH
|
* @param aDisplay_mode = FILLED or SKETCH
|
||||||
* @param aAnchor_color = anchor color ( UNSPECIFIED_COLOR = do not draw anchor ).
|
* @param aAnchor_color = anchor color ( UNSPECIFIED_COLOR = do not draw anchor ).
|
||||||
*/
|
*/
|
||||||
void Draw( EDA_RECT* aClipBox, wxDC* aDC,
|
void Draw( EDA_RECT* aClipBox, wxDC* aDC,
|
||||||
const wxPoint& aOffset, EDA_COLOR_T aColor,
|
const wxPoint& aOffset, EDA_COLOR_T aColor,
|
||||||
GR_DRAWMODE aDrawMode, EDA_DRAW_MODE_T aDisplay_mode = LINE,
|
GR_DRAWMODE aDrawMode, EDA_DRAW_MODE_T aDisplay_mode = FILLED,
|
||||||
EDA_COLOR_T aAnchor_color = EDA_COLOR_T(UNSPECIFIED_COLOR) );
|
EDA_COLOR_T aAnchor_color = EDA_COLOR_T(UNSPECIFIED_COLOR) );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -318,7 +317,7 @@ private:
|
||||||
* @param aOffset = draw offset (usually (0,0))
|
* @param aOffset = draw offset (usually (0,0))
|
||||||
* @param aColor = text color
|
* @param aColor = text color
|
||||||
* @param aDrawMode = GR_OR, GR_XOR.., -1 to use the current mode.
|
* @param aDrawMode = GR_OR, GR_XOR.., -1 to use the current mode.
|
||||||
* @param aFillMode = LINE, FILLED or SKETCH
|
* @param aFillMode = FILLED or SKETCH
|
||||||
* @param aText = the single line of text to draw.
|
* @param aText = the single line of text to draw.
|
||||||
* @param aPos = the position of this line ).
|
* @param aPos = the position of this line ).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -75,8 +75,8 @@ public:
|
||||||
bool m_DisplayViaFill;
|
bool m_DisplayViaFill;
|
||||||
bool m_DisplayPadNum; // show pads numbers
|
bool m_DisplayPadNum; // show pads numbers
|
||||||
bool m_DisplayPadIsol;
|
bool m_DisplayPadIsol;
|
||||||
int m_DisplayModEdge; // How to display module drawings (line/ filled / sketch)
|
bool m_DisplayModEdgeFill; // How to display module drawings ( sketch/ filled )
|
||||||
int m_DisplayModText; // How to display module texts (line/ filled / sketch)
|
bool m_DisplayModTextFill; // How to display module texts ( sketch/ filled )
|
||||||
bool m_DisplayPcbTrackFill; // false : tracks are show in sketch mode, true = filled.
|
bool m_DisplayPcbTrackFill; // false : tracks are show in sketch mode, true = filled.
|
||||||
|
|
||||||
/// How trace clearances are displayed. @see TRACE_CLEARANCE_DISPLAY_MODE_T.
|
/// How trace clearances are displayed. @see TRACE_CLEARANCE_DISPLAY_MODE_T.
|
||||||
|
@ -94,7 +94,7 @@ public:
|
||||||
* 3 show netnames on tracks and pads
|
* 3 show netnames on tracks and pads
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int m_DisplayDrawItems;
|
bool m_DisplayDrawItemsFill; // How to display graphic items on board ( sketch/ filled )
|
||||||
bool m_ContrastModeDisplay;
|
bool m_ContrastModeDisplay;
|
||||||
int m_MaxLinksShowed; // in track creation: number of hairwires shown
|
int m_MaxLinksShowed; // in track creation: number of hairwires shown
|
||||||
bool m_Show_Module_Ratsnest; // When moving a footprint: allows displaying a ratsnest
|
bool m_Show_Module_Ratsnest; // When moving a footprint: allows displaying a ratsnest
|
||||||
|
|
|
@ -367,9 +367,6 @@ public:
|
||||||
* to define a configuration setting that needs to be loaded at run time,
|
* to define a configuration setting that needs to be loaded at run time,
|
||||||
* this is the place to define it.
|
* this is the place to define it.
|
||||||
*
|
*
|
||||||
* @todo: Define the configuration variables as member variables instead of
|
|
||||||
* global variables or move them to the object class where they are
|
|
||||||
* used.
|
|
||||||
* @return - Reference to the list of applications settings.
|
* @return - Reference to the list of applications settings.
|
||||||
*/
|
*/
|
||||||
PARAM_CFG_ARRAY& GetConfigurationSettings();
|
PARAM_CFG_ARRAY& GetConfigurationSettings();
|
||||||
|
|
|
@ -753,20 +753,14 @@ void PCB_BASE_FRAME::LoadSettings( wxConfigBase* aCfg )
|
||||||
aCfg->Read( m_FrameName + DisplayPadFillEntry, &m_DisplayOptions.m_DisplayPadFill, true );
|
aCfg->Read( m_FrameName + DisplayPadFillEntry, &m_DisplayOptions.m_DisplayPadFill, true );
|
||||||
aCfg->Read( m_FrameName + DisplayViaFillEntry, &m_DisplayOptions.m_DisplayViaFill, true );
|
aCfg->Read( m_FrameName + DisplayViaFillEntry, &m_DisplayOptions.m_DisplayViaFill, true );
|
||||||
aCfg->Read( m_FrameName + DisplayPadNumberEntry, &m_DisplayOptions.m_DisplayPadNum, true );
|
aCfg->Read( m_FrameName + DisplayPadNumberEntry, &m_DisplayOptions.m_DisplayPadNum, true );
|
||||||
aCfg->Read( m_FrameName + DisplayModuleEdgeEntry, &m_DisplayOptions.m_DisplayModEdge, ( long )FILLED );
|
aCfg->Read( m_FrameName + DisplayModuleEdgeEntry, &m_DisplayOptions.m_DisplayModEdgeFill, true );
|
||||||
|
|
||||||
aCfg->Read( m_FrameName + FastGrid1Entry, &itmp, ( long )0);
|
aCfg->Read( m_FrameName + FastGrid1Entry, &itmp, ( long )0);
|
||||||
m_FastGrid1 = itmp;
|
m_FastGrid1 = itmp;
|
||||||
aCfg->Read( m_FrameName + FastGrid2Entry, &itmp, ( long )0);
|
aCfg->Read( m_FrameName + FastGrid2Entry, &itmp, ( long )0);
|
||||||
m_FastGrid2 = itmp;
|
m_FastGrid2 = itmp;
|
||||||
|
|
||||||
if( m_DisplayOptions.m_DisplayModEdge < LINE || m_DisplayOptions.m_DisplayModEdge > SKETCH )
|
aCfg->Read( m_FrameName + DisplayModuleTextEntry, &m_DisplayOptions.m_DisplayModTextFill, true );
|
||||||
m_DisplayOptions.m_DisplayModEdge = FILLED;
|
|
||||||
|
|
||||||
aCfg->Read( m_FrameName + DisplayModuleTextEntry, &m_DisplayOptions.m_DisplayModText, ( long )FILLED );
|
|
||||||
|
|
||||||
if( m_DisplayOptions.m_DisplayModText < LINE || m_DisplayOptions.m_DisplayModText > SKETCH )
|
|
||||||
m_DisplayOptions.m_DisplayModText = FILLED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -780,8 +774,8 @@ void PCB_BASE_FRAME::SaveSettings( wxConfigBase* aCfg )
|
||||||
aCfg->Write( m_FrameName + DisplayPadFillEntry, m_DisplayOptions.m_DisplayPadFill );
|
aCfg->Write( m_FrameName + DisplayPadFillEntry, m_DisplayOptions.m_DisplayPadFill );
|
||||||
aCfg->Write( m_FrameName + DisplayViaFillEntry, m_DisplayOptions.m_DisplayViaFill );
|
aCfg->Write( m_FrameName + DisplayViaFillEntry, m_DisplayOptions.m_DisplayViaFill );
|
||||||
aCfg->Write( m_FrameName + DisplayPadNumberEntry, m_DisplayOptions.m_DisplayPadNum );
|
aCfg->Write( m_FrameName + DisplayPadNumberEntry, m_DisplayOptions.m_DisplayPadNum );
|
||||||
aCfg->Write( m_FrameName + DisplayModuleEdgeEntry, ( long )m_DisplayOptions.m_DisplayModEdge );
|
aCfg->Write( m_FrameName + DisplayModuleEdgeEntry, m_DisplayOptions.m_DisplayModEdgeFill );
|
||||||
aCfg->Write( m_FrameName + DisplayModuleTextEntry, ( long )m_DisplayOptions.m_DisplayModText );
|
aCfg->Write( m_FrameName + DisplayModuleTextEntry, m_DisplayOptions.m_DisplayModTextFill );
|
||||||
aCfg->Write( m_FrameName + FastGrid1Entry, ( long )m_FastGrid1 );
|
aCfg->Write( m_FrameName + FastGrid1Entry, ( long )m_FastGrid1 );
|
||||||
aCfg->Write( m_FrameName + FastGrid2Entry, ( long )m_FastGrid2 );
|
aCfg->Write( m_FrameName + FastGrid2Entry, ( long )m_FastGrid2 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,7 +334,6 @@ void DIMENSION::AdjustDimensionDetails( bool aDoNotChangeText )
|
||||||
void DIMENSION::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
void DIMENSION::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
||||||
const wxPoint& offset )
|
const wxPoint& offset )
|
||||||
{
|
{
|
||||||
int typeaff, width;
|
|
||||||
EDA_COLOR_T gcolor;
|
EDA_COLOR_T gcolor;
|
||||||
BOARD* brd = GetBoard();
|
BOARD* brd = GetBoard();
|
||||||
|
|
||||||
|
@ -347,18 +346,11 @@ void DIMENSION::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
||||||
|
|
||||||
GRSetDrawMode( DC, mode_color );
|
GRSetDrawMode( DC, mode_color );
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
||||||
typeaff = displ_opts ? displ_opts->m_DisplayDrawItems : FILLED;
|
bool filled = displ_opts ? displ_opts->m_DisplayDrawItemsFill : FILLED;
|
||||||
width = m_Width;
|
int width = m_Width;
|
||||||
|
|
||||||
if( DC->LogicalToDeviceXRel( width ) <= MIN_DRAW_WIDTH )
|
if( filled )
|
||||||
typeaff = LINE;
|
|
||||||
|
|
||||||
switch( typeaff )
|
|
||||||
{
|
{
|
||||||
case LINE:
|
|
||||||
width = 0;
|
|
||||||
|
|
||||||
case FILLED:
|
|
||||||
GRLine( panel->GetClipBox(), DC, m_crossBarO + offset,
|
GRLine( panel->GetClipBox(), DC, m_crossBarO + offset,
|
||||||
m_crossBarF + offset, width, gcolor );
|
m_crossBarF + offset, width, gcolor );
|
||||||
GRLine( panel->GetClipBox(), DC, m_featureLineGO + offset,
|
GRLine( panel->GetClipBox(), DC, m_featureLineGO + offset,
|
||||||
|
@ -373,9 +365,9 @@ void DIMENSION::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
||||||
m_arrowG1F + offset, width, gcolor );
|
m_arrowG1F + offset, width, gcolor );
|
||||||
GRLine( panel->GetClipBox(), DC, m_crossBarO + offset,
|
GRLine( panel->GetClipBox(), DC, m_crossBarO + offset,
|
||||||
m_arrowG2F + offset, width, gcolor );
|
m_arrowG2F + offset, width, gcolor );
|
||||||
break;
|
}
|
||||||
|
else
|
||||||
case SKETCH:
|
{
|
||||||
GRCSegm( panel->GetClipBox(), DC, m_crossBarO + offset,
|
GRCSegm( panel->GetClipBox(), DC, m_crossBarO + offset,
|
||||||
m_crossBarF + offset, width, gcolor );
|
m_crossBarF + offset, width, gcolor );
|
||||||
GRCSegm( panel->GetClipBox(), DC, m_featureLineGO + offset,
|
GRCSegm( panel->GetClipBox(), DC, m_featureLineGO + offset,
|
||||||
|
@ -390,7 +382,6 @@ void DIMENSION::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
||||||
m_arrowG1F + offset, width, gcolor );
|
m_arrowG1F + offset, width, gcolor );
|
||||||
GRCSegm( panel->GetClipBox(), DC, m_crossBarO + offset,
|
GRCSegm( panel->GetClipBox(), DC, m_crossBarO + offset,
|
||||||
m_arrowG2F + offset, width, gcolor );
|
m_arrowG2F + offset, width, gcolor );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,6 @@ void DRAWSEGMENT::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
{
|
{
|
||||||
int ux0, uy0, dx, dy;
|
int ux0, uy0, dx, dy;
|
||||||
int l_trace;
|
int l_trace;
|
||||||
int mode;
|
|
||||||
int radius;
|
int radius;
|
||||||
|
|
||||||
LAYER_ID curr_layer = ( (PCB_SCREEN*) panel->GetScreen() )->m_Active_Layer;
|
LAYER_ID curr_layer = ( (PCB_SCREEN*) panel->GetScreen() )->m_Active_Layer;
|
||||||
|
@ -202,31 +201,24 @@ void DRAWSEGMENT::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
dx = m_End.x + aOffset.x;
|
dx = m_End.x + aOffset.x;
|
||||||
dy = m_End.y + aOffset.y;
|
dy = m_End.y + aOffset.y;
|
||||||
|
|
||||||
mode = displ_opts ? displ_opts->m_DisplayDrawItems : FILLED;
|
bool filled = displ_opts ? displ_opts->m_DisplayDrawItemsFill : FILLED;
|
||||||
|
|
||||||
if( m_Flags & FORCE_SKETCH )
|
if( m_Flags & FORCE_SKETCH )
|
||||||
mode = SKETCH;
|
filled = SKETCH;
|
||||||
|
|
||||||
if( DC->LogicalToDeviceXRel( l_trace ) <= MIN_DRAW_WIDTH )
|
|
||||||
mode = LINE;
|
|
||||||
|
|
||||||
switch( m_Shape )
|
switch( m_Shape )
|
||||||
{
|
{
|
||||||
case S_CIRCLE:
|
case S_CIRCLE:
|
||||||
radius = KiROUND( Distance( ux0, uy0, dx, dy ) );
|
radius = KiROUND( Distance( ux0, uy0, dx, dy ) );
|
||||||
|
|
||||||
if( mode == LINE )
|
if( filled )
|
||||||
{
|
{
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius, color );
|
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius, m_Width, color );
|
||||||
}
|
|
||||||
else if( mode == SKETCH )
|
|
||||||
{
|
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius - l_trace, color );
|
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius + l_trace, color );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius, m_Width, color );
|
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius - l_trace, color );
|
||||||
|
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius + l_trace, color );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -248,22 +240,19 @@ void DRAWSEGMENT::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
EXCHG( StAngle, EndAngle );
|
EXCHG( StAngle, EndAngle );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( mode == LINE )
|
if( filled )
|
||||||
{
|
{
|
||||||
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle, radius, color );
|
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle,
|
||||||
|
radius, m_Width, color );
|
||||||
}
|
}
|
||||||
else if( mode == SKETCH )
|
else
|
||||||
{
|
{
|
||||||
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle,
|
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle,
|
||||||
radius - l_trace, color );
|
radius - l_trace, color );
|
||||||
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle,
|
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle,
|
||||||
radius + l_trace, color );
|
radius + l_trace, color );
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle,
|
|
||||||
radius, m_Width, color );
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case S_CURVE:
|
case S_CURVE:
|
||||||
|
@ -271,23 +260,16 @@ void DRAWSEGMENT::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
|
|
||||||
for( unsigned int i=1; i < m_BezierPoints.size(); i++ )
|
for( unsigned int i=1; i < m_BezierPoints.size(); i++ )
|
||||||
{
|
{
|
||||||
if( mode == LINE )
|
if( filled )
|
||||||
{
|
{
|
||||||
GRLine( panel->GetClipBox(), DC,
|
GRFillCSegm( panel->GetClipBox(), DC,
|
||||||
m_BezierPoints[i].x, m_BezierPoints[i].y,
|
|
||||||
m_BezierPoints[i-1].x, m_BezierPoints[i-1].y, 0,
|
|
||||||
color );
|
|
||||||
}
|
|
||||||
else if( mode == SKETCH )
|
|
||||||
{
|
|
||||||
GRCSegm( panel->GetClipBox(), DC,
|
|
||||||
m_BezierPoints[i].x, m_BezierPoints[i].y,
|
m_BezierPoints[i].x, m_BezierPoints[i].y,
|
||||||
m_BezierPoints[i-1].x, m_BezierPoints[i-1].y,
|
m_BezierPoints[i-1].x, m_BezierPoints[i-1].y,
|
||||||
m_Width, color );
|
m_Width, color );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GRFillCSegm( panel->GetClipBox(), DC,
|
GRCSegm( panel->GetClipBox(), DC,
|
||||||
m_BezierPoints[i].x, m_BezierPoints[i].y,
|
m_BezierPoints[i].x, m_BezierPoints[i].y,
|
||||||
m_BezierPoints[i-1].x, m_BezierPoints[i-1].y,
|
m_BezierPoints[i-1].x, m_BezierPoints[i-1].y,
|
||||||
m_Width, color );
|
m_Width, color );
|
||||||
|
@ -297,17 +279,13 @@ void DRAWSEGMENT::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if( mode == LINE )
|
if( filled )
|
||||||
{
|
{
|
||||||
GRLine( panel->GetClipBox(), DC, ux0, uy0, dx, dy, 0, color );
|
GRFillCSegm( panel->GetClipBox(), DC, ux0, uy0, dx, dy, m_Width, color );
|
||||||
}
|
|
||||||
else if( mode == SKETCH )
|
|
||||||
{
|
|
||||||
GRCSegm( panel->GetClipBox(), DC, ux0, uy0, dx, dy, m_Width, color );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GRFillCSegm( panel->GetClipBox(), DC, ux0, uy0, dx, dy, m_Width, color );
|
GRCSegm( panel->GetClipBox(), DC, ux0, uy0, dx, dy, m_Width, color );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -130,7 +130,6 @@ void EDGE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
const wxPoint& offset )
|
const wxPoint& offset )
|
||||||
{
|
{
|
||||||
int ux0, uy0, dx, dy, radius, StAngle, EndAngle;
|
int ux0, uy0, dx, dy, radius, StAngle, EndAngle;
|
||||||
int typeaff;
|
|
||||||
LAYER_ID curr_layer = ( (PCB_SCREEN*) panel->GetScreen() )->m_Active_Layer;
|
LAYER_ID curr_layer = ( (PCB_SCREEN*) panel->GetScreen() )->m_Active_Layer;
|
||||||
|
|
||||||
MODULE* module = (MODULE*) m_Parent;
|
MODULE* module = (MODULE*) m_Parent;
|
||||||
|
@ -159,25 +158,15 @@ void EDGE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
dy = m_End.y - offset.y;
|
dy = m_End.y - offset.y;
|
||||||
|
|
||||||
GRSetDrawMode( DC, draw_mode );
|
GRSetDrawMode( DC, draw_mode );
|
||||||
typeaff = displ_opts ? displ_opts->m_DisplayModEdge : FILLED;
|
bool filled = displ_opts ? displ_opts->m_DisplayModEdgeFill : FILLED;
|
||||||
|
|
||||||
if( IsCopperLayer( m_Layer ) )
|
if( IsCopperLayer( m_Layer ) )
|
||||||
{
|
filled = displ_opts ? displ_opts->m_DisplayPcbTrackFill : FILLED;
|
||||||
typeaff = displ_opts ? displ_opts->m_DisplayPcbTrackFill : FILLED;
|
|
||||||
|
|
||||||
if( !typeaff )
|
|
||||||
typeaff = SKETCH;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( DC->LogicalToDeviceXRel( m_Width ) <= MIN_DRAW_WIDTH )
|
|
||||||
typeaff = LINE;
|
|
||||||
|
|
||||||
switch( m_Shape )
|
switch( m_Shape )
|
||||||
{
|
{
|
||||||
case S_SEGMENT:
|
case S_SEGMENT:
|
||||||
if( typeaff == LINE )
|
if( filled )
|
||||||
GRLine( panel->GetClipBox(), DC, ux0, uy0, dx, dy, 0, color );
|
|
||||||
else if( typeaff == FILLED )
|
|
||||||
GRLine( panel->GetClipBox(), DC, ux0, uy0, dx, dy, m_Width, color );
|
GRLine( panel->GetClipBox(), DC, ux0, uy0, dx, dy, m_Width, color );
|
||||||
else
|
else
|
||||||
// SKETCH Mode
|
// SKETCH Mode
|
||||||
|
@ -188,13 +177,7 @@ void EDGE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
case S_CIRCLE:
|
case S_CIRCLE:
|
||||||
radius = KiROUND( Distance( ux0, uy0, dx, dy ) );
|
radius = KiROUND( Distance( ux0, uy0, dx, dy ) );
|
||||||
|
|
||||||
if( typeaff == LINE )
|
if( filled )
|
||||||
{
|
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius, color );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if( typeaff == FILLED )
|
|
||||||
{
|
{
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius, m_Width, color );
|
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius, m_Width, color );
|
||||||
}
|
}
|
||||||
|
@ -203,7 +186,6 @@ void EDGE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius + (m_Width / 2), color );
|
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius + (m_Width / 2), color );
|
||||||
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius - (m_Width / 2), color );
|
GRCircle( panel->GetClipBox(), DC, ux0, uy0, radius - (m_Width / 2), color );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -223,11 +205,7 @@ void EDGE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
EXCHG( StAngle, EndAngle );
|
EXCHG( StAngle, EndAngle );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( typeaff == LINE )
|
if( filled )
|
||||||
{
|
|
||||||
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle, radius, color );
|
|
||||||
}
|
|
||||||
else if( typeaff == FILLED )
|
|
||||||
{
|
{
|
||||||
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle, radius, m_Width, color );
|
GRArc( panel->GetClipBox(), DC, ux0, uy0, StAngle, EndAngle, radius, m_Width, color );
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,6 @@ void PCB_TARGET::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
||||||
{
|
{
|
||||||
int radius, ox, oy, width;
|
int radius, ox, oy, width;
|
||||||
int dx1, dx2, dy1, dy2;
|
int dx1, dx2, dy1, dy2;
|
||||||
int typeaff;
|
|
||||||
|
|
||||||
ox = m_Pos.x + offset.x;
|
ox = m_Pos.x + offset.x;
|
||||||
oy = m_Pos.y + offset.y;
|
oy = m_Pos.y + offset.y;
|
||||||
|
@ -103,29 +102,20 @@ void PCB_TARGET::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
||||||
|
|
||||||
GRSetDrawMode( DC, mode_color );
|
GRSetDrawMode( DC, mode_color );
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
||||||
typeaff = displ_opts ? displ_opts->m_DisplayDrawItems : FILLED;
|
bool filled = displ_opts ? displ_opts->m_DisplayDrawItemsFill : FILLED;
|
||||||
width = m_Width;
|
width = m_Width;
|
||||||
|
|
||||||
if( DC->LogicalToDeviceXRel( width ) <= MIN_DRAW_WIDTH )
|
|
||||||
typeaff = LINE;
|
|
||||||
|
|
||||||
radius = m_Size / 3;
|
radius = m_Size / 3;
|
||||||
|
|
||||||
if( GetShape() ) // shape X
|
if( GetShape() ) // shape X
|
||||||
radius = m_Size / 2;
|
radius = m_Size / 2;
|
||||||
|
|
||||||
switch( typeaff )
|
if( filled )
|
||||||
{
|
|
||||||
case LINE:
|
|
||||||
width = 0;
|
|
||||||
|
|
||||||
case FILLED:
|
|
||||||
GRCircle( panel->GetClipBox(), DC, ox, oy, radius, width, gcolor );
|
GRCircle( panel->GetClipBox(), DC, ox, oy, radius, width, gcolor );
|
||||||
break;
|
else
|
||||||
|
{
|
||||||
case SKETCH:
|
|
||||||
GRCircle( panel->GetClipBox(), DC, ox, oy, radius + (width / 2), gcolor );
|
GRCircle( panel->GetClipBox(), DC, ox, oy, radius + (width / 2), gcolor );
|
||||||
GRCircle( panel->GetClipBox(), DC, ox, oy, radius - (width / 2), gcolor );
|
GRCircle( panel->GetClipBox(), DC, ox, oy, radius - (width / 2), gcolor );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -142,18 +132,15 @@ void PCB_TARGET::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE mode_color,
|
||||||
dy2 = -dy1;
|
dy2 = -dy1;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch( typeaff )
|
if( filled )
|
||||||
{
|
{
|
||||||
case LINE:
|
|
||||||
case FILLED:
|
|
||||||
GRLine( panel->GetClipBox(), DC, ox - dx1, oy - dy1, ox + dx1, oy + dy1, width, gcolor );
|
GRLine( panel->GetClipBox(), DC, ox - dx1, oy - dy1, ox + dx1, oy + dy1, width, gcolor );
|
||||||
GRLine( panel->GetClipBox(), DC, ox - dx2, oy - dy2, ox + dx2, oy + dy2, width, gcolor );
|
GRLine( panel->GetClipBox(), DC, ox - dx2, oy - dy2, ox + dx2, oy + dy2, width, gcolor );
|
||||||
break;
|
}
|
||||||
|
else
|
||||||
case SKETCH:
|
{
|
||||||
GRCSegm( panel->GetClipBox(), DC, ox - dx1, oy - dy1, ox + dx1, oy + dy1, width, gcolor );
|
GRCSegm( panel->GetClipBox(), DC, ox - dx1, oy - dy1, ox + dx1, oy + dy1, width, gcolor );
|
||||||
GRCSegm( panel->GetClipBox(), DC, ox - dx2, oy - dy2, ox + dx2, oy + dy2, width, gcolor );
|
GRCSegm( panel->GetClipBox(), DC, ox - dx2, oy - dy2, ox + dx2, oy + dy2, width, gcolor );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ void TEXTE_PCB::Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
|
||||||
EDA_DRAW_MODE_T fillmode = FILLED;
|
EDA_DRAW_MODE_T fillmode = FILLED;
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
||||||
|
|
||||||
if( displ_opts && displ_opts->m_DisplayDrawItems == SKETCH )
|
if( displ_opts && displ_opts->m_DisplayDrawItemsFill == SKETCH )
|
||||||
fillmode = SKETCH;
|
fillmode = SKETCH;
|
||||||
|
|
||||||
EDA_COLOR_T anchor_color = UNSPECIFIED_COLOR;
|
EDA_COLOR_T anchor_color = UNSPECIFIED_COLOR;
|
||||||
|
|
|
@ -268,6 +268,7 @@ void TEXTE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
* hiding.
|
* hiding.
|
||||||
* If the whole module side is disabled this isn't even called */
|
* If the whole module side is disabled this isn't even called */
|
||||||
LAYER_ID text_layer = GetLayer();
|
LAYER_ID text_layer = GetLayer();
|
||||||
|
|
||||||
if( (IsFrontLayer( text_layer ) && !brd->IsElementVisible( MOD_TEXT_FR_VISIBLE )) ||
|
if( (IsFrontLayer( text_layer ) && !brd->IsElementVisible( MOD_TEXT_FR_VISIBLE )) ||
|
||||||
(IsBackLayer( text_layer ) && !brd->IsElementVisible( MOD_TEXT_BK_VISIBLE )) )
|
(IsBackLayer( text_layer ) && !brd->IsElementVisible( MOD_TEXT_BK_VISIBLE )) )
|
||||||
return;
|
return;
|
||||||
|
@ -289,10 +290,8 @@ void TEXTE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
|
||||||
// Draw mode compensation for the width
|
// Draw mode compensation for the width
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
|
||||||
int width = m_Thickness;
|
int width = m_Thickness;
|
||||||
if( ( displ_opts && displ_opts->m_DisplayModText == LINE )
|
|
||||||
|| ( DC->LogicalToDeviceXRel( width ) <= MIN_DRAW_WIDTH ) )
|
if( displ_opts && displ_opts->m_DisplayModTextFill == SKETCH )
|
||||||
width = 0;
|
|
||||||
else if( displ_opts && displ_opts->m_DisplayModText == SKETCH )
|
|
||||||
width = -width;
|
width = -width;
|
||||||
|
|
||||||
GRSetDrawMode( DC, draw_mode );
|
GRSetDrawMode( DC, draw_mode );
|
||||||
|
|
|
@ -207,9 +207,9 @@ DISPLAY_OPTIONS::DISPLAY_OPTIONS()
|
||||||
m_DisplayPadNum = true;
|
m_DisplayPadNum = true;
|
||||||
m_DisplayPadIsol = true;
|
m_DisplayPadIsol = true;
|
||||||
|
|
||||||
m_DisplayModEdge = true;
|
m_DisplayModEdgeFill = FILLED;
|
||||||
m_DisplayModText = true;
|
m_DisplayModTextFill = FILLED;
|
||||||
m_DisplayPcbTrackFill = true; // false = sketch , true = filled
|
m_DisplayPcbTrackFill = FILLED; // false = sketch , true = filled
|
||||||
m_ShowTrackClearanceMode = SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS;
|
m_ShowTrackClearanceMode = SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS;
|
||||||
m_DisplayViaMode = VIA_HOLE_NOT_SHOW;
|
m_DisplayViaMode = VIA_HOLE_NOT_SHOW;
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ DISPLAY_OPTIONS::DISPLAY_OPTIONS()
|
||||||
* 1 show netnames on pads
|
* 1 show netnames on pads
|
||||||
* 2 show netnames on tracks
|
* 2 show netnames on tracks
|
||||||
* 3 show netnames on tracks and pads */
|
* 3 show netnames on tracks and pads */
|
||||||
m_DisplayDrawItems = true;
|
m_DisplayDrawItemsFill = FILLED;
|
||||||
m_ContrastModeDisplay = false;
|
m_ContrastModeDisplay = false;
|
||||||
m_MaxLinksShowed = 3; // in track creation: number of hairwires shown
|
m_MaxLinksShowed = 3; // in track creation: number of hairwires shown
|
||||||
m_Show_Module_Ratsnest = true; // When moving a footprint: allows displaying a ratsnest
|
m_Show_Module_Ratsnest = true; // When moving a footprint: allows displaying a ratsnest
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
/*
|
/*
|
||||||
* 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) 2014 Jean-Pierre Charras, jean-pierre.charras at wanadoo.fr
|
* Copyright (C) 2015 Jean-Pierre Charras, jean-pierre.charras at wanadoo.fr
|
||||||
* Copyright (C) 1992-2014 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.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
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -61,7 +61,7 @@ DIALOG_DISPLAY_OPTIONS::DIALOG_DISPLAY_OPTIONS( PCB_EDIT_FRAME* parent ) :
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
m_buttonOK->SetDefault();
|
m_sdbSizerOK->SetDefault();
|
||||||
GetSizer()->SetSizeHints( this );
|
GetSizer()->SetSizeHints( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,10 +70,7 @@ void DIALOG_DISPLAY_OPTIONS::init()
|
||||||
SetFocus();
|
SetFocus();
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
||||||
|
|
||||||
if ( displ_opts->m_DisplayPcbTrackFill )
|
m_OptDisplayTracks->SetValue( displ_opts->m_DisplayPcbTrackFill == SKETCH );
|
||||||
m_OptDisplayTracks->SetSelection( 1 );
|
|
||||||
else
|
|
||||||
m_OptDisplayTracks->SetSelection( 0 );
|
|
||||||
|
|
||||||
switch ( displ_opts->m_ShowTrackClearanceMode )
|
switch ( displ_opts->m_ShowTrackClearanceMode )
|
||||||
{
|
{
|
||||||
|
@ -99,25 +96,18 @@ void DIALOG_DISPLAY_OPTIONS::init()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( displ_opts->m_DisplayPadFill )
|
m_OptDisplayPads->SetValue( displ_opts->m_DisplayPadFill == SKETCH );
|
||||||
m_OptDisplayPads->SetSelection( 1 );
|
m_OptDisplayVias->SetValue( displ_opts->m_DisplayViaFill == SKETCH );
|
||||||
else
|
|
||||||
m_OptDisplayPads->SetSelection( 0 );
|
|
||||||
|
|
||||||
if ( displ_opts->m_DisplayViaFill )
|
m_Show_Page_Limits->SetValue( m_Parent->ShowPageLimits() );
|
||||||
m_OptDisplayVias->SetSelection( 1 );
|
|
||||||
else
|
|
||||||
m_OptDisplayVias->SetSelection( 0 );
|
|
||||||
|
|
||||||
m_Show_Page_Limits->SetSelection( m_Parent->ShowPageLimits() ? 0 : 1 );
|
|
||||||
|
|
||||||
m_OptDisplayViaHole->SetSelection( displ_opts->m_DisplayViaMode );
|
m_OptDisplayViaHole->SetSelection( displ_opts->m_DisplayViaMode );
|
||||||
m_OptDisplayModTexts->SetSelection( displ_opts->m_DisplayModText );
|
m_OptDisplayModTexts->SetValue( displ_opts->m_DisplayModTextFill == SKETCH );
|
||||||
m_OptDisplayModEdges->SetSelection( displ_opts->m_DisplayModEdge );
|
m_OptDisplayModOutlines->SetValue( displ_opts->m_DisplayModEdgeFill == SKETCH );
|
||||||
m_OptDisplayPadClearence->SetValue( displ_opts->m_DisplayPadIsol );
|
m_OptDisplayPadClearence->SetValue( displ_opts->m_DisplayPadIsol );
|
||||||
m_OptDisplayPadNumber->SetValue( displ_opts->m_DisplayPadNum );
|
m_OptDisplayPadNumber->SetValue( displ_opts->m_DisplayPadNum );
|
||||||
m_OptDisplayPadNoConn->SetValue( m_Parent->IsElementVisible( PCB_VISIBLE( NO_CONNECTS_VISIBLE ) ) );
|
m_OptDisplayPadNoConn->SetValue( m_Parent->IsElementVisible( PCB_VISIBLE( NO_CONNECTS_VISIBLE ) ) );
|
||||||
m_OptDisplayDrawings->SetSelection( displ_opts->m_DisplayDrawItems );
|
m_OptDisplayDrawings->SetValue( displ_opts->m_DisplayDrawItemsFill == SKETCH );
|
||||||
m_ShowNetNamesOption->SetSelection( displ_opts->m_DisplayNetNamesMode );
|
m_ShowNetNamesOption->SetSelection( displ_opts->m_DisplayNetNamesMode );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,12 +124,9 @@ void DIALOG_DISPLAY_OPTIONS::OnOkClick(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)m_Parent->GetDisplayOptions();
|
||||||
|
|
||||||
if ( m_Show_Page_Limits->GetSelection() == 0 )
|
m_Parent->SetShowPageLimits( m_Show_Page_Limits->GetValue() );
|
||||||
m_Parent->SetShowPageLimits( true );
|
|
||||||
else
|
|
||||||
m_Parent->SetShowPageLimits( false );
|
|
||||||
|
|
||||||
displ_opts->m_DisplayPcbTrackFill = m_OptDisplayTracks->GetSelection() == 1;
|
displ_opts->m_DisplayPcbTrackFill = not m_OptDisplayTracks->GetValue();
|
||||||
|
|
||||||
displ_opts->m_DisplayViaMode = (VIA_DISPLAY_MODE_T) m_OptDisplayViaHole->GetSelection();
|
displ_opts->m_DisplayViaMode = (VIA_DISPLAY_MODE_T) m_OptDisplayViaHole->GetSelection();
|
||||||
|
|
||||||
|
@ -166,11 +153,11 @@ void DIALOG_DISPLAY_OPTIONS::OnOkClick(wxCommandEvent& event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
displ_opts->m_DisplayModText = m_OptDisplayModTexts->GetSelection();
|
displ_opts->m_DisplayModTextFill = not m_OptDisplayModTexts->GetValue();
|
||||||
displ_opts->m_DisplayModEdge = m_OptDisplayModEdges->GetSelection();
|
displ_opts->m_DisplayModEdgeFill = not m_OptDisplayModOutlines->GetValue();
|
||||||
|
|
||||||
displ_opts->m_DisplayPadFill = m_OptDisplayPads->GetSelection() == 1;
|
displ_opts->m_DisplayPadFill = not m_OptDisplayPads->GetValue();
|
||||||
displ_opts->m_DisplayViaFill = m_OptDisplayVias->GetSelection() == 1;
|
displ_opts->m_DisplayViaFill = not m_OptDisplayVias->GetValue();
|
||||||
|
|
||||||
displ_opts->m_DisplayPadIsol = m_OptDisplayPadClearence->GetValue();
|
displ_opts->m_DisplayPadIsol = m_OptDisplayPadClearence->GetValue();
|
||||||
|
|
||||||
|
@ -179,7 +166,7 @@ void DIALOG_DISPLAY_OPTIONS::OnOkClick(wxCommandEvent& event)
|
||||||
m_Parent->SetElementVisibility( PCB_VISIBLE(NO_CONNECTS_VISIBLE),
|
m_Parent->SetElementVisibility( PCB_VISIBLE(NO_CONNECTS_VISIBLE),
|
||||||
m_OptDisplayPadNoConn->GetValue() );
|
m_OptDisplayPadNoConn->GetValue() );
|
||||||
|
|
||||||
displ_opts->m_DisplayDrawItems = m_OptDisplayDrawings->GetSelection();
|
displ_opts->m_DisplayDrawItemsFill = not m_OptDisplayDrawings->GetValue();
|
||||||
displ_opts->m_DisplayNetNamesMode = m_ShowNetNamesOption->GetSelection();
|
displ_opts->m_DisplayNetNamesMode = m_ShowNetNamesOption->GetSelection();
|
||||||
|
|
||||||
// Apply changes to the GAL
|
// Apply changes to the GAL
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jun 6 2014)
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -14,24 +14,19 @@ DIALOG_DISPLAY_OPTIONS_BASE::DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWi
|
||||||
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
||||||
|
|
||||||
wxBoxSizer* bMainSizer;
|
wxBoxSizer* bMainSizer;
|
||||||
bMainSizer = new wxBoxSizer( wxHORIZONTAL );
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
wxBoxSizer* bupperSizer;
|
||||||
|
bupperSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxStaticBoxSizer* sLeftBoxSizer;
|
wxStaticBoxSizer* sLeftBoxSizer;
|
||||||
sLeftBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Tracks and vias:") ), wxVERTICAL );
|
sLeftBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Tracks and vias:") ), wxVERTICAL );
|
||||||
|
|
||||||
wxString m_OptDisplayTracksChoices[] = { _("Sketch"), _("Filled") };
|
m_OptDisplayTracks = new wxCheckBox( this, wxID_ANY, _("Tracks sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
int m_OptDisplayTracksNChoices = sizeof( m_OptDisplayTracksChoices ) / sizeof( wxString );
|
sLeftBoxSizer->Add( m_OptDisplayTracks, 0, wxALL, 5 );
|
||||||
m_OptDisplayTracks = new wxRadioBox( this, wxID_DISPLAY_TRACK, _("Tracks:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayTracksNChoices, m_OptDisplayTracksChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_OptDisplayTracks->SetSelection( 1 );
|
|
||||||
m_OptDisplayTracks->SetToolTip( _("Select how tracks are displayed") );
|
|
||||||
|
|
||||||
sLeftBoxSizer->Add( m_OptDisplayTracks, 0, wxALL|wxEXPAND, 5 );
|
m_OptDisplayVias = new wxCheckBox( this, wxID_ANY, _("Vias sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
sLeftBoxSizer->Add( m_OptDisplayVias, 0, wxALL, 5 );
|
||||||
wxString m_OptDisplayViasChoices[] = { _("Sketch"), _("Filled") };
|
|
||||||
int m_OptDisplayViasNChoices = sizeof( m_OptDisplayViasChoices ) / sizeof( wxString );
|
|
||||||
m_OptDisplayVias = new wxRadioBox( this, ID_VIAS_SHAPES, _("Via Shapes:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayViasNChoices, m_OptDisplayViasChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_OptDisplayVias->SetSelection( 1 );
|
|
||||||
sLeftBoxSizer->Add( m_OptDisplayVias, 0, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
wxString m_OptDisplayViaHoleChoices[] = { _("Never"), _("Defined holes"), _("Always") };
|
wxString m_OptDisplayViaHoleChoices[] = { _("Never"), _("Defined holes"), _("Always") };
|
||||||
int m_OptDisplayViaHoleNChoices = sizeof( m_OptDisplayViaHoleChoices ) / sizeof( wxString );
|
int m_OptDisplayViaHoleNChoices = sizeof( m_OptDisplayViaHoleChoices ) / sizeof( wxString );
|
||||||
|
@ -39,10 +34,10 @@ DIALOG_DISPLAY_OPTIONS_BASE::DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWi
|
||||||
m_OptDisplayViaHole->SetSelection( 1 );
|
m_OptDisplayViaHole->SetSelection( 1 );
|
||||||
m_OptDisplayViaHole->SetToolTip( _("Show (or not) via holes.\nIf Defined Holes is selected, only the non default size holes are shown") );
|
m_OptDisplayViaHole->SetToolTip( _("Show (or not) via holes.\nIf Defined Holes is selected, only the non default size holes are shown") );
|
||||||
|
|
||||||
sLeftBoxSizer->Add( m_OptDisplayViaHole, 0, wxALL|wxEXPAND, 5 );
|
sLeftBoxSizer->Add( m_OptDisplayViaHole, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bMainSizer->Add( sLeftBoxSizer, 0, wxEXPAND|wxALL, 5 );
|
bupperSizer->Add( sLeftBoxSizer, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
wxStaticBoxSizer* sbMiddleLeftSizer;
|
wxStaticBoxSizer* sbMiddleLeftSizer;
|
||||||
sbMiddleLeftSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Routing help:") ), wxVERTICAL );
|
sbMiddleLeftSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Routing help:") ), wxVERTICAL );
|
||||||
|
@ -53,7 +48,7 @@ DIALOG_DISPLAY_OPTIONS_BASE::DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWi
|
||||||
m_ShowNetNamesOption->SetSelection( 3 );
|
m_ShowNetNamesOption->SetSelection( 3 );
|
||||||
m_ShowNetNamesOption->SetToolTip( _("Show or not net names on pads and/or tracks") );
|
m_ShowNetNamesOption->SetToolTip( _("Show or not net names on pads and/or tracks") );
|
||||||
|
|
||||||
sbMiddleLeftSizer->Add( m_ShowNetNamesOption, 0, wxALL, 5 );
|
sbMiddleLeftSizer->Add( m_ShowNetNamesOption, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxString m_OptDisplayTracksClearanceChoices[] = { _("Never"), _("New track"), _("New track with via area"), _("New and edited tracks with via area"), _("Always") };
|
wxString m_OptDisplayTracksClearanceChoices[] = { _("Never"), _("New track"), _("New track with via area"), _("New and edited tracks with via area"), _("Always") };
|
||||||
int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
|
int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
|
||||||
|
@ -61,104 +56,87 @@ DIALOG_DISPLAY_OPTIONS_BASE::DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWi
|
||||||
m_OptDisplayTracksClearance->SetSelection( 3 );
|
m_OptDisplayTracksClearance->SetSelection( 3 );
|
||||||
m_OptDisplayTracksClearance->SetToolTip( _("Show( or not) tracks clearance area.\nIf New track is selected, track clearance area is shown only when creating the track.") );
|
m_OptDisplayTracksClearance->SetToolTip( _("Show( or not) tracks clearance area.\nIf New track is selected, track clearance area is shown only when creating the track.") );
|
||||||
|
|
||||||
sbMiddleLeftSizer->Add( m_OptDisplayTracksClearance, 0, wxALL|wxEXPAND, 5 );
|
sbMiddleLeftSizer->Add( m_OptDisplayTracksClearance, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bMainSizer->Add( sbMiddleLeftSizer, 0, wxALL|wxEXPAND, 5 );
|
bupperSizer->Add( sbMiddleLeftSizer, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxStaticBoxSizer* sMiddleRightSizer;
|
wxBoxSizer* b_rightSizer;
|
||||||
sMiddleRightSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Footprints:") ), wxHORIZONTAL );
|
b_rightSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxBoxSizer* bLModuleSizer;
|
wxStaticBoxSizer* sfootprintSizer;
|
||||||
bLModuleSizer = new wxBoxSizer( wxVERTICAL );
|
sfootprintSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Footprints:") ), wxVERTICAL );
|
||||||
|
|
||||||
wxString m_OptDisplayModEdgesChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
m_OptDisplayModOutlines = new wxCheckBox( this, wxID_ANY, _("Outlines sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
int m_OptDisplayModEdgesNChoices = sizeof( m_OptDisplayModEdgesChoices ) / sizeof( wxString );
|
sfootprintSizer->Add( m_OptDisplayModOutlines, 0, wxALL, 5 );
|
||||||
m_OptDisplayModEdges = new wxRadioBox( this, ID_EDGES_MODULES, _("Footprint Edges:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayModEdgesNChoices, m_OptDisplayModEdgesChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_OptDisplayModEdges->SetSelection( 1 );
|
|
||||||
bLModuleSizer->Add( m_OptDisplayModEdges, 0, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
wxString m_OptDisplayModTextsChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
m_OptDisplayModTexts
|
||||||
int m_OptDisplayModTextsNChoices = sizeof( m_OptDisplayModTextsChoices ) / sizeof( wxString );
|
= new wxCheckBox( this, wxID_ANY, _("Texts sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_OptDisplayModTexts = new wxRadioBox( this, ID_TEXT_MODULES, _("Texts:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayModTextsNChoices, m_OptDisplayModTextsChoices, 1, wxRA_SPECIFY_COLS );
|
sfootprintSizer->Add( m_OptDisplayModTexts
|
||||||
m_OptDisplayModTexts->SetSelection( 1 );
|
, 0, wxALL, 5 );
|
||||||
bLModuleSizer->Add( m_OptDisplayModTexts, 0, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
|
m_OptDisplayPads = new wxCheckBox( this, wxID_ANY, _("Pads sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sMiddleRightSizer->Add( bLModuleSizer, 0, 0, 5 );
|
sfootprintSizer->Add( m_OptDisplayPads, 0, wxALL, 5 );
|
||||||
|
|
||||||
wxStaticBoxSizer* bRModuleSizer;
|
|
||||||
bRModuleSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pad Options:") ), wxVERTICAL );
|
|
||||||
|
|
||||||
wxString m_OptDisplayPadsChoices[] = { _("Sketch"), _("Filled") };
|
|
||||||
int m_OptDisplayPadsNChoices = sizeof( m_OptDisplayPadsChoices ) / sizeof( wxString );
|
|
||||||
m_OptDisplayPads = new wxRadioBox( this, ID_PADS_SHAPES, _("Pad Shapes:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayPadsNChoices, m_OptDisplayPadsChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_OptDisplayPads->SetSelection( 1 );
|
|
||||||
bRModuleSizer->Add( m_OptDisplayPads, 0, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
m_OptDisplayPadClearence = new wxCheckBox( this, wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_OptDisplayPadClearence = new wxCheckBox( this, wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bRModuleSizer->Add( m_OptDisplayPadClearence, 0, wxALL, 5 );
|
sfootprintSizer->Add( m_OptDisplayPadClearence, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_OptDisplayPadNumber = new wxCheckBox( this, wxID_ANY, _("Show pad number"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_OptDisplayPadNumber = new wxCheckBox( this, wxID_ANY, _("Show pad number"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_OptDisplayPadNumber->SetValue(true);
|
m_OptDisplayPadNumber->SetValue(true);
|
||||||
bRModuleSizer->Add( m_OptDisplayPadNumber, 0, wxALL, 5 );
|
sfootprintSizer->Add( m_OptDisplayPadNumber, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_OptDisplayPadNoConn = new wxCheckBox( this, wxID_ANY, _("Show pad NoConnect"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_OptDisplayPadNoConn = new wxCheckBox( this, wxID_ANY, _("Show pad NoConnect"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_OptDisplayPadNoConn->SetValue(true);
|
m_OptDisplayPadNoConn->SetValue(true);
|
||||||
bRModuleSizer->Add( m_OptDisplayPadNoConn, 0, wxALL, 5 );
|
sfootprintSizer->Add( m_OptDisplayPadNoConn, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
sMiddleRightSizer->Add( bRModuleSizer, 0, 0, 5 );
|
b_rightSizer->Add( sfootprintSizer, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* s_otherSizer;
|
||||||
|
s_otherSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Others:") ), wxVERTICAL );
|
||||||
|
|
||||||
|
m_OptDisplayDrawings = new wxCheckBox( this, wxID_ANY, _("Graphic items sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_OptDisplayDrawings->SetValue(true);
|
||||||
|
s_otherSizer->Add( m_OptDisplayDrawings, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
m_Show_Page_Limits = new wxCheckBox( this, wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_Show_Page_Limits->SetValue(true);
|
||||||
|
s_otherSizer->Add( m_Show_Page_Limits, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bMainSizer->Add( sMiddleRightSizer, 0, wxEXPAND|wxALL, 5 );
|
b_rightSizer->Add( s_otherSizer, 1, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bRightSizer;
|
|
||||||
bRightSizer = new wxBoxSizer( wxVERTICAL );
|
|
||||||
|
|
||||||
wxStaticBoxSizer* sRightUpperSizer;
|
|
||||||
sRightUpperSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Others:") ), wxVERTICAL );
|
|
||||||
|
|
||||||
wxString m_OptDisplayDrawingsChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
|
||||||
int m_OptDisplayDrawingsNChoices = sizeof( m_OptDisplayDrawingsChoices ) / sizeof( wxString );
|
|
||||||
m_OptDisplayDrawings = new wxRadioBox( this, wxID_ANY, _("Display other items:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayDrawingsNChoices, m_OptDisplayDrawingsChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_OptDisplayDrawings->SetSelection( 1 );
|
|
||||||
sRightUpperSizer->Add( m_OptDisplayDrawings, 0, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
wxString m_Show_Page_LimitsChoices[] = { _("Yes"), _("No") };
|
|
||||||
int m_Show_Page_LimitsNChoices = sizeof( m_Show_Page_LimitsChoices ) / sizeof( wxString );
|
|
||||||
m_Show_Page_Limits = new wxRadioBox( this, wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, m_Show_Page_LimitsNChoices, m_Show_Page_LimitsChoices, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_Show_Page_Limits->SetSelection( 1 );
|
|
||||||
sRightUpperSizer->Add( m_Show_Page_Limits, 0, wxALL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
bRightSizer->Add( sRightUpperSizer, 1, wxEXPAND, 5 );
|
bupperSizer->Add( b_rightSizer, 0, 0, 5 );
|
||||||
|
|
||||||
|
|
||||||
bRightSizer->Add( 10, 10, 0, 0, 5 );
|
bMainSizer->Add( bupperSizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
bRightSizer->Add( m_buttonOK, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
bMainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
|
||||||
|
|
||||||
m_buttonCANCEL = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
||||||
bRightSizer->Add( m_buttonCANCEL, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
||||||
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
||||||
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
||||||
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
||||||
|
m_sdbSizer->Realize();
|
||||||
|
|
||||||
|
bMainSizer->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
|
||||||
bMainSizer->Add( bRightSizer, 0, wxEXPAND|wxALL, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
this->SetSizer( bMainSizer );
|
this->SetSizer( bMainSizer );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
|
m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
|
||||||
m_buttonCANCEL->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
|
m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
DIALOG_DISPLAY_OPTIONS_BASE::~DIALOG_DISPLAY_OPTIONS_BASE()
|
DIALOG_DISPLAY_OPTIONS_BASE::~DIALOG_DISPLAY_OPTIONS_BASE()
|
||||||
{
|
{
|
||||||
// Disconnect Events
|
// Disconnect Events
|
||||||
m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
|
m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
|
||||||
m_buttonCANCEL->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
|
m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">DIALOG_DISPLAY_OPTIONS_BASE</property>
|
<property name="name">DIALOG_DISPLAY_OPTIONS_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">880,320</property>
|
<property name="size">562,361</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Display options</property>
|
<property name="title">Display options</property>
|
||||||
|
@ -91,6 +91,15 @@
|
||||||
<object class="wxBoxSizer" expanded="1">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bMainSizer</property>
|
<property name="name">bMainSizer</property>
|
||||||
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">bupperSizer</property>
|
||||||
<property name="orient">wxHORIZONTAL</property>
|
<property name="orient">wxHORIZONTAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
|
@ -107,9 +116,9 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -123,7 +132,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Sketch" "Filled"</property>
|
<property name="checked">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -137,9 +146,8 @@
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_DISPLAY_TRACK</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Tracks:</property>
|
<property name="label">Tracks sketch mode</property>
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -155,13 +163,12 @@
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">1</property>
|
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Select how tracks are displayed</property>
|
<property name="tooltip"></property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -170,6 +177,7 @@
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -186,7 +194,6 @@
|
||||||
<event name="OnMouseEvents"></event>
|
<event name="OnMouseEvents"></event>
|
||||||
<event name="OnMouseWheel"></event>
|
<event name="OnMouseWheel"></event>
|
||||||
<event name="OnPaint"></event>
|
<event name="OnPaint"></event>
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
<event name="OnRightDClick"></event>
|
||||||
<event name="OnRightDown"></event>
|
<event name="OnRightDown"></event>
|
||||||
<event name="OnRightUp"></event>
|
<event name="OnRightUp"></event>
|
||||||
|
@ -197,9 +204,9 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -213,7 +220,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Sketch" "Filled"</property>
|
<property name="checked">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -227,9 +234,8 @@
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">ID_VIAS_SHAPES</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Via Shapes:</property>
|
<property name="label">Vias sketch mode</property>
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -245,10 +251,9 @@
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">1</property>
|
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
|
@ -260,6 +265,7 @@
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -276,7 +282,6 @@
|
||||||
<event name="OnMouseEvents"></event>
|
<event name="OnMouseEvents"></event>
|
||||||
<event name="OnMouseWheel"></event>
|
<event name="OnMouseWheel"></event>
|
||||||
<event name="OnPaint"></event>
|
<event name="OnPaint"></event>
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
<event name="OnRightDClick"></event>
|
||||||
<event name="OnRightDown"></event>
|
<event name="OnRightDown"></event>
|
||||||
<event name="OnRightUp"></event>
|
<event name="OnRightUp"></event>
|
||||||
|
@ -288,7 +293,7 @@
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxRadioBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
|
@ -391,8 +396,8 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxRadioBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
|
@ -482,7 +487,7 @@
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxRadioBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
|
@ -571,6 +576,15 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag"></property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">b_rightSizer</property>
|
||||||
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxALL</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
|
@ -579,24 +593,15 @@
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Footprints:</property>
|
<property name="label">Footprints:</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">sMiddleRightSizer</property>
|
<property name="name">sfootprintSizer</property>
|
||||||
<property name="orient">wxHORIZONTAL</property>
|
|
||||||
<property name="permission">none</property>
|
|
||||||
<event name="OnUpdateUI"></event>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag"></property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxBoxSizer" expanded="1">
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="name">bLModuleSizer</property>
|
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -610,7 +615,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Line" "Filled" "Sketch"</property>
|
<property name="checked">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -624,173 +629,67 @@
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">ID_EDGES_MODULES</property>
|
|
||||||
<property name="label">Footprint Edges:</property>
|
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size"></property>
|
|
||||||
<property name="min_size"></property>
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="moveable">1</property>
|
|
||||||
<property name="name">m_OptDisplayModEdges</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position"></property>
|
|
||||||
<property name="pane_size"></property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="pin_button">1</property>
|
|
||||||
<property name="pos"></property>
|
|
||||||
<property name="resize">Resizable</property>
|
|
||||||
<property name="selection">1</property>
|
|
||||||
<property name="show">1</property>
|
|
||||||
<property name="size"></property>
|
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
|
||||||
<property name="subclass"></property>
|
|
||||||
<property name="toolbar_pane">0</property>
|
|
||||||
<property name="tooltip"></property>
|
|
||||||
<property name="validator_data_type"></property>
|
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
|
||||||
<property name="validator_variable"></property>
|
|
||||||
<property name="window_extra_style"></property>
|
|
||||||
<property name="window_name"></property>
|
|
||||||
<property name="window_style"></property>
|
|
||||||
<event name="OnChar"></event>
|
|
||||||
<event name="OnEnterWindow"></event>
|
|
||||||
<event name="OnEraseBackground"></event>
|
|
||||||
<event name="OnKeyDown"></event>
|
|
||||||
<event name="OnKeyUp"></event>
|
|
||||||
<event name="OnKillFocus"></event>
|
|
||||||
<event name="OnLeaveWindow"></event>
|
|
||||||
<event name="OnLeftDClick"></event>
|
|
||||||
<event name="OnLeftDown"></event>
|
|
||||||
<event name="OnLeftUp"></event>
|
|
||||||
<event name="OnMiddleDClick"></event>
|
|
||||||
<event name="OnMiddleDown"></event>
|
|
||||||
<event name="OnMiddleUp"></event>
|
|
||||||
<event name="OnMotion"></event>
|
|
||||||
<event name="OnMouseEvents"></event>
|
|
||||||
<event name="OnMouseWheel"></event>
|
|
||||||
<event name="OnPaint"></event>
|
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
|
||||||
<event name="OnRightDown"></event>
|
|
||||||
<event name="OnRightUp"></event>
|
|
||||||
<event name="OnSetFocus"></event>
|
|
||||||
<event name="OnSize"></event>
|
|
||||||
<event name="OnUpdateUI"></event>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxRadioBox" expanded="1">
|
|
||||||
<property name="BottomDockable">1</property>
|
|
||||||
<property name="LeftDockable">1</property>
|
|
||||||
<property name="RightDockable">1</property>
|
|
||||||
<property name="TopDockable">1</property>
|
|
||||||
<property name="aui_layer"></property>
|
|
||||||
<property name="aui_name"></property>
|
|
||||||
<property name="aui_position"></property>
|
|
||||||
<property name="aui_row"></property>
|
|
||||||
<property name="best_size"></property>
|
|
||||||
<property name="bg"></property>
|
|
||||||
<property name="caption"></property>
|
|
||||||
<property name="caption_visible">1</property>
|
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="choices">"Line" "Filled" "Sketch"</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="context_help"></property>
|
|
||||||
<property name="context_menu">1</property>
|
|
||||||
<property name="default_pane">0</property>
|
|
||||||
<property name="dock">Dock</property>
|
|
||||||
<property name="dock_fixed">0</property>
|
|
||||||
<property name="docking">Left</property>
|
|
||||||
<property name="enabled">1</property>
|
|
||||||
<property name="fg"></property>
|
|
||||||
<property name="floatable">1</property>
|
|
||||||
<property name="font"></property>
|
|
||||||
<property name="gripper">0</property>
|
|
||||||
<property name="hidden">0</property>
|
|
||||||
<property name="id">ID_TEXT_MODULES</property>
|
|
||||||
<property name="label">Texts:</property>
|
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size"></property>
|
|
||||||
<property name="min_size"></property>
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="moveable">1</property>
|
|
||||||
<property name="name">m_OptDisplayModTexts</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position"></property>
|
|
||||||
<property name="pane_size"></property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="pin_button">1</property>
|
|
||||||
<property name="pos"></property>
|
|
||||||
<property name="resize">Resizable</property>
|
|
||||||
<property name="selection">1</property>
|
|
||||||
<property name="show">1</property>
|
|
||||||
<property name="size"></property>
|
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
|
||||||
<property name="subclass"></property>
|
|
||||||
<property name="toolbar_pane">0</property>
|
|
||||||
<property name="tooltip"></property>
|
|
||||||
<property name="validator_data_type"></property>
|
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
|
||||||
<property name="validator_variable"></property>
|
|
||||||
<property name="window_extra_style"></property>
|
|
||||||
<property name="window_name"></property>
|
|
||||||
<property name="window_style"></property>
|
|
||||||
<event name="OnChar"></event>
|
|
||||||
<event name="OnEnterWindow"></event>
|
|
||||||
<event name="OnEraseBackground"></event>
|
|
||||||
<event name="OnKeyDown"></event>
|
|
||||||
<event name="OnKeyUp"></event>
|
|
||||||
<event name="OnKillFocus"></event>
|
|
||||||
<event name="OnLeaveWindow"></event>
|
|
||||||
<event name="OnLeftDClick"></event>
|
|
||||||
<event name="OnLeftDown"></event>
|
|
||||||
<event name="OnLeftUp"></event>
|
|
||||||
<event name="OnMiddleDClick"></event>
|
|
||||||
<event name="OnMiddleDown"></event>
|
|
||||||
<event name="OnMiddleUp"></event>
|
|
||||||
<event name="OnMotion"></event>
|
|
||||||
<event name="OnMouseEvents"></event>
|
|
||||||
<event name="OnMouseWheel"></event>
|
|
||||||
<event name="OnPaint"></event>
|
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
|
||||||
<event name="OnRightDown"></event>
|
|
||||||
<event name="OnRightUp"></event>
|
|
||||||
<event name="OnSetFocus"></event>
|
|
||||||
<event name="OnSize"></event>
|
|
||||||
<event name="OnUpdateUI"></event>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag"></property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxStaticBoxSizer" expanded="1">
|
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Pad Options:</property>
|
<property name="label">Outlines sketch mode</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bRModuleSizer</property>
|
<property name="moveable">1</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="name">m_OptDisplayModOutlines</property>
|
||||||
<property name="permission">none</property>
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -804,7 +703,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Sketch" "Filled"</property>
|
<property name="checked">0</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -818,9 +717,96 @@
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">ID_PADS_SHAPES</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Pad Shapes:</property>
|
<property name="label">Texts sketch mode</property>
|
||||||
<property name="majorDimension">1</property>
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_OptDisplayModTexts
</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxCheckBox" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="checked">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Pads sketch mode</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -836,10 +822,9 @@
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">1</property>
|
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
|
@ -851,6 +836,7 @@
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -867,7 +853,6 @@
|
||||||
<event name="OnMouseEvents"></event>
|
<event name="OnMouseEvents"></event>
|
||||||
<event name="OnMouseWheel"></event>
|
<event name="OnMouseWheel"></event>
|
||||||
<event name="OnPaint"></event>
|
<event name="OnPaint"></event>
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
<event name="OnRightDClick"></event>
|
||||||
<event name="OnRightDown"></event>
|
<event name="OnRightDown"></event>
|
||||||
<event name="OnRightUp"></event>
|
<event name="OnRightUp"></event>
|
||||||
|
@ -1142,34 +1127,23 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxALL</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxBoxSizer" expanded="1">
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="name">bRightSizer</property>
|
|
||||||
<property name="orient">wxVERTICAL</property>
|
|
||||||
<property name="permission">none</property>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxEXPAND</property>
|
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxStaticBoxSizer" expanded="1">
|
<object class="wxStaticBoxSizer" expanded="1">
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Others:</property>
|
<property name="label">Others:</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">sRightUpperSizer</property>
|
<property name="name">s_otherSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -1183,7 +1157,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Line" "Filled" "Sketch"</property>
|
<property name="checked">1</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -1198,8 +1172,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Display other items:</property>
|
<property name="label">Graphic items sketch mode</property>
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -1215,10 +1188,9 @@
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">1</property>
|
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
|
@ -1230,6 +1202,7 @@
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -1246,7 +1219,6 @@
|
||||||
<event name="OnMouseEvents"></event>
|
<event name="OnMouseEvents"></event>
|
||||||
<event name="OnMouseWheel"></event>
|
<event name="OnMouseWheel"></event>
|
||||||
<event name="OnPaint"></event>
|
<event name="OnPaint"></event>
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
<event name="OnRightDClick"></event>
|
||||||
<event name="OnRightDown"></event>
|
<event name="OnRightDown"></event>
|
||||||
<event name="OnRightUp"></event>
|
<event name="OnRightUp"></event>
|
||||||
|
@ -1257,9 +1229,9 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxRadioBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -1273,7 +1245,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Yes" "No"</property>
|
<property name="checked">1</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
@ -1289,7 +1261,6 @@
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Show page limits</property>
|
<property name="label">Show page limits</property>
|
||||||
<property name="majorDimension">1</property>
|
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -1305,10 +1276,9 @@
|
||||||
<property name="pin_button">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="selection">1</property>
|
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
|
@ -1320,6 +1290,7 @@
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnCheckBox"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -1336,7 +1307,6 @@
|
||||||
<event name="OnMouseEvents"></event>
|
<event name="OnMouseEvents"></event>
|
||||||
<event name="OnMouseWheel"></event>
|
<event name="OnMouseWheel"></event>
|
||||||
<event name="OnPaint"></event>
|
<event name="OnPaint"></event>
|
||||||
<event name="OnRadioBox"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
<event name="OnRightDClick"></event>
|
||||||
<event name="OnRightDown"></event>
|
<event name="OnRightDown"></event>
|
||||||
<event name="OnRightUp"></event>
|
<event name="OnRightUp"></event>
|
||||||
|
@ -1347,21 +1317,15 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
</object>
|
||||||
<property name="border">5</property>
|
</object>
|
||||||
<property name="flag"></property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="spacer" expanded="1">
|
|
||||||
<property name="height">10</property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="width">10</property>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND</property>
|
<property name="flag">wxEXPAND | wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxButton" expanded="1">
|
<object class="wxStaticLine" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -1378,7 +1342,6 @@
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
<property name="default">0</property>
|
|
||||||
<property name="default_pane">0</property>
|
<property name="default_pane">0</property>
|
||||||
<property name="dock">Dock</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="dock_fixed">0</property>
|
||||||
|
@ -1389,8 +1352,7 @@
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_OK</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">OK</property>
|
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -1398,7 +1360,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_buttonOK</property>
|
<property name="name">m_staticline1</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -1408,18 +1370,13 @@
|
||||||
<property name="resize">Resizable</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style"></property>
|
<property name="style">wxLI_HORIZONTAL</property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="validator_data_type"></property>
|
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
|
||||||
<property name="validator_variable"></property>
|
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnButtonClick">OnOkClick</event>
|
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
|
@ -1447,92 +1404,28 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxButton" expanded="1">
|
<object class="wxStdDialogButtonSizer" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="Apply">0</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="Cancel">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="ContextHelp">0</property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="Help">0</property>
|
||||||
<property name="aui_layer"></property>
|
<property name="No">0</property>
|
||||||
<property name="aui_name"></property>
|
<property name="OK">1</property>
|
||||||
<property name="aui_position"></property>
|
<property name="Save">0</property>
|
||||||
<property name="aui_row"></property>
|
<property name="Yes">0</property>
|
||||||
<property name="best_size"></property>
|
|
||||||
<property name="bg"></property>
|
|
||||||
<property name="caption"></property>
|
|
||||||
<property name="caption_visible">1</property>
|
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="context_help"></property>
|
|
||||||
<property name="context_menu">1</property>
|
|
||||||
<property name="default">0</property>
|
|
||||||
<property name="default_pane">0</property>
|
|
||||||
<property name="dock">Dock</property>
|
|
||||||
<property name="dock_fixed">0</property>
|
|
||||||
<property name="docking">Left</property>
|
|
||||||
<property name="enabled">1</property>
|
|
||||||
<property name="fg"></property>
|
|
||||||
<property name="floatable">1</property>
|
|
||||||
<property name="font"></property>
|
|
||||||
<property name="gripper">0</property>
|
|
||||||
<property name="hidden">0</property>
|
|
||||||
<property name="id">wxID_CANCEL</property>
|
|
||||||
<property name="label">Cancel</property>
|
|
||||||
<property name="max_size"></property>
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size"></property>
|
|
||||||
<property name="min_size"></property>
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="name">m_sdbSizer</property>
|
||||||
<property name="name">m_buttonCANCEL</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position"></property>
|
|
||||||
<property name="pane_size"></property>
|
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="pin_button">1</property>
|
<event name="OnApplyButtonClick"></event>
|
||||||
<property name="pos"></property>
|
<event name="OnCancelButtonClick">OnCancelClick</event>
|
||||||
<property name="resize">Resizable</property>
|
<event name="OnContextHelpButtonClick"></event>
|
||||||
<property name="show">1</property>
|
<event name="OnHelpButtonClick"></event>
|
||||||
<property name="size"></property>
|
<event name="OnNoButtonClick"></event>
|
||||||
<property name="style"></property>
|
<event name="OnOKButtonClick">OnOkClick</event>
|
||||||
<property name="subclass"></property>
|
<event name="OnSaveButtonClick"></event>
|
||||||
<property name="toolbar_pane">0</property>
|
<event name="OnYesButtonClick"></event>
|
||||||
<property name="tooltip"></property>
|
|
||||||
<property name="validator_data_type"></property>
|
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
|
||||||
<property name="validator_variable"></property>
|
|
||||||
<property name="window_extra_style"></property>
|
|
||||||
<property name="window_name"></property>
|
|
||||||
<property name="window_style"></property>
|
|
||||||
<event name="OnButtonClick">OnCancelClick</event>
|
|
||||||
<event name="OnChar"></event>
|
|
||||||
<event name="OnEnterWindow"></event>
|
|
||||||
<event name="OnEraseBackground"></event>
|
|
||||||
<event name="OnKeyDown"></event>
|
|
||||||
<event name="OnKeyUp"></event>
|
|
||||||
<event name="OnKillFocus"></event>
|
|
||||||
<event name="OnLeaveWindow"></event>
|
|
||||||
<event name="OnLeftDClick"></event>
|
|
||||||
<event name="OnLeftDown"></event>
|
|
||||||
<event name="OnLeftUp"></event>
|
|
||||||
<event name="OnMiddleDClick"></event>
|
|
||||||
<event name="OnMiddleDown"></event>
|
|
||||||
<event name="OnMiddleUp"></event>
|
|
||||||
<event name="OnMotion"></event>
|
|
||||||
<event name="OnMouseEvents"></event>
|
|
||||||
<event name="OnMouseWheel"></event>
|
|
||||||
<event name="OnPaint"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
|
||||||
<event name="OnRightDown"></event>
|
|
||||||
<event name="OnRightUp"></event>
|
|
||||||
<event name="OnSetFocus"></event>
|
|
||||||
<event name="OnSize"></event>
|
|
||||||
<event name="OnUpdateUI"></event>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jun 6 2014)
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -15,14 +15,15 @@ class DIALOG_SHIM;
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/radiobox.h>
|
#include <wx/checkbox.h>
|
||||||
#include <wx/gdicmn.h>
|
#include <wx/gdicmn.h>
|
||||||
#include <wx/font.h>
|
#include <wx/font.h>
|
||||||
#include <wx/colour.h>
|
#include <wx/colour.h>
|
||||||
#include <wx/settings.h>
|
#include <wx/settings.h>
|
||||||
|
#include <wx/radiobox.h>
|
||||||
#include <wx/sizer.h>
|
#include <wx/sizer.h>
|
||||||
#include <wx/statbox.h>
|
#include <wx/statbox.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/statline.h>
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
|
|
||||||
|
@ -38,39 +39,37 @@ class DIALOG_DISPLAY_OPTIONS_BASE : public DIALOG_SHIM
|
||||||
protected:
|
protected:
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
wxID_DISPLAY_TRACK = 1000,
|
ID_VIAS_HOLES = 1000,
|
||||||
ID_VIAS_SHAPES,
|
ID_SHOW_CLEARANCE
|
||||||
ID_VIAS_HOLES,
|
|
||||||
ID_SHOW_CLEARANCE,
|
|
||||||
ID_EDGES_MODULES,
|
|
||||||
ID_TEXT_MODULES,
|
|
||||||
ID_PADS_SHAPES
|
|
||||||
};
|
};
|
||||||
|
|
||||||
wxRadioBox* m_OptDisplayTracks;
|
wxCheckBox* m_OptDisplayTracks;
|
||||||
wxRadioBox* m_OptDisplayVias;
|
wxCheckBox* m_OptDisplayVias;
|
||||||
wxRadioBox* m_OptDisplayViaHole;
|
wxRadioBox* m_OptDisplayViaHole;
|
||||||
wxRadioBox* m_ShowNetNamesOption;
|
wxRadioBox* m_ShowNetNamesOption;
|
||||||
wxRadioBox* m_OptDisplayTracksClearance;
|
wxRadioBox* m_OptDisplayTracksClearance;
|
||||||
wxRadioBox* m_OptDisplayModEdges;
|
wxCheckBox* m_OptDisplayModOutlines;
|
||||||
wxRadioBox* m_OptDisplayModTexts;
|
wxCheckBox* m_OptDisplayModTexts
|
||||||
wxRadioBox* m_OptDisplayPads;
|
;
|
||||||
|
wxCheckBox* m_OptDisplayPads;
|
||||||
wxCheckBox* m_OptDisplayPadClearence;
|
wxCheckBox* m_OptDisplayPadClearence;
|
||||||
wxCheckBox* m_OptDisplayPadNumber;
|
wxCheckBox* m_OptDisplayPadNumber;
|
||||||
wxCheckBox* m_OptDisplayPadNoConn;
|
wxCheckBox* m_OptDisplayPadNoConn;
|
||||||
wxRadioBox* m_OptDisplayDrawings;
|
wxCheckBox* m_OptDisplayDrawings;
|
||||||
wxRadioBox* m_Show_Page_Limits;
|
wxCheckBox* m_Show_Page_Limits;
|
||||||
wxButton* m_buttonOK;
|
wxStaticLine* m_staticline1;
|
||||||
wxButton* m_buttonCANCEL;
|
wxStdDialogButtonSizer* m_sdbSizer;
|
||||||
|
wxButton* m_sdbSizerOK;
|
||||||
|
wxButton* m_sdbSizerCancel;
|
||||||
|
|
||||||
// Virtual event handlers, overide them in your derived class
|
// Virtual event handlers, overide them in your derived class
|
||||||
virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); }
|
|
||||||
virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Display options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 880,320 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Display options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 562,361 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_DISPLAY_OPTIONS_BASE();
|
~DIALOG_DISPLAY_OPTIONS_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -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) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.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
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -193,7 +193,7 @@ void DIALOG_PLOT::Init_Dialog()
|
||||||
m_scaleOpt->SetSelection( m_plotOpts.GetScaleSelection() );
|
m_scaleOpt->SetSelection( m_plotOpts.GetScaleSelection() );
|
||||||
|
|
||||||
// Plot mode
|
// Plot mode
|
||||||
m_plotModeOpt->SetSelection( m_plotOpts.GetMode() );
|
m_plotModeOpt->SetSelection( m_plotOpts.GetPlotMode() == SKETCH ? 1 : 0 );
|
||||||
|
|
||||||
// Plot mirror option
|
// Plot mirror option
|
||||||
m_plotMirrorOpt->SetValue( m_plotOpts.GetMirror() );
|
m_plotMirrorOpt->SetValue( m_plotOpts.GetMirror() );
|
||||||
|
@ -576,7 +576,7 @@ void DIALOG_PLOT::applyPlotSettings()
|
||||||
tempOptions.SetDrillMarksType( static_cast<PCB_PLOT_PARAMS::DrillMarksType>
|
tempOptions.SetDrillMarksType( static_cast<PCB_PLOT_PARAMS::DrillMarksType>
|
||||||
( m_drillShapeOpt->GetSelection() ) );
|
( m_drillShapeOpt->GetSelection() ) );
|
||||||
tempOptions.SetMirror( m_plotMirrorOpt->GetValue() );
|
tempOptions.SetMirror( m_plotMirrorOpt->GetValue() );
|
||||||
tempOptions.SetMode( static_cast<EDA_DRAW_MODE_T>( m_plotModeOpt->GetSelection() ) );
|
tempOptions.SetPlotMode( m_plotModeOpt->GetSelection() == 1 ? SKETCH : FILLED );
|
||||||
tempOptions.SetPlotViaOnMaskLayer( m_plotNoViaOnMaskOpt->GetValue() );
|
tempOptions.SetPlotViaOnMaskLayer( m_plotNoViaOnMaskOpt->GetValue() );
|
||||||
|
|
||||||
// Update settings from text fields. Rewrite values back to the fields,
|
// Update settings from text fields. Rewrite values back to the fields,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jun 6 2014)
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -159,7 +159,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
|
||||||
m_staticText13->Wrap( -1 );
|
m_staticText13->Wrap( -1 );
|
||||||
bSizer14->Add( m_staticText13, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bSizer14->Add( m_staticText13, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_plotModeOptChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
wxString m_plotModeOptChoices[] = { _("Filled"), _("Sketch") };
|
||||||
int m_plotModeOptNChoices = sizeof( m_plotModeOptChoices ) / sizeof( wxString );
|
int m_plotModeOptNChoices = sizeof( m_plotModeOptChoices ) / sizeof( wxString );
|
||||||
m_plotModeOpt = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_plotModeOptNChoices, m_plotModeOptChoices, 0 );
|
m_plotModeOpt = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_plotModeOptNChoices, m_plotModeOptChoices, 0 );
|
||||||
m_plotModeOpt->SetSelection( 0 );
|
m_plotModeOpt->SetSelection( 0 );
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<property name="ui_table">UI</property>
|
<property name="ui_table">UI</property>
|
||||||
<property name="use_enum">1</property>
|
<property name="use_enum">1</property>
|
||||||
<property name="use_microsoft_bom">0</property>
|
<property name="use_microsoft_bom">0</property>
|
||||||
<object class="Dialog" expanded="0">
|
<object class="Dialog" expanded="1">
|
||||||
<property name="aui_managed">0</property>
|
<property name="aui_managed">0</property>
|
||||||
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
||||||
<property name="bg"></property>
|
<property name="bg"></property>
|
||||||
|
@ -2064,7 +2064,7 @@
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="center_pane">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="choices">"Line" "Filled" "Sketch"</property>
|
<property name="choices">"Filled" "Sketch"</property>
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jun 6 2014)
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
|
|
@ -114,7 +114,7 @@ void PCB_EDIT_FRAME::Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC )
|
||||||
{
|
{
|
||||||
EDA_ITEM* PtStruct;
|
EDA_ITEM* PtStruct;
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)GetDisplayOptions();
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)GetDisplayOptions();
|
||||||
int tmp = displ_opts->m_DisplayDrawItems;
|
bool tmp = displ_opts->m_DisplayDrawItemsFill;
|
||||||
|
|
||||||
if( Segment == NULL )
|
if( Segment == NULL )
|
||||||
return;
|
return;
|
||||||
|
@ -122,7 +122,7 @@ void PCB_EDIT_FRAME::Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC )
|
||||||
if( Segment->IsNew() ) // Trace in progress.
|
if( Segment->IsNew() ) // Trace in progress.
|
||||||
{
|
{
|
||||||
// Delete current segment.
|
// Delete current segment.
|
||||||
displ_opts->m_DisplayDrawItems = SKETCH;
|
displ_opts->m_DisplayDrawItemsFill = SKETCH;
|
||||||
Segment->Draw( m_canvas, DC, GR_XOR );
|
Segment->Draw( m_canvas, DC, GR_XOR );
|
||||||
PtStruct = Segment->Back();
|
PtStruct = Segment->Back();
|
||||||
Segment ->DeleteStructure();
|
Segment ->DeleteStructure();
|
||||||
|
@ -130,7 +130,7 @@ void PCB_EDIT_FRAME::Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC )
|
||||||
if( PtStruct && (PtStruct->Type() == PCB_LINE_T ) )
|
if( PtStruct && (PtStruct->Type() == PCB_LINE_T ) )
|
||||||
Segment = (DRAWSEGMENT*) PtStruct;
|
Segment = (DRAWSEGMENT*) PtStruct;
|
||||||
|
|
||||||
displ_opts->m_DisplayDrawItems = tmp;
|
displ_opts->m_DisplayDrawItemsFill = tmp;
|
||||||
SetCurItem( NULL );
|
SetCurItem( NULL );
|
||||||
}
|
}
|
||||||
else if( Segment->GetFlags() == 0 )
|
else if( Segment->GetFlags() == 0 )
|
||||||
|
@ -335,14 +335,15 @@ void PCB_EDIT_FRAME::End_Edge( DRAWSEGMENT* Segment, wxDC* DC )
|
||||||
*/
|
*/
|
||||||
static void DrawSegment( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosition, bool aErase )
|
static void DrawSegment( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosition, bool aErase )
|
||||||
{
|
{
|
||||||
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)aPanel->GetDisplayOptions();
|
|
||||||
DRAWSEGMENT* Segment = (DRAWSEGMENT*) aPanel->GetScreen()->GetCurItem();
|
DRAWSEGMENT* Segment = (DRAWSEGMENT*) aPanel->GetScreen()->GetCurItem();
|
||||||
int tmp = displ_opts->m_DisplayDrawItems;
|
|
||||||
|
|
||||||
if( Segment == NULL )
|
if( Segment == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
displ_opts->m_DisplayDrawItems = SKETCH;
|
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)aPanel->GetDisplayOptions();
|
||||||
|
bool tmp = displ_opts->m_DisplayDrawItemsFill;
|
||||||
|
|
||||||
|
displ_opts->m_DisplayDrawItemsFill = SKETCH;
|
||||||
|
|
||||||
if( aErase )
|
if( aErase )
|
||||||
Segment->Draw( aPanel, aDC, GR_XOR );
|
Segment->Draw( aPanel, aDC, GR_XOR );
|
||||||
|
@ -362,5 +363,5 @@ static void DrawSegment( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosi
|
||||||
}
|
}
|
||||||
|
|
||||||
Segment->Draw( aPanel, aDC, GR_XOR );
|
Segment->Draw( aPanel, aDC, GR_XOR );
|
||||||
displ_opts->m_DisplayDrawItems = tmp;
|
displ_opts->m_DisplayDrawItemsFill = tmp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -428,7 +428,7 @@ bool EXCELLON_WRITER::PlotDrillMarks( PLOTTER* aPlotter )
|
||||||
wxSize oblong_size;
|
wxSize oblong_size;
|
||||||
oblong_size = m_holeListBuffer[ii].m_Hole_Size;
|
oblong_size = m_holeListBuffer[ii].m_Hole_Size;
|
||||||
aPlotter->FlashPadOval( pos, oblong_size,
|
aPlotter->FlashPadOval( pos, oblong_size,
|
||||||
m_holeListBuffer[ii].m_Hole_Orient, LINE );
|
m_holeListBuffer[ii].m_Hole_Orient, SKETCH );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,12 +60,12 @@ void FOOTPRINT_EDIT_FRAME::OnSelectOptionToolbar( wxCommandEvent& event )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH:
|
case ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH:
|
||||||
displ_opts->m_DisplayModText = state ? SKETCH : FILLED;
|
displ_opts->m_DisplayModTextFill = state ? SKETCH : FILLED;
|
||||||
m_canvas->Refresh( );
|
m_canvas->Refresh( );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH:
|
case ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH:
|
||||||
displ_opts->m_DisplayModEdge = state ? SKETCH : FILLED;
|
displ_opts->m_DisplayModEdgeFill = state ? SKETCH : FILLED;
|
||||||
m_canvas->Refresh( );
|
m_canvas->Refresh( );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -95,12 +95,12 @@ PARAM_CFG_ARRAY& FOOTPRINT_EDIT_FRAME::GetConfigurationSettings()
|
||||||
&displ_opts->m_DisplayPolarCood, false ) );
|
&displ_opts->m_DisplayPolarCood, false ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "FpEditorPadDisplayMode" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "FpEditorPadDisplayMode" ),
|
||||||
&displ_opts->m_DisplayPadFill, true ) );
|
&displ_opts->m_DisplayPadFill, true ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "FpEditorGraphicLinesDisplayMode" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "FpEditorGraphicLinesDisplayMode" ),
|
||||||
&displ_opts->m_DisplayModEdge, FILLED, 0, 2 ) );
|
&displ_opts->m_DisplayModEdgeFill, FILLED ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "FpEditorTextsDisplayMode" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "FpEditorTextsDisplayMode" ),
|
||||||
&displ_opts->m_DisplayModText, FILLED, 0, 2 ) );
|
&displ_opts->m_DisplayModTextFill, FILLED ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "FpEditorTextsDisplayMode" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "FpEditorTextsDisplayMode" ),
|
||||||
&displ_opts->m_DisplayModText, FILLED, 0, 2 ) );
|
&displ_opts->m_DisplayModTextFill, FILLED ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_WXSTRING( true, wxT( "FpEditorTextsRefDefaultText" ),
|
m_configSettings.push_back( new PARAM_CFG_WXSTRING( true, wxT( "FpEditorTextsRefDefaultText" ),
|
||||||
&settings.m_RefDefaultText, wxT( "REF**" ) ) );
|
&settings.m_RefDefaultText, wxT( "REF**" ) ) );
|
||||||
|
|
||||||
|
|
|
@ -578,11 +578,11 @@ void FOOTPRINT_EDIT_FRAME::OnUpdateOptionsToolbar( wxUpdateUIEvent& aEvent )
|
||||||
switch( id )
|
switch( id )
|
||||||
{
|
{
|
||||||
case ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH:
|
case ID_TB_OPTIONS_SHOW_MODULE_TEXT_SKETCH:
|
||||||
state = displ_opts->m_DisplayModText == SKETCH;
|
state = displ_opts->m_DisplayModTextFill == SKETCH;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH:
|
case ID_TB_OPTIONS_SHOW_MODULE_EDGE_SKETCH:
|
||||||
state = displ_opts->m_DisplayModEdge == SKETCH;
|
state = displ_opts->m_DisplayModEdgeFill == SKETCH;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE:
|
case ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE:
|
||||||
|
|
|
@ -2,7 +2,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) 1992-2013 KiCad Developers, see change_log.txt for contributors.
|
* Copyright (C) 1992-2015 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
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -89,7 +89,7 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS() :
|
||||||
m_lineWidth = g_DrawDefaultLineThickness;
|
m_lineWidth = g_DrawDefaultLineThickness;
|
||||||
m_plotFrameRef = false;
|
m_plotFrameRef = false;
|
||||||
m_plotViaOnMaskLayer = false;
|
m_plotViaOnMaskLayer = false;
|
||||||
m_mode = FILLED;
|
m_plotMode = FILLED;
|
||||||
m_useAuxOrigin = false;
|
m_useAuxOrigin = false;
|
||||||
m_HPGLPenNum = 1;
|
m_HPGLPenNum = 1;
|
||||||
m_HPGLPenSpeed = 20; // this param is always in cm/s
|
m_HPGLPenSpeed = 20; // this param is always in cm/s
|
||||||
|
@ -167,7 +167,7 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter,
|
||||||
aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_viasonmask ),
|
aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_viasonmask ),
|
||||||
m_plotViaOnMaskLayer ? trueStr : falseStr );
|
m_plotViaOnMaskLayer ? trueStr : falseStr );
|
||||||
aFormatter->Print( aNestLevel+1, "(%s %d)\n", getTokenName( T_mode ),
|
aFormatter->Print( aNestLevel+1, "(%s %d)\n", getTokenName( T_mode ),
|
||||||
m_mode );
|
GetPlotMode() == SKETCH ? 2 : 1 ); // Value 0 (LINE mode) no more used
|
||||||
aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_useauxorigin ),
|
aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_useauxorigin ),
|
||||||
m_useAuxOrigin ? trueStr : falseStr );
|
m_useAuxOrigin ? trueStr : falseStr );
|
||||||
aFormatter->Print( aNestLevel+1, "(%s %d)\n", getTokenName( T_hpglpennumber ),
|
aFormatter->Print( aNestLevel+1, "(%s %d)\n", getTokenName( T_hpglpennumber ),
|
||||||
|
@ -237,7 +237,7 @@ bool PCB_PLOT_PARAMS::operator==( const PCB_PLOT_PARAMS &aPcbPlotParams ) const
|
||||||
return false;
|
return false;
|
||||||
if( m_plotViaOnMaskLayer != aPcbPlotParams.m_plotViaOnMaskLayer )
|
if( m_plotViaOnMaskLayer != aPcbPlotParams.m_plotViaOnMaskLayer )
|
||||||
return false;
|
return false;
|
||||||
if( m_mode != aPcbPlotParams.m_mode )
|
if( m_plotMode != aPcbPlotParams.m_plotMode )
|
||||||
return false;
|
return false;
|
||||||
if( m_useAuxOrigin != aPcbPlotParams.m_useAuxOrigin )
|
if( m_useAuxOrigin != aPcbPlotParams.m_useAuxOrigin )
|
||||||
return false;
|
return false;
|
||||||
|
@ -430,7 +430,7 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T_mode:
|
case T_mode:
|
||||||
aPcbPlotParams->m_mode = static_cast<EDA_DRAW_MODE_T>( parseInt( 0, 2 ) );
|
aPcbPlotParams->SetPlotMode( parseInt( 0, 2 ) > 1 ? SKETCH : FILLED );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T_useauxorigin:
|
case T_useauxorigin:
|
||||||
|
|
|
@ -3,7 +3,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) 1992-2011 KiCad Developers, see change_log.txt for contributors.
|
* Copyright (C) 1992-2015 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
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -49,9 +49,10 @@ private:
|
||||||
// (mainly used to disable NPTH pads plotting on copper layers)
|
// (mainly used to disable NPTH pads plotting on copper layers)
|
||||||
bool m_skipNPTH_Pads;
|
bool m_skipNPTH_Pads;
|
||||||
|
|
||||||
/** LINE, FILLED or SKETCH selects how to plot filled objects.
|
/** FILLED or SKETCH selects how to plot filled objects.
|
||||||
* FILLED is not available with all drivers */
|
* FILLED or SKETCH not available with all drivers: some have fixed mode
|
||||||
EDA_DRAW_MODE_T m_mode;
|
*/
|
||||||
|
EDA_DRAW_MODE_T m_plotMode;
|
||||||
|
|
||||||
/// Plot format type (chooses the driver to be used)
|
/// Plot format type (chooses the driver to be used)
|
||||||
PlotFormat m_format;
|
PlotFormat m_format;
|
||||||
|
@ -178,8 +179,8 @@ public:
|
||||||
void SetTextMode( PlotTextMode aVal ) { m_textMode = aVal; }
|
void SetTextMode( PlotTextMode aVal ) { m_textMode = aVal; }
|
||||||
PlotTextMode GetTextMode() const { return m_textMode; }
|
PlotTextMode GetTextMode() const { return m_textMode; }
|
||||||
|
|
||||||
void SetMode( EDA_DRAW_MODE_T aVal ) { m_mode = aVal; }
|
void SetPlotMode( EDA_DRAW_MODE_T aPlotMode ) { m_plotMode = aPlotMode; }
|
||||||
EDA_DRAW_MODE_T GetMode() const { return m_mode; }
|
EDA_DRAW_MODE_T GetPlotMode() const { return m_plotMode; }
|
||||||
|
|
||||||
void SetDrillMarksType( DrillMarksType aVal ) { m_drillMarks = aVal; }
|
void SetDrillMarksType( DrillMarksType aVal ) { m_drillMarks = aVal; }
|
||||||
DrillMarksType GetDrillMarksType() const { return m_drillMarks; }
|
DrillMarksType GetDrillMarksType() const { return m_drillMarks; }
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pcb_plot_params_lexer.h>
|
#include <pcb_plot_params_lexer.h>
|
||||||
//#include <plot_common.h>
|
|
||||||
|
|
||||||
class PCB_PLOT_PARAMS;
|
class PCB_PLOT_PARAMS;
|
||||||
class LINE_READER;
|
class LINE_READER;
|
||||||
|
|
|
@ -354,12 +354,12 @@ PARAM_CFG_ARRAY& PCB_EDIT_FRAME::GetConfigurationSettings()
|
||||||
&displ_opts->m_DisplayPadIsol, true ) );
|
&displ_opts->m_DisplayPadIsol, true ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "PadSNum" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "PadSNum" ),
|
||||||
&displ_opts->m_DisplayPadNum, true ) );
|
&displ_opts->m_DisplayPadNum, true ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "ModAffC" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "ModAffC" ),
|
||||||
&displ_opts->m_DisplayModEdge, FILLED, 0, 2 ) );
|
&displ_opts->m_DisplayModEdgeFill, FILLED ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "ModAffT" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "ModAffT" ),
|
||||||
&displ_opts->m_DisplayModText, FILLED, 0, 2 ) );
|
&displ_opts->m_DisplayModTextFill, FILLED ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "PcbAffT" ),
|
m_configSettings.push_back( new PARAM_CFG_BOOL( true, wxT( "PcbAffT" ),
|
||||||
&displ_opts->m_DisplayDrawItems, FILLED, 0, 2 ) );
|
&displ_opts->m_DisplayDrawItemsFill, FILLED ) );
|
||||||
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "PcbShowZonesMode" ),
|
m_configSettings.push_back( new PARAM_CFG_INT( true, wxT( "PcbShowZonesMode" ),
|
||||||
&displ_opts->m_DisplayZonesMode, 0, 0, 2 ) );
|
&displ_opts->m_DisplayZonesMode, 0, 0, 2 ) );
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ void PlotSilkScreen( BOARD *aBoard, PLOTTER* aPlotter, LSET aLayerMask,
|
||||||
if( layersmask_plotpads[F_SilkS] )
|
if( layersmask_plotpads[F_SilkS] )
|
||||||
color = ColorFromInt( color | aBoard->GetLayerColor( F_SilkS ) );
|
color = ColorFromInt( color | aBoard->GetLayerColor( F_SilkS ) );
|
||||||
|
|
||||||
itemplotter.PlotPad( pad, color, LINE );
|
itemplotter.PlotPad( pad, color, SKETCH );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ void PlotSilkScreen( BOARD *aBoard, PLOTTER* aPlotter, LSET aLayerMask,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
aPlotter->ThickSegment( seg->GetStart(), seg->GetEnd(), seg->GetWidth(),
|
aPlotter->ThickSegment( seg->GetStart(), seg->GetEnd(), seg->GetWidth(),
|
||||||
itemplotter.GetMode() );
|
itemplotter.GetPlotMode() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -285,7 +285,7 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
|
||||||
|
|
||||||
itemplotter.SetLayerSet( aLayerMask );
|
itemplotter.SetLayerSet( aLayerMask );
|
||||||
|
|
||||||
EDA_DRAW_MODE_T plotMode = aPlotOpt.GetMode();
|
EDA_DRAW_MODE_T plotMode = aPlotOpt.GetPlotMode();
|
||||||
|
|
||||||
// Plot edge layer and graphic items
|
// Plot edge layer and graphic items
|
||||||
itemplotter.PlotBoardGraphicItems();
|
itemplotter.PlotBoardGraphicItems();
|
||||||
|
|
|
@ -222,9 +222,6 @@ void BRDITEMS_PLOTTER::PlotTextModule( TEXTE_MODULE* pt_texte, EDA_COLOR_T aColo
|
||||||
|
|
||||||
thickness = pt_texte->GetThickness();
|
thickness = pt_texte->GetThickness();
|
||||||
|
|
||||||
if( GetMode() == LINE )
|
|
||||||
thickness = -1;
|
|
||||||
|
|
||||||
if( pt_texte->IsMirrored() )
|
if( pt_texte->IsMirrored() )
|
||||||
NEGATE( size.x ); // Text is mirrored
|
NEGATE( size.x ); // Text is mirrored
|
||||||
|
|
||||||
|
@ -249,7 +246,7 @@ void BRDITEMS_PLOTTER::PlotDimension( DIMENSION* aDim )
|
||||||
|
|
||||||
DRAWSEGMENT draw;
|
DRAWSEGMENT draw;
|
||||||
|
|
||||||
draw.SetWidth( (GetMode() == LINE) ? -1 : aDim->GetWidth() );
|
draw.SetWidth( aDim->GetWidth() );
|
||||||
draw.SetLayer( aDim->GetLayer() );
|
draw.SetLayer( aDim->GetLayer() );
|
||||||
|
|
||||||
EDA_COLOR_T color = aDim->GetBoard()->GetLayerColor( aDim->GetLayer() );
|
EDA_COLOR_T color = aDim->GetBoard()->GetLayerColor( aDim->GetLayer() );
|
||||||
|
@ -302,7 +299,7 @@ void BRDITEMS_PLOTTER::PlotPcbTarget( PCB_TARGET* aMire )
|
||||||
DRAWSEGMENT draw;
|
DRAWSEGMENT draw;
|
||||||
|
|
||||||
draw.SetShape( S_CIRCLE );
|
draw.SetShape( S_CIRCLE );
|
||||||
draw.SetWidth( ( GetMode() == LINE ) ? -1 : aMire->GetWidth() );
|
draw.SetWidth( aMire->GetWidth() );
|
||||||
draw.SetLayer( aMire->GetLayer() );
|
draw.SetLayer( aMire->GetLayer() );
|
||||||
draw.SetStart( aMire->GetPosition() );
|
draw.SetStart( aMire->GetPosition() );
|
||||||
radius = aMire->GetSize() / 3;
|
radius = aMire->GetSize() / 3;
|
||||||
|
@ -382,12 +379,12 @@ void BRDITEMS_PLOTTER::Plot_1_EdgeModule( EDGE_MODULE* aEdge )
|
||||||
switch( type_trace )
|
switch( type_trace )
|
||||||
{
|
{
|
||||||
case S_SEGMENT:
|
case S_SEGMENT:
|
||||||
m_plotter->ThickSegment( pos, end, thickness, GetMode() );
|
m_plotter->ThickSegment( pos, end, thickness, GetPlotMode() );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case S_CIRCLE:
|
case S_CIRCLE:
|
||||||
radius = KiROUND( GetLineLength( end, pos ) );
|
radius = KiROUND( GetLineLength( end, pos ) );
|
||||||
m_plotter->ThickCircle( pos, radius * 2, thickness, GetMode() );
|
m_plotter->ThickCircle( pos, radius * 2, thickness, GetPlotMode() );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case S_ARC:
|
case S_ARC:
|
||||||
|
@ -396,7 +393,7 @@ void BRDITEMS_PLOTTER::Plot_1_EdgeModule( EDGE_MODULE* aEdge )
|
||||||
double startAngle = ArcTangente( end.y - pos.y, end.x - pos.x );
|
double startAngle = ArcTangente( end.y - pos.y, end.x - pos.x );
|
||||||
double endAngle = startAngle + aEdge->GetAngle();
|
double endAngle = startAngle + aEdge->GetAngle();
|
||||||
|
|
||||||
m_plotter->ThickArc( pos, -endAngle, -startAngle, radius, thickness, GetMode() );
|
m_plotter->ThickArc( pos, -endAngle, -startAngle, radius, thickness, GetPlotMode() );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -455,7 +452,7 @@ void BRDITEMS_PLOTTER::PlotTextePcb( TEXTE_PCB* pt_texte )
|
||||||
size = pt_texte->GetSize();
|
size = pt_texte->GetSize();
|
||||||
pos = pt_texte->GetTextPosition();
|
pos = pt_texte->GetTextPosition();
|
||||||
orient = pt_texte->GetOrientation();
|
orient = pt_texte->GetOrientation();
|
||||||
thickness = ( GetMode() == LINE ) ? -1 : pt_texte->GetThickness();
|
thickness = pt_texte->GetThickness();
|
||||||
|
|
||||||
if( pt_texte->IsMirrored() )
|
if( pt_texte->IsMirrored() )
|
||||||
size.x = -size.x;
|
size.x = -size.x;
|
||||||
|
@ -528,7 +525,7 @@ void BRDITEMS_PLOTTER::PlotFilledAreas( ZONE_CONTAINER* aZone )
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plot the current filled area and its outline
|
// Plot the current filled area and its outline
|
||||||
if( GetMode() == FILLED )
|
if( GetPlotMode() == FILLED )
|
||||||
{
|
{
|
||||||
// Plot the filled area polygon.
|
// Plot the filled area polygon.
|
||||||
// The area can be filled by segments or uses solid polygons
|
// The area can be filled by segments or uses solid polygons
|
||||||
|
@ -544,7 +541,7 @@ void BRDITEMS_PLOTTER::PlotFilledAreas( ZONE_CONTAINER* aZone )
|
||||||
wxPoint end = aZone->FillSegments()[iseg].m_End;
|
wxPoint end = aZone->FillSegments()[iseg].m_End;
|
||||||
m_plotter->ThickSegment( start, end,
|
m_plotter->ThickSegment( start, end,
|
||||||
aZone->GetMinThickness(),
|
aZone->GetMinThickness(),
|
||||||
GetMode() );
|
GetPlotMode() );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plot the area outline only
|
// Plot the area outline only
|
||||||
|
@ -558,9 +555,8 @@ void BRDITEMS_PLOTTER::PlotFilledAreas( ZONE_CONTAINER* aZone )
|
||||||
{
|
{
|
||||||
for( unsigned jj = 1; jj<cornerList.size(); jj++ )
|
for( unsigned jj = 1; jj<cornerList.size(); jj++ )
|
||||||
m_plotter->ThickSegment( cornerList[jj -1], cornerList[jj],
|
m_plotter->ThickSegment( cornerList[jj -1], cornerList[jj],
|
||||||
( GetMode() == LINE ) ? -1 :
|
|
||||||
aZone->GetMinThickness(),
|
aZone->GetMinThickness(),
|
||||||
GetMode() );
|
GetPlotMode() );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_plotter->SetCurrentLineWidth( -1 );
|
m_plotter->SetCurrentLineWidth( -1 );
|
||||||
|
@ -576,17 +572,12 @@ void BRDITEMS_PLOTTER::PlotFilledAreas( ZONE_CONTAINER* aZone )
|
||||||
*/
|
*/
|
||||||
void BRDITEMS_PLOTTER::PlotDrawSegment( DRAWSEGMENT* aSeg )
|
void BRDITEMS_PLOTTER::PlotDrawSegment( DRAWSEGMENT* aSeg )
|
||||||
{
|
{
|
||||||
int thickness;
|
|
||||||
int radius = 0;
|
|
||||||
double StAngle = 0, EndAngle = 0;
|
|
||||||
|
|
||||||
if( !m_layerMask[aSeg->GetLayer()] )
|
if( !m_layerMask[aSeg->GetLayer()] )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( GetMode() == LINE )
|
int radius = 0;
|
||||||
thickness = GetLineWidth();
|
double StAngle = 0, EndAngle = 0;
|
||||||
else
|
int thickness = aSeg->GetWidth();
|
||||||
thickness = aSeg->GetWidth();
|
|
||||||
|
|
||||||
m_plotter->SetColor( getColor( aSeg->GetLayer() ) );
|
m_plotter->SetColor( getColor( aSeg->GetLayer() ) );
|
||||||
|
|
||||||
|
@ -599,14 +590,14 @@ void BRDITEMS_PLOTTER::PlotDrawSegment( DRAWSEGMENT* aSeg )
|
||||||
{
|
{
|
||||||
case S_CIRCLE:
|
case S_CIRCLE:
|
||||||
radius = KiROUND( GetLineLength( end, start ) );
|
radius = KiROUND( GetLineLength( end, start ) );
|
||||||
m_plotter->ThickCircle( start, radius * 2, thickness, GetMode() );
|
m_plotter->ThickCircle( start, radius * 2, thickness, GetPlotMode() );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case S_ARC:
|
case S_ARC:
|
||||||
radius = KiROUND( GetLineLength( end, start ) );
|
radius = KiROUND( GetLineLength( end, start ) );
|
||||||
StAngle = ArcTangente( end.y - start.y, end.x - start.x );
|
StAngle = ArcTangente( end.y - start.y, end.x - start.x );
|
||||||
EndAngle = StAngle + aSeg->GetAngle();
|
EndAngle = StAngle + aSeg->GetAngle();
|
||||||
m_plotter->ThickArc( start, -EndAngle, -StAngle, radius, thickness, GetMode() );
|
m_plotter->ThickArc( start, -EndAngle, -StAngle, radius, thickness, GetPlotMode() );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case S_CURVE:
|
case S_CURVE:
|
||||||
|
@ -616,12 +607,12 @@ void BRDITEMS_PLOTTER::PlotDrawSegment( DRAWSEGMENT* aSeg )
|
||||||
for( unsigned i = 1; i < bezierPoints.size(); i++ )
|
for( unsigned i = 1; i < bezierPoints.size(); i++ )
|
||||||
m_plotter->ThickSegment( bezierPoints[i - 1],
|
m_plotter->ThickSegment( bezierPoints[i - 1],
|
||||||
bezierPoints[i],
|
bezierPoints[i],
|
||||||
thickness, GetMode() );
|
thickness, GetPlotMode() );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
m_plotter->ThickSegment( start, end, thickness, GetMode() );
|
m_plotter->ThickSegment( start, end, thickness, GetPlotMode() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,10 +637,10 @@ void BRDITEMS_PLOTTER::plotOneDrillMark( PAD_DRILL_SHAPE_T aDrillShape,
|
||||||
{
|
{
|
||||||
aDrillSize.y -= getFineWidthAdj();
|
aDrillSize.y -= getFineWidthAdj();
|
||||||
aDrillSize.y = Clamp( 1, aDrillSize.y, aPadSize.y - 1 );
|
aDrillSize.y = Clamp( 1, aDrillSize.y, aPadSize.y - 1 );
|
||||||
m_plotter->FlashPadOval( aDrillPos, aDrillSize, aOrientation, GetMode() );
|
m_plotter->FlashPadOval( aDrillPos, aDrillSize, aOrientation, GetPlotMode() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
m_plotter->FlashPadCircle( aDrillPos, aDrillSize.x, GetMode() );
|
m_plotter->FlashPadCircle( aDrillPos, aDrillSize.x, GetPlotMode() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -671,7 +662,7 @@ void BRDITEMS_PLOTTER::PlotDrillMarks()
|
||||||
you could start a layer with negative polarity to scrape the film.
|
you could start a layer with negative polarity to scrape the film.
|
||||||
- In DXF they go into the 'WHITE' layer. This could be useful.
|
- In DXF they go into the 'WHITE' layer. This could be useful.
|
||||||
*/
|
*/
|
||||||
if( GetMode() == FILLED )
|
if( GetPlotMode() == FILLED )
|
||||||
m_plotter->SetColor( WHITE );
|
m_plotter->SetColor( WHITE );
|
||||||
|
|
||||||
for( TRACK *pts = m_board->m_Track; pts != NULL; pts = pts->Next() )
|
for( TRACK *pts = m_board->m_Track; pts != NULL; pts = pts->Next() )
|
||||||
|
@ -698,6 +689,6 @@ void BRDITEMS_PLOTTER::PlotDrillMarks()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( GetMode() == FILLED )
|
if( GetPlotMode() == FILLED )
|
||||||
m_plotter->SetColor( GetColor() );
|
m_plotter->SetColor( GetColor() );
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,11 +71,11 @@ void FOOTPRINT_EDIT_FRAME::PrintPage( wxDC* aDC,
|
||||||
bool nctmp = GetBoard()->IsElementVisible(NO_CONNECTS_VISIBLE);
|
bool nctmp = GetBoard()->IsElementVisible(NO_CONNECTS_VISIBLE);
|
||||||
GetBoard()->SetElementVisibility(NO_CONNECTS_VISIBLE, false);
|
GetBoard()->SetElementVisibility(NO_CONNECTS_VISIBLE, false);
|
||||||
displ_opts->m_DisplayPadIsol = false;
|
displ_opts->m_DisplayPadIsol = false;
|
||||||
displ_opts->m_DisplayModEdge = FILLED;
|
displ_opts->m_DisplayModEdgeFill = FILLED;
|
||||||
displ_opts->m_DisplayModText = FILLED;
|
displ_opts->m_DisplayModTextFill = FILLED;
|
||||||
displ_opts->m_DisplayPcbTrackFill = true;
|
displ_opts->m_DisplayPcbTrackFill = true;
|
||||||
displ_opts->m_ShowTrackClearanceMode = DO_NOT_SHOW_CLEARANCE;
|
displ_opts->m_ShowTrackClearanceMode = DO_NOT_SHOW_CLEARANCE;
|
||||||
displ_opts->m_DisplayDrawItems = FILLED;
|
displ_opts->m_DisplayDrawItemsFill = FILLED;
|
||||||
displ_opts->m_DisplayZonesMode = 0;
|
displ_opts->m_DisplayZonesMode = 0;
|
||||||
displ_opts->m_DisplayNetNamesMode = 0;
|
displ_opts->m_DisplayNetNamesMode = 0;
|
||||||
|
|
||||||
|
@ -191,11 +191,11 @@ void PCB_EDIT_FRAME::PrintPage( wxDC* aDC,
|
||||||
GetBoard()->SetElementVisibility( ANCHOR_VISIBLE, false );
|
GetBoard()->SetElementVisibility( ANCHOR_VISIBLE, false );
|
||||||
|
|
||||||
displ_opts->m_DisplayPadIsol = false;
|
displ_opts->m_DisplayPadIsol = false;
|
||||||
displ_opts->m_DisplayModEdge = FILLED;
|
displ_opts->m_DisplayModEdgeFill = FILLED;
|
||||||
displ_opts->m_DisplayModText = FILLED;
|
displ_opts->m_DisplayModTextFill = FILLED;
|
||||||
displ_opts->m_DisplayPcbTrackFill = true;
|
displ_opts->m_DisplayPcbTrackFill = true;
|
||||||
displ_opts->m_ShowTrackClearanceMode = DO_NOT_SHOW_CLEARANCE;
|
displ_opts->m_ShowTrackClearanceMode = DO_NOT_SHOW_CLEARANCE;
|
||||||
displ_opts->m_DisplayDrawItems = FILLED;
|
displ_opts->m_DisplayDrawItemsFill = FILLED;
|
||||||
displ_opts->m_DisplayZonesMode = 0;
|
displ_opts->m_DisplayZonesMode = 0;
|
||||||
displ_opts->m_DisplayNetNamesMode = 0;
|
displ_opts->m_DisplayNetNamesMode = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue