~ubuntu-branches/ubuntu/oneiric/kdesdk/oneiric-updates

« back to all changes in this revision

Viewing changes to dolphin-plugins/git/checkoutdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers, Modestas Vainius, George Kiagiadakis, José Manuel Santamaría Lema, Pino Toscano
  • Date: 2011-04-27 12:23:44 UTC
  • mfrom: (1.1.58 upstream) (0.5.7 squeeze)
  • mto: (0.5.8 sid)
  • mto: This revision was merged to the branch mainline in revision 120.
  • Revision ID: james.westby@ubuntu.com-20110427122344-t9d1jf4lfnrl6hyv
Tags: 4:4.6.2-1
* New upstream release:
  - fixes plugin loading in kate sessions (Closes: #525853)
  - updates kate man page with respect to instance creation defaults
    (Closes: #598443)
  - fixes cursor position with static word-wrap in Kate (Closes: #570409)
  - xml2pot creates .pot files with the correct mimetype (Closes: #326060)
* Update installed files.
* Update lintian overrides.

[ Modestas Vainius ]
* Point debian/control Vcs fields to the new Git repository.
* Strip sequence numbers from debian/patches.
* Strip trailing whitespace in debian/copyright.
* Add kdeutils-dbg (<< 4:4.6) to kdesdk-dbg Breaks/Replaces (due to moved
  okteta).
* Add ${perl:Depends} to Depends of cervisia and kdesdk-kio-plugins.

[ George Kiagiadakis ]
* Add myself to uploaders.
* Refresh patch 02_append_kde.diff.
* Drop patch 03_kmtrace_compile.diff; fixed upstream in a better way.
* Add libkonq5-dev, libantlr-dev and antlr to build depends.
  (Closes: #505425)
* Bump kdepimlibs5-dev build dependency to version 4:4.6.
* Add new package: kdesdk-dolphin-plugins.

[ José Manuel Santamaría Lema ]
* Remove package kbugbuster.
* Enable DebianABIManager:
  - include DebianABIManager.cmake at the bottom of the main CMakeLists.txt
    (patch enable_debianabimanager.diff).
  - debian/control: managing all non-local unstable-BC libraries.
* Add packages for okteta:
  - okteta
  - okteta-dev
  - libkastencontrollers4
  - libkastencore4
  - libkastengui4
  - liboktetacore4
  - liboktetagui4
  - liboktetakastencontrollers4
  - liboktetakastencore4
  - liboktetakastengui4
* Add symbols files for new library packages.
* Bump kde-sc-dev-latest build dependency to 4:4.6.2.
* Bump pkg-kde-tools build dependency to 0.12.
* Switch debian/rules engine to dhmk based qt-kde-team/2/*
  - and remove cdbs from Build-Depends.
* Bump S-V to 3.9.1; update Replaces/Breaks/Conflicts.
* Add myself to Uploaders.

[ Pino Toscano ]
* Add build dependency on libqca2-dev.
* Do not ship kdesrc-build with kdesdk-scripts, it is packaged separately.
* Small updates to descriptions.
* Clean up Replaces/Breaks from the pre-squeeze era whenever possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 *   Copyright (C) 2010 by Sebastian Doerner <sebastian@sebastian-doerner.de> *
 
3
 *                                                                            *
 
4
 *   This program is free software; you can redistribute it and/or modify     *
 
5
 *   it under the terms of the GNU General Public License as published by     *
 
6
 *   the Free Software Foundation; either version 2 of the License, or        *
 
7
 *   (at your option) any later version.                                      *
 
8
 *                                                                            *
 
9
 *   This program is distributed in the hope that it will be useful,          *
 
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of           *
 
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *
 
12
 *   GNU General Public License for more details.                             *
 
13
 *                                                                            *
 
14
 *   You should have received a copy of the GNU General Public License        *
 
15
 *   along with this program; if not, write to the                            *
 
16
 *   Free Software Foundation, Inc.,                                          *
 
17
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA               *
 
18
 ******************************************************************************/
 
19
 
 
20
#ifndef CHECKOUTDIALOG_H
 
21
#define CHECKOUTDIALOG_H
 
22
 
 
23
#include <kdialog.h>
 
24
#include <QSet>
 
25
#include <QString>
 
26
 
 
27
class KComboBox;
 
28
class KLineEdit;
 
29
class QCheckBox;
 
30
class QGroupBox;
 
31
class QRadioButton;
 
32
 
 
33
/**
 
34
 * @brief The dialog for checking out Branches or Tags in Git.
 
35
 */
 
36
class CheckoutDialog : public KDialog
 
37
{
 
38
    Q_OBJECT
 
39
 
 
40
public:
 
41
    CheckoutDialog(QWidget* parent = 0);
 
42
    /**
 
43
     * Returns the name of the selected tag or branch to be checkout out
 
44
     * @returns The name of the selected tag or branch
 
45
     */
 
46
    QString checkoutIdentifier() const;
 
47
    /**
 
48
     * @returns True if the user selected a forced checkout, false otherwise.
 
49
     */
 
50
    bool force() const;
 
51
    /**
 
52
     * @returns The user selected name of the new branch, if a new branch is to be
 
53
     *          created, empty String otherwise.
 
54
     */
 
55
    QString newBranchName() const;
 
56
 
 
57
private slots:
 
58
    void branchRadioButtonToggled(bool checked);
 
59
    void newBranchCheckBoxStateToggled(int state);
 
60
   /**
 
61
    * Checks whether the values of all relevant widgets are valid.
 
62
    * Enables or disables the OK button and sets tooltips accordingly.
 
63
    */
 
64
    void setOkButtonState();
 
65
    void noteUserEditedNewBranchName();
 
66
    /**
 
67
     * Inserts a default name for the new branch into m_newBranchName unless the user
 
68
     * has already edited the content.
 
69
     * @param baseBranchName The base name to derive the new name of.
 
70
     */
 
71
    void setDefaultNewBranchName(const QString & baseBranchName);
 
72
private:
 
73
    inline void setLineEditErrorModeActive(bool active);
 
74
private:
 
75
    ///@brief true if the user has manually edited the branchName, false otherwise
 
76
    bool m_userEditedNewBranchName;
 
77
    QSet<QString> m_branchNames;
 
78
    QPalette m_errorColors;
 
79
    QGroupBox * m_branchSelectGroupBox;
 
80
    QRadioButton * m_branchRadioButton;
 
81
    KComboBox * m_branchComboBox;
 
82
    KComboBox * m_tagComboBox;
 
83
    QCheckBox * m_newBranchCheckBox;
 
84
    KLineEdit * m_newBranchName;
 
85
    QCheckBox * m_forceCheckBox;
 
86
};
 
87
 
 
88
#endif // CHECKOUTDIALOG_H