1998-09-18 06:19:10 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gauge.h
|
|
|
|
// Purpose: wxGauge class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GAUGE_H_
|
|
|
|
#define _WX_GAUGE_H_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1998-09-18 06:19:10 -04:00
|
|
|
#pragma interface "gauge.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Group box
|
2003-03-22 10:46:22 -05:00
|
|
|
class WXDLLEXPORT wxGauge : public wxGaugeBase
|
1998-09-18 06:19:10 -04:00
|
|
|
{
|
1999-02-22 06:01:13 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxGauge)
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
public:
|
|
|
|
inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
inline wxGauge(wxWindow *parent, wxWindowID id,
|
2002-02-05 11:34:33 -05:00
|
|
|
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
|
|
|
{
|
|
|
|
Create(parent, id, range, pos, size, style, validator, name);
|
|
|
|
}
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
2002-02-05 11:34:33 -05:00
|
|
|
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
|
|
|
void SetShadowWidth(int w);
|
|
|
|
void SetRange(int r);
|
|
|
|
void SetValue(int pos);
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
int GetShadowWidth() const ;
|
|
|
|
int GetRange() const ;
|
|
|
|
int GetValue() const ;
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
|
2003-03-22 10:46:22 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
virtual wxSize DoGetBestSize() const;
|
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
1998-09-18 06:19:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2002-02-05 11:34:33 -05:00
|
|
|
// _WX_GAUGE_H_
|