GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
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
15namespace 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*/
26{
27 public:
28
29 auto load( int _columnCount )-> void;
30
31 private:
32
33 auto load( Wt::WStandardItem * _treeItem, GCW::Dbo::Accounts::Item::Ptr _parentAccount )-> void;
34
35 int m_columnCount = -1;
36
37}; // endclass AccountsTreeViewModel
38
39 } // endnamespace Eng {
40} // endnamespace GCW {
41
42#endif // end __ENG_ACCOUNTSTREEVIEW_H___
43
44
Wt::Dbo::ptr< Item > Ptr
Definition BaseItem.h:39
auto load(int _columnCount) -> void
Definition App.h:18