• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/vcs

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • vcs
  • dvcs
  • ui
branchmanager.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2008 Evgeniy Ivanov <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License or (at your option) version 3 or any later version *
8  * accepted by the membership of KDE e.V. (or its successor approved *
9  * by the membership of KDE e.V.), which shall act as a proxy *
10  * defined in Section 14 of version 3 of the license. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
19  ***************************************************************************/
20 
21 #ifndef KDEVPLATFORM_BRANCH_MANAGER_H
22 #define KDEVPLATFORM_BRANCH_MANAGER_H
23 
24 #include <QDialog>
25 
26 class KJob;
27 
28 namespace Ui { class BranchDialogBase; }
29 
30 class QSortFilterProxyModel;
31 
32 namespace KDevelop
33 {
34 class BranchesListModel;
35 class DistributedVersionControlPlugin;
36 }
37 
38 class BranchManager : public QDialog
39 {
40  Q_OBJECT
41 public:
42  BranchManager(const QString& repository, KDevelop::DistributedVersionControlPlugin* executor, QWidget *parent = nullptr);
43  ~BranchManager() override;
44 
45 Q_SIGNALS:
46  void checkedOut(KJob*);
47 
48 private Q_SLOTS:
49  void createBranch();
50  void deleteBranch();
51  void renameBranch();
52  void checkoutBranch();
53  void mergeBranch();
54  void diffFromBranch();
55  void diffJobFinished(KJob* job);
56 
57 private:
58  QString m_repository;
59  KDevelop::DistributedVersionControlPlugin* m_dvcPlugin;
60 
61  Ui::BranchDialogBase* m_ui;
62  KDevelop::BranchesListModel* m_model;
63  QSortFilterProxyModel* m_filterModel;
64 };
65 
66 #endif
QWidget
KDevelop::BranchesListModel
Definition: brancheslistmodel.h:52
BranchManager::~BranchManager
~BranchManager() override
Definition: branchmanager.cpp:102
BranchManager::checkedOut
void checkedOut(KJob *)
QSortFilterProxyModel
QString
Ui
Definition: branchmanager.h:27
KJob
KDevelop::DistributedVersionControlPlugin
DistributedVersionControlPlugin is a base class for git/hg/bzr plugins.
Definition: dvcsplugin.h:47
BranchManager::BranchManager
BranchManager(const QString &repository, KDevelop::DistributedVersionControlPlugin *executor, QWidget *parent=nullptr)
Definition: branchmanager.cpp:45
BranchManager
Definition: branchmanager.h:37
KDevelop
Definition: dvcsevent.h:33
QDialog
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Mar 7 2021 23:30:29 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/vcs

Skip menu "kdevplatform/vcs"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal