GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
DelegateBase.h
Go to the documentation of this file.
1#line 2 "src/Gui/AccountRegister/DelegateBase.h"
2
3#ifndef __GUI_ACCOUNTREGISTER_DELEGATEBASE_H___
4#define __GUI_ACCOUNTREGISTER_DELEGATEBASE_H___
5
6#include <Wt/WItemDelegate.h>
7#include <Wt/WModelIndex.h>
8
9#include "Editor.h"
10
11namespace GCW {
12 namespace Gui {
13 namespace AccountRegister {
14
15/*!
16** \brief Base Delegate
17**
18** This class is strictly for debugging and tracing purposes. It facilitates the hooking
19** of the various calls in to the delegate classes so that their behaviour and interaction
20** with the view can be studied and understood.
21**
22*/
24: public Wt::WItemDelegate
25{
26 public:
27
30
31 virtual auto createEditor( const Wt::WModelIndex &index, Wt::WFlags< Wt::ViewItemRenderFlag > flags ) const-> std::unique_ptr< Wt::WWidget > ;
32 virtual auto update( Wt::WWidget * _widget, const Wt::WModelIndex & _index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags )-> std::unique_ptr< Wt::WWidget > ;
33 virtual auto updateModelIndex( Wt::WWidget * _widget, const Wt::WModelIndex & _index )-> void ;
34 virtual auto validate( const Wt::WModelIndex & _index, const Wt::cpp17::any & _editState ) const-> Wt::ValidationState ;
35 virtual auto editState( Wt::WWidget * _widget, const Wt::WModelIndex & _index ) const-> Wt::cpp17::any ;
36 virtual auto setEditState( Wt::WWidget * _widget, const Wt::WModelIndex & _index, const Wt::cpp17::any & _value ) const-> void ;
37 virtual auto setModelData( const Wt::cpp17::any & _editState, Wt::WAbstractItemModel * _model, const Wt::WModelIndex & _index ) const-> void ;
38
39}; // endclass DelegateBase
40
41 } // endnamespace AccountRegister {
42 } // endnamespace Gui {
43} // endnamespace GCW {
44
45#endif // __GUI_ACCOUNTREGISTER_DELEGATEBASE_H___
46
virtual auto update(Wt::WWidget *_widget, const Wt::WModelIndex &_index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags) -> std::unique_ptr< Wt::WWidget >
virtual auto setModelData(const Wt::cpp17::any &_editState, Wt::WAbstractItemModel *_model, const Wt::WModelIndex &_index) const -> void
virtual auto editState(Wt::WWidget *_widget, const Wt::WModelIndex &_index) const -> Wt::cpp17::any
virtual auto updateModelIndex(Wt::WWidget *_widget, const Wt::WModelIndex &_index) -> void
virtual auto setEditState(Wt::WWidget *_widget, const Wt::WModelIndex &_index, const Wt::cpp17::any &_value) const -> void
virtual auto createEditor(const Wt::WModelIndex &index, Wt::WFlags< Wt::ViewItemRenderFlag > flags) const -> std::unique_ptr< Wt::WWidget >
virtual auto validate(const Wt::WModelIndex &_index, const Wt::cpp17::any &_editState) const -> Wt::ValidationState
Definition App.h:18
ValidationState