kexi

#include <scriptIO.h>

Static Public Member Functions

static bool saveFormEvents (TQDomNode &parentNode, FormScript *script)
 
static bool loadFormEvents (TQDomNode &parentNode, Form *form, ScriptManager *manager)
 
static bool saveAllEventsForWidget (TQObject *widget, FormScript *fscript, TQDomNode &node)
 
static void saveEvent (Event *event, TQDomNode &parentNode)
 
static void saveEventList (EventList *list, TQDomNode &parentNode)
 
static void loadEvent (TQDomNode &node, EventList *list, Form *form)
 

Detailed Description

A static class to deal with loading/saving events from/to XML.

Definition at line 39 of file scriptIO.h.

Constructor & Destructor Documentation

◆ ScriptIO()

ScriptIO::ScriptIO ( )
inlineprotected

Definition at line 59 of file scriptIO.h.

◆ ~ScriptIO()

ScriptIO::~ScriptIO ( )
inlineprotected

Definition at line 60 of file scriptIO.h.

Member Function Documentation

◆ loadEvent()

void ScriptIO::loadEvent ( TQDomNode &  node,
EventList *  list,
Form *  form 
)
static

Definition at line 156 of file scriptIO.cpp.

◆ loadFormEvents()

bool ScriptIO::loadFormEvents ( TQDomNode &  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.

◆ saveAllEventsForWidget()

bool ScriptIO::saveAllEventsForWidget ( TQObject *  widget,
FormScript *  fscript,
TQDomNode &  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.

◆ saveEvent()

void ScriptIO::saveEvent ( Event *  event,
TQDomNode &  parentNode 
)
static

Definition at line 79 of file scriptIO.cpp.

◆ saveEventList()

void ScriptIO::saveEventList ( EventList *  list,
TQDomNode &  parentNode 
)
static

Definition at line 141 of file scriptIO.cpp.

◆ saveFormEvents()

bool ScriptIO::saveFormEvents ( TQDomNode &  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.


The documentation for this class was generated from the following files: