-
Notifications
You must be signed in to change notification settings - Fork 2
/
oBaseNVComponent.cpp
63 lines (47 loc) · 1.5 KB
/
oBaseNVComponent.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* omnis.xcomp.framework
* =====================
*
* oBaseNVComponent.cpp
* Base class for our non visual component
*
* Bastiaan Olij
*
* https://github.com/BastiaanOlij/omnis.xcomp.framework
*/
#include "oBaseNVComponent.h"
/**********************************************************************************
* oBaseNVComponent
**********************************************************************************/
// Initialize component
qbool oBaseNVComponent::init(qapp pApp, qobjinst pInst) {
oBaseComponent::init(pApp);
mObjInst = pInst;
return true;
};
// create a copy of pCopy, this MUST be implemented in a subclass
void oBaseNVComponent::copyObject(oBaseNVComponent *pCopy){
// nothing to copy...
};
// Add properties for NV componect
qProperties *oBaseNVComponent::properties(void) {
qProperties *lvProperties = oBaseComponent::properties();
// Our non-visual class has not properties, we still need to implement this...
return lvProperties;
};
// Add methods for NV component
qMethods *oBaseNVComponent::methods(void) {
qMethods *lvMethods = oBaseComponent::methods();
// our non-visual class has not methods, we still need to implement this...
return lvMethods;
};
// Add events for NV component
qEvents *oBaseNVComponent::events(void) {
qEvents *lvEvents = oBaseComponent::events();
// our non-visual class has no events
return lvEvents;
};
// object is being send a rebuild message
qint oBaseNVComponent::ecm_object_rebuild(EXTCompInfo *pECI) {
return mNeedRebuild ? 1L : 0L;
};