Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/codegen/clangrefactoring.h
Show All 36 Lines | |||||
37 | 37 | | |||
38 | class KDEVCLANGPRIVATE_EXPORT ClangRefactoring : public KDevelop::BasicRefactoring | 38 | class KDEVCLANGPRIVATE_EXPORT ClangRefactoring : public KDevelop::BasicRefactoring | ||
39 | { | 39 | { | ||
40 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | 41 | | |||
42 | public: | 42 | public: | ||
43 | explicit ClangRefactoring(QObject* parent = nullptr); | 43 | explicit ClangRefactoring(QObject* parent = nullptr); | ||
44 | 44 | | |||
45 | void fillContextMenu(KDevelop::ContextMenuExtension& extension, KDevelop::Context* context) override; | 45 | void fillContextMenu(KDevelop::ContextMenuExtension& extension, KDevelop::Context* context, QWidget* parent) override; | ||
46 | 46 | | |||
47 | QString moveIntoSource(const KDevelop::IndexedDeclaration& iDecl); | 47 | QString moveIntoSource(const KDevelop::IndexedDeclaration& iDecl); | ||
48 | 48 | | |||
49 | public Q_SLOTS: | 49 | public Q_SLOTS: | ||
50 | void executeMoveIntoSourceAction(); | 50 | void executeMoveIntoSourceAction(); | ||
51 | 51 | | |||
52 | protected: | 52 | protected: | ||
53 | KDevelop::DocumentChangeSet::ChangeResult applyChangesToDeclarations(const QString& oldName, const QString& newName, KDevelop::DocumentChangeSet& changes, const QList<KDevelop::IndexedDeclaration>& declarations) override; | 53 | KDevelop::DocumentChangeSet::ChangeResult applyChangesToDeclarations(const QString& oldName, const QString& newName, KDevelop::DocumentChangeSet& changes, const QList<KDevelop::IndexedDeclaration>& declarations) override; | ||
54 | 54 | | |||
55 | private: | 55 | private: | ||
56 | friend TestRefactoring; | 56 | friend TestRefactoring; | ||
57 | 57 | | |||
58 | bool validCandidateToMoveIntoSource(KDevelop::Declaration* decl); | 58 | bool validCandidateToMoveIntoSource(KDevelop::Declaration* decl); | ||
59 | }; | 59 | }; | ||
60 | 60 | | |||
61 | #endif | 61 | #endif |