26#ifndef _NOTIFICATION_MANAGER_GUI_H__
27#define _NOTIFICATION_MANAGER_GUI_H__
42#include <wx/scrolwin.h>
43#include <wx/statbmp.h>
46#include "color_types.h"
59 std::shared_ptr<Notification> _notification,
63 void OnAckButton(wxCommandEvent &event);
64 void OnPaint(wxPaintEvent &event);
65 std::shared_ptr<Notification> GetNotification() {
return notification; }
68 std::shared_ptr<Notification> notification;
70 wxBitmap notification_bitmap;
71 wxStaticBitmap *m_itemStaticBitmap;
72 wxButton *m_ack_button;
83 void ReloadNotificationPanels();
84 std::vector<NotificationPanel *> GetPanels() {
return panels; }
87 std::vector<NotificationPanel *> panels;
94 void OnClose(wxCloseEvent &event);
95 void ReloadNotificationList();
96 void OnAckAllButton(wxCommandEvent &event);
97 void SetColorScheme();
98 void RecalculateSize();
101 wxScrolledWindow *m_sWindow;
103 wxButton *m_ackall_button;
104 DECLARE_EVENT_TABLE()
112 void SetIconName(wxString &name) { m_NoteIconName = name; }
113 void SetIconSeverity(NotificationSeverity _severity);
115 bool IsShown()
const {
return m_shown; }
116 void Show(
bool show) { m_shown = show; }
119 bool UpdateStatus(
bool newColorScheme =
false);
121 void SetColorScheme(ColorScheme cs);
122 float GetScaleFactor() {
return m_scale; }
123 void SetScaleFactor(
float factor);
125 void Move(
const wxPoint &pt) { m_rect.SetPosition(pt); }
139 void CreateBmp(
bool bnew =
false);
140 void CreateTexture();
141 void UpdateTexture();
146 wxStaticBitmap *m_pStatBoxToolStaticBmp;
148 wxString m_lastNoteIconName;
149 wxString m_NoteIconName;
151 wxBitmap _img_gpsRed;
166 unsigned int m_texobj;
167 int m_tex_w, m_tex_h;
168 int m_image_width, m_image_height;
Generic Chart canvas base.
ChartCanvas - Main chart display and interaction component.
Device context class that can use either wxDC or OpenGL for drawing.
User notification container.
Layer to use wxDC or opengl.