summaryrefslogtreecommitdiff
path: root/src/plugins/git/changeselectiondialog.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-12-08 14:26:41 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-12-08 14:26:41 +0100
commit8097879d6d98ce304f742823ccb9bddfcec44839 (patch)
treef4d54d94f4ef9b88dc3bafebdb02d52a178c8b2d /src/plugins/git/changeselectiondialog.h
parent8d6b4e51ab9b8cc2b6642e7de8a644fdec82c07b (diff)
downloadqt-creator-8097879d6d98ce304f742823ccb9bddfcec44839.tar.gz
VCS: Introduce Base class for VCS plugins, use in git.
Fixes: - Cannot diff a file that does not belong to a project - Cannot commit when a temporary diff/log view is open due to the current file pointing to a temporary directory - git's project-related actions not passing the correct relative path. Implementation: - Centralize code to listen for Qt Creator's relevant state changes in VCSBasePlugin, dispatching the changes to the instances affected. (avoiding multiple invocations of searches/QFileInfo on current). - Do the same for the corelistener catching closing SubmitEditors. - Introduce VCSBasePluginState representing the relevant state (current file/project). - Call git with working directory set and relative arguments - Remove setEnabled/isEnabled() logic of IVersionControl - Pass toplevel from VCSManager to avoid duplicate searches.
Diffstat (limited to 'src/plugins/git/changeselectiondialog.h')
-rw-r--r--src/plugins/git/changeselectiondialog.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/git/changeselectiondialog.h b/src/plugins/git/changeselectiondialog.h
index 28330b0a19..33f8cc6972 100644
--- a/src/plugins/git/changeselectiondialog.h
+++ b/src/plugins/git/changeselectiondialog.h
@@ -37,21 +37,22 @@
namespace Git {
namespace Internal {
-class GitPlugin;
-
class ChangeSelectionDialog : public QDialog
{
Q_OBJECT
public:
ChangeSelectionDialog(QWidget *parent = 0);
+ QString change() const;
+
+ QString repository() const;
+ void setRepository(const QString &s);
+
public slots:
void selectWorkingDirectory();
-private:
- friend class GitPlugin;
+private:
Ui_ChangeSelectionDialog m_ui;
-
};
} // namespace Internal