26#include <wx/statusbr.h>
28#include <wx/stattext.h>
38#define FIELD_OFFSET_BGJOB_TEXT 0
39#define FIELD_OFFSET_BGJOB_GAUGE 1
40#define FIELD_OFFSET_BGJOB_CANCEL 2
41#define FIELD_OFFSET_NOTIFICATION_BUTTON 3
45 wxStatusBar( parent, id ),
46 m_normalFieldsCount( aNumberFields )
52 const int ExtraFields = 5;
54 const int ExtraFields = 4;
56 SetFieldsCount( aNumberFields + ExtraFields );
58 int* widths =
new int[aNumberFields + ExtraFields];
60 for(
int i = 0; i < aNumberFields; i++ )
69 widths[aNumberFields + ExtraFields - 1] = 10;
72 SetStatusWidths( aNumberFields + ExtraFields, widths );
76 int* styles =
new int[aNumberFields + ExtraFields];
77 for(
int i = 0; i < aNumberFields + ExtraFields; i++ )
78 styles[i] = wxSB_FLAT;
80 SetStatusStyles( aNumberFields + ExtraFields, styles );
86 wxGA_HORIZONTAL | wxGA_SMOOTH );
92 wxDefaultSize, wxBU_EXACTFIT );
115 pos.x += r.GetWidth();
117 Pgm().GetNotificationsManager().ShowList(
this, pos );
127 pos.x += r.GetWidth();
129 Pgm().GetBackgroundJobMonitor().ShowList(
this, pos );
144 int w = r.GetWidth();
145 int h = r.GetHeight();
206 cnt = wxString::Format(
"%d", aCount );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
BITMAP_BUTTON * m_notificationsButton
void SetBackgroundStatusText(const wxString &aTxt)
Sets the status text that displays next to the progress bar.
void onBackgroundProgressClick(wxMouseEvent &aEvent)
void onSize(wxSizeEvent &aEvent)
void SetBackgroundProgress(int aAmount)
Sets the current progress of the progress bar.
wxGauge * m_backgroundProgressBar
wxButton * m_backgroundStopButton
void HideBackgroundProgressBar()
Hides the background progress bar.
void onNotificationsIconClick(wxCommandEvent &aEvent)
void SetBackgroundProgressMax(int aAmount)
Sets the maX progress of the progress bar.
KISTATUSBAR(int aNumberFields, wxWindow *parent, wxWindowID id)
wxStaticText * m_backgroundTxt
void ShowBackgroundProgressBar(bool aCancellable=false)
Shows the background progress bar.
void SetNotificationCount(int aCount)
Sets the notification count on the notifications button A value of 0 will hide the count.
#define FIELD_OFFSET_BGJOB_TEXT
#define FIELD_OFFSET_BGJOB_GAUGE
#define FIELD_OFFSET_NOTIFICATION_BUTTON
#define FIELD_OFFSET_BGJOB_CANCEL
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.