kexi
FormScript Class Reference
#include <formscript.h>
Detailed Description
A class that stores the code and events related to a single form.
Definition at line 44 of file formscript.h.
Public Member Functions | |
FormScript (Form *form, ScriptManager *manager, const char *name=0) | |
~FormScript () | |
EventList * | eventList () |
Kross::Api::ScriptContainer * | scriptContainer () |
QString | getCode (const QString &functionName=QString::null) |
void | setCode (const QString &code) |
void | appendCode (const QString &code) |
bool | execute (const QString &functionName) |
void | connectEvents () |
Member Function Documentation
|
Adds the string code at the end of current code. Used to add a function in the script. Definition at line 58 of file formscript.cpp. |
|
Really connects all events in the list. Also calls Kross;;Api::Manager::addObject for each widget in the form to allow the user to use these widgets in the script. Definition at line 81 of file formscript.cpp. |
|
Executes the functionName.
Definition at line 67 of file formscript.cpp. |
|
Definition at line 45 of file formscript.cpp. |
|
Replaces the actual form code with the string code. Called eg by (future) script editor. Definition at line 52 of file formscript.cpp. |
The documentation for this class was generated from the following files: