50 std::shared_ptr<Notification> _notification,
54 void OnAckButton(wxCommandEvent &event);
55 void OnPaint(wxPaintEvent &event);
56 std::shared_ptr<Notification> GetNotification() {
return notification; }
59 std::shared_ptr<Notification> notification;
61 wxBitmap notification_bitmap;
62 wxStaticBitmap *m_itemStaticBitmap;
63 wxButton *m_ack_button;
85 void OnClose(wxCloseEvent &event);
86 void ReloadNotificationList();
87 void OnAckAllButton(wxCommandEvent &event);
88 void SetColorScheme();
89 void RecalculateSize();
92 wxScrolledWindow *m_sWindow;
94 wxButton *m_ackall_button;
103 void SetIconName(wxString &name) { m_NoteIconName = name; }
104 void SetIconSeverity(NotificationSeverity _severity);
106 bool IsShown()
const {
return m_shown; }
107 void Show(
bool show) { m_shown = show; }
110 bool UpdateStatus(
bool newColorScheme =
false);
112 void SetColorScheme(ColorScheme cs);
113 float GetScaleFactor() {
return m_scale; }
114 void SetScaleFactor(
float factor);
116 void Move(
const wxPoint &pt) { m_rect.SetPosition(pt); }
130 void CreateBmp(
bool bnew =
false);
131 void CreateTexture();
132 void UpdateTexture();
137 wxStaticBitmap *m_pStatBoxToolStaticBmp;
139 wxString m_lastNoteIconName;
140 wxString m_NoteIconName;
142 wxBitmap _img_gpsRed;
157 unsigned int m_texobj;
158 int m_tex_w, m_tex_h;
159 int m_image_width, m_image_height;