14PANEL_3D_COLORS_BASE::PANEL_3D_COLORS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 m_environmentLable =
new wxStaticText(
this, wxID_ANY,
_(
"Environment Colors"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
26 wxFlexGridSizer* fgSizer1;
27 fgSizer1 =
new wxFlexGridSizer( 0, 2, 5, 0 );
28 fgSizer1->SetFlexibleDirection( wxBOTH );
29 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 backgroundTopLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Background gradient start:"), wxDefaultPosition, wxDefaultSize, 0 );
36 fgSizer1->Add(
m_backgroundTop, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
38 backgroundBotLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Background gradient end:"), wxDefaultPosition, wxDefaultSize, 0 );
46 fgSizer1->Add( 0, 6, 1, wxEXPAND, 5 );
49 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
51 solderPasteLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Solder paste:"), wxDefaultPosition, wxDefaultSize, 0 );
56 fgSizer1->Add(
m_solderPaste, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
59 bSizerMain->Add( fgSizer1, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
62 bSizerMain->Add( 0, 15, 0, wxEXPAND, 5 );
64 m_boardColorsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Board Colors"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
71 m_boardStackupRB =
new wxRadioButton(
this, wxID_ANY,
_(
"Use board stackup colors"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_specificColorsRB =
new wxRadioButton(
this, wxID_ANY,
_(
"Use colors:"), wxDefaultPosition, wxDefaultSize, 0 );
77 wxFlexGridSizer* fgSizer2;
78 fgSizer2 =
new wxFlexGridSizer( 0, 2, 5, 0 );
79 fgSizer2->SetFlexibleDirection( wxBOTH );
80 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
82 silkscreenTopLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Silkscreen top:"), wxDefaultPosition, wxDefaultSize, 0 );
87 fgSizer2->Add(
m_silkscreenTop, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
89 silkscreenBottomLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Silkscreen bottom:"), wxDefaultPosition, wxDefaultSize, 0 );
97 fgSizer2->Add( 0, 6, 1, wxEXPAND, 5 );
100 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
102 solderMaskTopLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Solder mask top:"), wxDefaultPosition, wxDefaultSize, 0 );
107 fgSizer2->Add(
m_solderMaskTop, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
109 solderMaskBottomLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Solder mask bottom:"), wxDefaultPosition, wxDefaultSize, 0 );
117 fgSizer2->Add( 0, 6, 1, wxEXPAND, 5 );
120 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
122 surfaceFinishLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Copper/surface finish:"), wxDefaultPosition, wxDefaultSize, 0 );
127 fgSizer2->Add(
m_surfaceFinish, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
130 fgSizer2->Add( 0, 6, 1, wxEXPAND, 5 );
133 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
135 boardBodyLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Board body:"), wxDefaultPosition, wxDefaultSize, 0 );
137 fgSizer2->Add(
boardBodyLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 20 );
140 fgSizer2->Add(
m_boardBody, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
143 bSizerMain->Add( fgSizer2, 1, wxEXPAND|wxLEFT, 8 );
146 this->SetSizer( bSizerMain );
148 bSizerMain->Fit(
this );
A simple color swatch of the kind used to set layer colors.
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_boardBody
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
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)
wxStaticText * boardBodyLabel
COLOR_SWATCH * m_solderMaskBottom
A wxPanel that is designed to be reset in a standard manner.