kexi

keximacropart.h
1/* This file is part of the KDE project
2 Copyright (C) 2006 Sebastian Sauer <mail@dipe.org>
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 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12 You should have received a copy of the GNU Library General Public License
13 along with this library; see the file COPYING.LIB. If not, write to
14 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
15 Boston, MA 02110-1301, USA.
16*/
17
18#ifndef KEXIMACROPART_H
19#define KEXIMACROPART_H
20
21//#include <tqcstring.h>
22
23#include <kexi.h>
24#include <kexipart.h>
25#include <kexidialogbase.h>
26
31{
32 TQ_OBJECT
33
34
35 public:
36
44 KexiMacroPart(TQObject *parent, const char *name, const TQStringList& args);
45
49 virtual ~KexiMacroPart();
50
55 virtual bool execute(KexiPart::Item* item, TQObject* sender = 0);
56
60 virtual TQString i18nMessage(const TQCString& englishMessage) const;
61
62 protected:
63
72 virtual KexiViewBase* createView(TQWidget *parent,
73 KexiDialogBase* dialog,
74 KexiPart::Item& item,
75 int viewMode = Kexi::DesignViewMode,
76 TQMap<TQString,TQString>* staticObjectArgs = 0);
77
81 virtual void initPartActions();
82
86 virtual void initInstanceActions();
87
88 private:
90 class Private;
92 Private* const d;
93};
94
95#endif
96
Base class for child window of Kexi's main application window.
KexiMacroPart(TQObject *parent, const char *name, const TQStringList &args)
Constructor.
virtual bool execute(KexiPart::Item *item, TQObject *sender=0)
Implementation of the KexiPart::Part::action method used to provide scripts as TDEAction's to the out...
virtual ~KexiMacroPart()
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 void initInstanceActions()
Initialize the instance actions.
virtual void initPartActions()
Initialize the part's actions.
virtual TQString i18nMessage(const TQCString &englishMessage) const
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
Base class for single view embeddable of in KexiDialogBase.