forked from qt-creator/qt-creator
Compile
This commit is contained in:
@@ -113,7 +113,7 @@ void MercurialSubmitHighlighter::highlightBlock(const QString &text)
|
|||||||
|
|
||||||
|
|
||||||
MercurialCommitWidget::MercurialCommitWidget(QWidget *parent) :
|
MercurialCommitWidget::MercurialCommitWidget(QWidget *parent) :
|
||||||
Core::Utils::SubmitEditorWidget(parent),
|
Utils::SubmitEditorWidget(parent),
|
||||||
mercurialCommitPanel(new QWidget)
|
mercurialCommitPanel(new QWidget)
|
||||||
{
|
{
|
||||||
mercurialCommitPanelUi.setupUi(mercurialCommitPanel);
|
mercurialCommitPanelUi.setupUi(mercurialCommitPanel);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace Internal {
|
|||||||
Some extra fields have been added to the standard SubmitEditorWidget,
|
Some extra fields have been added to the standard SubmitEditorWidget,
|
||||||
to help to conform to the commit style that is used by both git and Mercurial*/
|
to help to conform to the commit style that is used by both git and Mercurial*/
|
||||||
|
|
||||||
class MercurialCommitWidget : public Core::Utils::SubmitEditorWidget
|
class MercurialCommitWidget : public Utils::SubmitEditorWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
#include <QtCore/QString>
|
#include <QtCore/QString>
|
||||||
#include <QtCore/QSettings>
|
#include <QtCore/QSettings>
|
||||||
|
#include <QtCore/QDebug>
|
||||||
|
|
||||||
using namespace Mercurial::Internal;
|
using namespace Mercurial::Internal;
|
||||||
using namespace Mercurial;
|
using namespace Mercurial;
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
|
#include <projectexplorer/project.h>
|
||||||
#include <utils/parameteraction.h>
|
#include <utils/parameteraction.h>
|
||||||
|
|
||||||
#include <vcsbase/basevcseditorfactory.h>
|
#include <vcsbase/basevcseditorfactory.h>
|
||||||
@@ -245,33 +246,33 @@ void MercurialPlugin::createFileActions(QList<int> &context)
|
|||||||
{
|
{
|
||||||
Core::Command *command;
|
Core::Command *command;
|
||||||
|
|
||||||
annotateFile = new Core::Utils::ParameterAction(tr("Annotate Current File"), tr("Annotate \"%1\""), Core::Utils::ParameterAction::AlwaysEnabled, this);
|
annotateFile = new Utils::ParameterAction(tr("Annotate Current File"), tr("Annotate \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||||
command = actionManager->registerAction(annotateFile, Constants::ANNOTATE, context);
|
command = actionManager->registerAction(annotateFile, Constants::ANNOTATE, context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
connect(annotateFile, SIGNAL(triggered()), this, SLOT(annotateCurrentFile()));
|
connect(annotateFile, SIGNAL(triggered()), this, SLOT(annotateCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
|
|
||||||
diffFile = new Core::Utils::ParameterAction(tr("Diff Current File"), tr("Diff \"%1\""), Core::Utils::ParameterAction::AlwaysEnabled, this);
|
diffFile = new Utils::ParameterAction(tr("Diff Current File"), tr("Diff \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||||
command = actionManager->registerAction(diffFile, Constants::DIFF, context);
|
command = actionManager->registerAction(diffFile, Constants::DIFF, context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr(Constants::MENUKEY) + tr(Constants::MODIFIER) + "D"));
|
command->setDefaultKeySequence(QKeySequence(tr(Constants::MENUKEY) + tr(Constants::MODIFIER) + "D"));
|
||||||
connect(diffFile, SIGNAL(triggered()), this, SLOT(diffCurrentFile()));
|
connect(diffFile, SIGNAL(triggered()), this, SLOT(diffCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
|
|
||||||
logFile = new Core::Utils::ParameterAction(tr("Log Current File"), tr("Log \"%1\""), Core::Utils::ParameterAction::AlwaysEnabled, this);
|
logFile = new Utils::ParameterAction(tr("Log Current File"), tr("Log \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||||
command = actionManager->registerAction(logFile, Constants::LOG, context);
|
command = actionManager->registerAction(logFile, Constants::LOG, context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr(Constants::MENUKEY) + tr(Constants::MODIFIER) + "L"));
|
command->setDefaultKeySequence(QKeySequence(tr(Constants::MENUKEY) + tr(Constants::MODIFIER) + "L"));
|
||||||
connect(logFile, SIGNAL(triggered()), this, SLOT(logCurrentFile()));
|
connect(logFile, SIGNAL(triggered()), this, SLOT(logCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
|
|
||||||
revertFile = new Core::Utils::ParameterAction(tr("Revert Current File"), tr("Revert \"%1\""), Core::Utils::ParameterAction::AlwaysEnabled, this);
|
revertFile = new Utils::ParameterAction(tr("Revert Current File"), tr("Revert \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||||
command = actionManager->registerAction(revertFile, Constants::REVERT, context);
|
command = actionManager->registerAction(revertFile, Constants::REVERT, context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
connect(revertFile, SIGNAL(triggered()), this, SLOT(revertCurrentFile()));
|
connect(revertFile, SIGNAL(triggered()), this, SLOT(revertCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
|
|
||||||
statusFile = new Core::Utils::ParameterAction(tr("Status Current File"), tr("Status \"%1\""), Core::Utils::ParameterAction::AlwaysEnabled, this);
|
statusFile = new Utils::ParameterAction(tr("Status Current File"), tr("Status \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||||
command = actionManager->registerAction(statusFile, Constants::STATUS, context);
|
command = actionManager->registerAction(statusFile, Constants::STATUS, context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr(Constants::MENUKEY) + tr(Constants::MODIFIER) + "S"));
|
command->setDefaultKeySequence(QKeySequence(tr(Constants::MENUKEY) + tr(Constants::MODIFIER) + "S"));
|
||||||
|
|||||||
@@ -49,11 +49,11 @@ class ICore;
|
|||||||
class IVersionControl;
|
class IVersionControl;
|
||||||
class IEditorFactory;
|
class IEditorFactory;
|
||||||
class IEditor;
|
class IEditor;
|
||||||
|
} // namespace Core
|
||||||
|
|
||||||
namespace Utils {
|
namespace Utils {
|
||||||
class ParameterAction;
|
class ParameterAction;
|
||||||
} //namespace Utils
|
} //namespace Utils
|
||||||
} // namespace Core
|
|
||||||
|
|
||||||
namespace ProjectExplorer {
|
namespace ProjectExplorer {
|
||||||
class ProjectExplorerPlugin;
|
class ProjectExplorerPlugin;
|
||||||
@@ -166,12 +166,12 @@ private:
|
|||||||
QTemporaryFile *changeLog;
|
QTemporaryFile *changeLog;
|
||||||
|
|
||||||
//Menu Items (file actions)
|
//Menu Items (file actions)
|
||||||
Core::Utils::ParameterAction *annotateFile;
|
Utils::ParameterAction *annotateFile;
|
||||||
Core::Utils::ParameterAction *diffFile;
|
Utils::ParameterAction *diffFile;
|
||||||
Core::Utils::ParameterAction *logFile;
|
Utils::ParameterAction *logFile;
|
||||||
Core::Utils::ParameterAction *renameFile;
|
Utils::ParameterAction *renameFile;
|
||||||
Core::Utils::ParameterAction *revertFile;
|
Utils::ParameterAction *revertFile;
|
||||||
Core::Utils::ParameterAction *statusFile;
|
Utils::ParameterAction *statusFile;
|
||||||
|
|
||||||
//submit editor actions
|
//submit editor actions
|
||||||
QAction *editorCommit;
|
QAction *editorCommit;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ OptionsPageWidget::OptionsPageWidget(QWidget *parent) :
|
|||||||
QWidget(parent)
|
QWidget(parent)
|
||||||
{
|
{
|
||||||
m_ui.setupUi(this);
|
m_ui.setupUi(this);
|
||||||
m_ui.commandChooser->setExpectedKind(Core::Utils::PathChooser::Command);
|
m_ui.commandChooser->setExpectedKind(Utils::PathChooser::Command);
|
||||||
m_ui.commandChooser->setPromptDialogTitle(tr("Mercurial Command"));
|
m_ui.commandChooser->setPromptDialogTitle(tr("Mercurial Command"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="Core::Utils::PathChooser" name="commandChooser" native="true"/>
|
<widget class="Utils::PathChooser" name="commandChooser" native="true"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="showLogEntriesLabel">
|
<widget class="QLabel" name="showLogEntriesLabel">
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Core::Utils::PathChooser</class>
|
<class>Utils::PathChooser</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
<header location="global">utils/pathchooser.h</header>
|
<header location="global">utils/pathchooser.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ SrcDestDialog::SrcDestDialog(QWidget *parent) :
|
|||||||
m_ui(new Ui::SrcDestDialog)
|
m_ui(new Ui::SrcDestDialog)
|
||||||
{
|
{
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
m_ui->localPathChooser->setExpectedKind(Core::Utils::PathChooser::Directory);
|
m_ui->localPathChooser->setExpectedKind(Utils::PathChooser::Directory);
|
||||||
}
|
}
|
||||||
|
|
||||||
SrcDestDialog::~SrcDestDialog()
|
SrcDestDialog::~SrcDestDialog()
|
||||||
@@ -46,7 +46,7 @@ SrcDestDialog::~SrcDestDialog()
|
|||||||
delete m_ui;
|
delete m_ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SrcDestDialog::setPathChooserKind(Core::Utils::PathChooser::Kind kind)
|
void SrcDestDialog::setPathChooserKind(Utils::PathChooser::Kind kind)
|
||||||
{
|
{
|
||||||
m_ui->localPathChooser->setExpectedKind(kind);
|
m_ui->localPathChooser->setExpectedKind(kind);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
SrcDestDialog(QWidget *parent = 0);
|
SrcDestDialog(QWidget *parent = 0);
|
||||||
~SrcDestDialog();
|
~SrcDestDialog();
|
||||||
void setPathChooserKind(Core::Utils::PathChooser::Kind kind);
|
void setPathChooserKind(Utils::PathChooser::Kind kind);
|
||||||
QString getRepositoryString();
|
QString getRepositoryString();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="Core::Utils::PathChooser" name="localPathChooser" native="true">
|
<widget class="Utils::PathChooser" name="localPathChooser" native="true">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Core::Utils::PathChooser</class>
|
<class>Utils::PathChooser</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
<header location="global">utils/pathchooser.h</header>
|
<header location="global">utils/pathchooser.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
|
|||||||
Reference in New Issue
Block a user