ScriptIO Class Reference
#include <scriptIO.h>
Detailed Description
A static class to deal with loading/saving events from/to XML.
Definition at line 39 of file scriptIO.h.
Static Public Member Functions | |
| static bool | saveFormEvents (QDomNode &parentNode, FormScript *script) |
| static bool | loadFormEvents (QDomNode &parentNode, Form *form, ScriptManager *manager) |
| static bool | saveAllEventsForWidget (QObject *widget, FormScript *fscript, QDomNode &node) |
| static void | saveEvent (Event *event, QDomNode &parentNode) |
| static void | saveEventList (EventList *list, QDomNode &parentNode) |
| static void | loadEvent (QDomNode &node, EventList *list, Form *form) |
Protected Member Functions | |
| ScriptIO () | |
| ~ScriptIO () | |
Constructor & Destructor Documentation
|
|
Definition at line 59 of file scriptIO.h. |
|
|
Definition at line 60 of file scriptIO.h. |
Member Function Documentation
|
||||||||||||||||
|
Definition at line 156 of file scriptIO.cpp. References EventList::addEvent(), KFormDesigner::Form::objectTree(), Event::setReceiver(), Event::setSender(), Event::setSignal(), Event::setSlot(), Event::setType(), Event::Slot, Event::UserFunction, and KFormDesigner::ObjectTreeItem::widget(). Referenced by loadFormEvents(). |
|
||||||||||||||||
|
Reads the <events> tag (parentNode), then creates and fills a FormScript object linked to this form. The new FormScript object is then added to ScriptManager list. Definition at line 50 of file scriptIO.cpp. References FormScript::eventList(), loadEvent(), FormScript::scriptContainer(), and FormScript::setCode(). |
|
||||||||||||||||
|
Save only the events related to widget name in the FormScript fscript. Used eg when copying/pasting widgets to keep also events related to it. Definition at line 71 of file scriptIO.cpp. References FormScript::eventList(), and saveEventList(). |
|
||||||||||||
|
Definition at line 79 of file scriptIO.cpp. References Event::Action, Event::receiver(), Event::sender(), Event::signal(), Event::slot(), Event::Slot, Event::type(), and Event::UserFunction. Referenced by saveEventList(). |
|
||||||||||||
|
Definition at line 141 of file scriptIO.cpp. References saveEvent(). Referenced by saveAllEventsForWidget(), and saveFormEvents(). |
|
||||||||||||
|
Save the evnts of a form. Creates an <events> tag, and then one <event> tag for each event. Each event contains <sender> and <receiver> tags, with attributes depending on event type. Definition at line 30 of file scriptIO.cpp. References FormScript::eventList(), FormScript::getCode(), saveEventList(), and FormScript::scriptContainer(). |
The documentation for this class was generated from the following files:
