]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/gauge.h
wxFileDialog::GetFilename and GetDir work now
[wxWidgets.git] / include / wx / gtk / gauge.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKGAUGEH__
12#define __GTKGAUGEH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/list.h"
21#include "wx/control.h"
22
23//-----------------------------------------------------------------------------
24// classes
25//-----------------------------------------------------------------------------
26
27class wxGauge;
28
1a56f55c
RR
29//-----------------------------------------------------------------------------
30// global data
31//-----------------------------------------------------------------------------
32
33extern const char* wxGaugeNameStr;
34
c801d85f
KB
35//-----------------------------------------------------------------------------
36// wxGaugeBox
37//-----------------------------------------------------------------------------
38
1a56f55c
RR
39class wxGauge: public wxControl
40{
41 DECLARE_DYNAMIC_CLASS(wxGauge)
42
43 public:
36b3b54a 44 inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; m_useProgressBar = TRUE; }
1a56f55c 45
36b3b54a 46 inline wxGauge( wxWindow *parent, wxWindowID id, int range,
1a56f55c
RR
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize,
debe6624 49 long style = wxGA_HORIZONTAL,
6de97a3b
RR
50 const wxValidator& validator = wxDefaultValidator,
51 const wxString& name = wxGaugeNameStr )
52 {
53 Create(parent, id, range, pos, size, style, validator, name);
54 }
36b3b54a 55 bool Create( wxWindow *parent, wxWindowID id, int range,
1a56f55c
RR
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize,
debe6624 58 long style = wxGA_HORIZONTAL,
6de97a3b 59 const wxValidator& validator = wxDefaultValidator,
1a56f55c 60 const wxString& name = wxGaugeNameStr );
6de97a3b
RR
61 void SetShadowWidth( int WXUNUSED(w) ) {};
62 void SetBezelFace( int WXUNUSED(w) ) {};
63 void SetRange( int r );
64 void SetValue( int pos );
36b3b54a
RR
65 int GetShadowWidth() const { return 0; };
66 int GetBezelFace() const { return 0; };
67 int GetRange() const;
68 int GetValue() const;
6de97a3b
RR
69
70 // Are we a Win95/GTK progress bar, or a normal gauge?
36b3b54a 71 inline bool GetProgressBar() const { return m_useProgressBar; }
58614078
RR
72
73 // implementation
74
75 void ApplyWidgetStyle();
76
1a56f55c
RR
77 int m_rangeMax;
78 int m_gaugePos;
79 bool m_useProgressBar;
80};
81
c801d85f 82#endif // __GTKGAUGEH__