48class DashboardInstrument_Clock :
public DashboardInstrument_Single {
50 DashboardInstrument_Clock(wxWindow *parent, wxWindowID
id, wxString title,
53 wxString format =
"%02i:%02i:%02i UTC");
55 ~DashboardInstrument_Clock()
override =
default;
57 void SetData(
DASH_CAP,
double, wxString)
override;
58 virtual void SetUtcTime(wxDateTime value);
59 wxString GetDisplayTime(wxDateTime UTCtime);
60 [[nodiscard]]
bool GetUtc()
const {
return bUTC; }
61 void SetUtc(
bool flag) { bUTC = flag; }
76class DashboardInstrument_Moon :
public DashboardInstrument_Clock {
78 DashboardInstrument_Moon(wxWindow *parent, wxWindowID
id, wxString title,
80 ~DashboardInstrument_Moon()
override =
default;
82 wxSize GetSize(
int orient, wxSize hint)
override;
83 void SetData(
DASH_CAP,
double, wxString)
override;
84 void SetUtcTime(wxDateTime value)
override;
87 void Draw(wxGCDC *dc)
override;
90 int moon_phase(
int y,
int m,
int d);
93 wxString m_hemisphere;
99class DashboardInstrument_Sun :
public DashboardInstrument_Clock {
101 DashboardInstrument_Sun(wxWindow *parent, wxWindowID
id, wxString title,
103 wxString format =
"%02i:%02i:%02i UTC");
105 ~DashboardInstrument_Sun()
override =
default;
107 wxSize GetSize(
int orient, wxSize hint)
override;
108 void SetData(
DASH_CAP st,
double data, wxString
unit)
override;
109 void SetUtcTime(wxDateTime value)
override;
112 void Draw(wxGCDC *dc)
override;
121 void calculateSun(
double latit,
double longit, wxDateTime &sunrise,
128class DashboardInstrument_CPUClock :
public DashboardInstrument_Clock {
130 DashboardInstrument_CPUClock(wxWindow *parent, wxWindowID
id, wxString title,
132 wxString format =
"%02i:%02i:%02i UTC");
134 ~DashboardInstrument_CPUClock()
override =
default;
136 void SetData(
DASH_CAP,
double, wxString)
override;
138 void SetUtcTime(wxDateTime value)
override;