1
/***************************************************************************
2
* Copyright (C) 2006 by Carsten Niehaus <cniehaus@kde.org>
3
* Copyright (C) 2007-2008 by Marcus D. Hanwell <marcus@cryos.org>
4
***************************************************************************/
6
/***************************************************************************
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
13
***************************************************************************/
14
#include "kalziumglpart.h"
16
#include "kalziumglwidget.h"
18
#include <kparts/genericfactory.h>
20
KAboutData kalziumGLPartAboutData()
23
"kalzium", QByteArray(), ki18n("Kalzium OpenGL Part"), "1.1.1",
24
ki18n("A cool thing"),
25
KAboutData::License_GPL, ki18n("(c) 2006, Carsten Niehaus"),
27
"http://edu.kde.org/kalzium/index.php"
29
aboutData.addAuthor(ki18n("Carsten Niehaus"), KLocalizedString(), "cniehaus@kde.org");
30
aboutData.addAuthor(ki18n("Marcus D. Hanwell"), KLocalizedString(), "marcus@cryos.org");
35
K_PLUGIN_FACTORY(KalziumGLPartFactory, registerPlugin<KalziumGLPart>();)
36
K_EXPORT_PLUGIN(KalziumGLPartFactory(kalziumGLPartAboutData()))
38
KalziumGLPart::KalziumGLPart(QWidget* parentWidget, QObject* parent, const QVariantList& args)
41
Q_UNUSED(parentWidget);
43
kDebug() << "KalziumGLPart::KalziumGLPart()";
45
m_widget = new KalziumGLWidget();
46
m_widget->setObjectName("KalziumGLWidget-KPart");
49
KalziumGLPart::~KalziumGLPart()
52
kDebug() << "KalziumGLPart::~KalziumGLPart()";
55
bool KalziumGLPart::openFile()
57
return m_widget->openFile( url().toLocalFile() );
60
#include "kalziumglpart.moc"