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, int _selectedYear, const Status _status );
27
28 auto setDate( int _month, int _year )-> void ;
29
30 auto setFilter( const std::string & _filter )-> void ;
31
32 auto selectItem( const std::string _itemIdent )-> void ;
33
34 auto rowCount()-> int ;
35
36 auto model() const-> std::shared_ptr< TableModel >
37 {
38 return m_model;
39 }
40
41 private:
42
43 std::shared_ptr< TableModel > m_model;
44
45}; // endclass TableView
46
47 } // endnamespace BillPay {
48 } // endnamespace Gui {
49} // endnamespace GCW {
50
51#endif // __GUI_BILLPAY_TABLEVIEW_H___
52
53
auto setFilter(const std::string &_filter) -> void
std::shared_ptr< TableModel > m_model
auto setDate(int _month, int _year) -> void
auto selectItem(const std::string _itemIdent) -> void
auto model() const -> std::shared_ptr< TableModel >
Status
Bill Status.
Definition Status.h:27
Definition App.h:18