don't paint a background any more.
[kdebase.git] / runtime / kuiserver / progresslistdelegate_p.h
blob19870490af2860572a0bc99540c6db28010289b8
1 /**
2 * This file is part of the KDE project
3 * Copyright (C) 2007, 2006 Rafael Fernández López <ereslibre@kde.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License version 2 as published by the Free Software Foundation.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef PROGRESSLISTDELEGATE_P_H
21 #define PROGRESSLISTDELEGATE_P_H
23 #include "progresslistmodel.h"
25 #include <QtCore/QList>
26 #include <QtCore/QObject>
28 #include <QtGui/QListView>
29 #include <QtGui/QPushButton>
30 #include <QtGui/QProgressBar>
32 class QModelIndex;
33 class QString;
35 class ProgressListDelegate::Private
37 public:
38 Private(QListView *listView)
39 : listView(listView)
40 , progressBar(new QProgressBar(0))
44 ~Private()
46 delete progressBar;
49 QString getApplicationInternalName(const QModelIndex &index) const;
50 QString getApplicationName(const QModelIndex &index) const;
51 QString getIcon(const QModelIndex &index) const;
52 qlonglong getFileTotals(const QModelIndex &index) const;
53 qlonglong getFilesProcessed(const QModelIndex &index) const;
54 qlonglong getDirTotals(const QModelIndex &index) const;
55 qlonglong getDirsProcessed(const QModelIndex &index) const;
56 QString getSizeTotals(const QModelIndex &index) const;
57 QString getSizeProcessed(const QModelIndex &index) const;
58 qlonglong getTimeTotals(const QModelIndex &index) const;
59 qlonglong getTimeProcessed(const QModelIndex &index) const;
60 QString getFromLabel(const QModelIndex &index) const;
61 QString getFrom(const QModelIndex &index) const;
62 QString getToLabel(const QModelIndex &index) const;
63 QString getTo(const QModelIndex &index) const;
64 QString getSpeed(const QModelIndex &index) const;
65 int getPercent(const QModelIndex &index) const;
66 QString getMessage(const QModelIndex &index) const;
67 QString getProgressMessage(const QModelIndex &index) const;
68 int getCurrentLeftMargin(int fontHeight) const;
70 public:
71 int separatorPixels;
72 int leftMargin;
73 int rightMargin;
74 int minimumItemHeight;
75 int minimumContentWidth;
76 int editorHeight;
77 int iconWidth;
78 QListView *listView;
79 QProgressBar *progressBar;
82 #endif // PROGRESSLISTDELEGATE_P_H