1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:23:53 +00:00
openmw/apps/opencs/view/settings/rangeview.hpp

49 lines
1 KiB
C++
Raw Normal View History

2014-04-26 14:40:58 +00:00
#ifndef CSVSETTINGS_RANGEVIEW_HPP
#define CSVSETTINGS_RANGEVIEW_HPP
#include "view.hpp"
#include "../../model/settings/support.hpp"
class QStringListModel;
class QAbstractSpinBox;
2014-04-26 14:40:58 +00:00
namespace CSVSettings
{
class RangeView : public View
{
Q_OBJECT
QAbstractSpinBox *mRangeWidget;
CSMSettings::SettingType mRangeType;
2014-04-26 14:40:58 +00:00
public:
explicit RangeView (CSMSettings::Setting *setting,
Page *parent);
protected:
void updateView (bool signalUpdate = true) const;
void buildSpinBox (CSMSettings::Setting *setting);
2014-04-26 14:40:58 +00:00
private slots:
void slotUpdateView (int value);
void slotUpdateView (double value);
2014-04-26 14:40:58 +00:00
};
class RangeViewFactory : public QObject, public IViewFactory
{
Q_OBJECT
public:
explicit RangeViewFactory (QWidget *parent = 0)
: QObject (parent)
{}
RangeView *createView (CSMSettings::Setting *setting,
Page *parent);
};
}
#endif // CSVSETTINGS_RANGEVIEW_HPP