GnuCashew ~ GnuCash Enabled Web
GCW
AccountsTreeViewModel.h
Go to the documentation of this file.
1 #line 2 "src/Eng/AccountsTreeViewModel.h"
2 
3 #ifndef __ENG_ACCOUNTSTREEVIEWMODEL_H___
4 #define __ENG_ACCOUNTSTREEVIEWMODEL_H___
5 
6 #include <Wt/Json/Object.h>
7 #include <Wt/WContainerWidget.h>
8 #include <Wt/WTreeView.h>
9 #include <Wt/WStandardItem.h>
10 #include <Wt/WStandardItemModel.h>
11 
12 #include "../define.h"
13 #include "../Dbo/Accounts/Accounts.h"
14 
15 namespace GCW {
16  namespace Eng {
17 
18 /*!
19 ** \brief AccountsTreeViewModel
20 **
21 ** This builds a tree-type model for the Accounts to allow them to be
22 ** displayed and interacted with in a WTreeView type object.
23 **
24 */
26 : public Wt::WStandardItemModel
27 {
28  public:
29 
30  auto load( int _columnCount )-> void;
31 
32  private:
33 
34  auto load( Wt::WStandardItem * _treeItem, GCW::Dbo::Accounts::Item::Ptr _parentAccount )-> void;
35 
36  int m_columnCount = -1;
37 
38 }; // endclass AccountsTreeViewModel
39 
40  } // endnamespace Eng {
41 } // endnamespace GCW {
42 
43 #endif // end __ENG_ACCOUNTSTREEVIEW_H___
44 
45 
Wt::Dbo::ptr< Item > Ptr
Definition: BaseItem.h:39
auto load(int _columnCount) -> void
Definition: App.h:17