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 () |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 34 of file formscript.cpp. References ScriptManager::krossManager(), and KFormDesigner::Form::widget(). |
|
|
Definition at line 40 of file formscript.cpp. |
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. References Event::Action, EventList::constBegin(), EventList::constEnd(), KFormDesigner::Form::objectTree(), Event::Slot, Event::UserFunction, and KFormDesigner::Form::widget(). |
|
|
Definition at line 52 of file formscript.h. Referenced by ScriptIO::loadFormEvents(), ScriptIO::saveAllEventsForWidget(), and ScriptIO::saveFormEvents(). |
|
|
Executes the functionName.
Definition at line 67 of file formscript.cpp. |
|
|
Definition at line 45 of file formscript.cpp. Referenced by ScriptIO::saveFormEvents(). |
|
|
Definition at line 53 of file formscript.h. Referenced by ScriptIO::loadFormEvents(), and ScriptIO::saveFormEvents(). |
|
|
Replaces the actual form code with the string code. Called eg by (future) script editor. Definition at line 52 of file formscript.cpp. Referenced by ScriptIO::loadFormEvents(). |
The documentation for this class was generated from the following files:
