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 auto buildContent()-> void ;
33 auto do_addClicked()-> void ;
34 auto do_editClicked()-> void ;
35 auto do_inactiveClicked()-> void ;
36 auto do_summaryClicked()-> void ;
37 auto addClicked()-> void ;
39 auto openEditor( const std::string & _bpGuid )-> void ;
40 auto setMonth( int _month )-> void ;
41 auto refreshViews()-> void ;
42 auto importClicked()-> void ;
43 auto exportClicked()-> void ;
44 auto clearSelectionExcept( TableView * = nullptr )-> void ;
45 auto summaryClicked( const std::string & _txGuid )-> void ;
46
47 auto selectedMonth()-> int { return m_selectedMonth ; }
48 auto selectedYear()-> int ;
49
50 std::unique_ptr< EditWidgetDialog > m_dialog ;
51
52 /*
53 ** The edit widget gets loaded and unloaded for the
54 ** editing functions. Using an observing pointer
55 ** let's us know automatically when the editor is
56 ** open and when it's not.
57 **
58 */
60
67
68 auto on_headerClicked( int _col, const Wt::WMouseEvent _me )-> void ;
69
70 /*!
71 ** \brief Selected Index
72 **
73 ** When single-clicking through the interface, the currently selected
74 ** (clicked) item, so that if the 'edit' button is hit, we'll know
75 ** which was the last item clicked. This is important because there
76 ** are three possible table-views containing items, and we're never
77 ** sure which was the last table clicked in. So, on-click, in any of
78 ** the three tables, the clicked-item index will be stored here.
79 **
80 */
83
84// Wt::WGridLayout * m_gridLayout = nullptr ;
86
87}; // endclass MainWidget
88
89 } // endnamespace BillPay {
90 } // endnamespace Gui {
91} // endnamespace GCW {
92
93#endif // __GUI_BILLPAY_MAINWIDGET_H___
94
95
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 setMonth(int _month) -> void
auto on_headerClicked(int _col, const Wt::WMouseEvent _me) -> void
Wt::Core::observing_ptr< EditWidget > m_editWidget
std::unique_ptr< EditWidgetDialog > m_dialog
Widget * addNew(Args &&...args)
Definition App.h:18