2014-08-23 21:50:11 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/gauge.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_GAUGE_H_
|
|
|
|
#define _WX_QT_GAUGE_H_
|
|
|
|
|
|
|
|
#include <QtWidgets/QProgressBar>
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxGauge : public wxGaugeBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGauge();
|
|
|
|
|
|
|
|
wxGauge(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
int range,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxGA_HORIZONTAL,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxGaugeNameStr);
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
int range,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxGA_HORIZONTAL,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxGaugeNameStr);
|
|
|
|
|
|
|
|
virtual QProgressBar *GetHandle() const;
|
|
|
|
|
|
|
|
// set/get the control range
|
|
|
|
virtual void SetRange(int range);
|
|
|
|
virtual int GetRange() const;
|
|
|
|
|
|
|
|
virtual void SetValue(int pos);
|
|
|
|
virtual int GetValue() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QProgressBar *m_qtProgressBar;
|
|
|
|
|
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxGauge);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_QT_GAUGE_H_
|