GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Gui
AccountRegister
DelegateValue.cpp
Go to the documentation of this file.
1
#line 2 "src/Gui/AccountRegister/DelegateValue.cpp"
2
3
#include "
Editor.h
"
4
#include "
DelegateValue.h
"
5
6
/* * * * * * * * * * * * * * * * * * * * * * * * * * */
7
8
GCW::Gui::AccountRegister::DelegateValue::
9
DelegateValue
()
10
{
11
// std::cout << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << "(): " << std::endl;
12
}
13
14
GCW::Gui::AccountRegister::DelegateValue::
15
~DelegateValue
()
16
{
17
// std::cout << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << "(): " << std::endl;
18
}
19
20
auto
21
GCW::Gui::AccountRegister::DelegateValue::
22
createEditor
(
const
Wt::WModelIndex
& _index,
Wt::WFlags< Wt::ViewItemRenderFlag >
_flags )
const
-> std::unique_ptr< Wt::WWidget >
23
{
24
#ifdef NEVER
25
std::cout << __FILE__ <<
":"
<< __LINE__
26
<<
"(): "
<< _index.row() <<
","
<< _index.column()
27
<<
" ValueDelegate::"
<< __FUNCTION__
28
<<
" '"
<<
Wt::asString
( _index.data(
Wt::ItemDataRole::Edit
) ) <<
"'"
29
<< std::endl;
30
#endif
31
32
auto
retVal =
DelegateBase::createEditor
( _index, _flags );
33
auto
cw =
dynamic_cast<
Wt::WContainerWidget
*
>
( retVal.get() );
34
auto
lineEdit =
dynamic_cast<
Wt::WLineEdit
*
>
( cw-> widget(0) );
35
36
return
retVal;
37
38
}
// endcreateEditor( const Wt::WModelIndex & _index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags ) const-> std::unique_ptr< Wt::WWidget >
39
40
41
DelegateValue.h
Editor.h
GCW::Gui::AccountRegister::DelegateBase::createEditor
virtual auto createEditor(const Wt::WModelIndex &index, Wt::WFlags< Wt::ViewItemRenderFlag > flags) const -> std::unique_ptr< Wt::WWidget >
Definition
DelegateBase.cpp:32
GCW::Gui::AccountRegister::DelegateValue::DelegateValue
DelegateValue()
Definition
DelegateValue.cpp:9
GCW::Gui::AccountRegister::DelegateValue::createEditor
virtual auto createEditor(const Wt::WModelIndex &_index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags) const -> std::unique_ptr< Wt::WWidget >
Definition
DelegateValue.cpp:22
GCW::Gui::AccountRegister::DelegateValue::~DelegateValue
~DelegateValue()
Definition
DelegateValue.cpp:15
Wt::ItemDataRole::Edit
static constexpr const int Edit
Wt::WContainerWidget
Wt::WFlags
Wt::WLineEdit
Wt::WModelIndex
Wt::asString
WString asString(const cpp17::any &v, const WString &formatString=WString())
Generated on Sat Sep 13 2025 08:48:27 for GnuCashew ~ Web Application compatible with GnuCash sql data files. by
1.9.8