kexi
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) |
Member Function Documentation
bool ScriptIO::saveFormEvents | ( | QDomNode & | parentNode, | |
FormScript * | script | |||
) | [static] |
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.
bool ScriptIO::loadFormEvents | ( | QDomNode & | parentNode, | |
Form * | form, | |||
ScriptManager * | manager | |||
) | [static] |
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.
bool ScriptIO::saveAllEventsForWidget | ( | QObject * | widget, | |
FormScript * | fscript, | |||
QDomNode & | node | |||
) | [static] |
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.
The documentation for this class was generated from the following files: