]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/hildon/notifmsg.h
No real changes, just make wxWindow::CanScroll() virtual.
[wxWidgets.git] / include / wx / gtk / hildon / notifmsg.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/hildon/notifmsg.h
3 // Purpose: Hildon implementation of wxNotificationMessage
4 // Author: Vadim Zeitlin
5 // Created: 2007-11-21
6 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_HILDON_NOTIFMSG_H_
11 #define _WX_GTK_HILDON_NOTIFMSG_H_
12
13 typedef struct _HildonBanner HildonBanner;
14
15 // ----------------------------------------------------------------------------
16 // wxNotificationMessage
17 // ----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_ADV wxNotificationMessage : public wxNotificationMessageBase
20 {
21 public:
22 wxNotificationMessage() { Init(); }
23 wxNotificationMessage(const wxString& title,
24 const wxString& message = wxString(),
25 wxWindow *parent = NULL)
26 : wxNotificationMessageBase(title, message, parent)
27 {
28 Init();
29 }
30
31 virtual ~wxNotificationMessage();
32
33
34 virtual bool Show(int timeout = Timeout_Auto);
35 virtual bool Close();
36
37 private:
38 void Init() { m_banner = NULL; }
39
40 // return the string containing markup for both the title and, if
41 // specified, the message
42 wxString HildonGetMarkup() const;
43
44 // returns the widget of the parent GtkWindow to use or NULL
45 GtkWidget *HildonGetWindow() const;
46
47
48 // the banner we're showing, only non-NULL if it's an animation or progress
49 // banner as the informational dialog times out on its own and we don't
50 // need to store it (nor do we have any way to get its widget anyhow)
51 GtkWidget *m_banner;
52
53
54 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage);
55 };
56
57 #endif // _WX_GTK_HILDON_NOTIFMSG_H_
58