GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
|
Base Delegate. More...
#include <DelegateBase.h>
Public Member Functions | |
DelegateBase () | |
Base Delegate. | |
~DelegateBase () | |
virtual auto | createEditor (const Wt::WModelIndex &index, Wt::WFlags< Wt::ViewItemRenderFlag > flags) const -> std::unique_ptr< Wt::WWidget > |
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 |
virtual auto | editState (Wt::WWidget *_widget, const Wt::WModelIndex &_index) const -> Wt::cpp17::any |
virtual auto | setEditState (Wt::WWidget *_widget, 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 |
![]() | |
WItemDelegate () | |
void | setTextFormat (const WString &format) |
const WString & | textFormat () 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 |
![]() | |
WAbstractItemDelegate () | |
virtual | ~WAbstractItemDelegate () |
virtual ValidationState | validate (const WModelIndex &index, const cpp17::any &editState) const |
Signal< WWidget *, bool > & | closeEditor () |
const Signal< WWidget *, bool > & | closeEditor () const |
![]() | |
void | addChild (std::unique_ptr< WObject > child) |
Child * | addChild (std::unique_ptr< Child > child) |
std::unique_ptr< WObject > | removeChild (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) |
![]() | |
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 | |
![]() | |
typedef void(WObject::* | Method) () |
![]() | |
virtual WStatelessSlot * | getStateless (Method method) |
Base Delegate.
This class is strictly for debugging and tracing purposes. It facilitates the hooking of the various calls in to the delegate classes so that their behaviour and interaction with the view can be studied and understood.
Definition at line 23 of file DelegateBase.h.
GCW::Gui::AccountRegister::DelegateBase::DelegateBase | ( | ) |
Base Delegate.
This class is strictly for debugging and tracing purposes. It facilitates the hooking of the various calls in to the delegate classes so that their behaviour and interaction with the view can be studied, understood (and perhaps documented).
Definition at line 18 of file DelegateBase.cpp.
GCW::Gui::AccountRegister::DelegateBase::~DelegateBase | ( | ) |
Definition at line 24 of file DelegateBase.cpp.
|
virtual |
Reimplemented from Wt::WItemDelegate.
Reimplemented in GCW::Gui::AccountRegister::DelegateAccount, GCW::Gui::AccountRegister::DelegateBalance, GCW::Gui::AccountRegister::DelegateDate, GCW::Gui::AccountRegister::DelegateReconcile, GCW::Gui::AccountRegister::DelegateSuggestion, and GCW::Gui::AccountRegister::DelegateValue.
Definition at line 31 of file DelegateBase.cpp.
References Wt::WItemDelegate::createEditor().
Referenced by GCW::Gui::AccountRegister::DelegateAccount::createEditor(), GCW::Gui::AccountRegister::DelegateBalance::createEditor(), GCW::Gui::AccountRegister::DelegateSuggestion::createEditor(), and GCW::Gui::AccountRegister::DelegateValue::createEditor().
|
virtual |
Reimplemented from Wt::WItemDelegate.
Reimplemented in GCW::Gui::AccountRegister::DelegateDate, and GCW::Gui::AccountRegister::DelegateReconcile.
Definition at line 89 of file DelegateBase.cpp.
References Wt::asString(), and Wt::WItemDelegate::editState().
|
virtual |
Reimplemented in GCW::Gui::AccountRegister::DelegateDate, and GCW::Gui::AccountRegister::DelegateReconcile.
Definition at line 108 of file DelegateBase.cpp.
References Wt::asString().
|
virtual |
Reimplemented in GCW::Gui::AccountRegister::DelegateDate, and GCW::Gui::AccountRegister::DelegateReconcile.
Definition at line 125 of file DelegateBase.cpp.
References Wt::asString(), Wt::ItemDataRole::Edit, and Wt::WItemDelegate::setModelData().
Referenced by GCW::Gui::AccountRegister::DelegateDate::setModelData(), and GCW::Gui::AccountRegister::DelegateReconcile::setModelData().
|
virtual |
Reimplemented from Wt::WItemDelegate.
Definition at line 45 of file DelegateBase.cpp.
References Wt::WItemDelegate::update().
|
virtual |
Reimplemented from Wt::WItemDelegate.
Definition at line 60 of file DelegateBase.cpp.
References Wt::WItemDelegate::updateModelIndex().
|
virtual |
Definition at line 75 of file DelegateBase.cpp.
References Wt::WAbstractItemDelegate::validate().