KiCad PCB EDA Suite
PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE Class Reference

Class PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE. More...

#include <panel_gerbview_display_options_base.h>

Inheritance diagram for PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE:
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)
 
 ~PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE ()
 

Protected Attributes

wxBoxSizer * m_UpperSizer
 
wxBoxSizer * m_galOptionsSizer
 
wxCheckBox * m_OptDisplayDCodes
 
wxCheckBox * m_OptDisplayFlashedItems
 
wxCheckBox * m_OptDisplayLines
 
wxCheckBox * m_OptDisplayPolygons
 

Detailed Description

Constructor & Destructor Documentation

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 
)

Definition at line 12 of file panel_gerbview_display_options_base.cpp.

References m_galOptionsSizer, m_OptDisplayDCodes, m_OptDisplayFlashedItems, m_OptDisplayLines, m_OptDisplayPolygons, and m_UpperSizer.

12  : wxPanel( parent, id, pos, size, style )
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, 1, wxEXPAND, 5 );
23 
24  wxBoxSizer* bRightSizer;
25  bRightSizer = new wxBoxSizer( wxVERTICAL );
26 
27  wxStaticBoxSizer* sbSizer1;
28  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Annotations") ), wxVERTICAL );
29 
30  m_OptDisplayDCodes = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Show D codes"), wxDefaultPosition, wxDefaultSize, 0 );
31  m_OptDisplayDCodes->SetValue(true);
32  sbSizer1->Add( m_OptDisplayDCodes, 0, wxBOTTOM|wxLEFT, 5 );
33 
34 
35  bRightSizer->Add( sbSizer1, 0, wxEXPAND|wxALL, 5 );
36 
37  wxStaticBoxSizer* sbSizer2;
38  sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Drawing Mode") ), wxVERTICAL );
39 
40  m_OptDisplayFlashedItems = new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY, _("Sketch flashed items"), wxDefaultPosition, wxDefaultSize, 0 );
41  sbSizer2->Add( m_OptDisplayFlashedItems, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
42 
43  m_OptDisplayLines = new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY, _("Sketch lines"), wxDefaultPosition, wxDefaultSize, 0 );
44  sbSizer2->Add( m_OptDisplayLines, 0, wxALL, 5 );
45 
46  m_OptDisplayPolygons = new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY, _("Sketch polygons"), wxDefaultPosition, wxDefaultSize, 0 );
47  sbSizer2->Add( m_OptDisplayPolygons, 0, wxALL, 5 );
48 
49 
50  bRightSizer->Add( sbSizer2, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
51 
52 
53  m_UpperSizer->Add( bRightSizer, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
54 
55 
56  bDialogSizer->Add( m_UpperSizer, 1, wxEXPAND, 5 );
57 
58 
59  this->SetSizer( bDialogSizer );
60  this->Layout();
61  bDialogSizer->Fit( this );
62 }
PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::~PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE ( )

Definition at line 64 of file panel_gerbview_display_options_base.cpp.

65 {
66 }

Member Data Documentation

wxBoxSizer* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_galOptionsSizer
protected
wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayDCodes
protected
wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayFlashedItems
protected
wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayLines
protected
wxCheckBox* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_OptDisplayPolygons
protected
wxBoxSizer* PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::m_UpperSizer
protected

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