GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
GCW::Gui::AccountRegister::Editor Class Reference

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::TableViewm_tableView = nullptr
 

Detailed Description

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.

Definition at line 42 of file Editor.h.

Constructor & Destructor Documentation

◆ Editor() [1/2]

GCW::Gui::AccountRegister::Editor::Editor ( )

Empty ctor.

Definition at line 34 of file Editor.cpp.

◆ Editor() [2/2]

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.

Member Function Documentation

◆ applyDelegates()

auto GCW::Gui::AccountRegister::Editor::applyDelegates ( GCW::Gui::TableView _tableView) -> void
static

◆ delegateAcct()

auto GCW::Gui::AccountRegister::Editor::delegateAcct ( ) -> std::shared_ptr< DelegateAccount >

◆ delegateBal()

auto GCW::Gui::AccountRegister::Editor::delegateBal ( ) -> std::shared_ptr< DelegateBalance >

◆ delegateCr()

auto GCW::Gui::AccountRegister::Editor::delegateCr ( ) -> std::shared_ptr< DelegateValue >

◆ delegateDate()

auto GCW::Gui::AccountRegister::Editor::delegateDate ( ) -> std::shared_ptr< DelegateDate >

◆ delegateDr()

auto GCW::Gui::AccountRegister::Editor::delegateDr ( ) -> std::shared_ptr< DelegateValue >

◆ delegateHeader()

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.

◆ delegateMemo()

auto GCW::Gui::AccountRegister::Editor::delegateMemo ( ) -> std::shared_ptr< DelegateSuggestion >

◆ delegateNum()

auto GCW::Gui::AccountRegister::Editor::delegateNum ( ) -> std::shared_ptr< DelegateSuggestion >

◆ delegateReco()

auto GCW::Gui::AccountRegister::Editor::delegateReco ( ) -> std::shared_ptr< DelegateReconcile >

◆ editRow()

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().

◆ model()

auto GCW::Gui::AccountRegister::Editor::model ( Wt::WModelIndex  _index) -> Model *
private

Definition at line 47 of file Editor.cpp.

◆ setDirty()

auto GCW::Gui::AccountRegister::Editor::setDirty ( Wt::WModelIndex  _index) const -> void

Definition at line 255 of file Editor.cpp.

◆ tableView()

auto GCW::Gui::AccountRegister::Editor::tableView ( ) -> GCW::Gui::TableView *
inline

Table View.

Definition at line 71 of file Editor.h.

References m_tableView.

Member Data Documentation

◆ m_index

Wt::WModelIndex GCW::Gui::AccountRegister::Editor::m_index
private

Definition at line 100 of file Editor.h.

◆ m_tableView

GCW::Gui::TableView* GCW::Gui::AccountRegister::Editor::m_tableView = nullptr
private

Definition at line 101 of file Editor.h.

Referenced by tableView().


The documentation for this class was generated from the following files: