Add sheet borders and backgrounds to Edit Text & Graphics.
Also moves sheet border and sheet background colours to preferences so it's clearer they're just for newly-created items. Fixes https://gitlab.com/kicad/code/kicad/issues/4144
This commit is contained in:
parent
811968716c
commit
a76ddb52a0
|
@ -88,6 +88,7 @@ COLOR_SETTINGS::COLOR_SETTINGS( std::string aFilename ) :
|
||||||
CLR( "schematic.shadow", LAYER_SELECTION_SHADOWS, COLOR4D( .4, .7, 1.0, 0.8 ) );
|
CLR( "schematic.shadow", LAYER_SELECTION_SHADOWS, COLOR4D( .4, .7, 1.0, 0.8 ) );
|
||||||
#endif
|
#endif
|
||||||
CLR( "schematic.sheet", LAYER_SHEET, COLOR4D( MAGENTA ) );
|
CLR( "schematic.sheet", LAYER_SHEET, COLOR4D( MAGENTA ) );
|
||||||
|
CLR( "schematic.sheet_background", LAYER_SHEET_BACKGROUND, COLOR4D( WHITE ) );
|
||||||
CLR( "schematic.sheet_filename", LAYER_SHEETFILENAME, COLOR4D( BROWN ) );
|
CLR( "schematic.sheet_filename", LAYER_SHEETFILENAME, COLOR4D( BROWN ) );
|
||||||
CLR( "schematic.sheet_fields", LAYER_SHEETFIELDS, COLOR4D( MAGENTA ) );
|
CLR( "schematic.sheet_fields", LAYER_SHEETFIELDS, COLOR4D( MAGENTA ) );
|
||||||
CLR( "schematic.sheet_label", LAYER_SHEETLABEL, COLOR4D( CYAN ) );
|
CLR( "schematic.sheet_label", LAYER_SHEETLABEL, COLOR4D( CYAN ) );
|
||||||
|
|
|
@ -44,7 +44,9 @@ static bool g_modifyBusses;
|
||||||
static bool g_modifyGlobalLabels;
|
static bool g_modifyGlobalLabels;
|
||||||
static bool g_modifyHierLabels;
|
static bool g_modifyHierLabels;
|
||||||
static bool g_modifySheetTitles;
|
static bool g_modifySheetTitles;
|
||||||
|
static bool g_modifyOtherSheetFields;
|
||||||
static bool g_modifySheetPins;
|
static bool g_modifySheetPins;
|
||||||
|
static bool g_modifySheetBorders;
|
||||||
static bool g_modifySchTextAndGraphics;
|
static bool g_modifySchTextAndGraphics;
|
||||||
|
|
||||||
static bool g_filterByFieldname;
|
static bool g_filterByFieldname;
|
||||||
|
@ -117,7 +119,9 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::~DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS()
|
||||||
g_modifyGlobalLabels = m_globalLabels->GetValue();
|
g_modifyGlobalLabels = m_globalLabels->GetValue();
|
||||||
g_modifyHierLabels = m_hierLabels->GetValue();
|
g_modifyHierLabels = m_hierLabels->GetValue();
|
||||||
g_modifySheetTitles = m_sheetTitles->GetValue();
|
g_modifySheetTitles = m_sheetTitles->GetValue();
|
||||||
|
g_modifyOtherSheetFields = m_sheetFields->GetValue();
|
||||||
g_modifySheetPins = m_sheetPins->GetValue();
|
g_modifySheetPins = m_sheetPins->GetValue();
|
||||||
|
g_modifySheetBorders = m_sheetBorders->GetValue();
|
||||||
g_modifySchTextAndGraphics = m_schTextAndGraphics->GetValue();
|
g_modifySchTextAndGraphics = m_schTextAndGraphics->GetValue();
|
||||||
|
|
||||||
g_filterByFieldname = m_fieldnameFilterOpt->GetValue();
|
g_filterByFieldname = m_fieldnameFilterOpt->GetValue();
|
||||||
|
@ -144,7 +148,9 @@ bool DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataToWindow()
|
||||||
m_globalLabels->SetValue( g_modifyGlobalLabels );
|
m_globalLabels->SetValue( g_modifyGlobalLabels );
|
||||||
m_hierLabels->SetValue( g_modifyHierLabels );
|
m_hierLabels->SetValue( g_modifyHierLabels );
|
||||||
m_sheetTitles->SetValue( g_modifySheetTitles );
|
m_sheetTitles->SetValue( g_modifySheetTitles );
|
||||||
|
m_sheetFields->SetValue( g_modifyOtherSheetFields );
|
||||||
m_sheetPins->SetValue( g_modifySheetPins );
|
m_sheetPins->SetValue( g_modifySheetPins );
|
||||||
|
m_sheetBorders->SetValue( g_modifySheetBorders );
|
||||||
m_schTextAndGraphics->SetValue( g_modifySchTextAndGraphics );
|
m_schTextAndGraphics->SetValue( g_modifySchTextAndGraphics );
|
||||||
|
|
||||||
// SetValue() generates events, ChangeValue() does not
|
// SetValue() generates events, ChangeValue() does not
|
||||||
|
@ -185,6 +191,7 @@ bool DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataToWindow()
|
||||||
m_lineWidth.SetValue( INDETERMINATE );
|
m_lineWidth.SetValue( INDETERMINATE );
|
||||||
m_lineStyle->SetStringSelection( INDETERMINATE );
|
m_lineStyle->SetStringSelection( INDETERMINATE );
|
||||||
m_setColor->SetValue( false );
|
m_setColor->SetValue( false );
|
||||||
|
m_setBgColor->SetValue( false );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -269,7 +276,7 @@ void DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem( const SCH_SHEET_PATH& aS
|
||||||
|
|
||||||
if( m_setColor->GetValue() )
|
if( m_setColor->GetValue() )
|
||||||
{
|
{
|
||||||
lineItem->SetLineColor( m_color->GetColour() );
|
lineItem->SetLineColor( m_colorSwatch->GetSwatchColor() );
|
||||||
m_hasChange = true;
|
m_hasChange = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -341,6 +348,51 @@ void DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem( const SCH_SHEET_PATH& aShe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if( aItem->Type() == SCH_SHEET_T )
|
||||||
|
{
|
||||||
|
SCH_SHEET* sheet = static_cast<SCH_SHEET*>( aItem );
|
||||||
|
|
||||||
|
if( m_sheetTitles->GetValue() )
|
||||||
|
processItem( aSheetPath, &sheet->GetFields()[ SHEETNAME ] );
|
||||||
|
|
||||||
|
if( m_sheetFields->GetValue() )
|
||||||
|
{
|
||||||
|
for( SCH_FIELD& field : sheet->GetFields() )
|
||||||
|
{
|
||||||
|
if( field.GetId() == SHEETNAME )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
const wxString& fieldName = field.GetName();
|
||||||
|
|
||||||
|
if( !m_fieldnameFilterOpt->GetValue() || m_fieldnameFilter->GetValue().IsEmpty()
|
||||||
|
|| WildCompareString( m_fieldnameFilter->GetValue(), fieldName, false ) )
|
||||||
|
{
|
||||||
|
processItem( aSheetPath, &field );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( m_sheetBorders->GetValue() )
|
||||||
|
{
|
||||||
|
if( !m_lineWidth.IsIndeterminate() )
|
||||||
|
{
|
||||||
|
sheet->SetBorderWidth( m_lineWidth.GetValue() );
|
||||||
|
m_hasChange = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( m_setColor->GetValue() )
|
||||||
|
{
|
||||||
|
sheet->SetBorderColor( m_colorSwatch->GetSwatchColor() );
|
||||||
|
m_hasChange = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( m_setBgColor->GetValue() )
|
||||||
|
{
|
||||||
|
sheet->SetBackgroundColor( m_bgColorSwatch->GetSwatchColor() );
|
||||||
|
m_hasChange = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else if( m_wires->GetValue() && aItem->IsType( wireTypes ) )
|
else if( m_wires->GetValue() && aItem->IsType( wireTypes ) )
|
||||||
processItem( aSheetPath, aItem );
|
processItem( aSheetPath, aItem );
|
||||||
else if( m_busses->GetValue() && aItem->IsType( busTypes ) )
|
else if( m_busses->GetValue() && aItem->IsType( busTypes ) )
|
||||||
|
@ -349,15 +401,6 @@ void DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem( const SCH_SHEET_PATH& aShe
|
||||||
processItem( aSheetPath, aItem );
|
processItem( aSheetPath, aItem );
|
||||||
else if( m_hierLabels->GetValue() && aItem->Type() == SCH_HIER_LABEL_T )
|
else if( m_hierLabels->GetValue() && aItem->Type() == SCH_HIER_LABEL_T )
|
||||||
processItem( aSheetPath, aItem );
|
processItem( aSheetPath, aItem );
|
||||||
else if( m_sheetTitles->GetValue() && aItem->Type() == SCH_SHEET_T )
|
|
||||||
{
|
|
||||||
if( !m_textSize.IsIndeterminate() )
|
|
||||||
{
|
|
||||||
SCH_SHEET* sheet = static_cast<SCH_SHEET*>( aItem );
|
|
||||||
wxSize size( (int) m_textSize.GetValue(), (int) m_textSize.GetValue() );
|
|
||||||
sheet->GetFields()[SHEETNAME].SetTextSize( size );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if( m_sheetPins->GetValue() && aItem->Type() == SCH_SHEET_PIN_T )
|
else if( m_sheetPins->GetValue() && aItem->Type() == SCH_SHEET_PIN_T )
|
||||||
processItem( aSheetPath, aItem );
|
processItem( aSheetPath, aItem );
|
||||||
else if( m_schTextAndGraphics->GetValue() && aItem->IsType( schTextAndGraphics ) )
|
else if( m_schTextAndGraphics->GetValue() && aItem->IsType( schTextAndGraphics ) )
|
||||||
|
|
|
@ -43,18 +43,24 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
m_globalLabels = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Global labels"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_globalLabels = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Global labels"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbScope->Add( m_globalLabels, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
sbScope->Add( m_globalLabels, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
||||||
|
|
||||||
|
|
||||||
sbScope->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
|
||||||
|
|
||||||
m_hierLabels = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Hierarchical labels"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_hierLabels = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Hierarchical labels"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbScope->Add( m_hierLabels, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
sbScope->Add( m_hierLabels, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
||||||
|
|
||||||
|
|
||||||
|
sbScope->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
m_sheetTitles = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Sheet titles"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_sheetTitles = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Sheet titles"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbScope->Add( m_sheetTitles, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
sbScope->Add( m_sheetTitles, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
||||||
|
|
||||||
|
m_sheetFields = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Other sheet fields"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
sbScope->Add( m_sheetFields, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
||||||
|
|
||||||
m_sheetPins = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Sheet pins"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_sheetPins = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Sheet pins"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbScope->Add( m_sheetPins, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
sbScope->Add( m_sheetPins, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
||||||
|
|
||||||
|
m_sheetBorders = new wxCheckBox( sbScope->GetStaticBox(), wxID_ANY, _("Sheet borders && backgrounds"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
sbScope->Add( m_sheetBorders, 0, wxBOTTOM|wxRIGHT|wxLEFT, 4 );
|
||||||
|
|
||||||
|
|
||||||
sbScope->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
sbScope->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
@ -134,29 +140,32 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
bSizer2 = new wxBoxSizer( wxVERTICAL );
|
bSizer2 = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxFlexGridSizer* fgSizer1;
|
wxFlexGridSizer* fgSizer1;
|
||||||
fgSizer1 = new wxFlexGridSizer( 0, 5, 0, 0 );
|
fgSizer1 = new wxFlexGridSizer( 0, 6, 4, 0 );
|
||||||
fgSizer1->AddGrowableCol( 4 );
|
fgSizer1->AddGrowableCol( 3 );
|
||||||
fgSizer1->SetFlexibleDirection( wxBOTH );
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
||||||
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
m_textSizeLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_textSizeLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_textSizeLabel->Wrap( -1 );
|
m_textSizeLabel->Wrap( -1 );
|
||||||
fgSizer1->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
fgSizer1->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_textSizeCtrl = new wxTextCtrl( m_specifiedValues, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_textSizeCtrl = new wxTextCtrl( m_specifiedValues, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_textSizeCtrl->SetMinSize( wxSize( 120,-1 ) );
|
m_textSizeCtrl->SetMinSize( wxSize( 120,-1 ) );
|
||||||
|
|
||||||
fgSizer1->Add( m_textSizeCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
fgSizer1->Add( m_textSizeCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_textSizeUnits = new wxStaticText( m_specifiedValues, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_textSizeUnits = new wxStaticText( m_specifiedValues, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_textSizeUnits->Wrap( -1 );
|
m_textSizeUnits->Wrap( -1 );
|
||||||
fgSizer1->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
|
fgSizer1->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
fgSizer1->Add( 10, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 20 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_Bold = new wxCheckBox( m_specifiedValues, wxID_ANY, _("Bold"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
|
m_Bold = new wxCheckBox( m_specifiedValues, wxID_ANY, _("Bold"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
|
||||||
fgSizer1->Add( m_Bold, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizer1->Add( m_Bold, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
orientationLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Orientation:"), wxDefaultPosition, wxDefaultSize, 0 );
|
orientationLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Orientation:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
orientationLabel->Wrap( -1 );
|
orientationLabel->Wrap( -1 );
|
||||||
|
@ -178,6 +187,12 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
fgSizer1->Add( m_Italic, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizer1->Add( m_Italic, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
@ -194,13 +209,13 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
|
|
||||||
hAlignLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("H Alignment (fields only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
hAlignLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("H Alignment (fields only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
hAlignLabel->Wrap( -1 );
|
hAlignLabel->Wrap( -1 );
|
||||||
fgSizer1->Add( hAlignLabel, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizer1->Add( hAlignLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_hAlignChoices[] = { _("Left"), _("Center"), _("Right"), _("...") };
|
wxString m_hAlignChoices[] = { _("Left"), _("Center"), _("Right"), _("...") };
|
||||||
int m_hAlignNChoices = sizeof( m_hAlignChoices ) / sizeof( wxString );
|
int m_hAlignNChoices = sizeof( m_hAlignChoices ) / sizeof( wxString );
|
||||||
m_hAlign = new wxChoice( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_hAlignNChoices, m_hAlignChoices, 0 );
|
m_hAlign = new wxChoice( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_hAlignNChoices, m_hAlignChoices, 0 );
|
||||||
m_hAlign->SetSelection( 0 );
|
m_hAlign->SetSelection( 0 );
|
||||||
fgSizer1->Add( m_hAlign, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
fgSizer1->Add( m_hAlign, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
@ -209,17 +224,23 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_Visible = new wxCheckBox( m_specifiedValues, wxID_ANY, _("Visible (fields only)"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
|
m_Visible = new wxCheckBox( m_specifiedValues, wxID_ANY, _("Visible (fields only)"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
|
||||||
fgSizer1->Add( m_Visible, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
fgSizer1->Add( m_Visible, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
vAlignLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("V Alignment (fields only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
vAlignLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("V Alignment (fields only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
vAlignLabel->Wrap( -1 );
|
vAlignLabel->Wrap( -1 );
|
||||||
fgSizer1->Add( vAlignLabel, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizer1->Add( vAlignLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_vAlignChoices[] = { _("Top"), _("Center"), _("Bottom"), _("...") };
|
wxString m_vAlignChoices[] = { _("Top"), _("Center"), _("Bottom"), _("...") };
|
||||||
int m_vAlignNChoices = sizeof( m_vAlignChoices ) / sizeof( wxString );
|
int m_vAlignNChoices = sizeof( m_vAlignChoices ) / sizeof( wxString );
|
||||||
m_vAlign = new wxChoice( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_vAlignNChoices, m_vAlignChoices, 0 );
|
m_vAlign = new wxChoice( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_vAlignNChoices, m_vAlignChoices, 0 );
|
||||||
m_vAlign->SetSelection( 0 );
|
m_vAlign->SetSelection( 0 );
|
||||||
fgSizer1->Add( m_vAlign, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
fgSizer1->Add( m_vAlign, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
@ -236,6 +257,9 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
m_staticline2 = new wxStaticLine( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
m_staticline2 = new wxStaticLine( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
fgSizer1->Add( m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 7 );
|
fgSizer1->Add( m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 7 );
|
||||||
|
|
||||||
|
m_staticline21 = new wxStaticLine( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
|
fgSizer1->Add( m_staticline21, 0, wxEXPAND|wxTOP|wxBOTTOM, 7 );
|
||||||
|
|
||||||
m_staticline3 = new wxStaticLine( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
m_staticline3 = new wxStaticLine( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
fgSizer1->Add( m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 7 );
|
fgSizer1->Add( m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 7 );
|
||||||
|
|
||||||
|
@ -247,30 +271,36 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
|
|
||||||
m_lineWidthLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Line width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_lineWidthLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Line width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_lineWidthLabel->Wrap( -1 );
|
m_lineWidthLabel->Wrap( -1 );
|
||||||
fgSizer1->Add( m_lineWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
|
fgSizer1->Add( m_lineWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_LineWidthCtrl = new wxTextCtrl( m_specifiedValues, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_LineWidthCtrl = new wxTextCtrl( m_specifiedValues, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
fgSizer1->Add( m_LineWidthCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
|
fgSizer1->Add( m_LineWidthCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_lineWidthUnits = new wxStaticText( m_specifiedValues, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_lineWidthUnits = new wxStaticText( m_specifiedValues, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_lineWidthUnits->Wrap( -1 );
|
m_lineWidthUnits->Wrap( -1 );
|
||||||
fgSizer1->Add( m_lineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
|
fgSizer1->Add( m_lineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
m_setColor = new wxCheckBox( m_specifiedValues, wxID_ANY, _("Line color (sheets && graphics):"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
fgSizer1->Add( m_setColor, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
m_colorSwatch = new COLOR_SWATCH( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_colorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
|
||||||
|
m_colorSwatch->SetMinSize( wxSize( 48,24 ) );
|
||||||
|
|
||||||
|
fgSizer1->Add( m_colorSwatch, 0, wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
lineStyleLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Line style (graphics only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
lineStyleLabel = new wxStaticText( m_specifiedValues, wxID_ANY, _("Line style (graphics only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
lineStyleLabel->Wrap( -1 );
|
lineStyleLabel->Wrap( -1 );
|
||||||
fgSizer1->Add( lineStyleLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
fgSizer1->Add( lineStyleLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_lineStyleChoices[] = { _("Solid"), _("Dashed"), _("Dotted"), _("Dash-Dot"), _("...") };
|
wxString m_lineStyleChoices[] = { _("Solid"), _("Dashed"), _("Dotted"), _("Dash-Dot"), _("...") };
|
||||||
int m_lineStyleNChoices = sizeof( m_lineStyleChoices ) / sizeof( wxString );
|
int m_lineStyleNChoices = sizeof( m_lineStyleChoices ) / sizeof( wxString );
|
||||||
m_lineStyle = new wxChoice( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_lineStyleNChoices, m_lineStyleChoices, 0 );
|
m_lineStyle = new wxChoice( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_lineStyleNChoices, m_lineStyleChoices, 0 );
|
||||||
m_lineStyle->SetSelection( 0 );
|
m_lineStyle->SetSelection( 0 );
|
||||||
fgSizer1->Add( m_lineStyle, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
fgSizer1->Add( m_lineStyle, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
@ -278,17 +308,14 @@ DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_
|
||||||
|
|
||||||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizer4;
|
m_setBgColor = new wxCheckBox( m_specifiedValues, wxID_ANY, _("Background color (sheets only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
|
fgSizer1->Add( m_setBgColor, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_setColor = new wxCheckBox( m_specifiedValues, wxID_ANY, _("Color (graphics only):"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_bgColorSwatch = new COLOR_SWATCH( m_specifiedValues, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer4->Add( m_setColor, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
m_bgColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
|
||||||
|
m_bgColorSwatch->SetMinSize( wxSize( 48,24 ) );
|
||||||
|
|
||||||
m_color = new wxColourPickerCtrl( m_specifiedValues, wxID_ANY, *wxBLACK, wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
|
fgSizer1->Add( m_bgColorSwatch, 0, wxRIGHT|wxLEFT, 5 );
|
||||||
bSizer4->Add( m_color, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
fgSizer1->Add( bSizer4, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
bSizer2->Add( fgSizer1, 1, wxEXPAND|wxTOP, 2 );
|
bSizer2->Add( fgSizer1, 1, wxEXPAND|wxTOP, 2 );
|
||||||
|
|
|
@ -474,16 +474,6 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM</property>
|
|
||||||
<property name="proportion">1</property>
|
|
||||||
<object class="spacer" expanded="1">
|
|
||||||
<property name="height">0</property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="width">0</property>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">4</property>
|
<property name="border">4</property>
|
||||||
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
||||||
|
@ -548,6 +538,16 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">4</property>
|
<property name="border">4</property>
|
||||||
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
||||||
|
@ -612,6 +612,70 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">4</property>
|
||||||
|
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</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">Other sheet fields</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_sheetFields</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">; ; forward_declare</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>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">4</property>
|
<property name="border">4</property>
|
||||||
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</property>
|
||||||
|
@ -676,6 +740,70 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">4</property>
|
||||||
|
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT</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">Sheet borders && backgrounds</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_sheetBorders</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">; ; forward_declare</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>
|
||||||
|
</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|wxTOP|wxBOTTOM</property>
|
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM</property>
|
||||||
|
@ -1438,9 +1566,9 @@
|
||||||
<property name="flag">wxEXPAND|wxTOP</property>
|
<property name="flag">wxEXPAND|wxTOP</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxFlexGridSizer" expanded="1">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
<property name="cols">5</property>
|
<property name="cols">6</property>
|
||||||
<property name="flexible_direction">wxBOTH</property>
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
<property name="growablecols">4</property>
|
<property name="growablecols">3</property>
|
||||||
<property name="growablerows"></property>
|
<property name="growablerows"></property>
|
||||||
<property name="hgap">0</property>
|
<property name="hgap">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
|
@ -1448,10 +1576,10 @@
|
||||||
<property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>
|
<property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<property name="rows">0</property>
|
<property name="rows">0</property>
|
||||||
<property name="vgap">0</property>
|
<property name="vgap">4</property>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="0">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -1512,7 +1640,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxTextCtrl" expanded="0">
|
<object class="wxTextCtrl" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -1576,7 +1704,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="0">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -1635,19 +1763,19 @@
|
||||||
<property name="wrap">-1</property>
|
<property name="wrap">-1</property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">20</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">1</property>
|
||||||
<object class="spacer" expanded="0">
|
<object class="spacer" expanded="1">
|
||||||
<property name="height">0</property>
|
<property name="height">0</property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<property name="width">10</property>
|
<property name="width">0</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">wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</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>
|
||||||
|
@ -1709,6 +1837,16 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</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">wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL</property>
|
<property name="flag">wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL</property>
|
||||||
|
@ -1918,6 +2056,26 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</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|wxTOP|wxBOTTOM</property>
|
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM</property>
|
||||||
|
@ -1970,7 +2128,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">wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2031,7 +2189,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">wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxChoice" expanded="1">
|
<object class="wxChoice" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2115,7 +2273,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxCheckBox" expanded="0">
|
<object class="wxCheckBox" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2179,7 +2337,17 @@
|
||||||
</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">wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2240,7 +2408,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">wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxChoice" expanded="1">
|
<object class="wxChoice" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2332,6 +2500,16 @@
|
||||||
<property name="width">0</property>
|
<property name="width">0</property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">0</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">7</property>
|
<property name="border">7</property>
|
||||||
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM|wxLEFT</property>
|
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM|wxLEFT</property>
|
||||||
|
@ -2448,6 +2626,64 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">7</property>
|
||||||
|
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticLine" 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="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="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_staticline21</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">wxLI_HORIZONTAL</property>
|
||||||
|
<property name="subclass">; forward_declare</property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">7</property>
|
<property name="border">7</property>
|
||||||
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM</property>
|
<property name="flag">wxEXPAND|wxTOP|wxBOTTOM</property>
|
||||||
|
@ -2624,7 +2860,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">wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2685,7 +2921,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|wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxTextCtrl" expanded="1">
|
<object class="wxTextCtrl" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2749,7 +2985,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">wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2820,17 +3056,133 @@
|
||||||
</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</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">0</property>
|
||||||
<object class="spacer" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="height">0</property>
|
<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">Line color (sheets && graphics):</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_setColor</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="width">0</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">; forward_declare</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>
|
||||||
</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">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
<property name="flag">wxRIGHT|wxLEFT</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="CustomControl" 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="class">COLOR_SWATCH</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="construction"></property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="declaration"></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">wxSYS_COLOUR_WINDOW</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="include"></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">48,24</property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_colorSwatch</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="settings"></property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="subclass">COLOR_SWATCH; widgets/color_swatch.h; Not forward_declare</property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2891,7 +3243,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|wxALIGN_CENTER_VERTICAL|wxALL</property>
|
<property name="flag">wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxChoice" expanded="1">
|
<object class="wxChoice" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -2975,140 +3327,128 @@
|
||||||
</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|wxALIGN_CENTER_VERTICAL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxBoxSizer" expanded="1">
|
<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">Background color (sheets only):</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">bSizer4</property>
|
<property name="moveable">1</property>
|
||||||
<property name="orient">wxHORIZONTAL</property>
|
<property name="name">m_setBgColor</property>
|
||||||
<property name="permission">none</property>
|
<property name="pane_border">1</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<property name="pane_position"></property>
|
||||||
<property name="border">5</property>
|
<property name="pane_size"></property>
|
||||||
<property name="flag">wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL</property>
|
<property name="permission">protected</property>
|
||||||
<property name="proportion">0</property>
|
<property name="pin_button">1</property>
|
||||||
<object class="wxCheckBox" expanded="1">
|
<property name="pos"></property>
|
||||||
<property name="BottomDockable">1</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="show">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="size"></property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="style"></property>
|
||||||
<property name="aui_layer"></property>
|
<property name="subclass">; forward_declare</property>
|
||||||
<property name="aui_name"></property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="aui_position"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="aui_row"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="best_size"></property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="bg"></property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
<property name="caption"></property>
|
<property name="validator_variable"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="center_pane">0</property>
|
<property name="window_name"></property>
|
||||||
<property name="checked">0</property>
|
<property name="window_style"></property>
|
||||||
<property name="close_button">1</property>
|
</object>
|
||||||
<property name="context_help"></property>
|
</object>
|
||||||
<property name="context_menu">1</property>
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="default_pane">0</property>
|
<property name="border">5</property>
|
||||||
<property name="dock">Dock</property>
|
<property name="flag">wxRIGHT|wxLEFT</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="proportion">0</property>
|
||||||
<property name="docking">Left</property>
|
<object class="CustomControl" expanded="1">
|
||||||
<property name="enabled">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="fg"></property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="floatable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
<property name="font"></property>
|
<property name="TopDockable">1</property>
|
||||||
<property name="gripper">0</property>
|
<property name="aui_layer"></property>
|
||||||
<property name="hidden">0</property>
|
<property name="aui_name"></property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="aui_position"></property>
|
||||||
<property name="label">Color (graphics only):</property>
|
<property name="aui_row"></property>
|
||||||
<property name="max_size"></property>
|
<property name="best_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="bg"></property>
|
||||||
<property name="maximum_size"></property>
|
<property name="caption"></property>
|
||||||
<property name="min_size"></property>
|
<property name="caption_visible">1</property>
|
||||||
<property name="minimize_button">0</property>
|
<property name="center_pane">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="class">COLOR_SWATCH</property>
|
||||||
<property name="moveable">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="name">m_setColor</property>
|
<property name="construction"></property>
|
||||||
<property name="pane_border">1</property>
|
<property name="context_help"></property>
|
||||||
<property name="pane_position"></property>
|
<property name="context_menu">1</property>
|
||||||
<property name="pane_size"></property>
|
<property name="declaration"></property>
|
||||||
<property name="permission">protected</property>
|
<property name="default_pane">0</property>
|
||||||
<property name="pin_button">1</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="pos"></property>
|
<property name="dock_fixed">0</property>
|
||||||
<property name="resize">Resizable</property>
|
<property name="docking">Left</property>
|
||||||
<property name="show">1</property>
|
<property name="enabled">1</property>
|
||||||
<property name="size"></property>
|
<property name="fg">wxSYS_COLOUR_WINDOW</property>
|
||||||
<property name="style"></property>
|
<property name="floatable">1</property>
|
||||||
<property name="subclass">; forward_declare</property>
|
<property name="font"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="tooltip"></property>
|
<property name="hidden">0</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="include"></property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="max_size"></property>
|
||||||
<property name="validator_variable"></property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="maximum_size"></property>
|
||||||
<property name="window_name"></property>
|
<property name="min_size"></property>
|
||||||
<property name="window_style"></property>
|
<property name="minimize_button">0</property>
|
||||||
</object>
|
<property name="minimum_size">48,24</property>
|
||||||
</object>
|
<property name="moveable">1</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<property name="name">m_bgColorSwatch</property>
|
||||||
<property name="border">5</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="flag">wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL</property>
|
<property name="pane_position"></property>
|
||||||
<property name="proportion">0</property>
|
<property name="pane_size"></property>
|
||||||
<object class="wxColourPickerCtrl" expanded="1">
|
<property name="permission">protected</property>
|
||||||
<property name="BottomDockable">1</property>
|
<property name="pin_button">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="pos"></property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="resize">Resizable</property>
|
||||||
<property name="TopDockable">1</property>
|
<property name="settings"></property>
|
||||||
<property name="aui_layer"></property>
|
<property name="show">1</property>
|
||||||
<property name="aui_name"></property>
|
<property name="size"></property>
|
||||||
<property name="aui_position"></property>
|
<property name="subclass">COLOR_SWATCH; widgets/color_swatch.h; Not forward_declare</property>
|
||||||
<property name="aui_row"></property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="best_size"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="bg"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="caption"></property>
|
<property name="window_name"></property>
|
||||||
<property name="caption_visible">1</property>
|
<property name="window_style"></property>
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="colour"></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="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_color</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">wxCLRP_DEFAULT_STYLE</property>
|
|
||||||
<property name="subclass">; forward_declare</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>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
|
#include "widgets/color_swatch.h"
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/checkbox.h>
|
||||||
|
@ -23,7 +24,6 @@
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
#include <wx/choice.h>
|
#include <wx/choice.h>
|
||||||
#include <wx/statline.h>
|
#include <wx/statline.h>
|
||||||
#include <wx/clrpicker.h>
|
|
||||||
#include <wx/panel.h>
|
#include <wx/panel.h>
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
|
@ -47,7 +47,9 @@ class DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : public DIALOG_SHIM
|
||||||
wxCheckBox* m_globalLabels;
|
wxCheckBox* m_globalLabels;
|
||||||
wxCheckBox* m_hierLabels;
|
wxCheckBox* m_hierLabels;
|
||||||
wxCheckBox* m_sheetTitles;
|
wxCheckBox* m_sheetTitles;
|
||||||
|
wxCheckBox* m_sheetFields;
|
||||||
wxCheckBox* m_sheetPins;
|
wxCheckBox* m_sheetPins;
|
||||||
|
wxCheckBox* m_sheetBorders;
|
||||||
wxCheckBox* m_schTextAndGraphics;
|
wxCheckBox* m_schTextAndGraphics;
|
||||||
wxCheckBox* m_fieldnameFilterOpt;
|
wxCheckBox* m_fieldnameFilterOpt;
|
||||||
wxTextCtrl* m_fieldnameFilter;
|
wxTextCtrl* m_fieldnameFilter;
|
||||||
|
@ -72,16 +74,19 @@ class DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE : public DIALOG_SHIM
|
||||||
wxChoice* m_vAlign;
|
wxChoice* m_vAlign;
|
||||||
wxStaticLine* m_staticline1;
|
wxStaticLine* m_staticline1;
|
||||||
wxStaticLine* m_staticline2;
|
wxStaticLine* m_staticline2;
|
||||||
|
wxStaticLine* m_staticline21;
|
||||||
wxStaticLine* m_staticline3;
|
wxStaticLine* m_staticline3;
|
||||||
wxStaticLine* m_staticline4;
|
wxStaticLine* m_staticline4;
|
||||||
wxStaticLine* m_staticline5;
|
wxStaticLine* m_staticline5;
|
||||||
wxStaticText* m_lineWidthLabel;
|
wxStaticText* m_lineWidthLabel;
|
||||||
wxTextCtrl* m_LineWidthCtrl;
|
wxTextCtrl* m_LineWidthCtrl;
|
||||||
wxStaticText* m_lineWidthUnits;
|
wxStaticText* m_lineWidthUnits;
|
||||||
|
wxCheckBox* m_setColor;
|
||||||
|
COLOR_SWATCH* m_colorSwatch;
|
||||||
wxStaticText* lineStyleLabel;
|
wxStaticText* lineStyleLabel;
|
||||||
wxChoice* m_lineStyle;
|
wxChoice* m_lineStyle;
|
||||||
wxCheckBox* m_setColor;
|
wxCheckBox* m_setBgColor;
|
||||||
wxColourPickerCtrl* m_color;
|
COLOR_SWATCH* m_bgColorSwatch;
|
||||||
wxStdDialogButtonSizer* m_sdbSizerButtons;
|
wxStdDialogButtonSizer* m_sdbSizerButtons;
|
||||||
wxButton* m_sdbSizerButtonsOK;
|
wxButton* m_sdbSizerButtonsOK;
|
||||||
wxButton* m_sdbSizerButtonsCancel;
|
wxButton* m_sdbSizerButtonsCancel;
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include <gal/gal_display_options.h>
|
#include <gal/gal_display_options.h>
|
||||||
#include <layers_id_colors_and_visibility.h>
|
#include <layers_id_colors_and_visibility.h>
|
||||||
#include <class_libentry.h>
|
#include <class_libentry.h>
|
||||||
#include <lib_pin.h>
|
|
||||||
#include <lib_polyline.h>
|
#include <lib_polyline.h>
|
||||||
#include <menus_helpers.h>
|
#include <menus_helpers.h>
|
||||||
#include <page_info.h>
|
#include <page_info.h>
|
||||||
|
@ -45,6 +44,7 @@
|
||||||
#include <title_block.h>
|
#include <title_block.h>
|
||||||
#include <view/view.h>
|
#include <view/view.h>
|
||||||
#include <ws_proxy_view_item.h>
|
#include <ws_proxy_view_item.h>
|
||||||
|
#include <sch_base_frame.h>
|
||||||
|
|
||||||
// Width and height of every (color-displaying / bitmap) button in dialog units
|
// Width and height of every (color-displaying / bitmap) button in dialog units
|
||||||
const wxSize BUTTON_SIZE( 24, 12 );
|
const wxSize BUTTON_SIZE( 24, 12 );
|
||||||
|
@ -54,7 +54,7 @@ const wxSize BUTTON_BORDER( 4, 4 );
|
||||||
constexpr int FIRST_BUTTON_ID = 1800;
|
constexpr int FIRST_BUTTON_ID = 1800;
|
||||||
|
|
||||||
|
|
||||||
PANEL_EESCHEMA_COLOR_SETTINGS::PANEL_EESCHEMA_COLOR_SETTINGS( EDA_DRAW_FRAME* aFrame,
|
PANEL_EESCHEMA_COLOR_SETTINGS::PANEL_EESCHEMA_COLOR_SETTINGS( SCH_BASE_FRAME* aFrame,
|
||||||
wxWindow* aParent ) :
|
wxWindow* aParent ) :
|
||||||
PANEL_COLOR_SETTINGS( aParent ),
|
PANEL_COLOR_SETTINGS( aParent ),
|
||||||
m_frame( aFrame ),
|
m_frame( aFrame ),
|
||||||
|
@ -143,9 +143,10 @@ bool PANEL_EESCHEMA_COLOR_SETTINGS::saveCurrentTheme()
|
||||||
SETTINGS_MANAGER& settingsMgr = Pgm().GetSettingsManager();
|
SETTINGS_MANAGER& settingsMgr = Pgm().GetSettingsManager();
|
||||||
COLOR4D bgcolor = m_currentSettings->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
COLOR4D bgcolor = m_currentSettings->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||||
|
|
||||||
for( SCH_LAYER_ID clyr = SCH_LAYER_ID_START; clyr < SCH_LAYER_ID_END; ++clyr )
|
for( SCH_LAYER_ID layer = SCH_LAYER_ID_START; layer < SCH_LAYER_ID_END; ++layer )
|
||||||
{
|
{
|
||||||
if( bgcolor == m_currentSettings->GetColor( clyr ) && clyr != LAYER_SCHEMATIC_BACKGROUND )
|
if( bgcolor == m_currentSettings->GetColor( layer )
|
||||||
|
&& layer != LAYER_SCHEMATIC_BACKGROUND && layer != LAYER_SHEET_BACKGROUND )
|
||||||
{
|
{
|
||||||
wxString msg = _( "Some items have the same color as the background\n"
|
wxString msg = _( "Some items have the same color as the background\n"
|
||||||
"and they will not be seen on the screen. Are you\n"
|
"and they will not be seen on the screen. Are you\n"
|
||||||
|
@ -181,18 +182,29 @@ bool PANEL_EESCHEMA_COLOR_SETTINGS::saveCurrentTheme()
|
||||||
static_cast<void*>( selected ) ) );
|
static_cast<void*>( selected ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( SCH_LAYER_ID clyr = SCH_LAYER_ID_START; clyr < SCH_LAYER_ID_END; ++clyr )
|
for( SCH_LAYER_ID layer = SCH_LAYER_ID_START; layer < SCH_LAYER_ID_END; ++layer )
|
||||||
{
|
{
|
||||||
COLOR4D color = m_currentSettings->GetColor( clyr );
|
COLOR4D color;
|
||||||
|
|
||||||
|
if( layer == LAYER_SHEET )
|
||||||
|
color = GetDefaultSheetBorderColor();
|
||||||
|
else if( layer == LAYER_SHEET_BACKGROUND )
|
||||||
|
color = GetDefaultSheetBackgroundColor();
|
||||||
|
else
|
||||||
|
color = m_currentSettings->GetColor( layer );
|
||||||
|
|
||||||
// Do not allow non-background layers to be completely white.
|
// Do not allow non-background layers to be completely white.
|
||||||
// This ensures the BW printing recognizes that the colors should be printed black.
|
// This ensures the BW printing recognizes that the colors should be printed black.
|
||||||
if( color == COLOR4D::WHITE && clyr != LAYER_SCHEMATIC_BACKGROUND )
|
if( color == COLOR4D::WHITE
|
||||||
|
&& layer != LAYER_SCHEMATIC_BACKGROUND && layer != LAYER_SHEET_BACKGROUND )
|
||||||
|
{
|
||||||
color.Darken( 0.01 );
|
color.Darken( 0.01 );
|
||||||
|
}
|
||||||
|
|
||||||
if( !dirty && selected->GetColor( clyr ) != color )
|
if( !dirty && selected->GetColor( layer ) != color )
|
||||||
dirty = true;
|
dirty = true;
|
||||||
|
|
||||||
selected->SetColor( clyr, color );
|
selected->SetColor( layer, color );
|
||||||
}
|
}
|
||||||
|
|
||||||
KIGFX::RENDER_SETTINGS* settings = m_frame->GetCanvas()->GetView()->GetPainter()->GetSettings();
|
KIGFX::RENDER_SETTINGS* settings = m_frame->GetCanvas()->GetView()->GetPainter()->GetSettings();
|
||||||
|
@ -230,8 +242,8 @@ void PANEL_EESCHEMA_COLOR_SETTINGS::createButtons()
|
||||||
|
|
||||||
for( SCH_LAYER_ID layer : layers )
|
for( SCH_LAYER_ID layer : layers )
|
||||||
{
|
{
|
||||||
// LAYER_SHEET_BACKGROUND doesn't currently allow changing settings
|
// Sheet borders and backgrounds are now sheet-specific
|
||||||
if( layer == LAYER_SHEET_BACKGROUND )
|
if( layer == LAYER_SHEET || layer == LAYER_SHEET_BACKGROUND )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
wxString name = LayerName( layer );
|
wxString name = LayerName( layer );
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <panel_color_settings.h>
|
#include <panel_color_settings.h>
|
||||||
|
|
||||||
class COLOR_SETTINGS;
|
class COLOR_SETTINGS;
|
||||||
class EDA_DRAW_FRAME;
|
class SCH_BASE_FRAME;
|
||||||
class PAGE_INFO;
|
class PAGE_INFO;
|
||||||
class SCH_ITEM;
|
class SCH_ITEM;
|
||||||
class SCH_PREVIEW_PANEL;
|
class SCH_PREVIEW_PANEL;
|
||||||
|
@ -40,7 +40,7 @@ namespace KIGFX
|
||||||
class PANEL_EESCHEMA_COLOR_SETTINGS : public PANEL_COLOR_SETTINGS
|
class PANEL_EESCHEMA_COLOR_SETTINGS : public PANEL_COLOR_SETTINGS
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PANEL_EESCHEMA_COLOR_SETTINGS( EDA_DRAW_FRAME* aFrame, wxWindow* aParent );
|
PANEL_EESCHEMA_COLOR_SETTINGS( SCH_BASE_FRAME* aFrame, wxWindow* aParent );
|
||||||
|
|
||||||
~PANEL_EESCHEMA_COLOR_SETTINGS() override;
|
~PANEL_EESCHEMA_COLOR_SETTINGS() override;
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EDA_DRAW_FRAME* m_frame;
|
SCH_BASE_FRAME* m_frame;
|
||||||
|
|
||||||
SCH_PREVIEW_PANEL* m_preview;
|
SCH_PREVIEW_PANEL* m_preview;
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,10 @@
|
||||||
#include <fctsys.h>
|
#include <fctsys.h>
|
||||||
#include <base_screen.h>
|
#include <base_screen.h>
|
||||||
#include <sch_edit_frame.h>
|
#include <sch_edit_frame.h>
|
||||||
|
#include <settings/settings_manager.h>
|
||||||
|
#include <settings/color_settings.h>
|
||||||
|
#include <painter.h>
|
||||||
|
#include <pgm_base.h>
|
||||||
#include "panel_eeschema_settings.h"
|
#include "panel_eeschema_settings.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +48,16 @@ bool PANEL_EESCHEMA_SETTINGS::TransferDataToWindow()
|
||||||
StringFromValue( EDA_UNITS::INCHES, m_frame->GetRepeatStep().x, false, true ) );
|
StringFromValue( EDA_UNITS::INCHES, m_frame->GetRepeatStep().x, false, true ) );
|
||||||
m_vPitchCtrl->SetValue(
|
m_vPitchCtrl->SetValue(
|
||||||
StringFromValue( EDA_UNITS::INCHES, m_frame->GetRepeatStep().y, false, true ) );
|
StringFromValue( EDA_UNITS::INCHES, m_frame->GetRepeatStep().y, false, true ) );
|
||||||
m_spinRepeatLabel->SetValue( m_frame->GetRepeatDeltaLabel() );
|
m_spinLabelRepeatStep->SetValue( m_frame->GetRepeatDeltaLabel() );
|
||||||
|
|
||||||
|
COLOR_SETTINGS* settings = m_frame->GetColorSettings();
|
||||||
|
COLOR4D schematicBackground = settings->GetColor( LAYER_SCHEMATIC_BACKGROUND );
|
||||||
|
|
||||||
|
m_borderColorSwatch->SetSwatchBackground( schematicBackground );
|
||||||
|
m_borderColorSwatch->SetSwatchColor( GetDefaultSheetBorderColor(), false );
|
||||||
|
|
||||||
|
m_backgroundColorSwatch->SetSwatchBackground( schematicBackground );
|
||||||
|
m_backgroundColorSwatch->SetSwatchColor( GetDefaultSheetBackgroundColor(), false );
|
||||||
|
|
||||||
m_checkHVOrientation->SetValue( m_frame->GetForceHVLines() );
|
m_checkHVOrientation->SetValue( m_frame->GetForceHVLines() );
|
||||||
m_footprintPreview->SetValue( m_frame->GetShowFootprintPreviews() );
|
m_footprintPreview->SetValue( m_frame->GetShowFootprintPreviews() );
|
||||||
|
@ -76,10 +88,13 @@ bool PANEL_EESCHEMA_SETTINGS::TransferDataFromWindow()
|
||||||
m_frame->SaveProjectSettings();
|
m_frame->SaveProjectSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetDefaultSheetBorderColor( m_borderColorSwatch->GetSwatchColor() );
|
||||||
|
SetDefaultSheetBackgroundColor( m_backgroundColorSwatch->GetSwatchColor() );
|
||||||
|
|
||||||
m_frame->SetRepeatStep(
|
m_frame->SetRepeatStep(
|
||||||
wxPoint( (int) ValueFromString( EDA_UNITS::INCHES, m_hPitchCtrl->GetValue(), true ),
|
wxPoint( (int) ValueFromString( EDA_UNITS::INCHES, m_hPitchCtrl->GetValue(), true ),
|
||||||
(int) ValueFromString( EDA_UNITS::INCHES, m_vPitchCtrl->GetValue(), true ) ) );
|
(int) ValueFromString( EDA_UNITS::INCHES, m_vPitchCtrl->GetValue(), true ) ) );
|
||||||
m_frame->SetRepeatDeltaLabel( m_spinRepeatLabel->GetValue() );
|
m_frame->SetRepeatDeltaLabel( m_spinLabelRepeatStep->GetValue() );
|
||||||
|
|
||||||
m_frame->SetForceHVLines( m_checkHVOrientation->GetValue() );
|
m_frame->SetForceHVLines( m_checkHVOrientation->GetValue() );
|
||||||
m_frame->SetShowFootprintPreviews( m_footprintPreview->GetValue() );
|
m_frame->SetShowFootprintPreviews( m_footprintPreview->GetValue() );
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version v3.8.0)
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
|
@ -21,72 +21,21 @@ PANEL_EESCHEMA_SETTINGS_BASE::PANEL_EESCHEMA_SETTINGS_BASE( wxWindow* parent, wx
|
||||||
wxBoxSizer* bLeftColumn;
|
wxBoxSizer* bLeftColumn;
|
||||||
bLeftColumn = new wxBoxSizer( wxVERTICAL );
|
bLeftColumn = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxFlexGridSizer* fgSizerRepeatOpt;
|
wxStaticBoxSizer* sbSizer7;
|
||||||
fgSizerRepeatOpt = new wxFlexGridSizer( 0, 3, 5, 5 );
|
sbSizer7 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Units") ), wxHORIZONTAL );
|
||||||
fgSizerRepeatOpt->AddGrowableCol( 0 );
|
|
||||||
fgSizerRepeatOpt->AddGrowableCol( 1 );
|
|
||||||
fgSizerRepeatOpt->AddGrowableCol( 2 );
|
|
||||||
fgSizerRepeatOpt->SetFlexibleDirection( wxBOTH );
|
|
||||||
fgSizerRepeatOpt->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
||||||
|
|
||||||
m_staticText2 = new wxStaticText( this, wxID_ANY, _("&Measurement units:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText2 = new wxStaticText( sbSizer7->GetStaticBox(), wxID_ANY, _("&Measurement units:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText2->Wrap( -1 );
|
m_staticText2->Wrap( -1 );
|
||||||
fgSizerRepeatOpt->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
sbSizer7->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_choiceUnitsChoices[] = { _("inches"), _("millimeters") };
|
wxString m_choiceUnitsChoices[] = { _("inches"), _("millimeters") };
|
||||||
int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
|
int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
|
||||||
m_choiceUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
|
m_choiceUnits = new wxChoice( sbSizer7->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
|
||||||
m_choiceUnits->SetSelection( 0 );
|
m_choiceUnits->SetSelection( 0 );
|
||||||
fgSizerRepeatOpt->Add( m_choiceUnits, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
sbSizer7->Add( m_choiceUnits, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
fgSizerRepeatOpt->Add( 0, 0, 1, wxEXPAND, 3 );
|
bLeftColumn->Add( sbSizer7, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Default schematic text size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_textSizeLabel->Wrap( -1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
|
||||||
|
|
||||||
m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
|
|
||||||
fgSizerRepeatOpt->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 10 );
|
|
||||||
|
|
||||||
m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_textSizeUnits->Wrap( -1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
||||||
|
|
||||||
m_hPitchLabel = new wxStaticText( this, wxID_ANY, _("&Horizontal pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_hPitchLabel->Wrap( -1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
|
||||||
|
|
||||||
m_hPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
|
|
||||||
fgSizerRepeatOpt->Add( m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
m_hPitchUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_hPitchUnits->Wrap( -1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
||||||
|
|
||||||
m_vPitchLabel = new wxStaticText( this, wxID_ANY, _("&Vertical pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_vPitchLabel->Wrap( -1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
|
||||||
|
|
||||||
m_vPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
|
|
||||||
fgSizerRepeatOpt->Add( m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
m_vPitchUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_vPitchUnits->Wrap( -1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
||||||
|
|
||||||
m_staticText16 = new wxStaticText( this, wxID_ANY, _("&Increment of repeated labels:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_staticText16->Wrap( -1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
|
||||||
|
|
||||||
m_spinRepeatLabel = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -10, 10, 1 );
|
|
||||||
fgSizerRepeatOpt->Add( m_spinRepeatLabel, 0, wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
fgSizerRepeatOpt->Add( 0, 0, 1, wxEXPAND, 3 );
|
|
||||||
|
|
||||||
|
|
||||||
bLeftColumn->Add( fgSizerRepeatOpt, 0, wxLEFT|wxRIGHT, 5 );
|
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizerEditOpt;
|
wxStaticBoxSizer* sbSizerEditOpt;
|
||||||
sbSizerEditOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Editing") ), wxVERTICAL );
|
sbSizerEditOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Editing") ), wxVERTICAL );
|
||||||
|
@ -101,7 +50,56 @@ PANEL_EESCHEMA_SETTINGS_BASE::PANEL_EESCHEMA_SETTINGS_BASE( wxWindow* parent, wx
|
||||||
sbSizerEditOpt->Add( m_mouseDragIsDrag, 0, wxALL, 5 );
|
sbSizerEditOpt->Add( m_mouseDragIsDrag, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bLeftColumn->Add( sbSizerEditOpt, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
bLeftColumn->Add( sbSizerEditOpt, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* sbSizer5;
|
||||||
|
sbSizer5 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Defaults for New Objects") ), wxVERTICAL );
|
||||||
|
|
||||||
|
wxBoxSizer* bSizer5;
|
||||||
|
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_textSizeLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("Schematic text size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_textSizeLabel->Wrap( -1 );
|
||||||
|
bSizer5->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_textSizeCtrl = new wxTextCtrl( sbSizer5->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
|
||||||
|
bSizer5->Add( m_textSizeCtrl, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_textSizeUnits = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_textSizeUnits->Wrap( -1 );
|
||||||
|
bSizer5->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
sbSizer5->Add( bSizer5, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxBoxSizer* bSizer6;
|
||||||
|
bSizer6 = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_borderColorLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("Sheet border:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_borderColorLabel->Wrap( -1 );
|
||||||
|
bSizer6->Add( m_borderColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
|
m_borderColorSwatch = new COLOR_SWATCH( sbSizer5->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_borderColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
|
||||||
|
m_borderColorSwatch->SetMinSize( wxSize( 48,24 ) );
|
||||||
|
|
||||||
|
bSizer6->Add( m_borderColorSwatch, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_backgroundColorLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("Sheet background:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_backgroundColorLabel->Wrap( -1 );
|
||||||
|
bSizer6->Add( m_backgroundColorLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_backgroundColorSwatch = new COLOR_SWATCH( sbSizer5->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_backgroundColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
|
||||||
|
m_backgroundColorSwatch->SetMinSize( wxSize( 48,24 ) );
|
||||||
|
|
||||||
|
bSizer6->Add( m_backgroundColorSwatch, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
sbSizer5->Add( bSizer6, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bLeftColumn->Add( sbSizer5, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizerPinSel;
|
wxStaticBoxSizer* sbSizerPinSel;
|
||||||
sbSizerPinSel = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Selection") ), wxVERTICAL );
|
sbSizerPinSel = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Selection") ), wxVERTICAL );
|
||||||
|
@ -112,10 +110,10 @@ PANEL_EESCHEMA_SETTINGS_BASE::PANEL_EESCHEMA_SETTINGS_BASE( wxWindow* parent, wx
|
||||||
sbSizerPinSel->Add( m_cbPinSelectionOpt, 0, wxALL, 5 );
|
sbSizerPinSel->Add( m_cbPinSelectionOpt, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bLeftColumn->Add( sbSizerPinSel, 0, wxEXPAND, 5 );
|
bLeftColumn->Add( sbSizerPinSel, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
|
||||||
bPanelSizer->Add( bLeftColumn, 0, wxRIGHT|wxLEFT, 5 );
|
bPanelSizer->Add( bLeftColumn, 1, wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bRightColumn;
|
wxBoxSizer* bRightColumn;
|
||||||
bRightColumn = new wxBoxSizer( wxVERTICAL );
|
bRightColumn = new wxBoxSizer( wxVERTICAL );
|
||||||
|
@ -133,23 +131,72 @@ PANEL_EESCHEMA_SETTINGS_BASE::PANEL_EESCHEMA_SETTINGS_BASE( wxWindow* parent, wx
|
||||||
sbSizerFieldAutoPlace->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxALL, 5 );
|
sbSizerFieldAutoPlace->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bRightColumn->Add( sbSizerFieldAutoPlace, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
bRightColumn->Add( sbSizerFieldAutoPlace, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizerPreviewOpt;
|
wxStaticBoxSizer* repeatSizer;
|
||||||
bSizerPreviewOpt = new wxBoxSizer( wxVERTICAL );
|
repeatSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Repeated Items") ), wxVERTICAL );
|
||||||
|
|
||||||
m_footprintPreview = new wxCheckBox( this, wxID_ANY, _("Show footprint previews in symbol chooser"), wxDefaultPosition, wxDefaultSize, 0 );
|
wxFlexGridSizer* fgSizerRepeatOpt1;
|
||||||
bSizerPreviewOpt->Add( m_footprintPreview, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
fgSizerRepeatOpt1 = new wxFlexGridSizer( 0, 3, 5, 5 );
|
||||||
|
fgSizerRepeatOpt1->AddGrowableCol( 0 );
|
||||||
|
fgSizerRepeatOpt1->AddGrowableCol( 1 );
|
||||||
|
fgSizerRepeatOpt1->AddGrowableCol( 2 );
|
||||||
|
fgSizerRepeatOpt1->SetFlexibleDirection( wxBOTH );
|
||||||
|
fgSizerRepeatOpt1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
m_navigatorStaysOpen = new wxCheckBox( this, wxID_ANY, _("Keep hierarchy navigator open"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_hPitchLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("&Horizontal pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_hPitchLabel->Wrap( -1 );
|
||||||
|
fgSizerRepeatOpt1->Add( m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_hPitchCtrl = new wxTextCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
|
||||||
|
fgSizerRepeatOpt1->Add( m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
m_hPitchUnits = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_hPitchUnits->Wrap( -1 );
|
||||||
|
fgSizerRepeatOpt1->Add( m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_vPitchLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("&Vertical pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_vPitchLabel->Wrap( -1 );
|
||||||
|
fgSizerRepeatOpt1->Add( m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_vPitchCtrl = new wxTextCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
|
||||||
|
fgSizerRepeatOpt1->Add( m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
m_vPitchUnits = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_vPitchUnits->Wrap( -1 );
|
||||||
|
fgSizerRepeatOpt1->Add( m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_labelIncrementLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_labelIncrementLabel->Wrap( -1 );
|
||||||
|
fgSizerRepeatOpt1->Add( m_labelIncrementLabel, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_spinLabelRepeatStep = new wxSpinCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -10, 10, 1 );
|
||||||
|
fgSizerRepeatOpt1->Add( m_spinLabelRepeatStep, 1, wxALIGN_CENTER_HORIZONTAL|wxEXPAND|wxBOTTOM|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
fgSizerRepeatOpt1->Add( 0, 0, 1, wxEXPAND, 3 );
|
||||||
|
|
||||||
|
|
||||||
|
repeatSizer->Add( fgSizerRepeatOpt1, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bRightColumn->Add( repeatSizer, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* sbSizer6;
|
||||||
|
sbSizer6 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Dialog Preferences") ), wxVERTICAL );
|
||||||
|
|
||||||
|
m_footprintPreview = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Show footprint previews in Symbol Chooser"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
sbSizer6->Add( m_footprintPreview, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
m_navigatorStaysOpen = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Keep hierarchy navigator open"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_navigatorStaysOpen->SetValue(true);
|
m_navigatorStaysOpen->SetValue(true);
|
||||||
bSizerPreviewOpt->Add( m_navigatorStaysOpen, 0, wxALL, 5 );
|
sbSizer6->Add( m_navigatorStaysOpen, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bRightColumn->Add( bSizerPreviewOpt, 0, wxALL, 5 );
|
bRightColumn->Add( sbSizer6, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bPanelSizer->Add( bRightColumn, 1, wxEXPAND, 5 );
|
bPanelSizer->Add( bRightColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
this->SetSizer( bPanelSizer );
|
this->SetSizer( bPanelSizer );
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version v3.8.0)
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
|
@ -10,6 +10,7 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
|
#include "widgets/color_swatch.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
#include <wx/gdicmn.h>
|
#include <wx/gdicmn.h>
|
||||||
|
@ -17,11 +18,11 @@
|
||||||
#include <wx/colour.h>
|
#include <wx/colour.h>
|
||||||
#include <wx/settings.h>
|
#include <wx/settings.h>
|
||||||
#include <wx/choice.h>
|
#include <wx/choice.h>
|
||||||
|
#include <wx/sizer.h>
|
||||||
|
#include <wx/statbox.h>
|
||||||
|
#include <wx/checkbox.h>
|
||||||
#include <wx/textctrl.h>
|
#include <wx/textctrl.h>
|
||||||
#include <wx/spinctrl.h>
|
#include <wx/spinctrl.h>
|
||||||
#include <wx/sizer.h>
|
|
||||||
#include <wx/checkbox.h>
|
|
||||||
#include <wx/statbox.h>
|
|
||||||
#include <wx/panel.h>
|
#include <wx/panel.h>
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -41,23 +42,27 @@ class PANEL_EESCHEMA_SETTINGS_BASE : public wxPanel
|
||||||
protected:
|
protected:
|
||||||
wxStaticText* m_staticText2;
|
wxStaticText* m_staticText2;
|
||||||
wxChoice* m_choiceUnits;
|
wxChoice* m_choiceUnits;
|
||||||
|
wxCheckBox* m_checkHVOrientation;
|
||||||
|
wxCheckBox* m_mouseDragIsDrag;
|
||||||
wxStaticText* m_textSizeLabel;
|
wxStaticText* m_textSizeLabel;
|
||||||
wxTextCtrl* m_textSizeCtrl;
|
wxTextCtrl* m_textSizeCtrl;
|
||||||
wxStaticText* m_textSizeUnits;
|
wxStaticText* m_textSizeUnits;
|
||||||
|
wxStaticText* m_borderColorLabel;
|
||||||
|
COLOR_SWATCH* m_borderColorSwatch;
|
||||||
|
wxStaticText* m_backgroundColorLabel;
|
||||||
|
COLOR_SWATCH* m_backgroundColorSwatch;
|
||||||
|
wxCheckBox* m_cbPinSelectionOpt;
|
||||||
|
wxCheckBox* m_checkAutoplaceFields;
|
||||||
|
wxCheckBox* m_checkAutoplaceJustify;
|
||||||
|
wxCheckBox* m_checkAutoplaceAlign;
|
||||||
wxStaticText* m_hPitchLabel;
|
wxStaticText* m_hPitchLabel;
|
||||||
wxTextCtrl* m_hPitchCtrl;
|
wxTextCtrl* m_hPitchCtrl;
|
||||||
wxStaticText* m_hPitchUnits;
|
wxStaticText* m_hPitchUnits;
|
||||||
wxStaticText* m_vPitchLabel;
|
wxStaticText* m_vPitchLabel;
|
||||||
wxTextCtrl* m_vPitchCtrl;
|
wxTextCtrl* m_vPitchCtrl;
|
||||||
wxStaticText* m_vPitchUnits;
|
wxStaticText* m_vPitchUnits;
|
||||||
wxStaticText* m_staticText16;
|
wxStaticText* m_labelIncrementLabel;
|
||||||
wxSpinCtrl* m_spinRepeatLabel;
|
wxSpinCtrl* m_spinLabelRepeatStep;
|
||||||
wxCheckBox* m_checkHVOrientation;
|
|
||||||
wxCheckBox* m_mouseDragIsDrag;
|
|
||||||
wxCheckBox* m_cbPinSelectionOpt;
|
|
||||||
wxCheckBox* m_checkAutoplaceFields;
|
|
||||||
wxCheckBox* m_checkAutoplaceJustify;
|
|
||||||
wxCheckBox* m_checkAutoplaceAlign;
|
|
||||||
wxCheckBox* m_footprintPreview;
|
wxCheckBox* m_footprintPreview;
|
||||||
wxCheckBox* m_navigatorStaysOpen;
|
wxCheckBox* m_navigatorStaysOpen;
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ static int s_defaultBusThickness = Mils2iu( DEFAULTBUSTHICKNESS );
|
||||||
static int s_defaultWireThickness = Mils2iu( DEFAULTDRAWLINETHICKNESS );
|
static int s_defaultWireThickness = Mils2iu( DEFAULTDRAWLINETHICKNESS );
|
||||||
static int s_defaultTextSize = Mils2iu( DEFAULT_SIZE_TEXT );
|
static int s_defaultTextSize = Mils2iu( DEFAULT_SIZE_TEXT );
|
||||||
static int s_drawDefaultLineThickness = -1;
|
static int s_drawDefaultLineThickness = -1;
|
||||||
|
static COLOR4D s_defaultSheetBorderColor = MAGENTA;
|
||||||
|
static COLOR4D s_defaultSheetBackgroundColor = WHITE;
|
||||||
static double s_textOffsetRatio = 0.08;
|
static double s_textOffsetRatio = 0.08;
|
||||||
static bool s_selectTextAsBox = false;
|
static bool s_selectTextAsBox = false;
|
||||||
static bool s_selectDrawChildren = true;
|
static bool s_selectDrawChildren = true;
|
||||||
|
@ -269,6 +271,30 @@ int GetDefaultLineThickness()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
COLOR4D GetDefaultSheetBorderColor()
|
||||||
|
{
|
||||||
|
return s_defaultSheetBorderColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SetDefaultSheetBorderColor( COLOR4D aColor )
|
||||||
|
{
|
||||||
|
s_defaultSheetBorderColor = aColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
COLOR4D GetDefaultSheetBackgroundColor()
|
||||||
|
{
|
||||||
|
return s_defaultSheetBackgroundColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SetDefaultSheetBackgroundColor( COLOR4D aColor )
|
||||||
|
{
|
||||||
|
s_defaultSheetBackgroundColor = aColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void SetDefaultLineThickness( int aThickness )
|
void SetDefaultLineThickness( int aThickness )
|
||||||
{
|
{
|
||||||
s_drawDefaultLineThickness = std::max( 1, aThickness );
|
s_drawDefaultLineThickness = std::max( 1, aThickness );
|
||||||
|
@ -545,6 +571,10 @@ void SCH_EDIT_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
|
||||||
settings->m_ShowHiddenPins = m_showAllPins;
|
settings->m_ShowHiddenPins = m_showAllPins;
|
||||||
settings->SetShowPageLimits( m_showPageLimits );
|
settings->SetShowPageLimits( m_showPageLimits );
|
||||||
settings->m_ShowUmbilicals = true;
|
settings->m_ShowUmbilicals = true;
|
||||||
|
|
||||||
|
COLOR_SETTINGS* colorSettings = GetColorSettings();
|
||||||
|
SetDefaultSheetBorderColor( colorSettings->GetColor( LAYER_SHEET ) );
|
||||||
|
SetDefaultSheetBackgroundColor( colorSettings->GetColor( LAYER_SHEET_BACKGROUND ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,14 @@ void SetSeverity( int aErrorCode, int aSeverity );
|
||||||
int GetDefaultLineThickness();
|
int GetDefaultLineThickness();
|
||||||
void SetDefaultLineThickness( int aThickness );
|
void SetDefaultLineThickness( int aThickness );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defaults for new sheets.
|
||||||
|
*/
|
||||||
|
COLOR4D GetDefaultSheetBorderColor();
|
||||||
|
void SetDefaultSheetBorderColor( COLOR4D aColor );
|
||||||
|
COLOR4D GetDefaultSheetBackgroundColor();
|
||||||
|
void SetDefaultSheetBackgroundColor( COLOR4D aColor );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default size for text in general
|
* Default size for text in general
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -91,8 +91,8 @@ SCH_SHEET::SCH_SHEET( const wxPoint& pos ) :
|
||||||
m_fieldsAutoplaced = FIELDS_AUTOPLACED_AUTO;
|
m_fieldsAutoplaced = FIELDS_AUTOPLACED_AUTO;
|
||||||
|
|
||||||
m_borderWidth = GetDefaultLineThickness();
|
m_borderWidth = GetDefaultLineThickness();
|
||||||
m_borderColor = KIGFX::COLOR4D::UNSPECIFIED;
|
m_borderColor = GetDefaultSheetBorderColor();
|
||||||
m_backgroundColor = KIGFX::COLOR4D::UNSPECIFIED;
|
m_backgroundColor = GetDefaultSheetBackgroundColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue