summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/scripting/scriptIO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/scripting/scriptIO.cpp')
-rw-r--r--kexi/formeditor/scripting/scriptIO.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kexi/formeditor/scripting/scriptIO.cpp b/kexi/formeditor/scripting/scriptIO.cpp
index ee0b1f59..b124a99a 100644
--- a/kexi/formeditor/scripting/scriptIO.cpp
+++ b/kexi/formeditor/scripting/scriptIO.cpp
@@ -27,30 +27,30 @@
#include "main/scriptcontainer.h"
bool
-ScriptIO::saveFormEvents(TQDomNode &tqparentNode, FormScript *formScript)
+ScriptIO::saveFormEvents(TQDomNode &parentNode, FormScript *formScript)
{
- TQDomDocument domDoc = tqparentNode.ownerDocument();
+ TQDomDocument domDoc = parentNode.ownerDocument();
// Save the form's code
if(!formScript->getCode().isEmpty()) {
TQDomElement script = domDoc.createElement("script");
script.setAttribute("language", formScript->scriptContainer()->getInterpreterName());
- tqparentNode.appendChild(script);
+ parentNode.appendChild(script);
TQDomText scriptCode = domDoc.createTextNode(formScript->getCode());
script.appendChild(scriptCode);
}
// Save all form events
if(!formScript->eventList()->isEmpty())
- saveEventList(formScript->eventList(), tqparentNode);
+ saveEventList(formScript->eventList(), parentNode);
return true;
}
bool
-ScriptIO::loadFormEvents(TQDomNode &tqparentNode, Form *form, ScriptManager *manager)
+ScriptIO::loadFormEvents(TQDomNode &parentNode, Form *form, ScriptManager *manager)
{
- TQDomElement script = tqparentNode.namedItem("script").toElement();
- TQDomElement events = tqparentNode.namedItem("events").toElement();
+ TQDomElement script = parentNode.namedItem("script").toElement();
+ TQDomElement events = parentNode.namedItem("events").toElement();
// Load script code
FormScript *formScript = new FormScript(form, manager);
@@ -76,15 +76,15 @@ ScriptIO::saveAllEventsForWidget(TQObject *widget, FormScript *formScript, TQDom
}
void
-ScriptIO::saveEvent(Event *event, TQDomNode &tqparentNode)
+ScriptIO::saveEvent(Event *event, TQDomNode &parentNode)
{
if(!event)
return;
- TQDomDocument domDoc = tqparentNode.ownerDocument();
+ TQDomDocument domDoc = parentNode.ownerDocument();
TQDomElement eventNode = domDoc.createElement("event");
eventNode.setAttribute("type", event->type());
- tqparentNode.appendChild(eventNode);
+ parentNode.appendChild(eventNode);
switch(event->type()) {
case Event::Slot: {
@@ -138,14 +138,14 @@ ScriptIO::saveEvent(Event *event, TQDomNode &tqparentNode)
}
void
-ScriptIO::saveEventList(EventList *list, TQDomNode &tqparentNode)
+ScriptIO::saveEventList(EventList *list, TQDomNode &parentNode)
{
if(!list || list->isEmpty())
return;
- TQDomDocument domDoc = tqparentNode.ownerDocument();
+ TQDomDocument domDoc = parentNode.ownerDocument();
TQDomElement events = domDoc.createElement("events");
- tqparentNode.appendChild(events);
+ parentNode.appendChild(events);
TQValueListConstIterator<Event*> endIt = list->constEnd();
for(TQValueListConstIterator<Event*> it = list->constBegin(); it != endIt; ++it)