GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
TransactionDetailWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/TransactionDetailWidget.h"
2
3#ifndef __GUI_TRANSACTIONDETAILWIDGET_H___
4#define __GUI_TRANSACTIONDETAILWIDGET_H___
5
6#include <Wt/WContainerWidget.h>
7#include <Wt/WTable.h>
8
9namespace GCW {
10 namespace Gui {
11
12/*!
13** \brief Transaction Detail Widget
14**
15** This is a widget that will display the contents of a transaction record,
16** with all its attributes and elements, in plain open/free/unrestricted
17** UI editor, and also includes all of the splits.
18**
19*/
22{
23 public:
24
25 /*!
26 ** \brief Empty ctor
27 */
28 TransactionDetailWidget( const std::string & _tx_guid = "" );
29
30 /*!
31 ** \brief Set Transaction GUID
32 */
33 auto setTxGuid( const std::string & _guid )-> void ;
34
35 /*!
36 ** \brief Set Split GUID
37 */
38 auto setSplitGuid( const std::string & _guid )-> void ;
39
40 /*!
41 ** \brief Save the data to the backend
42 */
43 auto saveData()-> void ;
44
45 private:
46
49 {
50 public:
51
52 SplitWidget( const std::string & _guid );
53
54 std::string m_guid ;
55 };
56
57 std::string m_tx_guid ;
58
66
67// Wt::WText * mtxt_payFrom = nullptr ;
68// Wt::WText * mtxt_payTo = nullptr ;
69// Wt::WText * mtxt_date = nullptr ;
70// Wt::WText * mtxt_desc = nullptr ;
71// Wt::WText * mtxt_amount = nullptr ;
72
73}; // endclass TransactionDetailWidget
74
75 } // endnamespace Gui {
76} // endnamespace GCW {
77
78#endif // end __GUI_TRANSACTIONDETAILWIDGET_H___
79
80
81
auto saveData() -> void
Save the data to the backend.
auto setSplitGuid(const std::string &_guid) -> void
Set Split GUID.
auto setTxGuid(const std::string &_guid) -> void
Set Transaction GUID.
Widget * addNew(Args &&...args)
Definition App.h:18