GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
DelegateReconcile.h
Go to the documentation of this file.
1#line 2 "src/Gui/AccountRegister/DelegateReconcile.h"
2
3#ifndef __GUI_ACCOUNTREGISTER_DELEGATERECONCILE_H___
4#define __GUI_ACCOUNTREGISTER_DELEGATERECONCILE_H___
5
6#include <Wt/WItemDelegate.h>
7#include <Wt/WModelIndex.h>
8
9#include "DelegateBase.h"
10
11namespace GCW {
12 namespace Gui {
13 namespace AccountRegister {
14
16: public DelegateBase
17{
18 public:
19
20 /*!
21 ** \brief Reconcile Delegate
22 **
23 ** This delegate will present a WText field for the reconciliation
24 ** editor, and will activate that WText with click() response which
25 ** will handle the 'edit' portion of this delegate.
26 */
29 virtual auto createEditor( const Wt::WModelIndex & _index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags ) const-> std::unique_ptr< Wt::WWidget > ;
30 virtual auto editState( Wt::WWidget * _editor, const Wt::WModelIndex & _index ) const-> Wt::cpp17::any override ;
31 virtual auto setEditState( Wt::WWidget * _editor, const Wt::WModelIndex & _index, const Wt::cpp17::any & _value ) const-> void ;
32 virtual auto setModelData ( const Wt::cpp17::any & _editState, Wt::WAbstractItemModel * _model, const Wt::WModelIndex & _index ) const-> void ;
33
34 virtual auto doCloseEditor( Wt::WLineEdit * _editor, bool _save ) const-> void ;
35 virtual auto doTabAction( Wt::WKeyEvent _keyEvent ) const-> void ;
36
37}; // endclass DelegateReconcile
38
39 } // endnamespace AccountRegister {
40 } // endnamespace Gui {
41} // endnamespace GCW {
42
43#endif // __GUI_ACCOUNTREGISTER_DELEGATERECONCILE_H___
44
virtual auto setModelData(const Wt::cpp17::any &_editState, Wt::WAbstractItemModel *_model, const Wt::WModelIndex &_index) const -> void
virtual auto setEditState(Wt::WWidget *_editor, 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 doTabAction(Wt::WKeyEvent _keyEvent) const -> void
virtual auto doCloseEditor(Wt::WLineEdit *_editor, bool _save) const -> void
virtual auto editState(Wt::WWidget *_editor, const Wt::WModelIndex &_index) const -> Wt::cpp17::any override
Definition App.h:18