Changeset View
Changeset View
Standalone View
Standalone View
vcs/vcspluginhelper.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
42 | VcsPluginHelper(IPlugin * parent, IBasicVersionControl * vcs); | 42 | VcsPluginHelper(IPlugin * parent, IBasicVersionControl * vcs); | ||
43 | ~VcsPluginHelper() override; | 43 | ~VcsPluginHelper() override; | ||
44 | 44 | | |||
45 | void setupFromContext(KDevelop::Context*); | 45 | void setupFromContext(KDevelop::Context*); | ||
46 | void addContextDocument(const QUrl& url); | 46 | void addContextDocument(const QUrl& url); | ||
47 | QList<QUrl> contextUrlList() const; | 47 | QList<QUrl> contextUrlList() const; | ||
48 | /** | 48 | /** | ||
49 | * Creates and returns a menu with common actions. | 49 | * Creates and returns a menu with common actions. | ||
50 | * Ownership of the menu itself is passed to the caller. | | |||
51 | * Ownership of the actions in the menu stays with this VcsPluginHelper object. | 50 | * Ownership of the actions in the menu stays with this VcsPluginHelper object. | ||
51 | * @param parent the parent widget set for the QMenu for memory menagement | ||||
52 | */ | 52 | */ | ||
53 | QMenu* commonActions(); | 53 | QMenu* commonActions(QWidget* parent); | ||
54 | 54 | | |||
55 | public Q_SLOTS: | 55 | public Q_SLOTS: | ||
56 | void commit(); | 56 | void commit(); | ||
57 | void add(); | 57 | void add(); | ||
58 | void revert(); | 58 | void revert(); | ||
59 | void history(const VcsRevision& rev = VcsRevision::createSpecialRevision( VcsRevision::Base )); | 59 | void history(const VcsRevision& rev = VcsRevision::createSpecialRevision( VcsRevision::Base )); | ||
60 | void annotation(); | 60 | void annotation(); | ||
61 | void annotationContextMenuAboutToShow( KTextEditor::View* view, QMenu* menu, int line); | 61 | void annotationContextMenuAboutToShow( KTextEditor::View* view, QMenu* menu, int line); | ||
Show All 25 Lines |