1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/*
* The TaskJuggler Project Management Software
*
* Copyright (c) 2001, 2002, 2003, 2004, 2005 by Chris Schlaeger <cs@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* $Id: TjReportBase.h 1275 2006-03-05 19:16:55Z cs $
*/
#ifndef _TjReportBase_h_
#define _TjReportBase_h_
#include <qwidget.h>
class CoreAttributes;
class Report;
class ReportManager;
class TjReportBase : public QWidget
{
Q_OBJECT
public:
TjReportBase(QWidget* p, ReportManager* m, Report* const rDef,
const QString& n = QString::null);
virtual ~TjReportBase() { }
Report* getReportDefinition() const { return reportDef; }
virtual bool generateReport() = 0;
void setLoadingProject(bool lp) { loadingProject = lp; }
virtual void print();
signals:
void signalChangeStatusBar(const QString& text);
void signalEditCoreAttributes(CoreAttributes*);
public slots:
virtual void zoomTo(const QString& label);
virtual void zoomIn();
virtual void zoomOut();
virtual void show();
virtual void hide();
protected:
TjReportBase() : reportDef(0) { }
ReportManager* manager;
Report* const reportDef;
bool loadingProject;
} ;
#endif
|