GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
BillPay/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
11namespace GCW {
12 namespace Gui {
13 namespace BillPay {
14
15/*!
16** \brief Table View
17**
18** A view to the data model
19**
20*/
22: public Wt::WTableView
23{
24 public:
25
26 TableView( int _selectedMonth, const Status _status );
27
28 auto setMonth( int _month )-> void ;
29
30 auto selectItem( const std::string _itemIdent )-> void ;
31
32 auto rowCount()-> int ;
33
34 auto model() const-> std::shared_ptr< TableModel >
35 {
36 return m_model;
37 }
38
39 private:
40
41 std::shared_ptr< TableModel > m_model;
42
43}; // endclass TableView
44
45 } // endnamespace BillPay {
46 } // endnamespace Gui {
47} // endnamespace GCW {
48
49#endif // __GUI_BILLPAY_TABLEVIEW_H___
50
51
std::shared_ptr< TableModel > m_model
auto selectItem(const std::string _itemIdent) -> void
auto model() const -> std::shared_ptr< TableModel >
auto setMonth(int _month) -> void
Status
Bill Status.
Definition Status.h:27
Definition App.h:18