35 #include "ocpn_frame.h"
40 #define ID_LEGROUTE 1000
41 #define SECONDS_PER_DAY 86400
50 class CDI :
public wxWindow {
52 CDI(wxWindow *parent, wxWindowID
id,
long style,
const wxString &name);
54 void OnPaint(wxPaintEvent &event);
55 void SetColorScheme(ColorScheme cs);
56 void MouseEvent(wxMouseEvent &event);
58 wxBrush *m_pbackBrush;
59 wxBrush *m_proadBrush;
70 AnnunText(wxWindow *parent, wxWindowID
id,
const wxString &LegendElement,
71 const wxString &ValueElement);
75 void SetALabel(
const wxString &l);
76 void SetAValue(
const wxString &v);
77 void OnPaint(wxPaintEvent &event);
78 void RefreshFonts(
void);
79 void SetLegendElement(
const wxString &element);
80 void SetValueElement(
const wxString &element);
81 void SetColorScheme(ColorScheme cs);
82 void MouseEvent(wxMouseEvent &event);
85 void CalculateMinSize(
void);
88 wxColour m_default_text_color;
95 wxString m_LegendTextElement;
96 wxString m_ValueTextElement;
97 wxColour m_legend_color;
100 DECLARE_EVENT_TABLE()
110 void UpdateRouteData();
111 void ShowWithFreshFonts(
void);
112 void UpdateFonts(
void);
113 void SetColorScheme(ColorScheme cs);
115 void OnContextMenu(wxContextMenuEvent &event);
116 void OnContextMenuSelection(wxCommandEvent &event);
117 void RefreshConsoleData(
void);
118 void ToggleRouteTotalDisplay();
121 wxStaticText *pThisLegText;
122 wxBoxSizer *m_pitemBoxSizerLeg;
131 wxFont *pThisLegFont;
136 void OnPaint(wxPaintEvent &event);
137 void OnShow(wxShowEvent &event);
140 DECLARE_EVENT_TABLE()
void OnPaint(wxPaintEvent &event)