File indexing completed on 2024-06-23 04:34:36
0001 /* 0002 SPDX-FileCopyrightText: 2008 David Nolden <david.nolden.kdevelop@art-master.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_REFACTORINGDIALOG_H 0008 #define KDEVPLATFORM_REFACTORINGDIALOG_H 0009 0010 #include <QDialog> 0011 #include <language/duchain/topducontext.h> 0012 0013 #include "ui_refactoringdialog.h" 0014 0015 namespace KDevelop { 0016 class UsesCollector; 0017 0018 class RefactoringProgressDialog 0019 : public QDialog 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 RefactoringProgressDialog(const QString& action, UsesCollector* collector); 0025 0026 private Q_SLOTS: 0027 void progress(uint done, uint max); 0028 void maximumProgress(uint max); 0029 void processUses(const KDevelop::ReferencedTopDUContext& context); 0030 0031 private: 0032 UsesCollector* m_collector; 0033 Ui::RefactoringDialog m_rd; 0034 }; 0035 } 0036 #endif