本文整理汇总了C++中vcsbase::VCSBasePluginState类的典型用法代码示例。如果您正苦于以下问题:C++ VCSBasePluginState类的具体用法?C++ VCSBasePluginState怎么用?C++ VCSBasePluginState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VCSBasePluginState类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: statusMulti
void MercurialPlugin::statusMulti()
{
const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return)
m_client->status(state.topLevel());
}
示例2: revertAll
void BazaarPlugin::revertAll()
{
const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
QDialog dialog;
Ui::RevertDialog revertUi;
revertUi.setupUi(&dialog);
if (dialog.exec() != QDialog::Accepted)
return;
m_client->revertAll(state.topLevel(), revertUi.revisionLineEdit->text());
}
示例3: commit
void BazaarPlugin::commit()
{
if (VCSBase::VCSBaseSubmitEditor::raiseSubmitEditor())
return;
const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
m_submitRepository = state.topLevel();
connect(m_client, SIGNAL(parsedStatus(QList<QPair<QString,QString> >)),
this, SLOT(showCommitWidget(QList<QPair<QString,QString> >)));
m_client->statusWithSignal(m_submitRepository);
}
示例4: pull
void BazaarPlugin::pull()
{
const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
PullOrPushDialog dialog(PullOrPushDialog::PullMode);
if (dialog.exec() != QDialog::Accepted)
return;
BazaarClient::ExtraCommandOptions extraOptions;
extraOptions[BazaarClient::RememberPullOrPushOptionId] = dialog.isRememberOptionEnabled();
extraOptions[BazaarClient::OverwritePullOrPushOptionId] = dialog.isOverwriteOptionEnabled();
extraOptions[BazaarClient::RevisionPullOrPushOptionId] = dialog.revision();
extraOptions[BazaarClient::LocalPullOptionId] = dialog.isLocalOptionEnabled();
m_client->synchronousPull(state.topLevel(), dialog.branchLocation(), extraOptions);
}
示例5: logRepository
void BazaarPlugin::logRepository()
{
const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
m_client->log(state.topLevel());
}
示例6: statusCurrentFile
void BazaarPlugin::statusCurrentFile()
{
const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasFile(), return);
m_client->status(state.currentFileTopLevel(), state.relativeCurrentFile());
}
示例7: diffCurrentFile
void BazaarPlugin::diffCurrentFile()
{
const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasFile(), return);
m_client->diff(state.currentFileTopLevel(), QStringList(state.relativeCurrentFile()));
}