KiCad PCB EDA Suite
PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE Class Referenceabstract

Class PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE. More...

#include <panel_gerbview_display_options_base.h>

Inheritance diagram for PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE:
RESETTABLE_PANEL PANEL_GERBVIEW_DISPLAY_OPTIONS

Public Member Functions

 PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Attributes

wxBoxSizer * m_UpperSizer
 
wxBoxSizer * m_galOptionsSizer
 
wxStaticText * m_staticText1
 
wxStaticLine * m_staticline1
 
wxCheckBox * m_OptDisplayDCodes
 
wxCheckBox * m_ShowPageLimitsOpt
 
wxStaticText * m_staticText2
 
wxStaticLine * m_staticline2
 
wxCheckBox * m_OptDisplayFlashedItems
 
wxCheckBox * m_OptDisplayLines
 
wxCheckBox * m_OptDisplayPolygons
 
wxStaticText * m_staticText3
 
wxStaticLine * m_staticline3
 
wxRadioBox * m_PageSize
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE()

PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,-1 ),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

Definition at line 12 of file panel_gerbview_display_options_base.cpp.

12 : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bDialogSizer;
15 bDialogSizer = new wxBoxSizer( wxVERTICAL );
16
17 m_UpperSizer = new wxBoxSizer( wxHORIZONTAL );
18
19 m_galOptionsSizer = new wxBoxSizer( wxVERTICAL );
20
21
22 m_UpperSizer->Add( m_galOptionsSizer, 0, wxEXPAND|wxRIGHT, 20 );
23
24 wxBoxSizer* bRightSizer;
25 bRightSizer = new wxBoxSizer( wxVERTICAL );
26
27 m_staticText1 = new wxStaticText( this, wxID_ANY, _("Annotations"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticText1->Wrap( -1 );
29 bRightSizer->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
30
31 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
32 bRightSizer->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
33
34 wxBoxSizer* bAnnotationsSizer;
35 bAnnotationsSizer = new wxBoxSizer( wxVERTICAL );
36
37 m_OptDisplayDCodes = new wxCheckBox( this, wxID_ANY, _("Show D codes"), wxDefaultPosition, wxDefaultSize, 0 );
38 m_OptDisplayDCodes->SetValue(true);
39 bAnnotationsSizer->Add( m_OptDisplayDCodes, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
40
41 m_ShowPageLimitsOpt = new wxCheckBox( this, wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
42 bAnnotationsSizer->Add( m_ShowPageLimitsOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
43
44
45 bRightSizer->Add( bAnnotationsSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
46
47
48 bRightSizer->Add( 0, 15, 0, wxEXPAND, 5 );
49
50 m_staticText2 = new wxStaticText( this, wxID_ANY, _("Drawing Mode"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_staticText2->Wrap( -1 );
52 bRightSizer->Add( m_staticText2, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 13 );
53
54 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
55 bRightSizer->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
56
57 wxBoxSizer* bDrawingModeSizer;
58 bDrawingModeSizer = new wxBoxSizer( wxVERTICAL );
59
60 m_OptDisplayFlashedItems = new wxCheckBox( this, wxID_ANY, _("Sketch flashed items"), wxDefaultPosition, wxDefaultSize, 0 );
61 bDrawingModeSizer->Add( m_OptDisplayFlashedItems, 0, wxALL, 5 );
62
63 m_OptDisplayLines = new wxCheckBox( this, wxID_ANY, _("Sketch lines"), wxDefaultPosition, wxDefaultSize, 0 );
64 bDrawingModeSizer->Add( m_OptDisplayLines, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
65
66 m_OptDisplayPolygons = new wxCheckBox( this, wxID_ANY, _("Sketch polygons"), wxDefaultPosition, wxDefaultSize, 0 );
67 bDrawingModeSizer->Add( m_OptDisplayPolygons, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
68
69
70 bRightSizer->Add( bDrawingModeSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
71
72
73 bRightSizer->Add( 0, 15, 0, wxEXPAND, 5 );
74
75 m_staticText3 = new wxStaticText( this, wxID_ANY, _("Page Size"), wxDefaultPosition, wxDefaultSize, 0 );
76 m_staticText3->Wrap( -1 );
77 bRightSizer->Add( m_staticText3, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 13 );
78
79 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
80 bRightSizer->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM, 5 );
81
82 wxBoxSizer* bPageSizeSizer;
83 bPageSizeSizer = new wxBoxSizer( wxVERTICAL );
84
85 wxBoxSizer* bMargins;
86 bMargins = new wxBoxSizer( wxVERTICAL );
87
88 wxString m_PageSizeChoices[] = { _("Full size"), _("Size A4"), _("Size A3"), _("Size A2"), _("Size A"), _("Size B"), _("Size C") };
89 int m_PageSizeNChoices = sizeof( m_PageSizeChoices ) / sizeof( wxString );
90 m_PageSize = new wxRadioBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_PageSizeNChoices, m_PageSizeChoices, 1, wxRA_SPECIFY_COLS );
91 m_PageSize->SetSelection( 0 );
92 bMargins->Add( m_PageSize, 0, wxEXPAND|wxALL, 5 );
93
94
95 bPageSizeSizer->Add( bMargins, 0, wxEXPAND|wxRIGHT, 10 );
96
97
98 bRightSizer->Add( bPageSizeSizer, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
99
100
101 m_UpperSizer->Add( bRightSizer, 0, wxEXPAND|wxLEFT, 5 );
102
103
104 bDialogSizer->Add( m_UpperSizer, 1, wxEXPAND, 5 );
105
106
107 this->SetSizer( bDialogSizer );
108 this->Layout();
109 bDialogSizer->Fit( this );
110}
const char * name
Definition: DXF_plotter.cpp:56
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
#define _(s)

References _, m_galOptionsSizer, m_OptDisplayDCodes, m_OptDisplayFlashedItems, m_OptDisplayLines, m_OptDisplayPolygons, m_PageSize, m_ShowPageLimitsOpt, m_staticline1, m_staticline2, m_staticline3, m_staticText1, m_staticText2, m_staticText3, and m_UpperSizer.

◆ ~PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE()

PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::~PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE ( )

Definition at line 112 of file panel_gerbview_display_options_base.cpp.

113{
114}

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

73 {
74 if( aPt == wxPoint( -INT_MAX, INT_MAX ) )
75 return GetResetTooltip();
76 else
77 return wxPanel::GetHelpTextAtPoint( aPt, aOrigin );
78 }
virtual wxString GetResetTooltip() const
Get the tooltip the reset button should display when showing this panel.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

65 {
66 return _( "Reset all settings on this page to their default" );
67 }

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ ResetPanel()

Member Data Documentation

◆ m_galOptionsSizer

wxBoxSizer* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_galOptionsSizer
protected

◆ m_OptDisplayDCodes

wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayDCodes
protected

◆ m_OptDisplayFlashedItems

wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayFlashedItems
protected

◆ m_OptDisplayLines

wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayLines
protected

◆ m_OptDisplayPolygons

wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayPolygons
protected

◆ m_PageSize

wxRadioBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_PageSize
protected

◆ m_ShowPageLimitsOpt

wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_ShowPageLimitsOpt
protected

◆ m_staticline1

wxStaticLine* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_staticline1
protected

◆ m_staticline2

wxStaticLine* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_staticline2
protected

◆ m_staticline3

wxStaticLine* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_staticline3
protected

◆ m_staticText1

wxStaticText* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_staticText1
protected

◆ m_staticText2

wxStaticText* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_staticText2
protected

◆ m_staticText3

wxStaticText* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_staticText3
protected

◆ m_UpperSizer

wxBoxSizer* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_UpperSizer
protected

The documentation for this class was generated from the following files: