GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Prefrences.h
Go to the documentation of this file.
1#line 2 "src/Dbo/Prefrences.h"
2
3#ifndef __DBO_PREFRENCES_H___
4#define __DBO_PREFRENCES_H___
5
6#include "Vars/Vars.h"
7
8/*
9** Predefine the class that fixin to come up.
10**
11*/
12//namespace GCW {
13// namespace Dbo {
14// namespace Prefrences {
15// class Item;
16// }
17// }
18//}
19
20/*
21** Now we can start building our class!
22**
23*/
24namespace GCW {
25 namespace Dbo {
26 namespace Prefrences {
27
28/*!
29** \brief Reversed Balance Accounts
30**
31** Reverse Balanced accounts: This option lets you determine whether account balances
32** will display as positive or negative numbers:
33**
34** - Income & Expense assigns a positive credit balance to income account balances and a negative debit balance to expense account balances.
35** - Credit accounts (default) displays a positive balance for account types that would normally carry a credit balance (income, credit, liability, equity).
36** - None shows all credit balances as negative and all debit balances as positive.
37**
38*/
40{
41 /// no account balances are reversed
42 NONE = 0x01,
43
44 /// income and expense account balances are reversed
45 INCOME_EXPENSE = 0x02,
46
47 /// credit account balances are reversed
48 CREDIT = 0x03
49};
50
51/*!
52** \brief Account Register Highlighting
53**
54** This controls how some of the display features of the
55** account-register window are handled
56**
57*/
59{
60 /// no highlight handling
61 NONE = 0x01,
62
63 /// normal handling - neg values are red
64 NORMAL = 0x02,
65
66 /// extra handling - neg values are gold-background-full-line
67 NEGVAL_EXTRA = 0x03,
68};
69
70/*!
71** \brief Variables Item Class
72**
73**
74*/
75class Item
76{
77 public:
78
80
82 auto accountRegisterHighlight( AccountRegisterHighlight _value ) const-> bool;
83 auto askOnDelete() const-> bool;
84
85 private:
86
88
89}; // endclass Item
90
92
93 } // endnamespace Prefrences {
94 } // endnamespace Dbo {
95} // endnamespace GCW {
96
97#endif // end#ifndef __PREFRENCES_H___
98
Wt::Dbo::ptr< Item > Ptr
Definition BaseItem.h:39
Variables Item Class.
Definition Prefrences.h:76
auto reverseBalanceAccounts() const -> ReverseBalanceAccounts
GCW::Dbo::Vars::Item m_varItem
Definition Prefrences.h:87
auto askOnDelete() const -> bool
auto accountRegisterHighlight(AccountRegisterHighlight _value) const -> bool
Variables Item Class.
Definition Vars.h:36
ReverseBalanceAccounts
Reversed Balance Accounts.
Definition Prefrences.h:40
@ INCOME_EXPENSE
income and expense account balances are reversed
@ NONE
no account balances are reversed
@ CREDIT
credit account balances are reversed
AccountRegisterHighlight
Account Register Highlighting.
Definition Prefrences.h:59
@ NORMAL
normal handling - neg values are red
@ NEGVAL_EXTRA
extra handling - neg values are gold-background-full-line
auto get() -> GCW::Dbo::Prefrences::Item
Definition App.h:18