GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
|
Account Register Editor. More...
#include <Editor.h>
Public Member Functions | |
Editor () | |
Empty ctor. | |
Editor (GCW::Gui::TableView *_tableView) | |
ctor for TableView | |
auto | tableView () -> GCW::Gui::TableView * |
Table View. | |
auto | editRow (Wt::WModelIndex _index) -> void |
Edit Row. | |
auto | setDirty (Wt::WModelIndex _index) const -> void |
auto | delegateHeader () -> std::shared_ptr< DelegateHeader > |
Delegate Handles. | |
auto | delegateDate () -> std::shared_ptr< DelegateDate > |
auto | delegateNum () -> std::shared_ptr< DelegateSuggestion > |
auto | delegateMemo () -> std::shared_ptr< DelegateSuggestion > |
auto | delegateAcct () -> std::shared_ptr< DelegateAccount > |
auto | delegateReco () -> std::shared_ptr< DelegateReconcile > |
auto | delegateDr () -> std::shared_ptr< DelegateValue > |
auto | delegateCr () -> std::shared_ptr< DelegateValue > |
auto | delegateBal () -> std::shared_ptr< DelegateBalance > |
Static Public Member Functions | |
static auto | applyDelegates (GCW::Gui::TableView *_tableView) -> void |
Apply Delegates. | |
Private Member Functions | |
auto | model (Wt::WModelIndex _index) -> Model * |
Private Attributes | |
Wt::WModelIndex | m_index |
GCW::Gui::TableView * | m_tableView = nullptr |
Account Register Editor.
This object is a controller for editing of line items in the Account Register. The editor is a local(friend?) to the account register object that provides the delegates for the table view, and manipulates the delegates in relation to each other so as to be able to handle tabbing, up and down arrowing, and so on, within the table view, and keeping all the editors open, and saving them correctly when the user is done bla bla bla.
GCW::Gui::AccountRegister::Editor::Editor | ( | ) |
Empty ctor.
Definition at line 34 of file Editor.cpp.
GCW::Gui::AccountRegister::Editor::Editor | ( | GCW::Gui::TableView * | _tableView | ) |
ctor for TableView
This constructor connects the editor directly to the table view. It automatically grabs the delegates.
Definition at line 39 of file Editor.cpp.
|
static |
Apply Delegates.
This will create and apply the delegates to the table.
Definition at line 155 of file Editor.cpp.
References GCW::Gui::AccountRegister::ACTION, GCW::Gui::AccountRegister::asInt(), GCW::Gui::AccountRegister::BALANCE, GCW::Gui::AccountRegister::CREDIT, GCW::Gui::AccountRegister::DATE, GCW::Gui::AccountRegister::DEBIT, GCW::Gui::AccountRegister::DESCRIPTION, GCW::Gui::AccountRegister::RECONCILE, and GCW::Gui::AccountRegister::TRANSFER.
auto GCW::Gui::AccountRegister::Editor::delegateAcct | ( | ) | -> std::shared_ptr< DelegateAccount > |
Definition at line 100 of file Editor.cpp.
References GCW::Gui::AccountRegister::asInt(), and GCW::Gui::AccountRegister::TRANSFER.
auto GCW::Gui::AccountRegister::Editor::delegateBal | ( | ) | -> std::shared_ptr< DelegateBalance > |
Definition at line 144 of file Editor.cpp.
References GCW::Gui::AccountRegister::asInt(), and GCW::Gui::AccountRegister::BALANCE.
auto GCW::Gui::AccountRegister::Editor::delegateCr | ( | ) | -> std::shared_ptr< DelegateValue > |
Definition at line 133 of file Editor.cpp.
References GCW::Gui::AccountRegister::asInt(), and GCW::Gui::AccountRegister::CREDIT.
auto GCW::Gui::AccountRegister::Editor::delegateDate | ( | ) | -> std::shared_ptr< DelegateDate > |
Definition at line 67 of file Editor.cpp.
References GCW::Gui::AccountRegister::asInt(), and GCW::Gui::AccountRegister::DATE.
auto GCW::Gui::AccountRegister::Editor::delegateDr | ( | ) | -> std::shared_ptr< DelegateValue > |
Definition at line 122 of file Editor.cpp.
References GCW::Gui::AccountRegister::asInt(), and GCW::Gui::AccountRegister::DEBIT.
auto GCW::Gui::AccountRegister::Editor::delegateHeader | ( | ) | -> std::shared_ptr< DelegateHeader > |
Delegate Handles.
These functions return the cast< Delegate > value so the correct delegate can be accessed
Definition at line 56 of file Editor.cpp.
auto GCW::Gui::AccountRegister::Editor::delegateMemo | ( | ) | -> std::shared_ptr< DelegateSuggestion > |
Definition at line 89 of file Editor.cpp.
References GCW::Gui::AccountRegister::asInt(), and GCW::Gui::AccountRegister::DESCRIPTION.
auto GCW::Gui::AccountRegister::Editor::delegateNum | ( | ) | -> std::shared_ptr< DelegateSuggestion > |
Definition at line 78 of file Editor.cpp.
References GCW::Gui::AccountRegister::ACTION, and GCW::Gui::AccountRegister::asInt().
auto GCW::Gui::AccountRegister::Editor::delegateReco | ( | ) | -> std::shared_ptr< DelegateReconcile > |
Definition at line 111 of file Editor.cpp.
References GCW::Gui::AccountRegister::asInt(), and GCW::Gui::AccountRegister::RECONCILE.
auto GCW::Gui::AccountRegister::Editor::editRow | ( | Wt::WModelIndex | _index | ) | -> void |
Edit Row.
Definition at line 171 of file Editor.cpp.
References Wt::Editable.
Referenced by GCW::Gui::AccountRegister::Widget::editRow().
|
private |
Definition at line 47 of file Editor.cpp.
auto GCW::Gui::AccountRegister::Editor::setDirty | ( | Wt::WModelIndex | _index | ) | const -> void |
Definition at line 255 of file Editor.cpp.
|
inline |
|
private |
|
private |
Definition at line 101 of file Editor.h.
Referenced by tableView().