GnuCashew ~ GnuCash Enabled Web
GCW
TableView.h
Go to the documentation of this file.
1 #line 2 "src/Gui/BillPay/TableView.h"
2 
3 #ifndef __GUI_BILLPAY_TABLEVIEW_H___
4 #define __GUI_BILLPAY_TABLEVIEW_H___
5 
6 #include <Wt/WTableView.h>
7 
8 #include "TableModel.h"
9 #include "Status.h"
10 
11 namespace GCW {
12  namespace Gui {
13  namespace BillPay {
14 
15 /*!
16 ** \brief Table View
17 **
18 ** A view to the data model
19 **
20 */
21 class TableView
22 : public Wt::WTableView
23 {
24  public:
25 
26  TableView( int _selectedMonth, const Status _status );
27 
28  void setMonth( int _month );
29 
30  std::shared_ptr< TableModel > model() const
31  {
32  return m_model;
33  }
34 
35  private:
36 
37  std::shared_ptr< TableModel > m_model;
38 
39 }; // endclass TableView
40 
41  } // endnamespace BillPay {
42  } // endnamespace Gui {
43 } // endnamespace GCW {
44 
45 #endif // __GUI_BILLPAY_TABLEVIEW_H___
46 
47 
std::shared_ptr< TableModel > m_model
Definition: TableView.h:37
void setMonth(int _month)
Definition: TableView.cpp:51
TableView(int _selectedMonth, const Status _status)
Definition: TableView.cpp:10
std::shared_ptr< TableModel > model() const
Definition: TableView.h:30
Status
Bill Status.
Definition: Status.h:21
Definition: App.h:17