SavvyUI C++ UI Library
Loading...
Searching...
No Matches
EventListeners.h
Go to the documentation of this file.
1#pragma once
2
3#include "Common.h"
4
5//===========================================================================================
7{
8public:
10 wstring oldValue;
11 wstring newValue;
12};
13
15{
16public:
17 virtual void onDataChanged(const DataChangeEvent& ev) = 0;
18};
19
20//===========================================================================================
22{
23public:
27 BOOL checked;
28};
29
31{
32public:
33 virtual void onSelectionChanged(const SelectionChangeEvent& ev) = 0;
34};
35
36//===========================================================================================
38{
39public:
41 __int64 actionId;
42 wstring actionName;
43};
44
46{
47public:
48 virtual void onAction(const ActionEvent& ev) = 0;
49};
50
51//===========================================================================================
53{
54public:
56 __int64 rowIndex;
57};
58
60{
61public:
62 virtual void onItemDoubleClicked(const RowDoubleClickEvent& ev) = 0;
63};
64
65//===========================================================================================
67{
68public:
69 virtual void onCreateItem(long sourceId) = 0;
70
71 virtual void onEditItem(long sourceId, __int64 rowIndex) = 0;
72
73 virtual BOOL onDeleteItem(long sourceId, __int64 rowIndex) = 0;
74
75 virtual void onItemCreated(long sourceId, __int64 rowIndex, const vector<KeyValue>& rowValues) = 0;
76
77 virtual void onItemUpdated(long sourceId, __int64 rowIndex, const vector<KeyValue>& rowValues) = 0;
78};
79
80//===========================================================================================
82{
83public:
84
85 virtual BOOL onCellValueChanged(long sourceId, __int64 rowIndex, const wstring& columnName,
86 const wstring& oldValue, const wstring& newValue) = 0;
87};
88
Definition EventListeners.h:38
__int64 actionId
Definition EventListeners.h:41
long sourceComponentId
Definition EventListeners.h:40
wstring actionName
Definition EventListeners.h:42
Definition EventListeners.h:46
virtual void onAction(const ActionEvent &ev)=0
Definition EventListeners.h:7
wstring oldValue
Definition EventListeners.h:10
long sourceComponentId
Definition EventListeners.h:9
wstring newValue
Definition EventListeners.h:11
Definition EventListeners.h:15
virtual void onDataChanged(const DataChangeEvent &ev)=0
Definition EventListeners.h:82
virtual BOOL onCellValueChanged(long sourceId, __int64 rowIndex, const wstring &columnName, const wstring &oldValue, const wstring &newValue)=0
Definition EventListeners.h:67
virtual void onItemCreated(long sourceId, __int64 rowIndex, const vector< KeyValue > &rowValues)=0
virtual void onEditItem(long sourceId, __int64 rowIndex)=0
virtual BOOL onDeleteItem(long sourceId, __int64 rowIndex)=0
virtual void onItemUpdated(long sourceId, __int64 rowIndex, const vector< KeyValue > &rowValues)=0
virtual void onCreateItem(long sourceId)=0
Definition EventListeners.h:53
long sourceComponentId
Definition EventListeners.h:55
__int64 rowIndex
Definition EventListeners.h:56
Definition EventListeners.h:60
virtual void onItemDoubleClicked(const RowDoubleClickEvent &ev)=0
Definition EventListeners.h:22
wstring selectionValue
Definition EventListeners.h:26
BOOL checked
Definition EventListeners.h:27
__int64 selectionIndex
Definition EventListeners.h:25
long sourceComponentId
Definition EventListeners.h:24
Definition EventListeners.h:31
virtual void onSelectionChanged(const SelectionChangeEvent &ev)=0