Addition of overrids in scrolbar.h, slider.h and vscroll.h
This commit is contained in:
@@ -36,14 +36,14 @@ public:
|
|||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxScrollBarNameStr);
|
const wxString& name = wxScrollBarNameStr);
|
||||||
|
|
||||||
virtual int GetThumbPosition() const ;
|
virtual int GetThumbPosition() const wxOVERRIDE;
|
||||||
virtual int GetThumbSize() const { return m_viewSize; }
|
virtual int GetThumbSize() const wxOVERRIDE { return m_viewSize; }
|
||||||
virtual int GetPageSize() const { return m_pageSize; }
|
virtual int GetPageSize() const wxOVERRIDE { return m_pageSize; }
|
||||||
virtual int GetRange() const { return m_objectSize; }
|
virtual int GetRange() const wxOVERRIDE { return m_objectSize; }
|
||||||
|
|
||||||
virtual void SetThumbPosition(int viewStart);
|
virtual void SetThumbPosition(int viewStart) wxOVERRIDE;
|
||||||
virtual void SetScrollbar(int position, int thumbSize, int range,
|
virtual void SetScrollbar(int position, int thumbSize, int range,
|
||||||
int pageSize, bool refresh = true);
|
int pageSize, bool refresh = true) wxOVERRIDE;
|
||||||
|
|
||||||
// needed for RTTI
|
// needed for RTTI
|
||||||
void SetThumbSize( int s ) { SetScrollbar( GetThumbPosition() , s , GetRange() , GetPageSize() , true ) ; }
|
void SetThumbSize( int s ) { SetScrollbar( GetThumbPosition() , s , GetRange() , GetPageSize() , true ) ; }
|
||||||
@@ -51,11 +51,11 @@ public:
|
|||||||
void SetRange( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , s , GetPageSize() , true ) ; }
|
void SetRange( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , s , GetPageSize() , true ) ; }
|
||||||
|
|
||||||
// implementation only from now on
|
// implementation only from now on
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event) wxOVERRIDE;
|
||||||
virtual void TriggerScrollEvent( wxEventType scrollEvent ) ;
|
virtual void TriggerScrollEvent( wxEventType scrollEvent ) wxOVERRIDE;
|
||||||
virtual bool OSXHandleClicked( double timestampsec );
|
virtual bool OSXHandleClicked( double timestampsec ) wxOVERRIDE;
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
|
|
||||||
int m_pageSize;
|
int m_pageSize;
|
||||||
int m_viewSize;
|
int m_viewSize;
|
||||||
|
@@ -43,53 +43,53 @@ public:
|
|||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxSliderNameStr);
|
const wxString& name = wxSliderNameStr);
|
||||||
|
|
||||||
virtual int GetValue() const ;
|
virtual int GetValue() const wxOVERRIDE;
|
||||||
virtual void SetValue(int);
|
virtual void SetValue(int) wxOVERRIDE;
|
||||||
|
|
||||||
void SetRange(int minValue, int maxValue);
|
void SetRange(int minValue, int maxValue) wxOVERRIDE;
|
||||||
|
|
||||||
int GetMin() const { return m_rangeMin; }
|
int GetMin() const wxOVERRIDE { return m_rangeMin; }
|
||||||
int GetMax() const { return m_rangeMax; }
|
int GetMax() const wxOVERRIDE { return m_rangeMax; }
|
||||||
|
|
||||||
void SetMin(int minValue) { SetRange(minValue, m_rangeMax); }
|
void SetMin(int minValue) { SetRange(minValue, m_rangeMax); }
|
||||||
void SetMax(int maxValue) { SetRange(m_rangeMin, maxValue); }
|
void SetMax(int maxValue) { SetRange(m_rangeMin, maxValue); }
|
||||||
|
|
||||||
// For trackbars only
|
// For trackbars only
|
||||||
int GetTickFreq() const { return m_tickFreq; }
|
int GetTickFreq() const wxOVERRIDE { return m_tickFreq; }
|
||||||
void SetPageSize(int pageSize);
|
void SetPageSize(int pageSize) wxOVERRIDE;
|
||||||
int GetPageSize() const ;
|
int GetPageSize() const wxOVERRIDE;
|
||||||
void ClearSel() ;
|
void ClearSel() wxOVERRIDE;
|
||||||
void ClearTicks() ;
|
void ClearTicks() wxOVERRIDE;
|
||||||
void SetLineSize(int lineSize);
|
void SetLineSize(int lineSize) wxOVERRIDE;
|
||||||
int GetLineSize() const ;
|
int GetLineSize() const wxOVERRIDE;
|
||||||
int GetSelEnd() const ;
|
int GetSelEnd() const wxOVERRIDE;
|
||||||
int GetSelStart() const ;
|
int GetSelStart() const wxOVERRIDE;
|
||||||
void SetSelection(int minPos, int maxPos);
|
void SetSelection(int minPos, int maxPos) wxOVERRIDE;
|
||||||
void SetThumbLength(int len) ;
|
void SetThumbLength(int len) wxOVERRIDE;
|
||||||
int GetThumbLength() const ;
|
int GetThumbLength() const wxOVERRIDE;
|
||||||
void SetTick(int tickPos) ;
|
void SetTick(int tickPos) wxOVERRIDE;
|
||||||
|
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event) wxOVERRIDE;
|
||||||
// osx specific event handling common for all osx-ports
|
// osx specific event handling common for all osx-ports
|
||||||
|
|
||||||
virtual bool OSXHandleClicked( double timestampsec );
|
virtual bool OSXHandleClicked( double timestampsec ) wxOVERRIDE;
|
||||||
virtual void TriggerScrollEvent( wxEventType scrollEvent ) ;
|
virtual void TriggerScrollEvent( wxEventType scrollEvent ) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Platform-specific implementation of SetTickFreq
|
// Platform-specific implementation of SetTickFreq
|
||||||
virtual void DoSetTickFreq(int freq);
|
virtual void DoSetTickFreq(int freq) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
virtual void DoSetSize(int x, int y, int w, int h, int sizeFlags);
|
virtual void DoSetSize(int x, int y, int w, int h, int sizeFlags) wxOVERRIDE;
|
||||||
virtual void DoMoveWindow(int x, int y, int w, int h);
|
virtual void DoMoveWindow(int x, int y, int w, int h) wxOVERRIDE;
|
||||||
|
|
||||||
// set min/max size of the slider
|
// set min/max size of the slider
|
||||||
virtual void DoSetSizeHints( int minW, int minH,
|
virtual void DoSetSizeHints( int minW, int minH,
|
||||||
int maxW, int maxH,
|
int maxW, int maxH,
|
||||||
int incW, int incH);
|
int incW, int incH) wxOVERRIDE;
|
||||||
|
|
||||||
// Common processing to invert slider values based on wxSL_INVERSE
|
// Common processing to invert slider values based on wxSL_INVERSE
|
||||||
virtual int ValueInvertOrNot(int value) const;
|
virtual int ValueInvertOrNot(int value) const wxOVERRIDE;
|
||||||
|
|
||||||
wxStaticText* m_macMinimumStatic ;
|
wxStaticText* m_macMinimumStatic ;
|
||||||
wxStaticText* m_macMaximumStatic ;
|
wxStaticText* m_macMaximumStatic ;
|
||||||
|
@@ -727,7 +727,7 @@ public:
|
|||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
protected:
|
protected:
|
||||||
virtual void UpdateMacScrollWindow() { Update(); }
|
virtual void UpdateMacScrollWindow() wxOVERRIDE { Update(); }
|
||||||
#endif // __WXMAC__
|
#endif // __WXMAC__
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -794,7 +794,7 @@ public:
|
|||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
protected:
|
protected:
|
||||||
virtual void UpdateMacScrollWindow() { Update(); }
|
virtual void UpdateMacScrollWindow() wxOVERRIDE { Update(); }
|
||||||
#endif // __WXMAC__
|
#endif // __WXMAC__
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -859,7 +859,7 @@ public:
|
|||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
protected:
|
protected:
|
||||||
virtual void UpdateMacScrollWindow() { Update(); }
|
virtual void UpdateMacScrollWindow() wxOVERRIDE { Update(); }
|
||||||
#endif // __WXMAC__
|
#endif // __WXMAC__
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user