summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsbaseplugin.h
diff options
context:
space:
mode:
authorjkobus <jaroslaw.kobus@digia.com>2013-12-19 10:37:26 +0100
committerJarek Kobus <jaroslaw.kobus@digia.com>2013-12-19 14:06:51 +0100
commit0d13028440f9ce887300ee69702ae153bb2dfb88 (patch)
tree0b9200867138f2e4bbc7e329aefb3a63c45280bc /src/plugins/vcsbase/vcsbaseplugin.h
parentcc1e8464d1a2dea5b454b5cacdcc697f130c49a1 (diff)
downloadqt-creator-0d13028440f9ce887300ee69702ae153bb2dfb88.tar.gz
Refactor source property
Get rid of source property out of DiffEditorWidget, attach dynamic property when it's needed instead. Change-Id: I6641a7b55c42b4eceba78c2e28f5140b40fe0fa5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseplugin.h')
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.h b/src/plugins/vcsbase/vcsbaseplugin.h
index a620452ae5..3199dc1cbd 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.h
+++ b/src/plugins/vcsbase/vcsbaseplugin.h
@@ -48,6 +48,7 @@ namespace Utils { struct SynchronousProcessResponse; }
namespace Core {
class IVersionControl;
class Id;
+class IEditor;
}
namespace VcsBase {
@@ -155,6 +156,11 @@ public:
// Returns whether an SSH prompt is configured.
static bool isSshPromptConfigured();
+ // Sets the source of editor contents, can be directory or file.
+ static void setSource(Core::IEditor *editor, const QString &source);
+ // Returns the source of editor contents.
+ static QString source(Core::IEditor *editor);
+
// Convenience to synchronously run VCS commands
enum RunVcsFlags {
ShowStdOutInLogWindow = 0x1, // Append standard output to VCS output window.