2014-08-23 21:50:11 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/spinbutt.h
|
2014-08-28 23:37:46 -04:00
|
|
|
// Author: Peter Most, Mariano Reingart
|
|
|
|
// Copyright: (c) 2010 wxWidgets dev team
|
2014-08-23 21:50:11 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_SPINBUTT_H_
|
|
|
|
#define _WX_QT_SPINBUTT_H_
|
|
|
|
|
|
|
|
#include "wx/spinbutt.h"
|
2016-08-25 11:56:00 -04:00
|
|
|
class QSpinBox;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxSpinButton();
|
|
|
|
wxSpinButton(wxWindow *parent,
|
|
|
|
wxWindowID id = -1,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxSP_VERTICAL,
|
|
|
|
const wxString& name = wxSPIN_BUTTON_NAME);
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id = -1,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxSP_VERTICAL,
|
|
|
|
const wxString& name = wxSPIN_BUTTON_NAME);
|
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual int GetValue() const wxOVERRIDE;
|
|
|
|
virtual void SetValue(int val) wxOVERRIDE;
|
2019-02-22 11:18:17 -05:00
|
|
|
virtual void SetRange(int min, int max) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual QWidget *GetHandle() const wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
QSpinBox *m_qtSpinBox;
|
|
|
|
|
|
|
|
wxDECLARE_DYNAMIC_CLASS( wxSpinButton );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_QT_SPINBUTT_H_
|