kexi

kexistaticpart.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2003 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#include "kexistaticpart.h"
22#include "kexipartinfo_p.h"
23#include "kexipartitem.h"
24#include "kexi.h"
25
26using namespace KexiPart;
27
28//------------------------------
29
30StaticInfo::StaticInfo(const TQCString& mimeType, const TQString& itemIcon, const TQString& objectName)
31 : Info()
32{
33 d->mimeType = mimeType;
34 d->itemIcon = itemIcon;
35 d->objectName = objectName;
36}
37
38StaticInfo::~StaticInfo()
39{
40}
41
42//------------------------------
43
44StaticPart::StaticPart(const TQCString& mimeType, const TQString& itemIcon, const TQString& objectName)
45 : Part(&Kexi::partManager(), new StaticInfo(mimeType, itemIcon, objectName))
46{
48}
49
50StaticPart::~StaticPart()
51{
52}
53
55 KexiPart::Item &item, int viewMode)
56{
57 Q_UNUSED(parent);
58 Q_UNUSED(dialog);
59 Q_UNUSED(item);
60 Q_UNUSED(viewMode);
61 //unused
62 return 0;
63}
Base class for child window of Kexi's main application window.
Information about a Kexi Part (plugin).
TQCString mimeType() const
Information about a single object that can be instantiated using Kexi Part.
void insertStaticPart(KexiPart::StaticPart *part)
Used by StaticPart.
The main class for kexi frontend parts like tables, queries, forms and reports.
Definition kexipart.h:66
Information about a static Kexi Part (plugin).
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.
Namespace for general Kexi functions.
Definition kexi.h:38
KEXICORE_EXPORT KexiPart::Manager & partManager()
shared part manager
Definition kexi.cpp:97