33#include <wx/statbmp.h>
34#include <wx/statusbr.h>
35#include <wx/stattext.h>
41extern unsigned char GO_NEXT_SVG_GZ[];
42extern size_t GO_NEXT_SVG_GZ_SIZE;
67 wxWindow *GetNetworkStatusElement()
68 {
return m_networkStatus; }
70 wxWindow *GetStatusTextElement()
71 {
return m_statusTextPanel; }
73 wxWindow *GetMaximaStatusElement()
74 {
return m_maximaStatus; }
79 m_maximaPercentage = percentage;
98 void UpdateStatusMaximaBusy(MaximaStatus status, std::size_t bytesFromMaxima);
99 void SetStatusText(wxString statusText){m_statusText->SetLabel(statusText);}
101 void StatusMsgDClick(wxCommandEvent &ev);
102 void OnSize(wxSizeEvent &event);
103 void OnTimerEvent(wxTimerEvent &event);
105 void HandleTimerEvent();
108 std::unique_ptr<
struct wxm_NSVGrasterizer, decltype(std::free)*> m_svgRast{
nullptr, std::free};
110 wxSize m_ppi = wxSize(75, 75);
115 float m_maximaPercentage = -1;
120 float m_oldmaximaPercentage = -1;
122 wxString m_stdToolTip;
123 wxString m_networkErrToolTip;
124 wxString m_noConnectionToolTip;
128 bool m_icon_shows_receive =
false;
130 bool m_icon_shows_transmit =
false;
132 wxPanel *m_statusTextPanel = NULL;
134 wxStaticText *m_statusText = NULL;
136 wxStaticBitmap *m_networkStatus = NULL;
138 wxStaticBitmap *m_maximaStatus = NULL;
140 wxBitmap m_network_error;
142 wxBitmap m_network_offline;
144 wxBitmap m_network_transmit;
146 wxBitmap m_network_idle;
148 wxBitmap m_network_idle_inactive;
150 wxBitmap m_network_receive;
152 wxBitmap m_network_transmit_receive;
156 wxTimer ReceiveTimer;
158 wxBitmap m_bitmap_waitForStart;
159 wxBitmap m_bitmap_process_wont_start;
160 wxBitmap m_bitmap_sending;
161 wxBitmap m_bitmap_waiting;
162 wxBitmap m_bitmap_waitingForPrompt;
163 wxBitmap m_bitmap_waitingForAuth;
164 wxBitmap m_bitmap_calculating;
165 wxBitmap m_bitmap_parsing;
166 wxBitmap m_bitmap_transferring;
167 wxBitmap m_bitmap_userinput;
168 wxBitmap m_bitmap_disconnected;
The class that draws the status bar.
Definition: StatusBar.h:47
void UpdateBitmaps()
Update the bitmaps to the Right size for the Resolution.
Definition: StatusBar.cpp:112
networkState
The network states that can be passed to NetworkStatus()
Definition: StatusBar.h:53
void SetMaximaCPUPercentage(float percentage)
Inform the status bar how many percents of the available CPU power maxima uses.
Definition: StatusBar.h:77
void NetworkStatus(networkState status)
Informs the status bar about networking events.
Definition: StatusBar.cpp:308