GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Gui
AccountRegister
SuggestionPopup.cpp
Go to the documentation of this file.
1
#line 2 "src/Gui/AccountRegister/SuggestionPopup.cpp"
2
3
#include "../App.h"
4
#include "
SuggestionPopup.h
"
5
6
GCW::Gui::AccountRegister::SuggestionPopup::
7
SuggestionPopup
()
8
:
Wt
::WSuggestionPopup
9
(
10
Wt
::WSuggestionPopup::Options
11
{
12
"<b>"
,
// highlightBeginTag
13
"</b>"
,
// highlightEndTag
14
','
,
// listSeparator ()
15
" \n"
,
// whitespace
16
"()[]{}-., \"@\n;:"
,
// wordSeparators ()
17
""
// appendReplacedText ()
18
}
19
)
20
{
21
setAttributeValue(
"style"
,
"height:250px;overflow:scroll"
);
22
23
/*
24
** load all active accounts
25
*/
26
Wt::Dbo::Transaction
t(
GCW::app
()-> gnucashew_session() );
27
for
(
auto
accountItem :
GCW
::Dbo::Accounts::activeAccounts() )
28
addSuggestion(
GCW
::Dbo::Accounts::fullName( accountItem-> guid() ) );
29
30
}
// endAccountSuggestionPopup()
31
32
33
SuggestionPopup.h
GCW::Gui::AccountRegister::SuggestionPopup::SuggestionPopup
SuggestionPopup()
Definition
SuggestionPopup.cpp:7
Wt::Dbo::Transaction
GCW
Definition
App.h:18
GCW::app
App * app()
Definition
App.cpp:75
Wt
Generated on Sat Sep 13 2025 08:48:27 for GnuCashew ~ Web Application compatible with GnuCash sql data files. by
1.9.8