GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
SummaryWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/BillPay/SummaryWidget.h"
2
3#ifndef __GUI_BILLPAY_SUMMARYWIDGET_H___
4#define __GUI_BILLPAY_SUMMARYWIDGET_H___
5
6#include <Wt/WContainerWidget.h>
7#include <Wt/WLabel.h>
8#include <Wt/WTemplate.h>
9#include <Wt/WText.h>
10#include <Wt/WTable.h>
11
12namespace GCW {
13 namespace Gui {
14 namespace BillPay {
15
16/*!
17** \brief Summary Widget
18**
19** Bill Pay Summary Widget
20**
21
22*/
25{
26 public:
27
29
30 auto setMonth( int _month )-> void ;
31
32 /*
33 ** clicking on the pay-from account causes
34 ** an ID to be emitted allowing the table-view
35 ** to be positioned on the same item.
36 */
38
39 private:
40
41 typedef struct DAYTOTAL_S
42 {
43 int day ;
44 std::string bank ;
47
48
49 /*!
50 ** \brief Summary Splits
51 **
52 ** This is a convenience class to help manipulate all
53 ** of the splits associated with a Summary View. It
54 ** facilitates the rapid query of the various values
55 ** that are needed for the summary report.
56 **
57 */
58 class Splits
59 {
60 public:
61
62 /*!
63 ** \brief ctor
64 **
65 ** The splits are manipulated by month, since the
66 ** summary report shows all of the split values
67 ** for that selected month.
68 **
69 */
70 Splits( int _month );
71
72 /*
73 ** this returns all the guids of all the splits found.
74 */
75 auto splitGuids () const-> const std::vector< std::string > & ;
76
77 /*
78 ** return all the days represented by all the splits
79 */
80 auto days() const-> std::set< int > ;
81
82 /*
83 ** return a list of payments made on a day
84 */
85 auto dayPayments( int _day ) const-> std::vector< std::string > ;
86
87 /*
88 ** return all the pay-froms represented
89 */
90 auto payFroms() const-> std::set< std::string > ;
91
92 /*
93 ** return all the days represented by this one payFrom account
94 */
95 auto payFromDays( const std::string & _payFrom ) const-> std::set< int > ;
96
97 /*
98 ** return all the payment splits that were paid from this
99 ** account and paid on this day
100 */
101 auto paymentSplits( const std::string & _payFrom, int _day ) const-> std::vector< std::string > ;
102
103 /*
104 ** selected month
105 */
106 int m_month = -1;
107
108 /*
109 ** splits found in selected month
110 */
111 std::vector< std::string > m_splitGuids;
112
113 }; // endclass Splits
114
115 int m_month = -1 ;
119
120}; // endclass SummaryWidget
121
122 } // endnamespace BillPay {
123 } // endnamespace Gui {
124} // endnamespace GCW {
125
126#endif // __GUI_BILLPAY_SUMMARYWIDGET_H___
127
128
auto payFromDays(const std::string &_payFrom) const -> std::set< int >
auto payFroms() const -> std::set< std::string >
std::vector< std::string > m_splitGuids
auto splitGuids() const -> const std::vector< std::string > &
auto dayPayments(int _day) const -> std::vector< std::string >
auto paymentSplits(const std::string &_payFrom, int _day) const -> std::vector< std::string >
auto days() const -> std::set< int >
Wt::Signal< std::string > m_clicked
auto setMonth(int _month) -> void
struct GCW::Gui::BillPay::SummaryWidget::DAYTOTAL_S DayTotal_t
auto clicked() -> Wt::Signal< std::string > &
Widget * addNew(Args &&...args)
#define GCW_NUMERIC
Internal Numeric Type.
Definition gcwglobal.h:38
Definition App.h:18