kexiscriptpart.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
4 Copyright (C) 2005 Sebastian Sauer <mail@dipe.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KEXISCRIPTPART_H
23#define KEXISCRIPTPART_H
24
25#include <tqdom.h>
26#include <tqcstring.h>
27
28#include <kexi.h>
29#include <kexipart.h>
30#include <kexidialogbase.h>
31
36{
37 TQ_OBJECT
38
39
40 public:
41
49 KexiScriptPart(TQObject *parent, const char *name, const TQStringList& args);
50
54 virtual ~KexiScriptPart();
55
60 virtual bool execute(KexiPart::Item* item, TQObject* sender = 0);
61
65 virtual TQString i18nMessage(const TQCString& englishMessage) const;
66
67 protected:
68
77 virtual KexiViewBase* createView(TQWidget *parent,
78 KexiDialogBase* dialog,
79 KexiPart::Item& item,
80 int viewMode = Kexi::DesignViewMode,
81 TQMap<TQString,TQString>* staticObjectArgs = 0);
82
86 virtual void initPartActions();
87
91 virtual void initInstanceActions();
92
93 private:
95 class Private;
97 Private* const d;
98};
99
100#endif
101
Base class for child window of Kexi's main application window.
Information about a single object that can be instantiated using Kexi Part.
The main class for kexi frontend parts like tables, queries, forms and reports.
Definition kexipart.h:66
Kexi Scripting Plugin.
virtual bool execute(KexiPart::Item *item, TQObject *sender=0)
Implementation of the KexiPart::Part::execute method used to execute the passed item instance.
virtual ~KexiScriptPart()
Destructor.
virtual KexiViewBase * createView(TQWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode=Kexi::DesignViewMode, TQMap< TQString, TQString > *staticObjectArgs=0)
Create a new view.
virtual TQString i18nMessage(const TQCString &englishMessage) const
virtual void initPartActions()
Initialize the part's actions.
virtual void initInstanceActions()
Initialize the instance actions.
Base class for single view embeddable of in KexiDialogBase.