2
* (C) 2004 Scott Wheeler <wheeler@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
14
#include "statusview.h"
16
#include <qscrollview.h>
17
#include <qvaluevector.h>
27
SummaryViewItem(unsigned int hostid, QWidget *parent, SummaryView *view, QGridLayout *layout);
29
void update(const Job &job);
32
QLabel *addLine(const QString &caption, QWidget *parent, QGridLayout *grid,
33
int flags = Qt::AlignTop,
34
const QString &status = QString::null);
38
JobHandler() : stateWidget(0), sourceLabel(0), stateLabel(0) {}
46
QFrame *m_stateWidget;
48
QLabel *m_sourceLabel;
53
QValueVector<JobHandler> m_jobHandlers;
54
QValueList<QWidget *> m_widgets;
57
class SummaryView : public QScrollView, public StatusView
62
SummaryView(HostInfoManager *h, QWidget *parent, const char *name = 0);
65
virtual QWidget *widget();
66
virtual void update(const Job &job);
67
virtual void checkNode(unsigned int hostid);
68
virtual QString id() const { return "summary"; }
71
virtual void viewportResizeEvent(QResizeEvent *e);
74
QMap<unsigned int, SummaryViewItem *> m_items;
75
QGridLayout *m_layout;