45 #include <Wt/WEvent.h> 46 #include <Wt/WLineEdit.h> 47 #include <Wt/WRegExpValidator.h> 49 #include <Wtx/Util/Util.h> 51 #include "FieldDefLineEdit.h" 90 :
public Wt::WLineEdit
98 if( m_fieldDef.forceUppercase() )
100 Wt::WLineEdit::blurred().connect(
this, &SmartLineEdit::on_blurred );
115 : Wt::WLineEdit(content),
131 if( m_fieldDef.forceUppercase() )
133 setValueText(
Wtx::ucase( valueText().toUTF8() ) );
144 std::unique_ptr<Wt::WWidget> Wtx::Dbo::FieldDefLineEdit::createEditWidget(
int sid,
Wtx::Dbo::Session & session )
const 146 auto retVal = std::make_unique<SmartLineEdit>(*this);
149 retVal-> setToolTip( toolTip() );
150 retVal-> setPlaceholderText( placeholderText() );
151 retVal-> setInputMask( inputMask() );
FieldDefLineEdit(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
std::string ucase(const std::string &value)
Upper Case a string.
Flags
Field Definition Flags.