GnuCashew ~ GnuCash Enabled Web
GCW
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 */
24 namespace GCW {
25  namespace Dbo {
26  namespace Prefrences {
27 
29 {
30  /// no account balances are reversed
31  NONE = 0x01,
32 
33  /// income and expense account balances are reversed
34  INCOME_EXPENSE = 0x02,
35 
36  /// credit account balances are reversed
37  CREDIT = 0x03
38 };
39 
40 /*!
41 ** \brief Account Register Highlighting
42 **
43 ** This controls how some of the display features of the
44 ** account-register window are handled
45 **
46 */
48 {
49  /// no highlight handling
50  NONE = 0x01,
51 
52  /// normal handling - neg values are red
53  NORMAL = 0x02,
54 
55  /// extra handling - neg values are gold-background-full-line
56  NEGVAL_EXTRA = 0x03,
57 };
58 
59 /*!
60 ** \brief Variables Item Class
61 **
62 **
63 */
64 class Item
65 {
66  public:
67 
68  Item( GCW::Dbo::Vars::Item::Ptr _varItem );
69 
71  auto accountRegisterHighlight( AccountRegisterHighlight _value ) const-> bool;
72  auto askOnDelete() const-> bool;
73 
74  private:
75 
77 
78 }; // endclass Item
79 
81 
82  } // endnamespace Prefrences {
83  } // endnamespace Dbo {
84 } // endnamespace GCW {
85 
86 #endif // end#ifndef __PREFRENCES_H___
87 
Wt::Dbo::ptr< Item > Ptr
Definition: BaseItem.h:39
Variables Item Class.
Definition: Prefrences.h:65
auto reverseBalanceAccounts() const -> ReverseBalanceAccounts
Definition: Prefrences.cpp:31
Item(GCW::Dbo::Vars::Item::Ptr _varItem)
Definition: Prefrences.cpp:12
GCW::Dbo::Vars::Item m_varItem
Definition: Prefrences.h:76
auto askOnDelete() const -> bool
Definition: Prefrences.cpp:54
auto accountRegisterHighlight(AccountRegisterHighlight _value) const -> bool
Definition: Prefrences.cpp:40
Variables Item Class.
Definition: Vars.h:36
@ 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:48
@ 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: Prefrences.cpp:19
Definition: App.h:17