46 #include <Wt/WSpinBox.h> 48 #include "FieldDefNumberEdit.h" 81 void Wtx::Dbo::FieldDefNumberEdit::setMinMax(
int min,
int max )
87 std::unique_ptr<Wt::WWidget> Wtx::Dbo::FieldDefNumberEdit::createEditWidget(
int sid,
Wtx::Dbo::Session & session )
const 89 auto retVal = std::make_unique<Wt::WSpinBox>();
91 retVal-> setMinimum( m_min );
92 retVal-> setMaximum( m_max );
FieldDefNumberEdit(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.