1999-07-07 18:04:58 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-26 10:40:46 -05:00
|
|
|
// Name: wx/busyinfo.h
|
1999-07-07 18:04:58 -04:00
|
|
|
// Purpose: Information window (when app is busy)
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Copyright: (c) 1999 Vaclav Slavik
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1999-07-07 18:04:58 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-01-26 10:40:46 -05:00
|
|
|
#ifndef __BUSYINFO_H_BASE__
|
|
|
|
#define __BUSYINFO_H_BASE__
|
1999-07-07 18:04:58 -04:00
|
|
|
|
2004-07-25 12:44:47 -04:00
|
|
|
#include "wx/defs.h"
|
1999-07-07 18:04:58 -04:00
|
|
|
|
1999-07-10 09:23:22 -04:00
|
|
|
#if wxUSE_BUSYINFO
|
1999-07-07 18:04:58 -04:00
|
|
|
|
2014-10-24 19:23:10 -04:00
|
|
|
#include "wx/colour.h"
|
|
|
|
#include "wx/icon.h"
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
|
|
|
|
2014-10-24 17:54:38 -04:00
|
|
|
// This class is used to pass all the various parameters to wxBusyInfo ctor.
|
|
|
|
// According to the usual naming conventions (see wxAboutDialogInfo,
|
|
|
|
// wxFontInfo, ...) it would be called wxBusyInfoInfo, but this would have been
|
|
|
|
// rather strange, so we call it wxBusyInfoFlags instead.
|
|
|
|
//
|
|
|
|
// Methods are mostly self-explanatory except for the difference between "Text"
|
|
|
|
// and "Label": the former can contain markup, while the latter is just plain
|
|
|
|
// string which is not parsed in any way.
|
|
|
|
class wxBusyInfoFlags
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxBusyInfoFlags()
|
|
|
|
{
|
|
|
|
m_parent = NULL;
|
|
|
|
m_alpha = wxALPHA_OPAQUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
wxBusyInfoFlags& Parent(wxWindow* parent)
|
|
|
|
{ m_parent = parent; return *this; }
|
|
|
|
|
|
|
|
wxBusyInfoFlags& Icon(const wxIcon& icon)
|
|
|
|
{ m_icon = icon; return *this; }
|
|
|
|
wxBusyInfoFlags& Title(const wxString& title)
|
|
|
|
{ m_title = title; return *this; }
|
|
|
|
wxBusyInfoFlags& Text(const wxString& text)
|
|
|
|
{ m_text = text; return *this; }
|
|
|
|
wxBusyInfoFlags& Label(const wxString& label)
|
|
|
|
{ m_label = label; return *this; }
|
|
|
|
|
|
|
|
wxBusyInfoFlags& Foreground(const wxColour& foreground)
|
|
|
|
{ m_foreground = foreground; return *this; }
|
|
|
|
wxBusyInfoFlags& Background(const wxColour& background)
|
|
|
|
{ m_background = background; return *this; }
|
|
|
|
|
|
|
|
wxBusyInfoFlags& Transparency(wxByte alpha)
|
|
|
|
{ m_alpha = alpha; return *this; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxWindow* m_parent;
|
|
|
|
|
|
|
|
wxIcon m_icon;
|
|
|
|
wxString m_title,
|
|
|
|
m_text,
|
|
|
|
m_label;
|
|
|
|
|
|
|
|
wxColour m_foreground,
|
|
|
|
m_background;
|
|
|
|
|
|
|
|
wxByte m_alpha;
|
|
|
|
|
|
|
|
friend class wxBusyInfo;
|
|
|
|
};
|
|
|
|
|
2006-01-26 10:40:46 -05:00
|
|
|
#include "wx/generic/busyinfo.h"
|
1999-07-07 18:04:58 -04:00
|
|
|
|
2006-01-26 10:40:46 -05:00
|
|
|
#endif // wxUSE_BUSYINFO
|
1999-07-07 18:04:58 -04:00
|
|
|
|
2006-01-26 10:40:46 -05:00
|
|
|
#endif // __BUSYINFO_H_BASE__
|