Remove unused libkochart

parent bdacc997
include_directories( ${KOMAIN_INCLUDES} )
########### next target ###############
set(kochart_LIB_SRCS koChart.cc)
kde4_add_library(kochart SHARED ${kochart_LIB_SRCS})
target_link_libraries(kochart komain )
set_target_properties(kochart PROPERTIES VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION} )
install(TARGETS kochart ${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install(FILES KoGenericRegistry.h KoID.h koChart.h KoChartInterface.h KoChartModel.h
install(FILES KoGenericRegistry.h KoID.h KoChartInterface.h KoChartModel.h
DESTINATION ${INCLUDE_INSTALL_DIR}/calligra COMPONENT Devel)
/* This file is part of the KDE project
Copyright (C) 2000-2002 Kalle Dalheimer <kalle@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "koChart.h"
#include <QObject>
using namespace KoChart;
WizardExtension::WizardExtension( Part *part )
: QObject( part )
{
m_part = part;
}
WizardExtension::~WizardExtension()
{
}
Part::Part(QObject *parent)
: KoPart(parent)
{
}
Part::~Part()
{
}
WizardExtension *Part::wizardExtension()
{
QObjectList::ConstIterator end( QObject::children().end() );
for (QObjectList::ConstIterator it( QObject::children().begin() ); it != end; ++it ) {
WizardExtension* we = ::qobject_cast<WizardExtension *>( *it );
if ( we )
return we;
}
return 0;
}
#include "koChart.moc"
/* This file is part of the KDE project
Copyright (C) 2000-2002 Kalle Dalheimer <kalle@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __koChart_h__
#define __koChart_h__
#include <QVariant>
#include <QVector>
#include <QRect>
#include <QtPlugin>
#include <KoDocument.h>
#include <KoPart.h>
#include "kochart_export.h"
#include "KoChartModel.h"
#define ChartShapeId "ChartShape"
class QAbstractItemModel;
namespace KoChart
{
class Part;
// KoChart::Value is either:
// - a double (interpreted as a value)
// - a QString (interpreted as a label)
// - a QDateTime (interpreted as a date/time value)
// - Invalid (interpreted as empty)
typedef QVariant Value;
//typedef KDChartTableData Data;
class KOCHART_EXPORT WizardExtension : public QObject
{
Q_OBJECT
public:
explicit WizardExtension( Part *part );
virtual ~WizardExtension();
Part *part() const { return m_part; }
virtual bool show( QString &area ) = 0;
// XXX add more?
private:
Part *m_part;
class WizardExtensionPrivate;
WizardExtensionPrivate *d;
};
class KOCHART_EXPORT Part : public KoPart
{
Q_OBJECT
public:
explicit Part(QObject *parent);
virtual ~Part();
// The new interface.
virtual void setCanChangeValue( bool b )=0;
virtual WizardExtension *wizardExtension();
private:
class PartPrivate;
PartPrivate *d;
};
} // namespace KoChart
#endif
/* This file is part of the KDE project
Copyright (C) 2006 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KOCHART_EXPORT_H
#define KOCHART_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef KOCHART_EXPORT
# if defined(MAKE_KOCHART_LIB)
/* We are building this library */
# define KOCHART_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define KOCHART_EXPORT KDE_IMPORT
# endif
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment