kexi

kexistaticpart.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2003,2005 Jaroslaw Staniek <js@iidea.pl>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KEXISTATICPART_H
22#define KEXISTATICPART_H
23
24#include "kexipart.h"
25#include "kexipartinfo.h"
26
27namespace KexiPart
28{
29
33class KEXICORE_EXPORT StaticInfo : public Info
34{
35 public:
36 StaticInfo(const TQCString& mimeType, const TQString& itemIcon, const TQString& objectName);
37 ~StaticInfo();
38
39 protected:
40};
41
45class KEXICORE_EXPORT StaticPart : public Part
46{
47 public:
48 StaticPart(const TQCString& mimeType, const TQString& itemIcon, const TQString& objectName);
49 virtual ~StaticPart();
50
53 virtual KexiViewBase* createView(TQWidget *parent, KexiDialogBase* dialog,
54 KexiPart::Item &item, int viewMode, TQMap<TQString,TQString>* args) = 0;
55
56 protected:
58 KexiViewBase* createView(TQWidget *parent, KexiDialogBase* dialog,
59 KexiPart::Item &item, int viewMode = Kexi::DataViewMode);
60};
61
62}
63
64#endif
Base class for child window of Kexi's main application window.
TQCString mimeType() const
TQString itemIcon() const
TQString objectName() const
Information about a single object that can be instantiated using Kexi Part.
Part(TQObject *parent, const char *name, const TQStringList &)
Definition kexipart.cpp:90
virtual KexiViewBase * createView(TQWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode, TQMap< TQString, TQString > *args)=0
Base class for single view embeddable of in KexiDialogBase.