GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
RawTableWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/RawTableWidget.h"
2
3#ifndef __GUI_RAWTABLEWIDGET_H___
4#define __GUI_RAWTABLEWIDGET_H___
5
6#include <Wt/WContainerWidget.h>
7#include <Wt/Dbo/QueryModel.h>
8#include <Wt/WPushButton.h>
9#include <Wt/WLineEdit.h>
10#include <Wt/WToolBar.h>
11#include <Wt/WSortFilterProxyModel.h>
12
13//#include "../GnuCashew.h"
14#include "TableView.h"
15
16
17namespace GCW {
18 namespace Gui {
19
20/*!
21** \brief SlotsWidget
22**
23** The 'slots' table is used to 'extend' data in the various areas, such as notes on
24** transactions and so forth.
25**
26*/
27template <class C>
30{
31 private:
32
33 public:
34
35 /*!
36 ** \brief Model
37 **
38 ** An alias for the Model.
39 **
40 */
42
43 /*!
44 ** \brief Constructor
45 **
46 */
47 RawTableWidget( const std::string & _viewName );
48
49 /*!
50 ** \brief Table View
51 **
52 **
53 **
54 */
56
57 auto model ()-> std::shared_ptr< Model > { return m_model; }
58
59 protected:
60
61 auto load()-> void ;
62
63 private:
64
65 auto loadData()-> void ;
66 auto on_search()-> void ;
67
68 std::shared_ptr< Model > m_model ;
69 std::shared_ptr< Wt::WSortFilterProxyModel > m_proxy ;
74
75}; // endclass RawTableWidget
76
77 } // endnamespace Gui {
78} // endnamespace GCW {
79
80#ifndef __GUI_RAWTABLEWIDGETIMPL_H___
81#include "RawTableWidget_impl.h"
82#endif // __GUI_RAWTABLEWIDGETIMPL_H___
83
84#endif // end __GUI_RAWTABLEWIDGET_H___
85
86
GCW::Gui::TableView * m_tableView
auto model() -> std::shared_ptr< Model >
auto tableView() -> GCW::Gui::TableView *
Table View.
std::shared_ptr< Model > m_model
std::shared_ptr< Wt::WSortFilterProxyModel > m_proxy
Wt::WContainerWidget * m_statusBar
Custom Table View Class.
Definition TableView.h:25
Widget * addNew(Args &&...args)
Definition App.h:18