2011-03-20 18:05:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/generic/notifmsg.h
|
|
|
|
// Purpose: generic implementation of wxGenericNotificationMessage
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 2007-11-24
|
|
|
|
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GENERIC_NOTIFMSG_H_
|
|
|
|
#define _WX_GENERIC_NOTIFMSG_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGenericNotificationMessage
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_ADV wxGenericNotificationMessage : public wxNotificationMessageBase
|
|
|
|
{
|
|
|
|
public:
|
2016-06-26 05:25:29 +00:00
|
|
|
wxGenericNotificationMessage()
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
}
|
|
|
|
|
2011-03-20 18:05:19 +00:00
|
|
|
wxGenericNotificationMessage(const wxString& title,
|
|
|
|
const wxString& message = wxString(),
|
|
|
|
wxWindow *parent = NULL,
|
|
|
|
int flags = wxICON_INFORMATION)
|
|
|
|
{
|
|
|
|
Init();
|
2016-06-26 05:25:29 +00:00
|
|
|
Create(title, message, parent, flags);
|
2011-03-20 18:05:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// generic implementation-specific methods
|
|
|
|
|
|
|
|
// get/set the default timeout (used if Timeout_Auto is specified)
|
2016-06-26 05:25:29 +00:00
|
|
|
static int GetDefaultTimeout();
|
2011-03-20 18:05:19 +00:00
|
|
|
static void SetDefaultTimeout(int timeout);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxGenericNotificationMessage);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_GENERIC_NOTIFMSG_H_
|
|
|
|
|