1998-08-07 17:32:13 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gauge.h
|
1998-08-12 05:16:21 -04:00
|
|
|
// Purpose: wxGauge class
|
|
|
|
// Author: AUTHOR
|
|
|
|
// Modified by:
|
|
|
|
// Created: ??/??/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) AUTHOR
|
1998-08-07 17:32:13 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
#ifndef _WX_GAUGE_H_
|
|
|
|
#define _WX_GAUGE_H_
|
1998-08-07 17:32:13 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
1998-08-12 05:16:21 -04:00
|
|
|
#pragma interface "gauge.h"
|
1998-08-07 17:32:13 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr;
|
1998-08-07 17:32:13 -04:00
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
// Group box
|
|
|
|
class WXDLLEXPORT wxGauge: public wxControl
|
1998-08-07 17:32:13 -04:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxGauge)
|
1998-08-12 05:16:21 -04:00
|
|
|
public:
|
|
|
|
inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
|
1998-08-07 17:32:13 -04:00
|
|
|
|
|
|
|
inline wxGauge(wxWindow *parent, wxWindowID id,
|
|
|
|
int range,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxGA_HORIZONTAL,
|
1998-08-12 05:16:21 -04:00
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
1998-08-07 17:32:13 -04:00
|
|
|
const wxString& name = wxGaugeNameStr)
|
|
|
|
{
|
1998-08-12 05:16:21 -04:00
|
|
|
Create(parent, id, range, pos, size, style, validator, name);
|
|
|
|
}
|
1998-08-07 17:32:13 -04:00
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
|
|
|
int range,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxGA_HORIZONTAL,
|
1998-08-12 05:16:21 -04:00
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxGaugeNameStr);
|
|
|
|
|
|
|
|
void SetShadowWidth(int w);
|
|
|
|
void SetBezelFace(int w);
|
|
|
|
void SetRange(int r);
|
|
|
|
void SetValue(int pos);
|
1998-08-07 17:32:13 -04:00
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
int GetShadowWidth() const ;
|
|
|
|
int GetBezelFace() const ;
|
|
|
|
int GetRange() const ;
|
|
|
|
int GetValue() const ;
|
1998-08-07 17:32:13 -04:00
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
|
|
|
virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
|
1998-08-07 17:32:13 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
int m_rangeMax;
|
|
|
|
int m_gaugePos;
|
|
|
|
};
|
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
#endif
|
|
|
|
// _WX_GAUGE_H_
|