KiCad PCB EDA Suite
PANEL_3D_COLORS_BASE Class Referenceabstract

Class PANEL_3D_COLORS_BASE. More...

#include <panel_3D_colors_base.h>

Inheritance diagram for PANEL_3D_COLORS_BASE:
RESETTABLE_PANEL PANEL_3D_COLORS

Public Member Functions

 PANEL_3D_COLORS_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_3D_COLORS_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

wxStaticText * m_environmentLable
 
wxStaticLine * m_staticline1
 
wxStaticText * backgroundTopLabel
 
COLOR_SWATCHm_backgroundTop
 
wxStaticText * backgroundBotLabel
 
COLOR_SWATCHm_backgroundBottom
 
wxStaticText * solderPasteLabel
 
COLOR_SWATCHm_solderPaste
 
wxStaticText * m_boardColorsLabel
 
wxStaticLine * m_staticline2
 
wxRadioButton * m_boardStackupRB
 
wxRadioButton * m_specificColorsRB
 
wxStaticText * silkscreenTopLabel
 
COLOR_SWATCHm_silkscreenTop
 
wxStaticText * silkscreenBottomLabel
 
COLOR_SWATCHm_silkscreenBottom
 
wxStaticText * solderMaskTopLabel
 
COLOR_SWATCHm_solderMaskTop
 
wxStaticText * solderMaskBottomLabel
 
COLOR_SWATCHm_solderMaskBottom
 
wxStaticText * surfaceFinishLabel
 
COLOR_SWATCHm_surfaceFinish
 
wxStaticText * boardBodyLabel
 
COLOR_SWATCHm_boardBody
 

Detailed Description

Class PANEL_3D_COLORS_BASE.

Definition at line 33 of file panel_3D_colors_base.h.

Constructor & Destructor Documentation

◆ PANEL_3D_COLORS_BASE()

PANEL_3D_COLORS_BASE::PANEL_3D_COLORS_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 14 of file panel_3D_colors_base.cpp.

14 : RESETTABLE_PANEL( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 m_environmentLable = new wxStaticText( this, wxID_ANY, _("Environment Colors"), wxDefaultPosition, wxDefaultSize, 0 );
20 m_environmentLable->Wrap( -1 );
21 bSizerMain->Add( m_environmentLable, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
22
23 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
24 bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
25
26 wxFlexGridSizer* fgSizer1;
27 fgSizer1 = new wxFlexGridSizer( 0, 2, 5, 0 );
28 fgSizer1->SetFlexibleDirection( wxBOTH );
29 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30
31 backgroundTopLabel = new wxStaticText( this, wxID_ANY, _("Background gradient start:"), wxDefaultPosition, wxDefaultSize, 0 );
32 backgroundTopLabel->Wrap( -1 );
33 fgSizer1->Add( backgroundTopLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
34
35 m_backgroundTop = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
36 fgSizer1->Add( m_backgroundTop, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
37
38 backgroundBotLabel = new wxStaticText( this, wxID_ANY, _("Background gradient end:"), wxDefaultPosition, wxDefaultSize, 0 );
39 backgroundBotLabel->Wrap( -1 );
40 fgSizer1->Add( backgroundBotLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
41
42 m_backgroundBottom = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
43 fgSizer1->Add( m_backgroundBottom, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
44
45
46 fgSizer1->Add( 0, 6, 1, wxEXPAND, 5 );
47
48
49 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
50
51 solderPasteLabel = new wxStaticText( this, wxID_ANY, _("Solder paste:"), wxDefaultPosition, wxDefaultSize, 0 );
52 solderPasteLabel->Wrap( -1 );
53 fgSizer1->Add( solderPasteLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
54
55 m_solderPaste = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
56 fgSizer1->Add( m_solderPaste, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
57
58
59 bSizerMain->Add( fgSizer1, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
60
61
62 bSizerMain->Add( 0, 15, 0, wxEXPAND, 5 );
63
64 m_boardColorsLabel = new wxStaticText( this, wxID_ANY, _("Board Colors"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_boardColorsLabel->Wrap( -1 );
66 bSizerMain->Add( m_boardColorsLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
67
68 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
69 bSizerMain->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
70
71 m_boardStackupRB = new wxRadioButton( this, wxID_ANY, _("Use board stackup colors"), wxDefaultPosition, wxDefaultSize, 0 );
72 bSizerMain->Add( m_boardStackupRB, 0, wxTOP|wxBOTTOM|wxLEFT, 8 );
73
74 m_specificColorsRB = new wxRadioButton( this, wxID_ANY, _("Use colors:"), wxDefaultPosition, wxDefaultSize, 0 );
75 bSizerMain->Add( m_specificColorsRB, 0, wxTOP|wxBOTTOM|wxLEFT, 8 );
76
77 wxFlexGridSizer* fgSizer2;
78 fgSizer2 = new wxFlexGridSizer( 0, 2, 5, 0 );
79 fgSizer2->SetFlexibleDirection( wxBOTH );
80 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
81
82 silkscreenTopLabel = new wxStaticText( this, wxID_ANY, _("Silkscreen top:"), wxDefaultPosition, wxDefaultSize, 0 );
83 silkscreenTopLabel->Wrap( -1 );
84 fgSizer2->Add( silkscreenTopLabel, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 20 );
85
86 m_silkscreenTop = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
87 fgSizer2->Add( m_silkscreenTop, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
88
89 silkscreenBottomLabel = new wxStaticText( this, wxID_ANY, _("Silkscreen bottom:"), wxDefaultPosition, wxDefaultSize, 0 );
90 silkscreenBottomLabel->Wrap( -1 );
91 fgSizer2->Add( silkscreenBottomLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 20 );
92
93 m_silkscreenBottom = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
94 fgSizer2->Add( m_silkscreenBottom, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
95
96
97 fgSizer2->Add( 0, 6, 1, wxEXPAND, 5 );
98
99
100 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
101
102 solderMaskTopLabel = new wxStaticText( this, wxID_ANY, _("Solder mask top:"), wxDefaultPosition, wxDefaultSize, 0 );
103 solderMaskTopLabel->Wrap( -1 );
104 fgSizer2->Add( solderMaskTopLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 20 );
105
106 m_solderMaskTop = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
107 fgSizer2->Add( m_solderMaskTop, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
108
109 solderMaskBottomLabel = new wxStaticText( this, wxID_ANY, _("Solder mask bottom:"), wxDefaultPosition, wxDefaultSize, 0 );
110 solderMaskBottomLabel->Wrap( -1 );
111 fgSizer2->Add( solderMaskBottomLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 20 );
112
113 m_solderMaskBottom = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
114 fgSizer2->Add( m_solderMaskBottom, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
115
116
117 fgSizer2->Add( 0, 6, 1, wxEXPAND, 5 );
118
119
120 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
121
122 surfaceFinishLabel = new wxStaticText( this, wxID_ANY, _("Copper/surface finish:"), wxDefaultPosition, wxDefaultSize, 0 );
123 surfaceFinishLabel->Wrap( -1 );
124 fgSizer2->Add( surfaceFinishLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 20 );
125
126 m_surfaceFinish = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
127 fgSizer2->Add( m_surfaceFinish, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
128
129
130 fgSizer2->Add( 0, 6, 1, wxEXPAND, 5 );
131
132
133 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
134
135 boardBodyLabel = new wxStaticText( this, wxID_ANY, _("Board body:"), wxDefaultPosition, wxDefaultSize, 0 );
136 boardBodyLabel->Wrap( -1 );
137 fgSizer2->Add( boardBodyLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 20 );
138
139 m_boardBody = new COLOR_SWATCH( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
140 fgSizer2->Add( m_boardBody, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
141
142
143 bSizerMain->Add( fgSizer2, 1, wxEXPAND|wxLEFT, 8 );
144
145
146 this->SetSizer( bSizerMain );
147 this->Layout();
148 bSizerMain->Fit( this );
149}
const char * name
Definition: DXF_plotter.cpp:56
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:57
COLOR_SWATCH * m_silkscreenBottom
COLOR_SWATCH * m_silkscreenTop
wxStaticLine * m_staticline1
wxStaticText * solderPasteLabel
wxStaticText * solderMaskTopLabel
wxStaticText * silkscreenBottomLabel
COLOR_SWATCH * m_backgroundTop
wxStaticText * solderMaskBottomLabel
wxRadioButton * m_specificColorsRB
wxStaticLine * m_staticline2
wxStaticText * surfaceFinishLabel
wxStaticText * backgroundTopLabel
COLOR_SWATCH * m_solderMaskTop
wxStaticText * backgroundBotLabel
wxRadioButton * m_boardStackupRB
COLOR_SWATCH * m_surfaceFinish
wxStaticText * m_boardColorsLabel
COLOR_SWATCH * m_backgroundBottom
wxStaticText * silkscreenTopLabel
COLOR_SWATCH * m_solderPaste
wxStaticText * m_environmentLable
wxStaticText * boardBodyLabel
COLOR_SWATCH * m_solderMaskBottom
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 _, backgroundBotLabel, backgroundTopLabel, boardBodyLabel, m_backgroundBottom, m_backgroundTop, m_boardBody, m_boardColorsLabel, m_boardStackupRB, m_environmentLable, m_silkscreenBottom, m_silkscreenTop, m_solderMaskBottom, m_solderMaskTop, m_solderPaste, m_specificColorsRB, m_staticline1, m_staticline2, m_surfaceFinish, silkscreenBottomLabel, silkscreenTopLabel, solderMaskBottomLabel, solderMaskTopLabel, solderPasteLabel, and surfaceFinishLabel.

◆ ~PANEL_3D_COLORS_BASE()

PANEL_3D_COLORS_BASE::~PANEL_3D_COLORS_BASE ( )

Definition at line 151 of file panel_3D_colors_base.cpp.

152{
153}

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

◆ backgroundBotLabel

wxStaticText* PANEL_3D_COLORS_BASE::backgroundBotLabel
protected

Definition at line 42 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ backgroundTopLabel

wxStaticText* PANEL_3D_COLORS_BASE::backgroundTopLabel
protected

Definition at line 40 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ boardBodyLabel

wxStaticText* PANEL_3D_COLORS_BASE::boardBodyLabel
protected

Definition at line 60 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ m_backgroundBottom

◆ m_backgroundTop

◆ m_boardBody

◆ m_boardColorsLabel

wxStaticText* PANEL_3D_COLORS_BASE::m_boardColorsLabel
protected

Definition at line 46 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ m_boardStackupRB

wxRadioButton* PANEL_3D_COLORS_BASE::m_boardStackupRB
protected

◆ m_environmentLable

wxStaticText* PANEL_3D_COLORS_BASE::m_environmentLable
protected

Definition at line 38 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ m_silkscreenBottom

◆ m_silkscreenTop

◆ m_solderMaskBottom

◆ m_solderMaskTop

◆ m_solderPaste

◆ m_specificColorsRB

wxRadioButton* PANEL_3D_COLORS_BASE::m_specificColorsRB
protected

◆ m_staticline1

wxStaticLine* PANEL_3D_COLORS_BASE::m_staticline1
protected

Definition at line 39 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ m_staticline2

wxStaticLine* PANEL_3D_COLORS_BASE::m_staticline2
protected

Definition at line 47 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ m_surfaceFinish

◆ silkscreenBottomLabel

wxStaticText* PANEL_3D_COLORS_BASE::silkscreenBottomLabel
protected

Definition at line 52 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ silkscreenTopLabel

wxStaticText* PANEL_3D_COLORS_BASE::silkscreenTopLabel
protected

Definition at line 50 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ solderMaskBottomLabel

wxStaticText* PANEL_3D_COLORS_BASE::solderMaskBottomLabel
protected

Definition at line 56 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ solderMaskTopLabel

wxStaticText* PANEL_3D_COLORS_BASE::solderMaskTopLabel
protected

Definition at line 54 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ solderPasteLabel

wxStaticText* PANEL_3D_COLORS_BASE::solderPasteLabel
protected

Definition at line 44 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().

◆ surfaceFinishLabel

wxStaticText* PANEL_3D_COLORS_BASE::surfaceFinishLabel
protected

Definition at line 58 of file panel_3D_colors_base.h.

Referenced by PANEL_3D_COLORS_BASE().


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