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

kdevelop/kdevplatform/vcs

  • extragear
  • kdevelop
  • 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
BranchManager::BranchManager
BranchManager(const QString &repository, KDevelop::DistributedVersionControlPlugin *executor, QWidget *parent=nullptr)
Definition: branchmanager.cpp:46
KDevelop::DistributedVersionControlPlugin
DistributedVersionControlPlugin is a base class for git/hg/bzr plugins.
Definition: dvcsplugin.h:48
KDevelop::BranchesListModel
Definition: brancheslistmodel.h:35
BranchManager
Definition: branchmanager.h:38
BranchManager::checkedOut
void checkedOut(KJob *)
QString
QSortFilterProxyModel
BranchManager::~BranchManager
~BranchManager() override
Definition: branchmanager.cpp:103
QDialog
QObject::parent
QObject * parent() const
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 02:16:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevelop/kdevplatform/vcs

Skip menu "kdevelop/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