mirror of
https://github.com/uroni/urbackup_frontend_wx.git
synced 2025-10-26 11:19:28 +00:00
28 lines
780 B
C++
28 lines
780 B
C++
#include <wx/wx.h>
|
|
#include <wx/taskbar.h>
|
|
#include <wx/frame.h>
|
|
|
|
class TaskBarBaloon : public wxFrame
|
|
{
|
|
public:
|
|
TaskBarBaloon(wxString sTitle, wxString sMessage, std::string new_ident="");
|
|
virtual ~TaskBarBaloon() { delete timer; }
|
|
|
|
/** painting bg */
|
|
void OnPaint(wxPaintEvent& event);
|
|
/** timer to close window */
|
|
void OnTimerTick(wxTimerEvent & event);
|
|
/** click on the baloon */
|
|
void OnClick(wxMouseEvent & event);
|
|
/** click on the baloon */
|
|
void OnEscape(wxKeyEvent & event){};
|
|
|
|
/** display the baloon and run the timer */
|
|
void showBaloon(unsigned int iTimeout);
|
|
private:
|
|
wxTimer * timer;
|
|
std::string new_ident;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
}; |