GnuCashew ~ GnuCash Enabled Web
GCW
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 "Table.h"
11 #include "ToolBar.h"
12 
13 namespace GCW {
14  namespace Gui {
15  namespace BillPay {
16 
17 /*!
18 ** \brief Bill Pay Widget
19 **
20 **
21 */
23 : public Wt::WContainerWidget
24 {
25  public:
26 
27  MainWidget();
28 
29  private:
30 
31  auto buildContent()-> void ;
32  auto addClicked()-> void ;
33  auto editClicked( Table * _table, Wt::WModelIndex _index )-> void ;
34  auto openEditor( const std::string & _bpGuid )-> void ;
35  auto buttonChanged( Wt::WRadioButton * _button )-> void ;
36  auto setMonth( int _month )-> void ;
37  auto disabledClicked()-> void ;
38  auto refreshViews()-> void ;
39  auto importClicked()-> void ;
40  auto exportClicked()-> void ;
41 
42  std::unique_ptr< EditWidgetDialog > m_dialog;
43 
44  /*
45  ** The edit widget gets loaded and unloaded for the
46  ** editing functions. Using an observing pointer
47  ** let's us know automatically when the editor is
48  ** open and when it's not.
49  **
50  */
51  Wt::Core::observing_ptr< EditWidget > m_editWidget;
52 
53  ToolBar * m_toolBar = nullptr;
54  Table * m_paidView = nullptr;
55  Table * m_unpaidView = nullptr;
56  Table * m_disabledView = nullptr;
57 
58  auto on_headerClicked( int _col, const Wt::WMouseEvent _me )-> void ;
59 
60  int m_selectedMonth = -1;
61 
62 // Wt::WGridLayout * m_gridLayout = nullptr;
63  Wt::WHBoxLayout * m_hlw = nullptr;
64 
65 }; // endclass MainWidget
66 
67  } // endnamespace BillPay {
68  } // endnamespace Gui {
69 } // endnamespace GCW {
70 
71 #endif // __GUI_BILLPAY_MAINWIDGET_H___
72 
73 
auto buttonChanged(Wt::WRadioButton *_button) -> void
Definition: MainWidget.cpp:186
Wt::WHBoxLayout * m_hlw
Definition: MainWidget.h:63
auto openEditor(const std::string &_bpGuid) -> void
Definition: MainWidget.cpp:115
auto editClicked(Table *_table, Wt::WModelIndex _index) -> void
Definition: MainWidget.cpp:170
auto setMonth(int _month) -> void
Definition: MainWidget.cpp:218
auto on_headerClicked(int _col, const Wt::WMouseEvent _me) -> void
Definition: MainWidget.cpp:257
Wt::Core::observing_ptr< EditWidget > m_editWidget
Definition: MainWidget.h:51
std::unique_ptr< EditWidgetDialog > m_dialog
Definition: MainWidget.h:42
Table View.
Definition: Table.h:23
Definition: App.h:17