forked from qt-creator/qt-creator
VCS: Add "Open file" context menu action to VCS log pane
to be used for status/opened output. enabling convenient opening. Append repository as block data to log text to be able to resolve relative paths.
This commit is contained in:
@@ -41,11 +41,16 @@ struct VCSBaseOutputWindowPrivate;
|
||||
/* Common OutputWindow for Version Control System command and other output.
|
||||
* Installed by the base plugin and accessible for the other plugins
|
||||
* via static instance()-accessor. Provides slots to append output with
|
||||
* special formatting. */
|
||||
* special formatting.
|
||||
* It is possible to associate a repository with plain log text, enabling
|
||||
* an "Open" context menu action over relative file name tokens in the text
|
||||
* (absolute paths will also work). This can be used for "status" logs,
|
||||
* showing modified file names, allowing the user to open them. */
|
||||
|
||||
class VCSBASE_EXPORT VCSBaseOutputWindow : public Core::IOutputPane
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString repository READ repository WRITE setRepository)
|
||||
public:
|
||||
virtual ~VCSBaseOutputWindow();
|
||||
|
||||
@@ -70,7 +75,12 @@ public:
|
||||
|
||||
static VCSBaseOutputWindow *instance();
|
||||
|
||||
QString repository() const;
|
||||
|
||||
public slots:
|
||||
void setRepository(const QString &);
|
||||
void clearRepository();
|
||||
|
||||
// Set the whole text.
|
||||
void setText(const QString &text);
|
||||
// Set text from QProcess' output data using the Locale's converter.
|
||||
|
||||
Reference in New Issue
Block a user