14DIALOG_JUNCTION_PROPS_BASE::DIALOG_JUNCTION_PROPS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 bSizer2 =
new wxBoxSizer( wxVERTICAL );
21 wxFlexGridSizer* fgSizer2;
22 fgSizer2 =
new wxFlexGridSizer( 0, 3, 5, 0 );
23 fgSizer2->AddGrowableCol( 1 );
24 fgSizer2->SetFlexibleDirection( wxBOTH );
25 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 m_staticTextDiameter =
new wxStaticText(
this, wxID_ANY,
_(
"Diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_textCtrlDiameter =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 m_staticTextColor =
new wxStaticText(
this, wxID_ANY,
_(
"Color:"), wxDefaultPosition, wxDefaultSize, 0 );
42 m_panel1 =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
44 bSizer21 =
new wxBoxSizer( wxVERTICAL );
47 bSizer21->Add(
m_colorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
53 fgSizer2->Add(
m_panel1, 0, wxALIGN_CENTER_VERTICAL, 5 );
56 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
59 bSizer2->Add( fgSizer2, 1, wxALL|wxEXPAND, 10 );
61 m_helpLabel1 =
new wxStaticText(
this, wxID_ANY,
_(
"Set diameter to 0 to use schematic's junction dot size."), wxDefaultPosition, wxDefaultSize, 0 );
65 m_helpLabel2 =
new wxStaticText(
this, wxID_ANY,
_(
"Clear color to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
67 bSizer2->Add(
m_helpLabel2, 0, wxBOTTOM|wxRIGHT|wxLEFT, 10 );
78 bSizer2->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
81 this->SetSizer( bSizer2 );
85 this->Centre( wxBOTH );
A simple color swatch of the kind used to set layer colors.
wxStaticText * m_helpLabel2
wxStaticText * m_staticTextColor
DIALOG_JUNCTION_PROPS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Junction Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_helpLabel1
wxStaticText * m_staticTextDiameter
wxTextCtrl * m_textCtrlDiameter
virtual void resetDefaults(wxCommandEvent &event)
wxButton * m_sdbSizerCancel
wxStaticText * m_staticTextDiameterUnits
~DIALOG_JUNCTION_PROPS_BASE()
COLOR_SWATCH * m_colorSwatch
wxButton * m_sdbSizerApply
wxStdDialogButtonSizer * m_sdbSizer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...