1998-06-28 07:34:42 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gauge95.h
|
|
|
|
// Purpose: wxGauge95 class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-06-28 07:34:42 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _GAUGE95_H_
|
|
|
|
#define _GAUGE95_H_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1998-06-28 07:34:42 -04:00
|
|
|
#pragma interface "gauge95.h"
|
|
|
|
#endif
|
|
|
|
|
2003-09-28 09:57:52 -04:00
|
|
|
#if wxUSE_GAUGE
|
1998-06-28 07:34:42 -04:00
|
|
|
|
2005-01-21 13:15:42 -05:00
|
|
|
extern WXDLLEXPORT_DATA(const wxChar*) wxGaugeNameStr;
|
1998-06-28 07:34:42 -04:00
|
|
|
|
|
|
|
// Group box
|
2003-09-22 08:31:58 -04:00
|
|
|
class WXDLLEXPORT wxGauge95 : public wxGaugeBase
|
1998-06-28 07:34:42 -04:00
|
|
|
{
|
1999-02-22 06:01:13 -05:00
|
|
|
public:
|
2003-09-22 08:31:58 -04: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 06:01:13 -05:00
|
|
|
{
|
2003-09-22 08:31:58 -04:00
|
|
|
(void)Create(parent, id, range, pos, size, style, validator, name);
|
1999-02-22 06:01:13 -05:00
|
|
|
}
|
|
|
|
|
2003-09-22 08:31:58 -04: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 06:01:13 -05:00
|
|
|
|
2003-09-22 08:31:58 -04:00
|
|
|
// set gauge range/value
|
|
|
|
virtual void SetRange(int range);
|
|
|
|
virtual void SetValue(int pos);
|
1999-02-22 06:01:13 -05:00
|
|
|
|
2000-01-13 18:39:48 -05:00
|
|
|
// overriden base class virtuals
|
2003-09-22 08:31:58 -04:00
|
|
|
virtual bool SetForegroundColour(const wxColour& col);
|
|
|
|
virtual bool SetBackgroundColour(const wxColour& col);
|
1998-06-28 07:34:42 -04:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
protected:
|
2003-09-22 08:31:58 -04:00
|
|
|
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
|
|
|
virtual wxSize DoGetBestSize() const;
|
2003-07-21 20:24:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95)
|
1998-06-28 07:34:42 -04:00
|
|
|
};
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#endif // wxUSE_GAUGE
|
|
|
|
|
1998-06-28 07:34:42 -04:00
|
|
|
#endif
|
|
|
|
// _GAUGEMSW_H_
|