Modified recent change on svn change: "PCB edge always printed when PCB edge layer not selected" was incorrect for eeschema and gerbview
solved bug 2070228
This commit is contained in:
parent
b10990f276
commit
485c92d4fe
|
@ -20,7 +20,7 @@ foreach(LOOP_VAR ${BITMAP_SRCS})
|
||||||
set(CPP_BITMAP "${XPM_CPP_PATH}/${BASENAME}.cpp")
|
set(CPP_BITMAP "${XPM_CPP_PATH}/${BASENAME}.cpp")
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CPP_BITMAP}
|
OUTPUT ${CPP_BITMAP}
|
||||||
COMMAND cmake -E copy '${PATH}/${BASENAME}.xpm' '${CPP_BITMAP}'
|
COMMAND cmake -E copy "${PATH}/${BASENAME}.xpm" "${CPP_BITMAP}"
|
||||||
DEPENDS ${BASENAME}.xpm)
|
DEPENDS ${BASENAME}.xpm)
|
||||||
list(APPEND CPP_BITMAPS ${CPP_BITMAP})
|
list(APPEND CPP_BITMAPS ${CPP_BITMAP})
|
||||||
set_source_files_properties(${CPP_BITMAP} PROPERTIES COMPILE_FLAGS -DXPMMAIN)
|
set_source_files_properties(${CPP_BITMAP} PROPERTIES COMPILE_FLAGS -DXPMMAIN)
|
||||||
|
|
|
@ -1,168 +1,168 @@
|
||||||
Cmp-Mod V01 Created by Cvpcb (20080313-r890) date = 22/3/2008-09:05:19
|
Cmp-Mod V01 Created by Cvpcb (20080731.r1175 date = 1/8/2008-07:52:43
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D3011;
|
TimeStamp = /322D3011;
|
||||||
Reference = BUS1;
|
Reference = BUS1;
|
||||||
ValeurCmp = BUSPC;
|
ValeurCmp = BUSPC;
|
||||||
IdModule = BUS_PC;
|
IdModule = BUS_PC;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307DE2;
|
TimeStamp = /32307DE2;
|
||||||
Reference = C1;
|
Reference = C1;
|
||||||
ValeurCmp = 47uF;
|
ValeurCmp = 47uF;
|
||||||
IdModule = CP6;
|
IdModule = CP6;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307ECF;
|
TimeStamp = /32307ECF;
|
||||||
Reference = C2;
|
Reference = C2;
|
||||||
ValeurCmp = 47pF;
|
ValeurCmp = 47pF;
|
||||||
IdModule = C1;
|
IdModule = C1;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307ED4;
|
TimeStamp = /32307ED4;
|
||||||
Reference = C3;
|
Reference = C3;
|
||||||
ValeurCmp = 47pF;
|
ValeurCmp = 47pF;
|
||||||
IdModule = C1;
|
IdModule = C1;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307DCF;
|
TimeStamp = /32307DCF;
|
||||||
Reference = C4;
|
Reference = C4;
|
||||||
ValeurCmp = 47uF;
|
ValeurCmp = 47uF;
|
||||||
IdModule = CP6;
|
IdModule = CP6;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307DCA;
|
TimeStamp = /32307DCA;
|
||||||
Reference = C5;
|
Reference = C5;
|
||||||
ValeurCmp = 47uF;
|
ValeurCmp = 47uF;
|
||||||
IdModule = CP6;
|
IdModule = CP6;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307DC0;
|
TimeStamp = /32307DC0;
|
||||||
Reference = C6;
|
Reference = C6;
|
||||||
ValeurCmp = 47uF;
|
ValeurCmp = 47uF;
|
||||||
IdModule = CP6;
|
IdModule = CP6;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D32AC;
|
TimeStamp = /322D32AC;
|
||||||
Reference = D1;
|
Reference = D1;
|
||||||
ValeurCmp = LED;
|
ValeurCmp = LED;
|
||||||
IdModule = LEDV;
|
IdModule = LEDV;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D32BE;
|
TimeStamp = /322D32BE;
|
||||||
Reference = D2;
|
Reference = D2;
|
||||||
ValeurCmp = LED;
|
ValeurCmp = LED;
|
||||||
IdModule = LEDV;
|
IdModule = LEDV;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32568D1E;
|
TimeStamp = /32568D1E;
|
||||||
Reference = JP1;
|
Reference = JP1;
|
||||||
ValeurCmp = CONN_8X2;
|
ValeurCmp = CONN_8X2;
|
||||||
IdModule = pin_array_8x2;
|
IdModule = pin_array_8x2;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 3256759C;
|
TimeStamp = /3256759C;
|
||||||
Reference = P1;
|
Reference = P1;
|
||||||
ValeurCmp = DB25FEMELLE;
|
ValeurCmp = DB25FEMELLE;
|
||||||
IdModule = DB25FC;
|
IdModule = DB25FC;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307EA1;
|
TimeStamp = /32307EA1;
|
||||||
Reference = R1;
|
Reference = R1;
|
||||||
ValeurCmp = 100K;
|
ValeurCmp = 100K;
|
||||||
IdModule = R3;
|
IdModule = R3;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307EAA;
|
TimeStamp = /32307EAA;
|
||||||
Reference = R2;
|
Reference = R2;
|
||||||
ValeurCmp = 1K;
|
ValeurCmp = 1K;
|
||||||
IdModule = R3;
|
IdModule = R3;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 324002E6;
|
TimeStamp = /324002E6;
|
||||||
Reference = R3;
|
Reference = R3;
|
||||||
ValeurCmp = 10K;
|
ValeurCmp = 10K;
|
||||||
IdModule = R3;
|
IdModule = R3;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D3295;
|
TimeStamp = /322D3295;
|
||||||
Reference = R4;
|
Reference = R4;
|
||||||
ValeurCmp = 330;
|
ValeurCmp = 330;
|
||||||
IdModule = R3;
|
IdModule = R3;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D32A0;
|
TimeStamp = /322D32A0;
|
||||||
Reference = R5;
|
Reference = R5;
|
||||||
ValeurCmp = 330;
|
ValeurCmp = 330;
|
||||||
IdModule = R3;
|
IdModule = R3;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 325679C1;
|
TimeStamp = /325679C1;
|
||||||
Reference = RR1;
|
Reference = RR1;
|
||||||
ValeurCmp = 9x1K;
|
ValeurCmp = 9x1K;
|
||||||
IdModule = r_pack9;
|
IdModule = r_pack9;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D31F4;
|
TimeStamp = /322D31F4;
|
||||||
Reference = U1;
|
Reference = U1;
|
||||||
ValeurCmp = 74LS245;
|
ValeurCmp = 74LS245;
|
||||||
IdModule = 20dip300;
|
IdModule = 20dip300;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D35B4;
|
TimeStamp = /322D35B4;
|
||||||
Reference = U2;
|
Reference = U2;
|
||||||
ValeurCmp = 74LS688;
|
ValeurCmp = 74LS688;
|
||||||
IdModule = 20dip300;
|
IdModule = 20dip300;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D31CA;
|
TimeStamp = /322D31CA;
|
||||||
Reference = U3;
|
Reference = U3;
|
||||||
ValeurCmp = 74LS541;
|
ValeurCmp = 74LS541;
|
||||||
IdModule = 20dip300;
|
IdModule = 20dip300;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 3240023F;
|
TimeStamp = /3240023F;
|
||||||
Reference = U5;
|
Reference = U5;
|
||||||
ValeurCmp = 628128;
|
ValeurCmp = 628128;
|
||||||
IdModule = 32dip600;
|
IdModule = 32dip600;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D321C;
|
TimeStamp = /322D321C;
|
||||||
Reference = U8;
|
Reference = U8;
|
||||||
ValeurCmp = EP600;
|
ValeurCmp = EP600;
|
||||||
IdModule = 24dip300;
|
IdModule = 24dip300;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 322D32FA;
|
TimeStamp = /322D32FA;
|
||||||
Reference = U9;
|
Reference = U9;
|
||||||
ValeurCmp = 4003APG120;
|
ValeurCmp = 4003APG120;
|
||||||
IdModule = PGA120;
|
IdModule = PGA120;
|
||||||
EndCmp
|
EndCmp
|
||||||
|
|
||||||
BeginCmp
|
BeginCmp
|
||||||
TimeStamp = 32307EC0;
|
TimeStamp = /32307EC0;
|
||||||
Reference = X1;
|
Reference = X1;
|
||||||
ValeurCmp = 8MHz;
|
ValeurCmp = 8MHz;
|
||||||
IdModule = HC-18UH;
|
IdModule = HC-18UH;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -78,20 +78,26 @@ WinEDA_PrintFrame::WinEDA_PrintFrame( WinEDA_DrawFrame* parent, wxWindowID id, c
|
||||||
bool WinEDA_PrintFrame::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
bool WinEDA_PrintFrame::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
||||||
{
|
{
|
||||||
////@begin WinEDA_PrintFrame member initialisation
|
////@begin WinEDA_PrintFrame member initialisation
|
||||||
|
m_FullDialogBowSizer = NULL;
|
||||||
|
m_LeftBoxSizer = NULL;
|
||||||
|
m_LayersSelectionsBoxSizer = NULL;
|
||||||
m_CopperLayersBoxSizer = NULL;
|
m_CopperLayersBoxSizer = NULL;
|
||||||
m_TechLayersBoxSizer = NULL;
|
m_TechLayersBoxSizer = NULL;
|
||||||
m_Exclude_Edges_Pcb = NULL;
|
m_Exclude_Edges_Pcb = NULL;
|
||||||
|
m_ScaleBoxSizer = NULL;
|
||||||
m_ScaleOption = NULL;
|
m_ScaleOption = NULL;
|
||||||
m_FineAdjustXscaleTitle = NULL;
|
m_FineAdjustXscaleTitle = NULL;
|
||||||
m_FineAdjustXscaleOpt = NULL;
|
m_FineAdjustXscaleOpt = NULL;
|
||||||
m_FineAdjustYscaleTitle = NULL;
|
m_FineAdjustYscaleTitle = NULL;
|
||||||
m_FineAdjustYscaleOpt = NULL;
|
m_FineAdjustYscaleOpt = NULL;
|
||||||
|
m_OptionsBoxSizer = NULL;
|
||||||
m_DialogPenWidthSizer = NULL;
|
m_DialogPenWidthSizer = NULL;
|
||||||
m_Print_Sheet_Ref = NULL;
|
m_Print_Sheet_Ref = NULL;
|
||||||
m_Print_Mirror = NULL;
|
m_Print_Mirror = NULL;
|
||||||
m_ColorOption = NULL;
|
m_ColorOption = NULL;
|
||||||
m_PagesOptionPcb = NULL;
|
m_PagesOptionPcb = NULL;
|
||||||
m_PagesOptionEeschema = NULL;
|
m_PagesOptionEeschema = NULL;
|
||||||
|
m_ButtonsBoxSizer = NULL;
|
||||||
m_CloseButton = NULL;
|
m_CloseButton = NULL;
|
||||||
////@end WinEDA_PrintFrame member initialisation
|
////@end WinEDA_PrintFrame member initialisation
|
||||||
|
|
||||||
|
@ -118,36 +124,34 @@ void WinEDA_PrintFrame::CreateControls()
|
||||||
SetFont(*g_DialogFont);
|
SetFont(*g_DialogFont);
|
||||||
|
|
||||||
////@begin WinEDA_PrintFrame content construction
|
////@begin WinEDA_PrintFrame content construction
|
||||||
// Generated by DialogBlocks, 22/03/2008 08:33:38 (unregistered)
|
// Generated by DialogBlocks, 25/08/2008 12:59:33 (unregistered)
|
||||||
|
|
||||||
WinEDA_PrintFrame* itemDialog1 = this;
|
WinEDA_PrintFrame* itemDialog1 = this;
|
||||||
|
|
||||||
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
|
m_FullDialogBowSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
itemDialog1->SetSizer(itemBoxSizer2);
|
itemDialog1->SetSizer(m_FullDialogBowSizer);
|
||||||
|
|
||||||
|
m_LeftBoxSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
m_FullDialogBowSizer->Add(m_LeftBoxSizer, 0, wxGROW|wxTOP|wxBOTTOM, 5);
|
||||||
|
|
||||||
|
m_LayersSelectionsBoxSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
m_LeftBoxSizer->Add(m_LayersSelectionsBoxSizer, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
wxBoxSizer* leftBoxSizer = new wxBoxSizer(wxVERTICAL);
|
|
||||||
itemBoxSizer2->Add(leftBoxSizer, 0, wxALIGN_TOP|wxALL,5);
|
|
||||||
|
|
||||||
wxBoxSizer* layersBoxSizer = new wxBoxSizer(wxHORIZONTAL);
|
|
||||||
leftBoxSizer->Add(layersBoxSizer, 0, wxGROW|wxALL,5);
|
|
||||||
|
|
||||||
m_CopperLayersBoxSizer = new wxBoxSizer(wxVERTICAL);
|
m_CopperLayersBoxSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
layersBoxSizer->Add(m_CopperLayersBoxSizer, 0, wxGROW|wxALL, 5);
|
m_LayersSelectionsBoxSizer->Add(m_CopperLayersBoxSizer, 0, wxALIGN_TOP|wxRIGHT|wxTOP|wxBOTTOM, 5);
|
||||||
|
|
||||||
m_TechLayersBoxSizer = new wxBoxSizer(wxVERTICAL);
|
m_TechLayersBoxSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
layersBoxSizer->Add(m_TechLayersBoxSizer, 0, wxALIGN_TOP|wxALL, 5);
|
m_LayersSelectionsBoxSizer->Add(m_TechLayersBoxSizer, 0, wxALIGN_TOP|wxALL, 5);
|
||||||
|
|
||||||
wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxVERTICAL);
|
m_Exclude_Edges_Pcb = new wxCheckBox( itemDialog1, ID_EXCLUDE_EDGES_PCB, _("Exclude Edges_Pcb Layer"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemBoxSizer2->Add(itemBoxSizer5, 0, wxGROW|wxALL, 5);
|
m_Exclude_Edges_Pcb->SetValue(false);
|
||||||
|
if (WinEDA_PrintFrame::ShowToolTips())
|
||||||
// Option for excluding contents of "Edges Pcb" layer
|
m_Exclude_Edges_Pcb->SetToolTip(_("Exclude contents of Edges_Pcb layer from all other layers"));
|
||||||
m_Exclude_Edges_Pcb = new wxCheckBox( this,
|
m_Exclude_Edges_Pcb->Show(false);
|
||||||
ID_EXCLUDE_EDGES_PCB, _( "Exclude Edges_Pcb layer" ) );
|
m_LeftBoxSizer->Add(m_Exclude_Edges_Pcb, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
//m_Exclude_Edges_Pcb->SetValue( g_Exclude_Edges_Pcb );
|
m_ScaleBoxSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
m_Exclude_Edges_Pcb->SetToolTip(
|
m_FullDialogBowSizer->Add(m_ScaleBoxSizer, 0, wxGROW|wxALL, 5);
|
||||||
_( "Exclude contents of Edges_Pcb layer from all other layers" ) );
|
|
||||||
leftBoxSizer->Add( m_Exclude_Edges_Pcb, 0, wxGROW | wxALL, 1 );
|
|
||||||
|
|
||||||
wxArrayString m_ScaleOptionStrings;
|
wxArrayString m_ScaleOptionStrings;
|
||||||
m_ScaleOptionStrings.Add(_("fit in page"));
|
m_ScaleOptionStrings.Add(_("fit in page"));
|
||||||
|
@ -161,83 +165,83 @@ void WinEDA_PrintFrame::CreateControls()
|
||||||
m_ScaleOptionStrings.Add(_("Scale 4"));
|
m_ScaleOptionStrings.Add(_("Scale 4"));
|
||||||
m_ScaleOption = new wxRadioBox( itemDialog1, ID_SET_PRINT_SCALE, _("Approx. Scale:"), wxDefaultPosition, wxDefaultSize, m_ScaleOptionStrings, 1, wxRA_SPECIFY_COLS );
|
m_ScaleOption = new wxRadioBox( itemDialog1, ID_SET_PRINT_SCALE, _("Approx. Scale:"), wxDefaultPosition, wxDefaultSize, m_ScaleOptionStrings, 1, wxRA_SPECIFY_COLS );
|
||||||
m_ScaleOption->SetSelection(0);
|
m_ScaleOption->SetSelection(0);
|
||||||
itemBoxSizer5->Add(m_ScaleOption, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
m_ScaleBoxSizer->Add(m_ScaleOption, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||||
|
|
||||||
m_FineAdjustXscaleTitle = new wxStaticText( itemDialog1, wxID_STATIC, _("X Scale Adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustXscaleTitle = new wxStaticText( itemDialog1, wxID_STATIC, _("X Scale Adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemBoxSizer5->Add(m_FineAdjustXscaleTitle, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
|
m_ScaleBoxSizer->Add(m_FineAdjustXscaleTitle, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
|
||||||
|
|
||||||
m_FineAdjustXscaleOpt = new wxTextCtrl( itemDialog1, ID_TEXTCTRL, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustXscaleOpt = new wxTextCtrl( itemDialog1, ID_TEXTCTRL, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemBoxSizer5->Add(m_FineAdjustXscaleOpt, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
m_ScaleBoxSizer->Add(m_FineAdjustXscaleOpt, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
||||||
|
|
||||||
m_FineAdjustYscaleTitle = new wxStaticText( itemDialog1, wxID_STATIC, _("Y Scale Adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustYscaleTitle = new wxStaticText( itemDialog1, wxID_STATIC, _("Y Scale Adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemBoxSizer5->Add(m_FineAdjustYscaleTitle, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
|
m_ScaleBoxSizer->Add(m_FineAdjustYscaleTitle, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5);
|
||||||
|
|
||||||
m_FineAdjustYscaleOpt = new wxTextCtrl( itemDialog1, ID_TEXTCTRL1, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustYscaleOpt = new wxTextCtrl( itemDialog1, ID_TEXTCTRL1, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemBoxSizer5->Add(m_FineAdjustYscaleOpt, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
m_ScaleBoxSizer->Add(m_FineAdjustYscaleOpt, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
||||||
|
|
||||||
itemBoxSizer2->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
m_FullDialogBowSizer->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||||
|
|
||||||
wxBoxSizer* itemBoxSizer12 = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* itemBoxSizer15 = new wxBoxSizer(wxVERTICAL);
|
||||||
itemBoxSizer2->Add(itemBoxSizer12, 0, wxGROW|wxALL, 5);
|
m_FullDialogBowSizer->Add(itemBoxSizer15, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer13Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Options:"));
|
m_OptionsBoxSizer = new wxStaticBox(itemDialog1, wxID_ANY, _("Options:"));
|
||||||
wxStaticBoxSizer* itemStaticBoxSizer13 = new wxStaticBoxSizer(itemStaticBoxSizer13Static, wxVERTICAL);
|
wxStaticBoxSizer* itemStaticBoxSizer16 = new wxStaticBoxSizer(m_OptionsBoxSizer, wxVERTICAL);
|
||||||
itemBoxSizer12->Add(itemStaticBoxSizer13, 0, wxGROW|wxALL, 5);
|
itemBoxSizer15->Add(itemStaticBoxSizer16, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
m_DialogPenWidthSizer = new wxBoxSizer(wxVERTICAL);
|
m_DialogPenWidthSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
itemStaticBoxSizer13->Add(m_DialogPenWidthSizer, 0, wxGROW|wxALL, 5);
|
itemStaticBoxSizer16->Add(m_DialogPenWidthSizer, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
m_Print_Sheet_Ref = new wxCheckBox( itemDialog1, ID_PRINT_REF, _("Print Sheet Ref"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
|
m_Print_Sheet_Ref = new wxCheckBox( itemDialog1, ID_PRINT_REF, _("Print Sheet Ref"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
|
||||||
m_Print_Sheet_Ref->SetValue(false);
|
m_Print_Sheet_Ref->SetValue(false);
|
||||||
itemStaticBoxSizer13->Add(m_Print_Sheet_Ref, 0, wxGROW|wxALL, 5);
|
itemStaticBoxSizer16->Add(m_Print_Sheet_Ref, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
m_Print_Mirror = new wxCheckBox( itemDialog1, ID_CHECK_PRINT_MIROR, _("Mirror"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
|
m_Print_Mirror = new wxCheckBox( itemDialog1, ID_CHECK_PRINT_MIROR, _("Mirror"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
|
||||||
m_Print_Mirror->SetValue(false);
|
m_Print_Mirror->SetValue(false);
|
||||||
itemStaticBoxSizer13->Add(m_Print_Mirror, 0, wxGROW|wxALL, 5);
|
itemStaticBoxSizer16->Add(m_Print_Mirror, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
wxArrayString m_ColorOptionStrings;
|
wxArrayString m_ColorOptionStrings;
|
||||||
m_ColorOptionStrings.Add(_("Color"));
|
m_ColorOptionStrings.Add(_("Color"));
|
||||||
m_ColorOptionStrings.Add(_("Black"));
|
m_ColorOptionStrings.Add(_("Black"));
|
||||||
m_ColorOption = new wxRadioBox( itemDialog1, ID_SET_BW, _("Color Print:"), wxDefaultPosition, wxDefaultSize, m_ColorOptionStrings, 1, wxRA_SPECIFY_COLS );
|
m_ColorOption = new wxRadioBox( itemDialog1, ID_SET_BW, _("Color Print:"), wxDefaultPosition, wxDefaultSize, m_ColorOptionStrings, 1, wxRA_SPECIFY_COLS );
|
||||||
m_ColorOption->SetSelection(0);
|
m_ColorOption->SetSelection(0);
|
||||||
itemBoxSizer12->Add(m_ColorOption, 0, wxGROW|wxALL, 5);
|
itemBoxSizer15->Add(m_ColorOption, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
wxArrayString m_PagesOptionPcbStrings;
|
wxArrayString m_PagesOptionPcbStrings;
|
||||||
m_PagesOptionPcbStrings.Add(_("1 Page per Layer"));
|
m_PagesOptionPcbStrings.Add(_("1 Page per Layer"));
|
||||||
m_PagesOptionPcbStrings.Add(_("Single Page"));
|
m_PagesOptionPcbStrings.Add(_("Single Page"));
|
||||||
m_PagesOptionPcb = new wxRadioBox( itemDialog1, ID_PRINT_ALL_IN_ONE, _("Page Print:"), wxDefaultPosition, wxDefaultSize, m_PagesOptionPcbStrings, 1, wxRA_SPECIFY_COLS );
|
m_PagesOptionPcb = new wxRadioBox( itemDialog1, ID_PRINT_ALL_IN_ONE, _("Page Print:"), wxDefaultPosition, wxDefaultSize, m_PagesOptionPcbStrings, 1, wxRA_SPECIFY_COLS );
|
||||||
m_PagesOptionPcb->SetSelection(0);
|
m_PagesOptionPcb->SetSelection(0);
|
||||||
itemBoxSizer12->Add(m_PagesOptionPcb, 0, wxGROW|wxALL, 5);
|
itemBoxSizer15->Add(m_PagesOptionPcb, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
wxArrayString m_PagesOptionEeschemaStrings;
|
wxArrayString m_PagesOptionEeschemaStrings;
|
||||||
m_PagesOptionEeschemaStrings.Add(_("Current"));
|
m_PagesOptionEeschemaStrings.Add(_("Current"));
|
||||||
m_PagesOptionEeschemaStrings.Add(_("All"));
|
m_PagesOptionEeschemaStrings.Add(_("All"));
|
||||||
m_PagesOptionEeschema = new wxRadioBox( itemDialog1, ID_PRINT_ALL, _("Page Print:"), wxDefaultPosition, wxDefaultSize, m_PagesOptionEeschemaStrings, 1, wxRA_SPECIFY_COLS );
|
m_PagesOptionEeschema = new wxRadioBox( itemDialog1, ID_PRINT_ALL, _("Page Print:"), wxDefaultPosition, wxDefaultSize, m_PagesOptionEeschemaStrings, 1, wxRA_SPECIFY_COLS );
|
||||||
m_PagesOptionEeschema->SetSelection(0);
|
m_PagesOptionEeschema->SetSelection(0);
|
||||||
itemBoxSizer12->Add(m_PagesOptionEeschema, 0, wxGROW|wxALL, 5);
|
itemBoxSizer15->Add(m_PagesOptionEeschema, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
itemBoxSizer2->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
m_FullDialogBowSizer->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||||
|
|
||||||
wxBoxSizer* itemBoxSizer21 = new wxBoxSizer(wxVERTICAL);
|
m_ButtonsBoxSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
itemBoxSizer2->Add(itemBoxSizer21, 0, wxALIGN_TOP|wxALL, 5);
|
m_FullDialogBowSizer->Add(m_ButtonsBoxSizer, 0, wxALIGN_TOP|wxALL, 5);
|
||||||
|
|
||||||
itemBoxSizer21->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
m_ButtonsBoxSizer->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||||
|
|
||||||
wxButton* itemButton23 = new wxButton( itemDialog1, ID_PRINT_SETUP, _("Print S&etup"), wxDefaultPosition, wxDefaultSize, 0 );
|
wxButton* itemButton26 = new wxButton( itemDialog1, ID_PRINT_SETUP, _("Print S&etup"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemButton23->SetForegroundColour(wxColour(121, 118, 0));
|
itemButton26->SetForegroundColour(wxColour(121, 118, 0));
|
||||||
itemBoxSizer21->Add(itemButton23, 0, wxGROW|wxALL, 5);
|
m_ButtonsBoxSizer->Add(itemButton26, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
wxButton* itemButton24 = new wxButton( itemDialog1, ID_PRINT_PREVIEW, _("Pre&view"), wxDefaultPosition, wxDefaultSize, 0 );
|
wxButton* itemButton27 = new wxButton( itemDialog1, ID_PRINT_PREVIEW, _("Pre&view"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemButton24->SetForegroundColour(wxColour(0, 0, 196));
|
itemButton27->SetForegroundColour(wxColour(0, 0, 196));
|
||||||
itemBoxSizer21->Add(itemButton24, 0, wxGROW|wxALL, 5);
|
m_ButtonsBoxSizer->Add(itemButton27, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
wxButton* itemButton25 = new wxButton( itemDialog1, ID_PRINT_EXECUTE, _("&Print"), wxDefaultPosition, wxDefaultSize, 0 );
|
wxButton* itemButton28 = new wxButton( itemDialog1, ID_PRINT_EXECUTE, _("&Print"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
itemButton25->SetForegroundColour(wxColour(0, 128, 64));
|
itemButton28->SetForegroundColour(wxColour(0, 128, 64));
|
||||||
itemBoxSizer21->Add(itemButton25, 0, wxGROW|wxALL, 5);
|
m_ButtonsBoxSizer->Add(itemButton28, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
m_CloseButton = new wxButton( itemDialog1, wxID_CANCEL, _("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_CloseButton = new wxButton( itemDialog1, wxID_CANCEL, _("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_CloseButton->SetDefault();
|
m_CloseButton->SetDefault();
|
||||||
itemBoxSizer21->Add(m_CloseButton, 0, wxGROW|wxALL, 5);
|
m_ButtonsBoxSizer->Add(m_CloseButton, 0, wxGROW|wxALL, 5);
|
||||||
|
|
||||||
// Set validators
|
// Set validators
|
||||||
m_ScaleOption->SetValidator( wxGenericValidator(& s_Scale_Select) );
|
m_ScaleOption->SetValidator( wxGenericValidator(& s_Scale_Select) );
|
||||||
|
@ -247,8 +251,9 @@ void WinEDA_PrintFrame::CreateControls()
|
||||||
m_PagesOptionEeschema->SetValidator( wxGenericValidator(& s_OptionPrintPage) );
|
m_PagesOptionEeschema->SetValidator( wxGenericValidator(& s_OptionPrintPage) );
|
||||||
////@end WinEDA_PrintFrame content construction
|
////@end WinEDA_PrintFrame content construction
|
||||||
|
|
||||||
m_CloseButton->SetFocus( ); // add this line to close dialog by the escape key
|
SetFocus( ); // add this line to close dialog by the escape key
|
||||||
m_DialogPenWidth = new WinEDA_ValueCtrl(this, _("Pen width mini"), s_PrintPenMinWidth,
|
|
||||||
|
m_DialogPenWidth = new WinEDA_ValueCtrl(this, _("Pen width mini"), s_PrintPenMinWidth,
|
||||||
g_UnitMetric, m_DialogPenWidthSizer, m_Parent->m_InternalUnits);
|
g_UnitMetric, m_DialogPenWidthSizer, m_Parent->m_InternalUnits);
|
||||||
|
|
||||||
SetOthersDatas();
|
SetOthersDatas();
|
||||||
|
|
|
@ -36,6 +36,7 @@ class wxBoxSizer;
|
||||||
|
|
||||||
////@begin control identifiers
|
////@begin control identifiers
|
||||||
#define ID_DIALOG 10000
|
#define ID_DIALOG 10000
|
||||||
|
#define ID_EXCLUDE_EDGES_PCB 10005
|
||||||
#define ID_SET_PRINT_SCALE 10004
|
#define ID_SET_PRINT_SCALE 10004
|
||||||
#define ID_TEXTCTRL 10009
|
#define ID_TEXTCTRL 10009
|
||||||
#define ID_TEXTCTRL1 10010
|
#define ID_TEXTCTRL1 10010
|
||||||
|
@ -47,7 +48,6 @@ class wxBoxSizer;
|
||||||
#define ID_PRINT_SETUP 10001
|
#define ID_PRINT_SETUP 10001
|
||||||
#define ID_PRINT_PREVIEW 10002
|
#define ID_PRINT_PREVIEW 10002
|
||||||
#define ID_PRINT_EXECUTE 10003
|
#define ID_PRINT_EXECUTE 10003
|
||||||
#define ID_EXCLUDE_EDGES_PCB 10012
|
|
||||||
#define SYMBOL_WINEDA_PRINTFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
#define SYMBOL_WINEDA_PRINTFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
||||||
#define SYMBOL_WINEDA_PRINTFRAME_TITLE _("Print")
|
#define SYMBOL_WINEDA_PRINTFRAME_TITLE _("Print")
|
||||||
#define SYMBOL_WINEDA_PRINTFRAME_IDNAME ID_DIALOG
|
#define SYMBOL_WINEDA_PRINTFRAME_IDNAME ID_DIALOG
|
||||||
|
@ -130,20 +130,26 @@ public:
|
||||||
|
|
||||||
|
|
||||||
////@begin WinEDA_PrintFrame member variables
|
////@begin WinEDA_PrintFrame member variables
|
||||||
|
wxBoxSizer* m_FullDialogBowSizer;
|
||||||
|
wxBoxSizer* m_LeftBoxSizer;
|
||||||
|
wxBoxSizer* m_LayersSelectionsBoxSizer;
|
||||||
wxBoxSizer* m_CopperLayersBoxSizer;
|
wxBoxSizer* m_CopperLayersBoxSizer;
|
||||||
wxBoxSizer* m_TechLayersBoxSizer;
|
wxBoxSizer* m_TechLayersBoxSizer;
|
||||||
wxCheckBox* m_Exclude_Edges_Pcb;
|
wxCheckBox* m_Exclude_Edges_Pcb;
|
||||||
|
wxBoxSizer* m_ScaleBoxSizer;
|
||||||
wxRadioBox* m_ScaleOption;
|
wxRadioBox* m_ScaleOption;
|
||||||
wxStaticText* m_FineAdjustXscaleTitle;
|
wxStaticText* m_FineAdjustXscaleTitle;
|
||||||
wxTextCtrl* m_FineAdjustXscaleOpt;
|
wxTextCtrl* m_FineAdjustXscaleOpt;
|
||||||
wxStaticText* m_FineAdjustYscaleTitle;
|
wxStaticText* m_FineAdjustYscaleTitle;
|
||||||
wxTextCtrl* m_FineAdjustYscaleOpt;
|
wxTextCtrl* m_FineAdjustYscaleOpt;
|
||||||
|
wxStaticBox* m_OptionsBoxSizer;
|
||||||
wxBoxSizer* m_DialogPenWidthSizer;
|
wxBoxSizer* m_DialogPenWidthSizer;
|
||||||
wxCheckBox* m_Print_Sheet_Ref;
|
wxCheckBox* m_Print_Sheet_Ref;
|
||||||
wxCheckBox* m_Print_Mirror;
|
wxCheckBox* m_Print_Mirror;
|
||||||
wxRadioBox* m_ColorOption;
|
wxRadioBox* m_ColorOption;
|
||||||
wxRadioBox* m_PagesOptionPcb;
|
wxRadioBox* m_PagesOptionPcb;
|
||||||
wxRadioBox* m_PagesOptionEeschema;
|
wxRadioBox* m_PagesOptionEeschema;
|
||||||
|
wxBoxSizer* m_ButtonsBoxSizer;
|
||||||
wxButton* m_CloseButton;
|
wxButton* m_CloseButton;
|
||||||
////@end WinEDA_PrintFrame member variables
|
////@end WinEDA_PrintFrame member variables
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@
|
||||||
<long name="locked">0</long>
|
<long name="locked">0</long>
|
||||||
<string name="template-name">""</string>
|
<string name="template-name">""</string>
|
||||||
<bool name="dirty">1</bool>
|
<bool name="dirty">1</bool>
|
||||||
|
<long name="makefile-last-written">0</long>
|
||||||
<string name="Compiler name">""</string>
|
<string name="Compiler name">""</string>
|
||||||
<string name="Build mode">"Debug"</string>
|
<string name="Build mode">"Debug"</string>
|
||||||
<string name="Unicode mode">"ANSI"</string>
|
<string name="Unicode mode">"ANSI"</string>
|
||||||
|
@ -177,6 +178,8 @@
|
||||||
<string name="wxWidgets build command">"%AUTO%"</string>
|
<string name="wxWidgets build command">"%AUTO%"</string>
|
||||||
<string name="wxWidgets clean command">"%AUTO%"</string>
|
<string name="wxWidgets clean command">"%AUTO%"</string>
|
||||||
<string name="PATH variable">"%AUTO%"</string>
|
<string name="PATH variable">"%AUTO%"</string>
|
||||||
|
<bool name="Suppress source rules">0</bool>
|
||||||
|
<bool name="Enable makefile generation">1</bool>
|
||||||
</document>
|
</document>
|
||||||
</document>
|
</document>
|
||||||
</data>
|
</data>
|
||||||
|
@ -289,7 +292,7 @@
|
||||||
<long name="locked">0</long>
|
<long name="locked">0</long>
|
||||||
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
||||||
<string name="proxy-Orientation">"Horizontal"</string>
|
<string name="proxy-Orientation">"Horizontal"</string>
|
||||||
<string name="proxy-Member variable name">""</string>
|
<string name="proxy-Member variable name">"m_FullDialogBowSizer"</string>
|
||||||
<bool name="proxy-wxSHAPED">0</bool>
|
<bool name="proxy-wxSHAPED">0</bool>
|
||||||
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
||||||
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
||||||
|
@ -303,22 +306,164 @@
|
||||||
<long name="owns-file">1</long>
|
<long name="owns-file">1</long>
|
||||||
<long name="title-mode">0</long>
|
<long name="title-mode">0</long>
|
||||||
<long name="locked">0</long>
|
<long name="locked">0</long>
|
||||||
<string name="created">"28/12/2006"</string>
|
<string name="created">"25/8/2008"</string>
|
||||||
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
||||||
<string name="proxy-Orientation">"Vertical"</string>
|
<string name="proxy-Orientation">"Vertical"</string>
|
||||||
<string name="proxy-Member variable name">"m_CopperLayersBoxSizer"</string>
|
<string name="proxy-Member variable name">"m_LeftBoxSizer"</string>
|
||||||
<string name="proxy-AlignH">"Centre"</string>
|
<string name="proxy-AlignH">"Centre"</string>
|
||||||
<string name="proxy-AlignV">"Top"</string>
|
<string name="proxy-AlignV">"Expand"</string>
|
||||||
<long name="proxy-Stretch factor">0</long>
|
<long name="proxy-Stretch factor">0</long>
|
||||||
<long name="proxy-Border">5</long>
|
<long name="proxy-Border">5</long>
|
||||||
<bool name="proxy-wxLEFT">1</bool>
|
<bool name="proxy-wxLEFT">0</bool>
|
||||||
<bool name="proxy-wxRIGHT">1</bool>
|
<bool name="proxy-wxRIGHT">0</bool>
|
||||||
<bool name="proxy-wxTOP">1</bool>
|
<bool name="proxy-wxTOP">1</bool>
|
||||||
<bool name="proxy-wxBOTTOM">1</bool>
|
<bool name="proxy-wxBOTTOM">1</bool>
|
||||||
<bool name="proxy-wxSHAPED">0</bool>
|
<bool name="proxy-wxSHAPED">0</bool>
|
||||||
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
||||||
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
||||||
<string name="proxy-Platform">"<Any platform>"</string>
|
<string name="proxy-Platform">"<Any platform>"</string>
|
||||||
|
<document>
|
||||||
|
<string name="title">"wxBoxSizer H"</string>
|
||||||
|
<string name="type">"dialog-control-document"</string>
|
||||||
|
<string name="filename">""</string>
|
||||||
|
<string name="icon-name">"sizer"</string>
|
||||||
|
<long name="is-transient">0</long>
|
||||||
|
<long name="owns-file">1</long>
|
||||||
|
<long name="title-mode">0</long>
|
||||||
|
<long name="locked">0</long>
|
||||||
|
<string name="created">"25/8/2008"</string>
|
||||||
|
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
||||||
|
<string name="proxy-Orientation">"Horizontal"</string>
|
||||||
|
<string name="proxy-Member variable name">"m_LayersSelectionsBoxSizer"</string>
|
||||||
|
<string name="proxy-AlignH">"Expand"</string>
|
||||||
|
<string name="proxy-AlignV">"Centre"</string>
|
||||||
|
<long name="proxy-Stretch factor">0</long>
|
||||||
|
<long name="proxy-Border">5</long>
|
||||||
|
<bool name="proxy-wxLEFT">1</bool>
|
||||||
|
<bool name="proxy-wxRIGHT">1</bool>
|
||||||
|
<bool name="proxy-wxTOP">1</bool>
|
||||||
|
<bool name="proxy-wxBOTTOM">1</bool>
|
||||||
|
<bool name="proxy-wxSHAPED">0</bool>
|
||||||
|
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
||||||
|
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
||||||
|
<string name="proxy-Platform">"<Any platform>"</string>
|
||||||
|
<document>
|
||||||
|
<string name="title">"wxBoxSizer V"</string>
|
||||||
|
<string name="type">"dialog-control-document"</string>
|
||||||
|
<string name="filename">""</string>
|
||||||
|
<string name="icon-name">"sizer"</string>
|
||||||
|
<long name="is-transient">0</long>
|
||||||
|
<long name="owns-file">1</long>
|
||||||
|
<long name="title-mode">0</long>
|
||||||
|
<long name="locked">0</long>
|
||||||
|
<string name="created">"25/8/2008"</string>
|
||||||
|
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
||||||
|
<string name="proxy-Orientation">"Vertical"</string>
|
||||||
|
<string name="proxy-Member variable name">"m_CopperLayersBoxSizer"</string>
|
||||||
|
<string name="proxy-AlignH">"Centre"</string>
|
||||||
|
<string name="proxy-AlignV">"Top"</string>
|
||||||
|
<long name="proxy-Stretch factor">0</long>
|
||||||
|
<long name="proxy-Border">5</long>
|
||||||
|
<bool name="proxy-wxLEFT">0</bool>
|
||||||
|
<bool name="proxy-wxRIGHT">1</bool>
|
||||||
|
<bool name="proxy-wxTOP">1</bool>
|
||||||
|
<bool name="proxy-wxBOTTOM">1</bool>
|
||||||
|
<bool name="proxy-wxSHAPED">0</bool>
|
||||||
|
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
||||||
|
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
||||||
|
<string name="proxy-Platform">"<Any platform>"</string>
|
||||||
|
</document>
|
||||||
|
<document>
|
||||||
|
<string name="title">"wxBoxSizer V"</string>
|
||||||
|
<string name="type">"dialog-control-document"</string>
|
||||||
|
<string name="filename">""</string>
|
||||||
|
<string name="icon-name">"sizer"</string>
|
||||||
|
<long name="is-transient">0</long>
|
||||||
|
<long name="owns-file">1</long>
|
||||||
|
<long name="title-mode">0</long>
|
||||||
|
<long name="locked">0</long>
|
||||||
|
<string name="created">"25/8/2008"</string>
|
||||||
|
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
||||||
|
<string name="proxy-Orientation">"Vertical"</string>
|
||||||
|
<string name="proxy-Member variable name">"m_TechLayersBoxSizer"</string>
|
||||||
|
<string name="proxy-AlignH">"Centre"</string>
|
||||||
|
<string name="proxy-AlignV">"Top"</string>
|
||||||
|
<long name="proxy-Stretch factor">0</long>
|
||||||
|
<long name="proxy-Border">5</long>
|
||||||
|
<bool name="proxy-wxLEFT">1</bool>
|
||||||
|
<bool name="proxy-wxRIGHT">1</bool>
|
||||||
|
<bool name="proxy-wxTOP">1</bool>
|
||||||
|
<bool name="proxy-wxBOTTOM">1</bool>
|
||||||
|
<bool name="proxy-wxSHAPED">0</bool>
|
||||||
|
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
||||||
|
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
||||||
|
<string name="proxy-Platform">"<Any platform>"</string>
|
||||||
|
</document>
|
||||||
|
</document>
|
||||||
|
<document>
|
||||||
|
<string name="title">"wxCheckBox: ID_EXCLUDE_EDGES_PCB"</string>
|
||||||
|
<string name="type">"dialog-control-document"</string>
|
||||||
|
<string name="filename">""</string>
|
||||||
|
<string name="icon-name">"checkbox"</string>
|
||||||
|
<long name="is-transient">0</long>
|
||||||
|
<long name="owns-file">1</long>
|
||||||
|
<long name="title-mode">0</long>
|
||||||
|
<long name="locked">0</long>
|
||||||
|
<string name="created">"25/8/2008"</string>
|
||||||
|
<string name="proxy-type">"wbCheckBoxProxy"</string>
|
||||||
|
<string name="proxy-Id name">"ID_EXCLUDE_EDGES_PCB"</string>
|
||||||
|
<long name="proxy-Id value">10005</long>
|
||||||
|
<string name="proxy-Name">""</string>
|
||||||
|
<string name="proxy-Class">"wxCheckBox"</string>
|
||||||
|
<string name="proxy-Base class">"wxCheckBox"</string>
|
||||||
|
<bool name="proxy-External implementation">1</bool>
|
||||||
|
<bool name="proxy-Separate files">0</bool>
|
||||||
|
<string name="proxy-Implementation filename">""</string>
|
||||||
|
<string name="proxy-Header filename">""</string>
|
||||||
|
<string name="proxy-Member variable name">"m_Exclude_Edges_Pcb"</string>
|
||||||
|
<string name="proxy-Label">"Exclude Edges_Pcb Layer"</string>
|
||||||
|
<bool name="proxy-Initial value">0</bool>
|
||||||
|
<string name="proxy-Help text">""</string>
|
||||||
|
<string name="proxy-Tooltip text">"Exclude contents of Edges_Pcb layer from all other layers"</string>
|
||||||
|
<string name="proxy-Data variable">""</string>
|
||||||
|
<string name="proxy-Data validator">""</string>
|
||||||
|
<string name="proxy-Data source">""</string>
|
||||||
|
<string name="proxy-Data class name">""</string>
|
||||||
|
<string name="proxy-Data class implementation filename">""</string>
|
||||||
|
<string name="proxy-Data class header filename">""</string>
|
||||||
|
<string name="proxy-Data class manager window">""</string>
|
||||||
|
<string name="proxy-Background colour">""</string>
|
||||||
|
<string name="proxy-Foreground colour">""</string>
|
||||||
|
<string name="proxy-Font">""</string>
|
||||||
|
<bool name="proxy-Hidden">1</bool>
|
||||||
|
<bool name="proxy-Enabled">1</bool>
|
||||||
|
<string name="proxy-Platform">"<Any platform>"</string>
|
||||||
|
<bool name="proxy-wxALIGN_RIGHT">0</bool>
|
||||||
|
<bool name="proxy-wxCHK_2STATE">0</bool>
|
||||||
|
<bool name="proxy-wxCHK_3STATE">0</bool>
|
||||||
|
<bool name="proxy-wxCHK_ALLOW_3RD_STATE_FOR_USER">0</bool>
|
||||||
|
<bool name="proxy-wxWANTS_CHARS">0</bool>
|
||||||
|
<bool name="proxy-wxNO_FULL_REPAINT_ON_RESIZE">0</bool>
|
||||||
|
<bool name="proxy-wxFULL_REPAINT_ON_RESIZE">0</bool>
|
||||||
|
<string name="proxy-Custom styles">""</string>
|
||||||
|
<long name="proxy-X">-1</long>
|
||||||
|
<long name="proxy-Y">-1</long>
|
||||||
|
<long name="proxy-Width">-1</long>
|
||||||
|
<long name="proxy-Height">-1</long>
|
||||||
|
<string name="proxy-AlignH">"Expand"</string>
|
||||||
|
<string name="proxy-AlignV">"Centre"</string>
|
||||||
|
<long name="proxy-Stretch factor">0</long>
|
||||||
|
<long name="proxy-Border">5</long>
|
||||||
|
<bool name="proxy-wxLEFT">1</bool>
|
||||||
|
<bool name="proxy-wxRIGHT">1</bool>
|
||||||
|
<bool name="proxy-wxTOP">1</bool>
|
||||||
|
<bool name="proxy-wxBOTTOM">1</bool>
|
||||||
|
<bool name="proxy-wxSHAPED">0</bool>
|
||||||
|
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
||||||
|
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
||||||
|
<string name="proxy-Custom arguments">""</string>
|
||||||
|
<string name="proxy-Custom ctor arguments">""</string>
|
||||||
|
</document>
|
||||||
</document>
|
</document>
|
||||||
<document>
|
<document>
|
||||||
<string name="title">"wxBoxSizer V"</string>
|
<string name="title">"wxBoxSizer V"</string>
|
||||||
|
@ -332,33 +477,7 @@
|
||||||
<string name="created">"28/12/2006"</string>
|
<string name="created">"28/12/2006"</string>
|
||||||
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
||||||
<string name="proxy-Orientation">"Vertical"</string>
|
<string name="proxy-Orientation">"Vertical"</string>
|
||||||
<string name="proxy-Member variable name">"m_TechLayersBoxSizer"</string>
|
<string name="proxy-Member variable name">"m_ScaleBoxSizer"</string>
|
||||||
<string name="proxy-AlignH">"Centre"</string>
|
|
||||||
<string name="proxy-AlignV">"Top"</string>
|
|
||||||
<long name="proxy-Stretch factor">0</long>
|
|
||||||
<long name="proxy-Border">5</long>
|
|
||||||
<bool name="proxy-wxLEFT">1</bool>
|
|
||||||
<bool name="proxy-wxRIGHT">1</bool>
|
|
||||||
<bool name="proxy-wxTOP">1</bool>
|
|
||||||
<bool name="proxy-wxBOTTOM">1</bool>
|
|
||||||
<bool name="proxy-wxSHAPED">0</bool>
|
|
||||||
<bool name="proxy-wxADJUST_MINSIZE">0</bool>
|
|
||||||
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
|
||||||
<string name="proxy-Platform">"<Any platform>"</string>
|
|
||||||
</document>
|
|
||||||
<document>
|
|
||||||
<string name="title">"wxBoxSizer V"</string>
|
|
||||||
<string name="type">"dialog-control-document"</string>
|
|
||||||
<string name="filename">""</string>
|
|
||||||
<string name="icon-name">"sizer"</string>
|
|
||||||
<long name="is-transient">0</long>
|
|
||||||
<long name="owns-file">1</long>
|
|
||||||
<long name="title-mode">0</long>
|
|
||||||
<long name="locked">0</long>
|
|
||||||
<string name="created">"28/12/2006"</string>
|
|
||||||
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
|
||||||
<string name="proxy-Orientation">"Vertical"</string>
|
|
||||||
<string name="proxy-Member variable name">""</string>
|
|
||||||
<string name="proxy-AlignH">"Centre"</string>
|
<string name="proxy-AlignH">"Centre"</string>
|
||||||
<string name="proxy-AlignV">"Expand"</string>
|
<string name="proxy-AlignV">"Expand"</string>
|
||||||
<long name="proxy-Stretch factor">0</long>
|
<long name="proxy-Stretch factor">0</long>
|
||||||
|
@ -739,7 +858,6 @@
|
||||||
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
<bool name="proxy-wxFIXED_MINSIZE">0</bool>
|
||||||
<string name="proxy-Custom arguments">""</string>
|
<string name="proxy-Custom arguments">""</string>
|
||||||
<string name="proxy-Custom ctor arguments">""</string>
|
<string name="proxy-Custom ctor arguments">""</string>
|
||||||
<bool name="proxy-wxTE_LINEWRAP">0</bool>
|
|
||||||
</document>
|
</document>
|
||||||
</document>
|
</document>
|
||||||
<document>
|
<document>
|
||||||
|
@ -807,7 +925,7 @@
|
||||||
<string name="proxy-Id name">"wxID_ANY"</string>
|
<string name="proxy-Id name">"wxID_ANY"</string>
|
||||||
<long name="proxy-Id value">-1</long>
|
<long name="proxy-Id value">-1</long>
|
||||||
<string name="proxy-Label">"Options:"</string>
|
<string name="proxy-Label">"Options:"</string>
|
||||||
<string name="proxy-Member variable name">""</string>
|
<string name="proxy-Member variable name">"m_OptionsBoxSizer"</string>
|
||||||
<string name="proxy-Sizer member variable name">""</string>
|
<string name="proxy-Sizer member variable name">""</string>
|
||||||
<string name="proxy-Foreground colour">""</string>
|
<string name="proxy-Foreground colour">""</string>
|
||||||
<string name="proxy-Font">""</string>
|
<string name="proxy-Font">""</string>
|
||||||
|
@ -1214,7 +1332,7 @@
|
||||||
<string name="created">"28/12/2006"</string>
|
<string name="created">"28/12/2006"</string>
|
||||||
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
<string name="proxy-type">"wbBoxSizerProxy"</string>
|
||||||
<string name="proxy-Orientation">"Vertical"</string>
|
<string name="proxy-Orientation">"Vertical"</string>
|
||||||
<string name="proxy-Member variable name">""</string>
|
<string name="proxy-Member variable name">"m_ButtonsBoxSizer"</string>
|
||||||
<string name="proxy-AlignH">"Centre"</string>
|
<string name="proxy-AlignH">"Centre"</string>
|
||||||
<string name="proxy-AlignV">"Top"</string>
|
<string name="proxy-AlignV">"Top"</string>
|
||||||
<long name="proxy-Stretch factor">0</long>
|
<long name="proxy-Stretch factor">0</long>
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
#define OPTKEY_LAYERBASE wxT( "PrintLayer_%d" )
|
#define OPTKEY_LAYERBASE wxT( "PrintLayer_%d" )
|
||||||
#define OPTKEY_PRINT_X_FINESCALE_ADJ wxT( "PrintXFineScaleAdj" )
|
#define OPTKEY_PRINT_X_FINESCALE_ADJ wxT( "PrintXFineScaleAdj" )
|
||||||
#define OPTKEY_PRINT_Y_FINESCALE_ADJ wxT( "PrintYFineScaleAdj" )
|
#define OPTKEY_PRINT_Y_FINESCALE_ADJ wxT( "PrintYFineScaleAdj" )
|
||||||
#define OPTKEY_PRINT_SCALE wxT( "PrintScale" )
|
#define OPTKEY_PRINT_SCALE wxT( "PrintScale" )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEFAULT_ORIENTATION_PAPER wxLANDSCAPE // other option is wxPORTRAIT
|
#define DEFAULT_ORIENTATION_PAPER wxLANDSCAPE // other option is wxPORTRAIT
|
||||||
|
@ -92,7 +92,6 @@ static bool s_PrintMirror;
|
||||||
static bool s_Print_Sheet_Ref = TRUE;
|
static bool s_Print_Sheet_Ref = TRUE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
/* frame de Preparation de l'impression (options, selections... */
|
/* frame de Preparation de l'impression (options, selections... */
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
|
@ -201,21 +200,27 @@ void WinEDA_PrintFrame::SetOthersDatas()
|
||||||
{
|
{
|
||||||
m_BoxSelecLayer[ii] = new wxCheckBox( this, -1,
|
m_BoxSelecLayer[ii] = new wxCheckBox( this, -1,
|
||||||
#if defined (PCBNEW)
|
#if defined (PCBNEW)
|
||||||
( (WinEDA_PcbFrame*) m_Parent )->m_Pcb->GetLayerName( ii ) );
|
( (WinEDA_PcbFrame*) m_Parent )->m_Pcb->GetLayerName(
|
||||||
|
ii ) );
|
||||||
#else
|
#else
|
||||||
ReturnLayerName( ii ) );
|
ReturnLayerName( ii ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( mask & s_SelectedLayers )
|
if( mask & s_SelectedLayers )
|
||||||
m_BoxSelecLayer[ii]->SetValue( TRUE );
|
m_BoxSelecLayer[ii]->SetValue( TRUE );
|
||||||
if( ii < 16 )
|
if( ii < 16 )
|
||||||
m_CopperLayersBoxSizer->Add( m_BoxSelecLayer[ii],
|
m_CopperLayersBoxSizer->Add( m_BoxSelecLayer[ii],
|
||||||
wxGROW | wxLEFT | wxRIGHT | wxTOP | wxADJUST_MINSIZE );
|
wxGROW | wxLEFT | wxRIGHT | wxTOP | wxADJUST_MINSIZE );
|
||||||
else
|
else
|
||||||
m_TechLayersBoxSizer->Add( m_BoxSelecLayer[ii],
|
m_TechLayersBoxSizer->Add( m_BoxSelecLayer[ii],
|
||||||
wxGROW | wxLEFT | wxRIGHT | wxTOP | wxADJUST_MINSIZE );
|
wxGROW | wxLEFT | wxRIGHT | wxTOP | wxADJUST_MINSIZE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Option for excluding contents of "Edges Pcb" layer
|
||||||
|
#ifndef GERBVIEW
|
||||||
|
m_Exclude_Edges_Pcb->Show( true );
|
||||||
|
#endif
|
||||||
|
|
||||||
// Read the scale adjust option
|
// Read the scale adjust option
|
||||||
if( config )
|
if( config )
|
||||||
{
|
{
|
||||||
|
@ -343,7 +348,7 @@ wxString WinEDA_PrintFrame::BuildPrintTitle()
|
||||||
wxString name, ext;
|
wxString name, ext;
|
||||||
|
|
||||||
wxFileName::SplitPath( m_Parent->GetBaseScreen()->m_FileName,
|
wxFileName::SplitPath( m_Parent->GetBaseScreen()->m_FileName,
|
||||||
(wxString*) NULL, &name, &ext );
|
(wxString*) NULL, &name, &ext );
|
||||||
name += wxT( "-" ) + ext;
|
name += wxT( "-" ) + ext;
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -434,7 +439,7 @@ void WinEDA_PrintFrame::OnPrintPreview( wxCommandEvent& event )
|
||||||
wxString title = BuildPrintTitle();
|
wxString title = BuildPrintTitle();
|
||||||
wxPrintPreview* preview =
|
wxPrintPreview* preview =
|
||||||
new wxPrintPreview( new EDA_Printout( this, m_Parent, title, print_ref ),
|
new wxPrintPreview( new EDA_Printout( this, m_Parent, title, print_ref ),
|
||||||
new EDA_Printout( this, m_Parent, title, print_ref ), g_PrintData );
|
new EDA_Printout( this, m_Parent, title, print_ref ), g_PrintData );
|
||||||
|
|
||||||
if( preview == NULL )
|
if( preview == NULL )
|
||||||
{
|
{
|
||||||
|
@ -455,7 +460,7 @@ void WinEDA_PrintFrame::OnPrintPreview( wxCommandEvent& event )
|
||||||
WSize.y += 6;
|
WSize.y += 6;
|
||||||
|
|
||||||
wxPreviewFrame* frame = new wxPreviewFrame( preview, this,
|
wxPreviewFrame* frame = new wxPreviewFrame( preview, this,
|
||||||
title, WPos, WSize );
|
title, WPos, WSize );
|
||||||
|
|
||||||
frame->Initialize();
|
frame->Initialize();
|
||||||
frame->Show( TRUE );
|
frame->Show( TRUE );
|
||||||
|
@ -715,7 +720,7 @@ void EDA_Printout::DrawPage()
|
||||||
#ifdef PCBNEW
|
#ifdef PCBNEW
|
||||||
double accurate_Xscale, accurate_Yscale;
|
double accurate_Xscale, accurate_Yscale;
|
||||||
dc->SetUserScale( DrawZoom / scale * m_PrintFrame->m_XScaleAdjust,
|
dc->SetUserScale( DrawZoom / scale * m_PrintFrame->m_XScaleAdjust,
|
||||||
DrawZoom / scale * m_PrintFrame->m_YScaleAdjust );
|
DrawZoom / scale * m_PrintFrame->m_YScaleAdjust );
|
||||||
|
|
||||||
// Compute Accurate scale 1
|
// Compute Accurate scale 1
|
||||||
{
|
{
|
||||||
|
@ -820,7 +825,11 @@ void EDA_Printout::DrawPage()
|
||||||
panel->m_ClipBox.SetOrigin( wxPoint( -0x7FFFFF, -0x7FFFFF ) );
|
panel->m_ClipBox.SetOrigin( wxPoint( -0x7FFFFF, -0x7FFFFF ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !m_PrintFrame->m_Exclude_Edges_Pcb->GetValue() ) s_PrintMaskLayer |= EDGE_LAYER;
|
#ifndef GERBVIEW
|
||||||
|
if( !m_PrintFrame->m_Exclude_Edges_Pcb->GetValue() )
|
||||||
|
s_PrintMaskLayer |= EDGE_LAYER;
|
||||||
|
#endif
|
||||||
|
|
||||||
panel->PrintPage( dc, 0, s_PrintMaskLayer );
|
panel->PrintPage( dc, 0, s_PrintMaskLayer );
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue