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 std::unique_ptr< EditWidgetDialog > m_dialog ;
48
49 /*
50 ** The edit widget gets loaded and unloaded for the
51 ** editing functions. Using an observing pointer
52 ** let's us know automatically when the editor is
53 ** open and when it's not.
54 **
55 */
57
64
65 auto on_headerClicked( int _col, const Wt::WMouseEvent _me )-> void ;
66
67 /*!
68 ** \brief Selected Index
69 **
70 ** When single-clicking through the interface, the currently selected
71 ** (clicked) item, so that if the 'edit' button is hit, we'll know
72 ** which was the last item clicked. This is important because there
73 ** are three possible table-views containing items, and we're never
74 ** sure which was the last table clicked in. So, on-click, in any of
75 ** the three tables, the clicked-item index will be stored here.
76 **
77 */
80
81// Wt::WGridLayout * m_gridLayout = nullptr ;
83
84}; // endclass MainWidget
85
86 } // endnamespace BillPay {
87 } // endnamespace Gui {
88} // endnamespace GCW {
89
90#endif // __GUI_BILLPAY_MAINWIDGET_H___
91
92
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