GnuCashew ~ GnuCash Enabled Web
GCW
Loading...
Searching...
No Matches
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*/
24: public Wt::WContainerWidget
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 ;
38 auto editClicked( TableView * _table, Wt::WModelIndex _index )-> void ;
39 auto openEditor( const std::string & _bpGuid )-> void ;
40 auto buttonChanged( Wt::WRadioButton * _button )-> void ;
41 auto setMonth( int _month )-> void ;
42 auto refreshViews()-> void ;
43 auto importClicked()-> void ;
44 auto exportClicked()-> void ;
45 auto clearSelectionExcept( TableView * )-> 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 */
56 Wt::Core::observing_ptr< EditWidget > m_editWidget ;
57
58 ToolBar * m_toolBar = nullptr ;
60 TableView * m_paidView = nullptr ;
61 TableView * m_unpaidView = nullptr ;
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 */
78 Wt::WModelIndex m_selectedIndex;
80
81// Wt::WGridLayout * m_gridLayout = nullptr ;
82 Wt::WHBoxLayout * m_hlw = 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 buttonChanged(Wt::WRadioButton *_button) -> void
Wt::WModelIndex m_selectedIndex
Selected Index.
Definition MainWidget.h:78
Wt::WHBoxLayout * m_hlw
Definition MainWidget.h:82
auto openEditor(const std::string &_bpGuid) -> void
auto editClicked(TableView *_table, Wt::WModelIndex _index) -> void
auto clearSelectionExcept(TableView *) -> void
SummaryWidget * m_summaryView
Definition MainWidget.h:63
auto setMonth(int _month) -> void
auto on_headerClicked(int _col, const Wt::WMouseEvent _me) -> void
Wt::Core::observing_ptr< EditWidget > m_editWidget
Definition MainWidget.h:56
std::unique_ptr< EditWidgetDialog > m_dialog
Definition MainWidget.h:47
Definition App.h:18