24 #ifndef COM_DAFER45_TBTK_HOPPING_AMPLITUDE_PANEL
25 #define COM_DAFER45_TBTK_HOPPING_AMPLITUDE_PANEL
28 #include "TBTK/IndexPanel.h"
35 class HoppingAmplitudePanel :
public wxPanel{
38 HoppingAmplitudePanel(wxWindow *parent);
41 ~HoppingAmplitudePanel();
44 void setHoppingAmplitude(
const HoppingAmplitude &hoppingAmplitude);
47 const HoppingAmplitude& getHoppingAmplitude()
const;
50 void onPaintEvent(wxPaintEvent &event);
53 void onSizeEvent(wxSizeEvent &event);
56 void onAmplitudeChanged(wxCommandEvent &event);
59 void onIndexChanged(wxCommandEvent &event);
64 DECLARE_EVENT_TABLE();
67 HoppingAmplitude hoppingAmplitude;
70 wxStaticText hoppingAmplitudeLabel;
73 wxTextCtrl amplitudeTextBox;
76 IndexPanel toIndexPanel;
79 IndexPanel fromIndexPanel;
81 static const wxWindowID AMPLITUDE_ID;
82 static const wxWindowID TO_INDEX_ID;
83 static const wxWindowID FROM_INDEX_ID;
86 inline const HoppingAmplitude& HoppingAmplitudePanel::getHoppingAmplitude()
const{
87 return hoppingAmplitude;