12PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
14 wxBoxSizer* bDialogSizer;
15 bDialogSizer =
new wxBoxSizer( wxVERTICAL );
24 wxBoxSizer* bRightSizer;
25 bRightSizer =
new wxBoxSizer( wxVERTICAL );
27 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Annotations"), wxDefaultPosition, wxDefaultSize, 0 );
29 bRightSizer->Add(
m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
31 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
34 wxBoxSizer* bAnnotationsSizer;
35 bAnnotationsSizer =
new wxBoxSizer( wxVERTICAL );
37 m_OptDisplayDCodes =
new wxCheckBox(
this, wxID_ANY,
_(
"Show D codes"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_ShowPageLimitsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
45 bRightSizer->Add( bAnnotationsSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
48 bRightSizer->Add( 0, 15, 0, wxEXPAND, 5 );
50 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Drawing Mode"), wxDefaultPosition, wxDefaultSize, 0 );
52 bRightSizer->Add(
m_staticText2, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 13 );
54 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
57 wxBoxSizer* bDrawingModeSizer;
58 bDrawingModeSizer =
new wxBoxSizer( wxVERTICAL );
60 m_OptDisplayFlashedItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Sketch flashed items"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_OptDisplayFlashedItems->SetToolTip(
_(
"Display flashed items (items drawn using standard or macro apertures) in outlines mode") );
65 m_OptDisplayLines =
new wxCheckBox(
this, wxID_ANY,
_(
"Sketch lines"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_OptDisplayPolygons =
new wxCheckBox(
this, wxID_ANY,
_(
"Sketch polygons"), wxDefaultPosition, wxDefaultSize, 0 );
74 wxStaticBoxSizer* sbSizerOpacity;
75 sbSizerOpacity =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Forced Opacity Display Mode") ), wxHORIZONTAL );
77 m_staticTextOpacity =
new wxStaticText( sbSizerOpacity->GetStaticBox(), wxID_ANY,
_(
"Forced opacity:"), wxDefaultPosition, wxDefaultSize, 0 );
83 m_spOpacityCtrl =
new wxSpinCtrlDouble( sbSizerOpacity->GetStaticBox(), wxID_ANY, wxT(
"0.6"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0.2, 1, 0.600000, 0.1 );
88 bDrawingModeSizer->Add( sbSizerOpacity, 1, wxEXPAND|wxTOP, 5 );
91 bRightSizer->Add( bDrawingModeSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
94 bRightSizer->Add( 0, 15, 0, wxEXPAND, 5 );
96 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"Page Size"), wxDefaultPosition, wxDefaultSize, 0 );
98 bRightSizer->Add(
m_staticText3, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 13 );
100 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
103 wxBoxSizer* bPageSizeSizer;
104 bPageSizeSizer =
new wxBoxSizer( wxVERTICAL );
106 wxBoxSizer* bMargins;
107 bMargins =
new wxBoxSizer( wxVERTICAL );
109 wxString m_PageSizeChoices[] = {
_(
"Full size"),
_(
"Size A4"),
_(
"Size A3"),
_(
"Size A2"),
_(
"Size A"),
_(
"Size B"),
_(
"Size C") };
110 int m_PageSizeNChoices =
sizeof( m_PageSizeChoices ) /
sizeof( wxString );
111 m_PageSize =
new wxRadioBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_PageSizeNChoices, m_PageSizeChoices, 1, wxRA_SPECIFY_COLS );
113 bMargins->Add(
m_PageSize, 0, wxEXPAND|wxALL, 5 );
116 bPageSizeSizer->Add( bMargins, 0, wxEXPAND|wxRIGHT, 10 );
119 bRightSizer->Add( bPageSizeSizer, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
122 m_UpperSizer->Add( bRightSizer, 0, wxEXPAND|wxLEFT, 5 );
128 this->SetSizer( bDialogSizer );
wxSpinCtrlDouble * m_spOpacityCtrl
PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(257, 534), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxStaticLine * m_staticline2
wxCheckBox * m_OptDisplayPolygons
wxStaticText * m_staticTextOpacity
wxCheckBox * m_OptDisplayDCodes
wxCheckBox * m_OptDisplayLines
wxBoxSizer * m_galOptionsSizer
wxCheckBox * m_OptDisplayFlashedItems
wxStaticText * m_staticText3
wxStaticText * m_staticText2
wxCheckBox * m_ShowPageLimitsOpt
wxStaticText * m_staticText1
~PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE()
wxBoxSizer * m_UpperSizer
wxStaticLine * m_staticline1
wxStaticLine * m_staticline3
A wxPanel that is designed to be reset in a standard manner.