GnuCashew ~ GnuCash Enabled Web
GCW
PaymentWidget.h
Go to the documentation of this file.
1 #line 2 "src/Gui/BillPay/PaymentWidget.h"
2 
3 #ifndef __GUI_BILLPAY_PAYMENTWIDGET_H___
4 #define __GUI_BILLPAY_PAYMENTWIDGET_H___
5 
6 #include <Wt/WCheckBox.h>
7 #include <Wt/WComboBox.h>
8 #include <Wt/WContainerWidget.h>
9 #include <Wt/WDateEdit.h>
10 #include <Wt/WDialog.h>
11 #include <Wt/WImage.h>
12 #include <Wt/WLabel.h>
13 #include <Wt/WLineEdit.h>
14 #include <Wt/WSpinBox.h>
15 #include <Wt/WPushButton.h>
16 #include <Wt/WTable.h>
17 #include <Wt/WTemplate.h>
18 #include <Wt/WTabWidget.h>
19 #include <Wt/WText.h>
20 #include <Wt/WTextArea.h>
21 #include <Wt/WTextEdit.h>
22 
23 #include "../AccountComboBox.h"
24 #include "Item.h"
25 
26 namespace GCW {
27  namespace Gui {
28  namespace BillPay {
29 
30 /*!
31 ** \brief Payment Widget
32 **
33 ** This will pop a dialog to accept a payment
34 **
35 */
37 : public Wt::WContainerWidget
38 {
39  public:
40 
41  PaymentWidget( const std::string & _bpGuid );
42 
43  auto bpGuid() const-> const std::string & { return m_bpGuid; }
44 
45  auto loadData()-> void ;
46  auto saveData()-> void ;
47 
48  private:
49 
50  auto table()-> Wt::WTable * { return m_table; }
51 
52  std::string m_bpGuid ;
53  Wt::WTable * m_table = nullptr ;
54  Wt::WDateEdit * m_date = nullptr ;
55  Wt::WLineEdit * m_num = nullptr ;
56  Wt::WLineEdit * m_desc = nullptr ;
57  Wt::WLineEdit * m_recon = nullptr ;
58  Wt::WLineEdit * m_debit = nullptr ;
59  Wt::WLineEdit * m_credit = nullptr ;
60  Wt::WTextArea * m_confirm = nullptr ;
61 
62  std::vector< std::vector< Wt::WFormWidget * > > m_tableWidgets ;
63 
64 }; // endclass PaymentWidget
65 
66 /*!
67 ** \brief Edit Widget Dialog
68 **
69 ** Bill Pay Payment Form editor dialog.
70 **
71 */
73 : public Wt::WDialog
74 {
75  public:
76 
77  PaymentWidgetDialog( const std::string & _bpGuid );
78 
79  private:
80 
81 }; // endclass PaymentWidgetDialog
82 
83  } // endnamespace BillPay {
84  } // endnamespace Gui {
85 } // endnamespace GCW {
86 
87 #endif // __GUI_BILLPAY_PAYMENTWIDGET_H___
88 
89 
PaymentWidgetDialog(const std::string &_bpGuid)
std::vector< std::vector< Wt::WFormWidget * > > m_tableWidgets
Definition: PaymentWidget.h:62
auto table() -> Wt::WTable *
Definition: PaymentWidget.h:50
auto bpGuid() const -> const std::string &
Definition: PaymentWidget.h:43
PaymentWidget(const std::string &_bpGuid)
Definition: App.h:17
Definition: guid.cpp:397