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