1#line 2 "src/Gui/AccountRegister/DelegateReconcile.cpp"
3#include <Wt/WHBoxLayout.h>
4#include <Wt/WDateTime.h>
27 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << __FUNCTION__
28 <<
" (" << _index.row() <<
"," << _index.column() <<
")"
33 std::cout << __FILE__ <<
":" << __LINE__
34 <<
"(): " << _index.row() <<
"," << _index.column()
35 <<
" ReconcileDelegate::" << __FUNCTION__
45 auto retVal = std::make_unique< Wt::WContainerWidget >();
46 retVal-> setSelectable(
true );
63 auto reconciledEdit = std::make_unique< Wt::WText >();
65 reconciledEdit-> setText( reconciled );
70 reconciledEdit-> setAttributeValue(
"style",
"background-color:yellow;border-radius:4px;border:1px solid rgb(204,204,204)" );
85 retVal-> setLayout( std::make_unique< Wt::WHBoxLayout >() );
86 retVal-> layout()-> setContentsMargins( 0,0,0,0 );
87 retVal-> layout()-> addWidget( std::move( reconciledEdit ) );
98 std::cout << __FILE__ <<
":" << __LINE__ <<
" ReconciledDelegate::doCloseEditor()" << std::endl;
101 closeEditor().emit( _editor, _save );
104 m_editorClosed.emit( m_row, m_col );
116 std::cout << __FILE__ <<
":" << __LINE__ <<
" ReconciledDelegate::doTabAction()" << std::endl;
127 auto ed =
dynamic_cast< Wt::WText*
>( cw-> children().at(0) );
130 std::cout << __FILE__ <<
":" << __LINE__
131 <<
" Wt::cpp17::any ReconcileDelegate::editState()"
132 <<
" r:" << _index.row()
133 <<
" c:" << _index.column()
134 <<
" i:" << cw-> id()
135 <<
" n:" << cw-> objectName()
136 <<
" s:" << cw-> children().size()
137 <<
" t:" <<
typeid( cw-> children().at(0) ).name()
152 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << __FUNCTION__
154 <<
" " << _index.row() <<
"," << _index.column()
155 <<
" " << _value.type().name()
172 std::cout << __FILE__ <<
":" << __LINE__
173 <<
" ReconciledDelegate::setModelData()"
174 <<
" " << _index.row()
175 <<
" " << _index.column()
virtual auto setModelData(const Wt::cpp17::any &_editState, Wt::WAbstractItemModel *_model, const Wt::WModelIndex &_index) const -> void
virtual auto setModelData(const Wt::cpp17::any &_editState, Wt::WAbstractItemModel *_model, const Wt::WModelIndex &_index) const -> void
virtual auto setEditState(Wt::WWidget *_editor, const Wt::WModelIndex &_index, const Wt::cpp17::any &_value) const -> void
virtual auto createEditor(const Wt::WModelIndex &_index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags) const -> std::unique_ptr< Wt::WWidget >
virtual auto doTabAction(Wt::WKeyEvent _keyEvent) const -> void
virtual auto doCloseEditor(Wt::WLineEdit *_editor, bool _save) const -> void
virtual auto editState(Wt::WWidget *_editor, const Wt::WModelIndex &_index) const -> Wt::cpp17::any override
DelegateReconcile()
Reconcile Delegate.
static constexpr const int Edit
WString asString(const cpp17::any &v, const WString &formatString=WString())