#ifndef _WX_SLIDER_H_
#define _WX_SLIDER_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "slider.h"
-#endif
-
#include "wx/control.h"
#include "wx/slider.h"
#include "wx/stattext.h"
-WXDLLEXPORT_DATA(extern const wxChar*) wxSliderNameStr;
+WXDLLIMPEXP_DATA_CORE(extern const char) wxSliderNameStr[];
// Slider
-class WXDLLEXPORT wxSlider: public wxSliderBase
+class WXDLLIMPEXP_CORE wxSlider: public wxSliderBase
{
DECLARE_DYNAMIC_CLASS(wxSlider)
Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name);
}
- ~wxSlider();
+ virtual ~wxSlider();
bool Create(wxWindow *parent, wxWindowID id,
int value, int minValue, int maxValue,
int GetThumbLength() const ;
void SetTick(int tickPos) ;
- // set min/max size of the slider
- virtual void DoSetSizeHints( int minW, int minH,
- int maxW = -1, int maxH = -1,
- int incW = -1, int incH = -1 );
+ void Command(wxCommandEvent& event);
+ virtual wxInt32 MacControlHit(WXEVENTHANDLERREF handler, WXEVENTREF event);
+ void MacHandleControlClick(WXWidget control, wxInt16 controlpart, bool mouseStillDown);
protected:
virtual wxSize DoGetBestSize() const;
virtual void DoSetSize(int x, int y, int w, int h, int sizeFlags);
virtual void DoMoveWindow(int x, int y, int w, int h);
- void Command(wxCommandEvent& event);
- virtual wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
- void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ;
+ // set min/max size of the slider
+ virtual void DoSetSizeHints( int minW, int minH,
+ int maxW, int maxH,
+ int incW, int incH);
// Common processing to invert slider values based on wxSL_INVERSE
virtual int ValueInvertOrNot(int value) const;