GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
BillPay/MainWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/BillPay/MainWidget.h"
2
3#ifndef __GUI_BILLPAY_MAINWIDGET_H___
4#define __GUI_BILLPAY_MAINWIDGET_H___
5
6#include <Wt/WGridLayout.h>
7#include <Wt/WContainerWidget.h>
8
9#include "EditWidget.h"
10#include "SummaryWidget.h"
11#include "TableView.h"
12#include "ToolBar.h"
13
14namespace GCW {
15 namespace Gui {
16 namespace BillPay {
17
18/*!
19** \brief Bill Pay Widget
20**
21**
22*/
25{
26 public:
27
28 MainWidget();
29
30 private:
31
32 /*!
33 ** Build Content
34 */
35 auto buildContent()-> void ;
36
37 /*!
38 ** Do refresh clicked
39 */
40 auto do_refreshClicked()-> void ;
41
42 /*!
43 ** Do add clicked
44 */
45 auto do_addClicked()-> void ;
46
47 /*!
48 ** Do edit clicked
49 */
50 auto do_editClicked()-> void ;
51
52 /*!
53 ** Do inactive clicked
54 */
55 auto do_inactiveClicked()-> void ;
56
57 /*!
58 ** Do summary clicked
59 */
60 auto do_summaryClicked()-> void ;
61
62 /*!
63 ** Do year changed
64 */
65 auto do_yearChanged()-> void ;
66
67 /*!
68 ** Refresh Clicked Handler
69 */
70 auto refreshClicked()-> void ;
71
72 /*!
73 ** Add Clicked Handler
74 */
75 auto addClicked()-> void ;
76
77 /*!
78 ** Edit Clicked Handler
79 */
81
82 /*!
83 ** Open the Editor
84 */
85 auto openEditor( const std::string & _bpGuid )-> void ;
86
87 /*!
88 ** Set the current Month
89 */
90 auto setMonth( int _month )-> void ;
91
92 /*!
93 ** Refresh the views
94 */
95 auto refreshViews()-> void ;
96
97 /*!
98 ** Import Handler
99 */
100 auto importClicked()-> void ;
101
102 /*!
103 ** Export Handler
104 */
105 auto exportClicked()-> void ;
106
107 /*!
108 ** Clear table selections except for the indicated table
109 */
110 auto clearSelectionExcept( TableView * = nullptr )-> void ;
111
112 /*!
113 ** Summary Clicked Handler
114 */
115 auto summaryClicked( const std::string & _txGuid )-> void ;
116
117 /*!
118 ** Finder Input Handler
119 */
120 auto finderInput()-> void ;
121
122 /*!
123 ** Recall selected month from config.
124 */
125 auto recallSelectedMonth() const-> int ;
126
127 auto toolBar () const-> ToolBar * { return m_toolBar; }
128 auto pendingView () const-> TableView * { return m_pendingView; }
129 auto paidView () const-> TableView * { return m_paidView; }
130 auto unpaidView () const-> TableView * { return m_unpaidView; }
133
134 auto selectedMonth()-> int { return m_selectedMonth ; }
135 auto selectedYear()-> int ;
136
137 std::unique_ptr< EditWidgetDialog > m_dialog ;
138
139 /*
140 ** The edit widget gets loaded and unloaded for the
141 ** editing functions. Using an observing pointer
142 ** let's us know automatically when the editor is
143 ** open and when it's not.
144 **
145 */
147
154
155 auto on_headerClicked( int _col, const Wt::WMouseEvent _me )-> void ;
156
157 /*!
158 ** \brief Selected Index
159 **
160 ** When single-clicking through the interface, the currently selected
161 ** (clicked) item, so that if the 'edit' button is hit, we'll know
162 ** which was the last item clicked. This is important because there
163 ** are three possible table-views containing items, and we're never
164 ** sure which was the last table clicked in. So, on-click, in any of
165 ** the three tables, the clicked-item index will be stored here.
166 **
167 */
170
171// Wt::WGridLayout * m_gridLayout = nullptr ;
173
174}; // endclass MainWidget
175
176 } // endnamespace BillPay {
177 } // endnamespace Gui {
178} // endnamespace GCW {
179
180#endif // __GUI_BILLPAY_MAINWIDGET_H___
181
182
auto unpaidView() const -> TableView *
auto summaryClicked(const std::string &_txGuid) -> void
Wt::WModelIndex m_selectedIndex
Selected Index.
auto openEditor(const std::string &_bpGuid) -> void
auto editClicked(TableView *_table, Wt::WModelIndex _index) -> void
auto clearSelectionExcept(TableView *=nullptr) -> void
auto pendingView() const -> TableView *
auto paidView() const -> TableView *
auto summaryView() const -> SummaryWidget *
auto setMonth(int _month) -> void
auto on_headerClicked(int _col, const Wt::WMouseEvent _me) -> void
auto toolBar() const -> ToolBar *
Wt::Core::observing_ptr< EditWidget > m_editWidget
std::unique_ptr< EditWidgetDialog > m_dialog
auto inactiveView() const -> TableView *
Widget * addNew(Args &&...args)
Definition App.h:18