2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gauge.h
|
|
|
|
// Purpose: wxGauge class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GAUGE_H_
|
|
|
|
#define _WX_GAUGE_H_
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
2006-01-16 09:59:55 -05:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[];
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
// Group box
|
|
|
|
class WXDLLEXPORT wxGauge: public wxGaugeBase
|
|
|
|
{
|
|
|
|
public:
|
2004-06-04 03:21:50 -04:00
|
|
|
inline wxGauge() { }
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
inline wxGauge(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)
|
|
|
|
{
|
|
|
|
Create(parent, id, range, pos, size, style, validator, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2004-06-04 03:21:50 -04:00
|
|
|
// set gauge range/value
|
|
|
|
virtual void SetRange(int range);
|
|
|
|
virtual void SetValue(int pos);
|
|
|
|
virtual int GetValue() const ;
|
2006-09-09 09:36:54 -04:00
|
|
|
|
|
|
|
void Pulse();
|
|
|
|
|
2004-03-23 12:35:05 -05:00
|
|
|
protected:
|
2004-06-04 03:21:50 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge)
|
2004-03-23 12:35:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_GAUGE_H_
|