kexi

scriptIO.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef SCRIPTIO_H
21#define SCRIPTIO_H
22
23#include <tqdom.h>
24
25class TQString;
26class TQObject;
27class Event;
28class EventList;
29class ScriptManager;
30class FormScript;
31
32namespace KFormDesigner {
33 class Form;
34}
35
36using namespace KFormDesigner;
37
39class ScriptIO
40{
41 public:
45 static bool saveFormEvents(TQDomNode &parentNode, FormScript *script);
48 static bool loadFormEvents(TQDomNode &parentNode, Form *form, ScriptManager *manager);
49
52 static bool saveAllEventsForWidget(TQObject *widget, FormScript *fscript, TQDomNode &node);
53
54 static void saveEvent(Event *event, TQDomNode &parentNode);
55 static void saveEventList(EventList *list, TQDomNode &parentNode);
56 static void loadEvent(TQDomNode &node, EventList *list, Form *form);
57
58 protected:
59 ScriptIO() {;}
60 ~ScriptIO() {;}
61};
62
63#endif
64
A simple class to store events.
Definition kexievents.h:39
A class that stores the code and events related to a single form.
Definition formscript.h:45
A simple class representing a form.
Definition form.h:136
static bool saveFormEvents(TQDomNode &parentNode, FormScript *script)
Definition scriptIO.cpp:30
static bool saveAllEventsForWidget(TQObject *widget, FormScript *fscript, TQDomNode &node)
Definition scriptIO.cpp:71
static bool loadFormEvents(TQDomNode &parentNode, Form *form, ScriptManager *manager)
Definition scriptIO.cpp:50