46 #ifndef __WTX_DBO_FORMWIDGETWRAPPER_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 47 #define __WTX_DBO_FORMWIDGETWRAPPER_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 57 FormWidgetWrapper( Wt::WFormModel * model, Wt::WFormModel::Field field, Wt::WFormWidget * widget )
63 widget-> focussed().connect(
this, &FormWidgetWrapper::on_focussed );
64 widget-> blurred() .connect(
this, &FormWidgetWrapper::on_blurred );
65 m_prevValue = widget-> valueText().toUTF8();
66 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << field() << std::endl;
70 Wt::Signal<FormWidgetWrapper*> & focussed()
75 Wt::Signal<FormWidgetWrapper*> & blurred()
80 Wt::WFormModel * model()
const 85 Wt::WFormModel::Field field()
const 90 Wt::WFormWidget * widget()
const 95 const std::string & previousValue()
const 104 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << std::endl;
106 m_focussed.emit(
this);
111 m_blurred.emit(
this);
114 Wt::WFormModel * m_model =
nullptr;
115 Wt::WFormModel::Field m_field =
nullptr;
116 Wt::WFormWidget * m_widget =
nullptr;
118 Wt::Signal<FormWidgetWrapper*> m_focussed;
119 Wt::Signal<FormWidgetWrapper*> m_blurred;
121 std::string m_prevValue;
128 #endif // __WTX_DBO_FORMWIDGETWRAPPER_H___