1
/***************************************************************************
2
* Copyright (C) 2005 by Adam Treat *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
17
#include <kapplication.h>
18
#include <kparts/mainwindow.h>
19
#include <kparts/browserextension.h>
24
class DataReport : public QHBox
28
DataReport( Project *project );
29
DataReport( Project *project, DataTable* parent );
31
virtual ~DataReport();
33
void setAsActiveReport( bool active );
37
DataTable *parent() const;
38
KParts::ReadOnlyPart *kugarPart() const;
42
virtual QString name() const;
43
void setName( const QString &n );
45
QString iconName() const;
46
void setIconName( const QString &n );
48
QString templateURL() const;
49
void setTemplateURL( const QString &url );
51
QString dataSearch() const;
52
void setDataSearch( const QString &dataSearch );
54
void addTable( const QString &table );
56
QStringList tables() const;
58
QStringList sort() const;
59
void setSort( const QStringList &sort );
68
void signalNameChanged( const QString &name );
69
void reportRefreshed();
73
QMap<QString, int> readTemplateFields() const;
78
KParts::ReadOnlyPart *m_part;
79
KParts::BrowserExtension *m_browser;
82
QString m_dataReportName;
83
QString m_dataReportIconName;
84
QString m_templateURL;