summaryrefslogtreecommitdiffstats
path: root/src/kvirc/kvs/kvi_kvs_object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/kvs/kvi_kvs_object.cpp')
-rw-r--r--src/kvirc/kvs/kvi_kvs_object.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_object.cpp b/src/kvirc/kvs/kvi_kvs_object.cpp
index c6d9fcb..677095d 100644
--- a/src/kvirc/kvs/kvi_kvs_object.cpp
+++ b/src/kvirc/kvs/kvi_kvs_object.cpp
@@ -95,7 +95,7 @@
To create an object you must use the [fnc]$new[/fnc]()
function. [fnc]$new[/fnc]() requires three parameters:[br]
- The object class (more about object classes later in this document)[br]
- - The ID of the tqparent object , (that can be 0 for toplevel objects).[br]
+ - The ID of the parent object , (that can be 0 for toplevel objects).[br]
- The object name (eventually empty)[br]
[example]
%myobject = [fnc]$new[/fnc]([class]object[/class],0,theName)
@@ -113,7 +113,7 @@
[example]
[cmd]if[/cmd](%myobject == %anotherobject)[cmd]echo[/cmd] "This is the same object!";
[/example]
- The tqparent object id is optional, if not specified it is assumed to be 0.
+ The parent object id is optional, if not specified it is assumed to be 0.
The object name is optional , but it may help you later in finding the object.[br][br]
To destroy an object use the [cmd]delete[/cmd] command. (In previous versions
@@ -242,12 +242,12 @@
[/example]
In the example above four objects have been created.
- A "tqparent" object named "myobject" , and three tqchildren objects.
+ A "parent" object named "myobject" , and three tqchildren objects.
The destructor has been reimplemented for each child object,
to make it "say" its name (Please note the usage of [fnc]$this[/fnc]).
- In the tqparent destructor the tqchildren have been counted and listed.[br]
- Then the tqparent object is destroyed causing to:[br]
- - trigger the tqparent destructor.[br]
+ In the parent destructor the tqchildren have been counted and listed.[br]
+ Then the parent object is destroyed causing to:[br]
+ - trigger the parent destructor.[br]
- destroy all the tqchildren (and conseguently trigger all the "individual" destructors).[br][br]
Not all the object functions must return a value:
@@ -499,8 +499,8 @@
The default implementation emits the signal "[classsignal]destroyed[/classsignal]".
!fn: $name()
Returns the name of this object.
- !fn: $tqparent()
- Returns the tqparent object of this object or 0 if this object has no tqparent.
+ !fn: $parent()
+ Returns the parent object of this object or 0 if this object has no parent.
!fn: $timerEvent(<timerId>)
Handler for the timer events.
The default implementation does nothing.