GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Gui
AccountRegister
DelegateAccount.cpp
Go to the documentation of this file.
1
#line 2 "src/Gui/AccountRegister/DelegateAccount.cpp"
2
3
#include "
Editor.h
"
4
#include "
DelegateAccount.h
"
5
6
/* * * * * * * * * * * * * * * * * * * * * * * * * * */
7
8
GCW::Gui::AccountRegister::DelegateAccount::
9
DelegateAccount
()
10
{
11
// std::cout << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << "(): " << std::endl;
12
}
13
14
GCW::Gui::AccountRegister::DelegateAccount::
15
~DelegateAccount
()
16
{
17
// std::cout << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << "(): " << std::endl;
18
}
19
20
auto
21
GCW::Gui::AccountRegister::DelegateAccount::
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
<<
" AccountDelegate::"
<< __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
#warning fix me
37
// auto popup = retVal-> addChild( std::make_unique< GCW::Gui::AccountSuggestionPopup >() );
38
// popup-> forEdit( lineEdit, Wt::PopupTrigger::Editing /* | Wt::PopupTrigger::DropDownIcon */ );
39
40
return
retVal;
41
42
}
// endcreateEditor( const Wt::WModelIndex & _index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags ) const-> std::unique_ptr< Wt::WWidget >
43
44
45
DelegateAccount.h
Editor.h
GCW::Gui::AccountRegister::DelegateAccount::DelegateAccount
DelegateAccount()
Definition
DelegateAccount.cpp:9
GCW::Gui::AccountRegister::DelegateAccount::~DelegateAccount
~DelegateAccount()
Definition
DelegateAccount.cpp:15
GCW::Gui::AccountRegister::DelegateAccount::createEditor
virtual auto createEditor(const Wt::WModelIndex &_index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags) const -> std::unique_ptr< Wt::WWidget >
Definition
DelegateAccount.cpp:22
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
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