1998-06-28 11:34:42 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gauge95.h
|
|
|
|
// Purpose: wxGauge95 class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-06-28 11:34:42 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _GAUGE95_H_
|
|
|
|
#define _GAUGE95_H_
|
|
|
|
|
2003-09-28 13:57:52 +00:00
|
|
|
#if wxUSE_GAUGE
|
1998-06-28 11:34:42 +00:00
|
|
|
|
2006-01-16 14:59:55 +00:00
|
|
|
extern WXDLLEXPORT_DATA(const wxChar) wxGaugeNameStr[];
|
1998-06-28 11:34:42 +00:00
|
|
|
|
|
|
|
// Group box
|
2003-09-22 12:31:58 +00:00
|
|
|
class WXDLLEXPORT wxGauge95 : public wxGaugeBase
|
1998-06-28 11:34:42 +00:00
|
|
|
{
|
1999-02-22 11:01:13 +00:00
|
|
|
public:
|
2003-09-22 12:31:58 +00:00
|
|
|
wxGauge95() { }
|
|
|
|
|
|
|
|
wxGauge95(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
int range,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxGA_HORIZONTAL,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxGaugeNameStr)
|
1999-02-22 11:01:13 +00:00
|
|
|
{
|
2003-09-22 12:31:58 +00:00
|
|
|
(void)Create(parent, id, range, pos, size, style, validator, name);
|
1999-02-22 11:01:13 +00:00
|
|
|
}
|
|
|
|
|
2003-09-22 12:31:58 +00:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
int range,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxGA_HORIZONTAL,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxGaugeNameStr);
|
1999-02-22 11:01:13 +00:00
|
|
|
|
2003-09-22 12:31:58 +00:00
|
|
|
// set gauge range/value
|
|
|
|
virtual void SetRange(int range);
|
|
|
|
virtual void SetValue(int pos);
|
1999-02-22 11:01:13 +00:00
|
|
|
|
2000-01-13 23:39:48 +00:00
|
|
|
// overriden base class virtuals
|
2003-09-22 12:31:58 +00:00
|
|
|
virtual bool SetForegroundColour(const wxColour& col);
|
|
|
|
virtual bool SetBackgroundColour(const wxColour& col);
|
1998-06-28 11:34:42 +00:00
|
|
|
|
1999-02-22 11:01:13 +00:00
|
|
|
protected:
|
2003-09-22 12:31:58 +00:00
|
|
|
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
|
|
|
virtual wxSize DoGetBestSize() const;
|
2003-07-22 00:24:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95)
|
1998-06-28 11:34:42 +00:00
|
|
|
};
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#endif // wxUSE_GAUGE
|
|
|
|
|
1998-06-28 11:34:42 +00:00
|
|
|
#endif
|
|
|
|
// _GAUGEMSW_H_
|