GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Eng
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
class
AccountsTreeViewModel
25
:
public
Wt::WStandardItemModel
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
GCW::Dbo::BaseItem< Item >::Ptr
Wt::Dbo::ptr< Item > Ptr
Definition
BaseItem.h:39
GCW::Eng::AccountsTreeViewModel
AccountsTreeViewModel.
Definition
AccountsTreeViewModel.h:26
GCW::Eng::AccountsTreeViewModel::load
auto load(int _columnCount) -> void
Definition
AccountsTreeViewModel.cpp:18
GCW::Eng::AccountsTreeViewModel::m_columnCount
int m_columnCount
Definition
AccountsTreeViewModel.h:35
Wt::WStandardItemModel
Wt::WStandardItem
GCW
Definition
App.h:18
Generated on Sat Sep 13 2025 08:48:27 for GnuCashew ~ Web Application compatible with GnuCash sql data files. by
1.9.8