X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c78e7c70271608b076b1dbed201b1204e6898d4..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/qt/gauge.cpp?ds=inline diff --git a/src/qt/gauge.cpp b/src/qt/gauge.cpp index 274a64d982..8e11c5001b 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,91 @@ #include "wx/gauge.h" -//----------------------------------------------------------------------------- -// wxGauge -//----------------------------------------------------------------------------- +#if !USE_SHARED_LIBRARY +IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl) +#endif + +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 +} -IMPLEMENT_DYNAMIC_CLASS(wxGauge,wxControl) +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 ; +}