~ubuntu-branches/ubuntu/trusty/kdevplatform/trusty-proposed

« back to all changes in this revision

Viewing changes to vcs/dvcs/ui/branchmanager.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2013-12-09 17:24:43 UTC
  • mfrom: (0.3.25)
  • Revision ID: package-import@ubuntu.com-20131209172443-rstb3roh6fj0c5vw
Tags: 1.6.0-0ubuntu1
* New upstream release (LP: #1259220)
* Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
19
19
 ***************************************************************************/
20
20
 
21
 
#ifndef BRANCH_MANAGER_H
22
 
#define BRANCH_MANAGER_H
 
21
#ifndef KDEVPLATFORM_BRANCH_MANAGER_H
 
22
#define KDEVPLATFORM_BRANCH_MANAGER_H
23
23
 
24
 
#include <QtGui/QStringListModel>
25
24
#include <KDE/KDialog>
26
 
#include <QStandardItemModel>
27
25
 
28
 
class BranchesListModel;
29
26
class KJob;
 
27
 
30
28
namespace Ui { class BranchDialogBase; }
31
29
 
32
30
namespace KDevelop
33
31
{
34
 
    class DistributedVersionControlPlugin;
35
 
class IBranchingVersionControl;
 
32
class BranchesListModel;
 
33
class DistributedVersionControlPlugin;
36
34
}
37
35
 
38
36
class BranchManager : public KDialog
39
37
{
40
38
    Q_OBJECT
41
39
public:
42
 
    BranchManager(const QString &_repo, KDevelop::DistributedVersionControlPlugin* executor, QWidget *parent = 0);
 
40
    BranchManager(const QString& repository, KDevelop::DistributedVersionControlPlugin* executor, QWidget *parent = 0);
43
41
    ~BranchManager();
44
 
    
45
 
    bool isValid() const { return m_valid; }
46
42
 
47
43
signals:
48
44
    void checkedOut(KJob*);
49
45
 
50
46
private slots:
51
47
    void createBranch();
52
 
    void delBranch();
 
48
    void deleteBranch();
 
49
    void renameBranch();
53
50
    void checkoutBranch();
54
51
 
55
52
private:
56
 
    QString repo;
57
 
    KDevelop::DistributedVersionControlPlugin* d;
 
53
    QString m_repository;
 
54
    KDevelop::DistributedVersionControlPlugin* m_dvcPlugin;
58
55
 
59
56
    Ui::BranchDialogBase* m_ui;
60
 
    BranchesListModel* m_model;
61
 
    bool m_valid;
62
 
    
 
57
    KDevelop::BranchesListModel* m_model;
63
58
};
64
59
 
65
60
#endif