X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c78e7c70271608b076b1dbed201b1204e6898d4..300aaa8f77daee5cd740c8c4cce63f40c6bfae4b:/src/qt/gauge.cpp diff --git a/src/qt/gauge.cpp b/src/qt/gauge.cpp index 274a64d982..14b5c4267d 100644 --- a/src/qt/gauge.cpp +++ b/src/qt/gauge.cpp @@ -1,10 +1,11 @@ ///////////////////////////////////////////////////////////////////////////// // 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 ///////////////////////////////////////////////////////////////////////////// @@ -14,38 +15,89 @@ #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 ; +}