14PANEL_WAVELENGTH_BASE::PANEL_WAVELENGTH_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
CALCULATOR_PANEL( parent, id, pos, size, style,
name )
17 bSizer6 =
new wxBoxSizer( wxVERTICAL );
20 bSizer4 =
new wxBoxSizer( wxVERTICAL );
22 wxFlexGridSizer* fgSizer3;
23 fgSizer3 =
new wxFlexGridSizer( 0, 3, 0, 0 );
24 fgSizer3->SetFlexibleDirection( wxHORIZONTAL );
25 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 m_staticText18 =
new wxStaticText(
this, wxID_ANY,
_(
"Frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
29 fgSizer3->Add(
m_staticText18, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
31 m_frequencyCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
34 wxArrayString m_frequencyUnitChoices;
39 m_staticText181 =
new wxStaticText(
this, wxID_ANY,
_(
"Period:"), wxDefaultPosition, wxDefaultSize, 0 );
41 fgSizer3->Add(
m_staticText181, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
43 m_periodCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 fgSizer3->Add(
m_periodCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
46 wxArrayString m_periodUnitChoices;
51 m_staticText1811 =
new wxStaticText(
this, wxID_ANY,
_(
"Wavelength in vacuum:"), wxDefaultPosition, wxDefaultSize, 0 );
53 fgSizer3->Add(
m_staticText1811, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
55 m_wavelengthVacuumCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
58 wxArrayString m_wavelengthVacuumUnitChoices;
63 m_staticText18111 =
new wxStaticText(
this, wxID_ANY,
_(
"Wavelength in medium:"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_wavelengthMediumCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
70 wxArrayString m_wavelengthMediumUnitChoices;
75 m_staticText181112 =
new wxStaticText(
this, wxID_ANY,
_(
"Speed in medium:"), wxDefaultPosition, wxDefaultSize, 0 );
79 m_speedCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
80 fgSizer3->Add(
m_speedCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
82 wxArrayString m_speedUnitChoices;
87 m_staticText181111 =
new wxStaticText(
this, wxID_ANY,
_(
"er:"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_permittivityCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
96 m_button1 =
new wxButton(
this, wxID_ANY,
_(
"..."), wxDefaultPosition, wxDefaultSize, 0 );
99 m_staticText42 =
new wxStaticText(
this, wxID_ANY,
_(
"mur:"), wxDefaultPosition, wxDefaultSize, 0 );
103 fgSizer3->Add(
m_staticText42, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
105 m_permeabilityCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
109 bSizer4->Add( fgSizer3, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
112 bSizer6->Add( bSizer4, 1, wxEXPAND, 5 );
115 this->SetSizer( bSizer6 );
virtual void OnPeriodChange(wxCommandEvent &event)
wxStaticText * m_staticText181
wxStaticText * m_staticText1811
wxStaticText * m_staticText18111
virtual void OnWavelengthMediumChange(wxCommandEvent &event)
UNIT_SELECTOR_FREQUENCY * m_frequencyUnit
UNIT_SELECTOR_TIME * m_periodUnit
wxStaticText * m_staticText181111
wxTextCtrl * m_wavelengthMediumCtrl
virtual void updateUnits(wxCommandEvent &event)
wxStaticText * m_staticText18
virtual void OnWavelengthVacuumChange(wxCommandEvent &event)
wxTextCtrl * m_periodCtrl
virtual void OnFrequencyChange(wxCommandEvent &event)
PANEL_WAVELENGTH_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(538, 453), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
virtual void OnButtonPermittivity(wxCommandEvent &event)
wxStaticText * m_staticText181112
wxTextCtrl * m_wavelengthVacuumCtrl
UNIT_SELECTOR_LEN_CABLE * m_wavelengthVacuumUnit
wxTextCtrl * m_frequencyCtrl
wxTextCtrl * m_permeabilityCtrl
virtual void OnPermittivityChange(wxCommandEvent &event)
virtual void OnPermeabilityChange(wxCommandEvent &event)
wxTextCtrl * m_permittivityCtrl
wxStaticText * m_staticText42
UNIT_SELECTOR_LEN_CABLE * m_wavelengthMediumUnit
UNIT_SELECTOR_SPEED * m_speedUnit