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