GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
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
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
Definition App.h:18
App * app()
Definition App.cpp:75