kexi

kexirelationpartimpl.cpp

00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Lucijan Busch <lucijan@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #include "kexirelationmaindlg.h"
00021 #include "kexirelationpartimpl.h"
00022 
00023 #include <kexirelationwidget.h>
00024 #include <kexidialogbase.h>
00025 #include <keximainwindow.h>
00026 
00027 #include <kgenericfactory.h>
00028 #include <kiconloader.h>
00029 #include <kdebug.h>
00030 
00031 KexiRelationPartImpl::KexiRelationPartImpl(QObject *parent, const char *name, const QStringList &args)
00032  : KexiInternalPart(parent, name, args)
00033 {
00034     kdDebug() << "KexiRelationPartImpl()" << endl;
00035 }
00036 
00037 KexiRelationPartImpl::~KexiRelationPartImpl()
00038 {
00039 }
00040 
00041 /*QWidget *
00042 KexiRelationPartImpl::createWidget(const char* , KexiMainWindow* mainWin, 
00043  QWidget *parent, const char *objName)
00044 {
00045     return new KexiRelationWidget(mainWin, parent, objName);
00046 }*/
00047 
00048 /*KexiDialogBase *
00049 KexiRelationPartImpl::createDialog(KexiMainWindow* mainWin, const char *)
00050 {
00051     kdDebug() << "KexiRelationPartImpl::createDialog()" << endl;
00052     KexiDialogBase * dlg = new KexiDialogBase(mainWin, i18n("Relations"));
00053     dlg->setIcon(SmallIcon("relation"));
00054     dlg->setDocID( mainWin->generatePrivateDocID() );
00055 
00056     KexiRelationMainDlg *view = new KexiRelationMainDlg(mainWin, 0, "relations");
00057     dlg->addView(view);
00058 //  dlg->show();
00059 //  dlg->registerDialog();
00060 
00061     return dlg;
00062 }*/
00063 
00064 KexiViewBase *
00065 KexiRelationPartImpl::createView(KexiMainWindow* mainWin, QWidget *parent, const char *)
00066 {
00067 //  kdDebug() << "KexiRelationPartImpl::createDialog()" << endl;
00068 //  KexiDialogBase * dlg = new KexiDialogBase(mainWin, i18n("Relations"));
00069 //  dlg->setIcon(SmallIcon("relation"));
00070 //  dlg->setDocID( mainWin->generatePrivateDocID() );
00071 
00072     KexiRelationMainDlg *view = new KexiRelationMainDlg(mainWin, parent, "relations");
00073 //  dlg->addView(view);
00074 //  dlg->show();
00075 //  dlg->registerDialog();
00076 
00077     return view;
00078 }
00079 
00080 
00081 K_EXPORT_COMPONENT_FACTORY( kexihandler_relation, 
00082     KGenericFactory<KexiRelationPartImpl>("kexihandler_relation") )
00083 
00084 #include "kexirelationpartimpl.moc"
00085 
KDE Home | KDE Accessibility Home | Description of Access Keys