1
/***************************************************************************
2
* This file is part of KDevelop *
3
* Copyright 2008 David Nolden <david.nolden.kdevelop@art-master.de> *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU Library General Public License as *
7
* published by the Free Software Foundation; either version 2 of the *
8
* License, or (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU Library General Public *
16
* License along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19
***************************************************************************/
21
#ifndef PROGRESSDIALOGS_H
22
#define PROGRESSDIALOGS_H
24
#include <QProgressBar>
27
#include <language/duchain/indexedstring.h>
28
#include <language/duchain/topducontext.h>
34
class StringProgressBar : public QProgressBar {
36
virtual QString text() const;
38
void setText(KDevelop::IndexedString text);
41
KDevelop::IndexedString m_text;
44
class RefactoringProgressDialog : public QDialog {
47
RefactoringProgressDialog(QString action);
51
void progress(uint done, uint max);
53
void maximumProgress(uint max);
55
void setProcessing(KDevelop::IndexedString processing);
57
KDevelop::IndexedString m_processing;
58
QPushButton* m_cancelButton;
59
StringProgressBar* m_progressBar;
62
class CollectorProgressDialog : public RefactoringProgressDialog {
65
CollectorProgressDialog(QString action, KDevelop::UsesCollector& collector);
68
void processUses(KDevelop::ReferencedTopDUContext context);
71
KDevelop::UsesCollector& m_collector;