45 #include <Wt/WEvent.h> 46 #include <Wt/WLineEdit.h> 47 #include <Wt/WRegExpValidator.h> 49 #include <Wtx/Util/Util.h> 52 #include "FieldDefDateTimeEdit.h" 77 :
public Wt::WLineEdit
85 if( m_fieldDef.forceUppercase() )
87 Wt::WLineEdit::blurred().connect(
this, &SmartLineEdit::on_blurred );
90 setAutoComplete(
false );
103 : Wt::WLineEdit(content),
119 if( m_fieldDef.forceUppercase() )
121 setValueText(
Wtx::ucase( valueText().toUTF8() ) );
132 std::unique_ptr<Wt::WWidget> Wtx::Dbo::FieldDefDateTimeEdit::createEditWidget(
int sid,
Wtx::Dbo::Session & session )
const 134 auto retVal = std::make_unique<SmartLineEdit>(*this);
137 retVal-> setPlaceholderText( placeholderText() );
138 retVal-> setInputMask( inputMask() );
std::string ucase(const std::string &value)
Upper Case a string.
Flags
Field Definition Flags.
FieldDefDateTimeEdit(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