2009-01-17 05:43:43 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/osx/gauge.h
|
2009-01-17 05:43:43 -05:00
|
|
|
// Purpose: wxGauge class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// Copyright: (c) Stefan Csomor
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GAUGE_H_
|
|
|
|
#define _WX_GAUGE_H_
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
// Group box
|
|
|
|
class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase
|
|
|
|
{
|
|
|
|
public:
|
2015-10-25 13:20:32 -04:00
|
|
|
wxGauge() { }
|
2009-01-17 05:43:43 -05:00
|
|
|
|
2015-10-25 13:20:32 -04:00
|
|
|
wxGauge(wxWindow *parent, wxWindowID id,
|
2009-01-17 05:43:43 -05:00
|
|
|
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);
|
|
|
|
|
|
|
|
// set gauge range/value
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void SetRange(int range) wxOVERRIDE;
|
|
|
|
virtual void SetValue(int pos) wxOVERRIDE;
|
|
|
|
virtual int GetValue() const wxOVERRIDE;
|
2009-01-17 05:43:43 -05:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
void Pulse() wxOVERRIDE;
|
2009-01-17 05:43:43 -05:00
|
|
|
|
|
|
|
protected:
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge);
|
2009-01-17 05:43:43 -05:00
|
|
|
};
|
|
|
|
|
2008-06-11 12:30:48 -04:00
|
|
|
#endif
|
2009-01-17 05:43:43 -05:00
|
|
|
// _WX_GAUGE_H_
|