]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/notifmsg.h
Use wxGetTranslation() instead of _() in the public headers.
[wxWidgets.git] / include / wx / generic / notifmsg.h
CommitLineData
e36a1739
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/generic/notifmsg.h
e2d5abbf 3// Purpose: generic implementation of wxGenericNotificationMessage
e36a1739
VZ
4// Author: Vadim Zeitlin
5// Created: 2007-11-24
e36a1739
VZ
6// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GENERIC_NOTIFMSG_H_
11#define _WX_GENERIC_NOTIFMSG_H_
12
13class wxNotificationMessageDialog;
14
15// ----------------------------------------------------------------------------
e2d5abbf 16// wxGenericNotificationMessage
e36a1739
VZ
17// ----------------------------------------------------------------------------
18
e2d5abbf 19class WXDLLIMPEXP_ADV wxGenericNotificationMessage : public wxNotificationMessageBase
e36a1739
VZ
20{
21public:
e2d5abbf
VZ
22 wxGenericNotificationMessage() { Init(); }
23 wxGenericNotificationMessage(const wxString& title,
24 const wxString& message = wxString(),
e5dbea49
VZ
25 wxWindow *parent = NULL,
26 int flags = wxICON_INFORMATION)
27 : wxNotificationMessageBase(title, message, parent, flags)
e36a1739
VZ
28 {
29 Init();
30 }
31
e2d5abbf 32 virtual ~wxGenericNotificationMessage();
e36a1739
VZ
33
34
35 virtual bool Show(int timeout = Timeout_Auto);
36 virtual bool Close();
37
38 // generic implementation-specific methods
39
40 // get/set the default timeout (used if Timeout_Auto is specified)
41 static int GetDefaultTimeout() { return ms_timeout; }
42 static void SetDefaultTimeout(int timeout);
43
44private:
45 void Init();
46
47
48 // default timeout
49 static int ms_timeout;
50
51 // notification message is represented by a modeless dialog in this
52 // implementation
53 wxNotificationMessageDialog *m_dialog;
54
55
c0c133e1 56 wxDECLARE_NO_COPY_CLASS(wxGenericNotificationMessage);
e36a1739
VZ
57};
58
59#endif // _WX_GENERIC_NOTIFMSG_H_
60