]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/gauge.h
deleted no longer needed resource files
[wxWidgets.git] / include / wx / motif / gauge.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.h
3// Purpose: wxGauge class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GAUGE_H_
13#define _WX_GAUGE_H_
14
15#ifdef __GNUG__
16#pragma interface "gauge.h"
17#endif
18
19#include "wx/control.h"
20
21WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr;
22
23// Group box
bfc6fde4 24class WXDLLEXPORT wxGauge : public wxControl
9b6dbb09 25{
bfc6fde4 26 DECLARE_DYNAMIC_CLASS(wxGauge)
83df96d6 27
bfc6fde4
VZ
28public:
29 inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
83df96d6 30
bfc6fde4 31 inline wxGauge(wxWindow *parent, wxWindowID id,
83df96d6
JS
32 int range,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = wxGA_HORIZONTAL,
36 const wxValidator& validator = wxDefaultValidator,
37 const wxString& name = wxGaugeNameStr)
bfc6fde4
VZ
38 {
39 Create(parent, id, range, pos, size, style, validator, name);
40 }
83df96d6 41
bfc6fde4 42 bool Create(wxWindow *parent, wxWindowID id,
83df96d6
JS
43 int range,
44 const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxDefaultSize,
46 long style = wxGA_HORIZONTAL,
47 const wxValidator& validator = wxDefaultValidator,
48 const wxString& name = wxGaugeNameStr);
49
bfc6fde4
VZ
50 void SetShadowWidth(int w);
51 void SetBezelFace(int w);
52 void SetRange(int r);
53 void SetValue(int pos);
83df96d6 54
bfc6fde4
VZ
55 int GetShadowWidth() const ;
56 int GetBezelFace() const ;
57 int GetRange() const ;
58 int GetValue() const ;
83df96d6 59
bfc6fde4 60 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
83df96d6 61
bfc6fde4
VZ
62 // Implementation
63 virtual void ChangeFont(bool keepOriginalSize = TRUE);
64 virtual void ChangeBackgroundColour();
65 virtual void ChangeForegroundColour();
83df96d6 66
bfc6fde4
VZ
67protected:
68 int m_rangeMax;
69 int m_gaugePos;
9b6dbb09
JS
70};
71
72#endif
83df96d6 73// _WX_GAUGE_H_