-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExpensesPage.hpp
87 lines (73 loc) · 1.76 KB
/
ExpensesPage.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/******************************************************************************
** (C) Chris Oldwood
**
** MODULE: EXPENSESPAGE.HPP
** COMPONENT: The Application.
** DESCRIPTION: The CExpensesPage class declaration.
**
*******************************************************************************
*/
// Check for previous inclusion
#ifndef EXPENSESPAGE_HPP
#define EXPENSESPAGE_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/CommonUI.hpp>
// Forward declarations.
class CTmpExps;
class CExpenseTypes;
/******************************************************************************
**
** This dialog is used to enter/edit balance sheet item expense details.
**
*******************************************************************************
*/
class CExpensesPage : public CPropertyPage
{
public:
//
// Constructors/Destructor.
//
CExpensesPage(CRow& oRow, CTmpExps& oTmpExps, CExpenseTypes& oTypes);
protected:
//
// Members.
//
CRow& m_oRow;
CTmpExps& m_oTmpExps;
CExpenseTypes& m_oTypes;
int m_nType;
int m_nTotal;
CRadioBtn m_rbNoDebit;
CRadioBtn m_rbFxdDebit;
CRadioBtn m_rbVarDebit;
CDecimalBox m_ebDebit;
CListView m_lvDebits;
//
// Message processors.
//
virtual void OnInitDialog();
virtual bool OnValidate();
virtual bool OnOk();
void OnNoDebit();
void OnFxdDebit();
void OnVarDebit();
void OnAddDebit();
void OnEditDebit();
void OnDelDebit();
LRESULT OnDblClick(NMHDR&);
//
// Internal methods.
//
void RefreshDebits();
void UpdateDebitBtns();
void UpdateDebitsTotal();
};
/******************************************************************************
**
** Implementation of inline functions.
**
*******************************************************************************
*/
#endif //EXPENSESPAGE_HPP