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

Base Delegate. More...

#include <DelegateBase.h>

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

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
 
- 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

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.

Constructor & Destructor Documentation

◆ DelegateBase()

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.

◆ ~DelegateBase()

GCW::Gui::AccountRegister::DelegateBase::~DelegateBase ( )

Definition at line 24 of file DelegateBase.cpp.

Member Function Documentation

◆ createEditor()

auto GCW::Gui::AccountRegister::DelegateBase::createEditor ( const Wt::WModelIndex index,
Wt::WFlags< Wt::ViewItemRenderFlag flags 
) const -> std::unique_ptr< Wt::WWidget >
virtual

◆ editState()

auto GCW::Gui::AccountRegister::DelegateBase::editState ( Wt::WWidget _widget,
const Wt::WModelIndex _index 
) const -> Wt::cpp17::any
virtual

◆ setEditState()

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

◆ setModelData()

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

◆ update()

auto GCW::Gui::AccountRegister::DelegateBase::update ( Wt::WWidget _widget,
const Wt::WModelIndex _index,
Wt::WFlags< Wt::ViewItemRenderFlag _flags 
) -> std::unique_ptr< Wt::WWidget >
virtual

Reimplemented from Wt::WItemDelegate.

Definition at line 45 of file DelegateBase.cpp.

References Wt::WItemDelegate::update().

◆ updateModelIndex()

auto GCW::Gui::AccountRegister::DelegateBase::updateModelIndex ( Wt::WWidget _widget,
const Wt::WModelIndex _index 
) -> void
virtual

Reimplemented from Wt::WItemDelegate.

Definition at line 60 of file DelegateBase.cpp.

References Wt::WItemDelegate::updateModelIndex().

◆ validate()

auto GCW::Gui::AccountRegister::DelegateBase::validate ( const Wt::WModelIndex _index,
const Wt::cpp17::any &  _editState 
) const -> Wt::ValidationState
virtual

Definition at line 75 of file DelegateBase.cpp.

References Wt::WAbstractItemDelegate::validate().


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