46 #include <Wt/WDoubleSpinBox.h> 48 #include "FieldDefDoubleSpin.h" 81 void Wtx::Dbo::FieldDefDoubleSpin::setMinMax(
double min,
double max )
87 void Wtx::Dbo::FieldDefDoubleSpin::setDecimals(
int precision )
89 m_precision = precision;
92 std::unique_ptr<Wt::WWidget> Wtx::Dbo::FieldDefDoubleSpin::createEditWidget(
int sid,
Wtx::Dbo::Session & session )
const 94 auto retVal = std::make_unique<Wt::WDoubleSpinBox>();
96 retVal-> setMinimum( m_min );
97 retVal-> setMaximum( m_max );
98 retVal-> setDecimals( m_precision );
FieldDefDoubleSpin(TableDef &td, const char *fn, int w=-1, int h=-1, Flags f=Flags::None, std::string lb="", std::string ph="", std::string inf="", std::string tt="", int ht=-1)
ctor
Flags
Field Definition Flags.