25#ifndef _NOTIFICATION_MANAGER_GUI_H__
26#define _NOTIFICATION_MANAGER_GUI_H__
36#include "color_types.h"
49 std::shared_ptr<Notification> _notification,
53 void OnAckButton(wxCommandEvent &event);
54 void OnPaint(wxPaintEvent &event);
55 std::shared_ptr<Notification> GetNotification() {
return notification; }
58 std::shared_ptr<Notification> notification;
60 wxBitmap notification_bitmap;
61 wxStaticBitmap *m_itemStaticBitmap;
62 wxButton *m_ack_button;
73 void ReloadNotificationPanels();
74 std::vector<NotificationPanel *> GetPanels() {
return panels; }
77 std::vector<NotificationPanel *> panels;
84 void OnClose(wxCloseEvent &event);
85 void ReloadNotificationList();
88 wxScrolledWindow *m_sWindow;
98 void SetIconName(wxString &name) { m_NoteIconName = name; }
99 void SetIconSeverity(NotificationSeverity _severity);
101 bool IsShown()
const {
return m_shown; }
102 void Show(
bool show) { m_shown = show; }
105 bool UpdateStatus(
bool newColorScheme =
false);
107 void SetColorScheme(ColorScheme cs);
108 float GetScaleFactor() {
return m_scale; }
109 void SetScaleFactor(
float factor);
111 void Move(
const wxPoint &pt) { m_rect.SetPosition(pt); }
125 void CreateBmp(
bool bnew =
false);
126 void CreateTexture();
127 void UpdateTexture();
132 wxStaticBitmap *m_pStatBoxToolStaticBmp;
134 wxString m_lastNoteIconName;
135 wxString m_NoteIconName;
137 wxBitmap _img_gpsRed;
152 unsigned int m_texobj;
153 int m_tex_w, m_tex_h;
154 int m_image_width, m_image_height;
ChartCanvas - Main chart display and interaction component.
NotificationPanel(wxPanel *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, std::shared_ptr< Notification > _notification, int _repeat_count)
Construct an entry for a notification.
Device context class that can use either wxDC or OpenGL for drawing.