/////////////////////////////////////////////////////////////////////////////
// Name: gauge.cpp
-// Purpose:
-// Author: Robert Roebling
-// Created: 01/02/97
-// Id:
-// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Purpose: wxGauge class
+// Author: AUTHOR
+// Modified by:
+// Created: ??/??/98
+// RCS-ID: $Id$
+// Copyright: (c) AUTHOR
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/gauge.h"
-//-----------------------------------------------------------------------------
-// wxGauge
-//-----------------------------------------------------------------------------
+IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
-IMPLEMENT_DYNAMIC_CLASS(wxGauge,wxControl)
+bool wxGauge::Create(wxWindow *parent, wxWindowID id,
+ int range,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator& validator,
+ const wxString& name)
+{
+ SetName(name);
+ SetValidator(validator);
+ m_rangeMax = range;
+ m_windowStyle = style;
+
+ if (parent) parent->AddChild(this);
+
+ if ( id == -1 )
+ m_windowId = (int)NewControlId();
+ else
+ m_windowId = id;
+
+
+ // TODO
+ return FALSE;
+}
+
+void wxGauge::SetSize(int x, int y, int width, int height, int sizeFlags)
+{
+ // TODO
+}
+
+void wxGauge::SetShadowWidth(int w)
+{
+ // TODO optional
+}
+
+void wxGauge::SetBezelFace(int w)
+{
+ // TODO optional
+}
+
+void wxGauge::SetRange(int r)
+{
+ m_rangeMax = r;
+ // TODO
+}
+
+void wxGauge::SetValue(int pos)
+{
+ m_gaugePos = pos;
+ // TODO
+}
+
+int wxGauge::GetShadowWidth() const
+{
+ // TODO optional
+ return 0;
+}
-bool wxGauge::Create( wxWindow *parent, wxWindowID id, int range,
- const wxPoint& pos, const wxSize& size,
- long style, const wxString& name )
+int wxGauge::GetBezelFace() const
{
- return TRUE;
-};
+ // TODO optional
+ return 0;
+}
-void wxGauge::SetRange( int r )
+int wxGauge::GetRange() const
{
- m_rangeMax = r;
- if (m_gaugePos > m_rangeMax) m_gaugePos = m_rangeMax;
-};
+ return m_rangeMax;
+}
-void wxGauge::SetValue( int pos )
+int wxGauge::GetValue() const
{
- m_gaugePos = pos;
- if (m_gaugePos > m_rangeMax) m_gaugePos = m_rangeMax;
-};
+ return m_gaugePos;
+}
-int wxGauge::GetRange(void) const
+void wxGauge::SetForegroundColour(const wxColour& col)
{
- return m_rangeMax;
-};
+ m_foregroundColour = col ;
+}
-int wxGauge::GetValue(void) const
+void wxGauge::SetBackgroundColour(const wxColour& col)
{
- return m_gaugePos;
-};
+ m_backgroundColour = col ;
+}