GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Customer/MainWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/Customer/MainWidget.h"
2
3#ifndef __GUI_CUSTOMER_MAINWIDGET_H___
4#define __GUI_CUSTOMER_MAINWIDGET_H___
5
6#include <Wt/WContainerWidget.h>
7#include <Wt/WTableView.h>
8
9#include "../../Eng/CustomersModel.h"
10#include "Invoices.h"
11
12namespace GCW {
13 namespace Gui {
14 namespace Customer {
15
16/*!
17** \brief Customer Overview
18**
19**
20*/
23{
24 public:
26
27 MainWidget();
28
29 auto model () const-> std::shared_ptr< Model > { return m_model; }
30 auto view () const-> Wt::WTableView * { return m_view; }
31
33
34 auto selectedAccount() const-> std::string ;
35
36 auto editAccount( const std::string & _accountGuid )-> void ;
38
39 auto toJson() const-> Wt::Json::Object ;
40 auto fromJson( const Wt::Json::Object & _jobj )-> bool ;
41
42
43 private:
44
45 auto setModel()-> void ;
46 auto doubleClicked( const Wt::WModelIndex & index, const Wt::WMouseEvent & event )-> void ;
47
48 Wt::WTableView * m_view = nullptr ;
50 std::vector< std::string > m_columns ;
51 Wt::Signal< std::string > m_doubleClicked ;
52 GCW::Gui::Customer::Invoices * m_invoicesView = nullptr ;
53
54}; // endclass MainWidget
55
56 } // endnamespace Customer {
57 } // endnamespace Gui {
58} // endnamespace GCW {
59
60#endif // end __GUI_CUSTOMER_MAINWIDGET_H___
61
62
auto view() const -> Wt::WTableView *
auto editAccount(const std::string &_accountGuid) -> void
std::shared_ptr< Model > m_model
auto fromJson(const Wt::Json::Object &_jobj) -> bool
auto doubleClicked() -> Wt::Signal< std::string > &
auto model() const -> std::shared_ptr< Model >
std::vector< std::string > m_columns
Wt::Signal< std::string > m_doubleClicked
auto toJson() const -> Wt::Json::Object
GCW::Gui::Customer::Invoices * m_invoicesView
auto editSelectedAccount() -> void
auto selectedAccount() const -> std::string
Widget * addNew(Args &&...args)
Definition App.h:18