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

#include <DelegateReconcile.h>

+ Inheritance diagram for GCW::Gui::AccountRegister::DelegateReconcile:

Public Member Functions

 DelegateReconcile ()
 Reconcile Delegate.
 
 ~DelegateReconcile ()
 
virtual auto createEditor (const Wt::WModelIndex &_index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags) const -> std::unique_ptr< Wt::WWidget >
 
virtual auto editState (Wt::WWidget *_editor, const Wt::WModelIndex &_index) const -> Wt::cpp17::any override
 
virtual auto setEditState (Wt::WWidget *_editor, const Wt::WModelIndex &_index, const Wt::cpp17::any &_value) const -> void
 
virtual auto setModelData (const Wt::cpp17::any &_editState, Wt::WAbstractItemModel *_model, const Wt::WModelIndex &_index) const -> void
 
virtual auto doCloseEditor (Wt::WLineEdit *_editor, bool _save) const -> void
 
virtual auto doTabAction (Wt::WKeyEvent _keyEvent) const -> void
 
- Public Member Functions inherited from GCW::Gui::AccountRegister::DelegateBase
 DelegateBase ()
 Base Delegate.
 
 ~DelegateBase ()
 
virtual auto update (Wt::WWidget *_widget, const Wt::WModelIndex &_index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags) -> std::unique_ptr< Wt::WWidget >
 
virtual auto updateModelIndex (Wt::WWidget *_widget, const Wt::WModelIndex &_index) -> void
 
virtual auto validate (const Wt::WModelIndex &_index, const Wt::cpp17::any &_editState) const -> Wt::ValidationState
 
- Public Member Functions inherited from Wt::WItemDelegate
 WItemDelegate ()
 
void setTextFormat (const WString &format)
 
const WStringtextFormat () const
 
virtual void setModelData (const cpp17::any &editState, WAbstractItemModel *model, const WModelIndex &index) const override
 
virtual void setEditState (WWidget *editor, const WModelIndex &index, const cpp17::any &value) const override
 
- Public Member Functions inherited from Wt::WAbstractItemDelegate
 WAbstractItemDelegate ()
 
virtual ~WAbstractItemDelegate ()
 
virtual ValidationState validate (const WModelIndex &index, const cpp17::any &editState) const
 
Signal< WWidget *, bool > & closeEditor ()
 
const Signal< WWidget *, bool > & closeEditor () const
 
- Public Member Functions inherited from Wt::WObject
void addChild (std::unique_ptr< WObject > child)
 
Child * addChild (std::unique_ptr< Child > child)
 
std::unique_ptr< WObjectremoveChild (WObject *child)
 
std::unique_ptr< Child > removeChild (Child *child)
 
virtual const std::string id () const
 
virtual void setObjectName (const std::string &name)
 
virtual std::string objectName () const
 
void resetLearnedSlots ()
 
void resetLearnedSlot (void(T::*method)())
 
WStatelessSlot * implementStateless (void(T::*method)())
 
WStatelessSlot * implementStateless (void(T::*method)(), void(T::*undoMethod)())
 
void isNotStateless ()
 
WStatelessSlot * implementJavaScript (void(T::*method)(), const std::string &jsCode)
 
- Public Member Functions inherited from Wt::Core::observable
 observable () noexcept
 
virtual ~observable ()
 
auto bindSafe (void(C::*method)(Args...)) noexcept
 
auto bindSafe (void(C::*method)(Args...) const) const noexcept
 
auto bindSafe (const Function &function) noexcept
 

Additional Inherited Members

- Public Types inherited from Wt::WObject
typedef void(WObject::* Method) ()
 
- Protected Member Functions inherited from Wt::WObject
virtual WStatelessSlot * getStateless (Method method)
 

Detailed Description

Definition at line 15 of file DelegateReconcile.h.

Constructor & Destructor Documentation

◆ DelegateReconcile()

GCW::Gui::AccountRegister::DelegateReconcile::DelegateReconcile ( )

Reconcile Delegate.

This delegate will present a WText field for the reconciliation editor, and will activate that WText with click() response which will handle the 'edit' portion of this delegate.

Definition at line 10 of file DelegateReconcile.cpp.

◆ ~DelegateReconcile()

GCW::Gui::AccountRegister::DelegateReconcile::~DelegateReconcile ( )

Definition at line 16 of file DelegateReconcile.cpp.

Member Function Documentation

◆ createEditor()

auto GCW::Gui::AccountRegister::DelegateReconcile::createEditor ( const Wt::WModelIndex _index,
Wt::WFlags< Wt::ViewItemRenderFlag _flags 
) const -> std::unique_ptr< Wt::WWidget >
virtual
Todo:
applying styles here; this needs to be moved to the .css files

Reimplemented from GCW::Gui::AccountRegister::DelegateBase.

Definition at line 23 of file DelegateReconcile.cpp.

References Wt::asString(), and Wt::ItemDataRole::Edit.

◆ doCloseEditor()

auto GCW::Gui::AccountRegister::DelegateReconcile::doCloseEditor ( Wt::WLineEdit _editor,
bool  _save 
) const -> void
virtual

Definition at line 94 of file DelegateReconcile.cpp.

◆ doTabAction()

auto GCW::Gui::AccountRegister::DelegateReconcile::doTabAction ( Wt::WKeyEvent  _keyEvent) const -> void
virtual

Definition at line 112 of file DelegateReconcile.cpp.

◆ editState()

auto GCW::Gui::AccountRegister::DelegateReconcile::editState ( Wt::WWidget _editor,
const Wt::WModelIndex _index 
) const -> Wt::cpp17::any
overridevirtual

Reimplemented from GCW::Gui::AccountRegister::DelegateBase.

Definition at line 122 of file DelegateReconcile.cpp.

◆ setEditState()

auto GCW::Gui::AccountRegister::DelegateReconcile::setEditState ( Wt::WWidget _editor,
const Wt::WModelIndex _index,
const Wt::cpp17::any &  _value 
) const -> void
virtual

Reimplemented from GCW::Gui::AccountRegister::DelegateBase.

Definition at line 148 of file DelegateReconcile.cpp.

References Wt::asString().

◆ setModelData()

auto GCW::Gui::AccountRegister::DelegateReconcile::setModelData ( const Wt::cpp17::any &  _editState,
Wt::WAbstractItemModel _model,
const Wt::WModelIndex _index 
) const -> void
virtual

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