forked from qt-creator/qt-creator
Maemo: Rename "Simulator" to "Emulator" when referring to Qemu.
No user-visible changes.
This commit is contained in:
@@ -81,7 +81,7 @@ void MaemoConfigTestDialog::startConfigTest()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
m_currentTest = GeneralTest;
|
m_currentTest = GeneralTest;
|
||||||
const QString testingText = m_config->type() == MaemoDeviceConfig::Simulator
|
const QString testingText = m_config->type() == MaemoDeviceConfig::Emulator
|
||||||
? tr("Testing configuration. This may take a while.")
|
? tr("Testing configuration. This may take a while.")
|
||||||
: tr("Testing configuration...");
|
: tr("Testing configuration...");
|
||||||
m_ui->testResultEdit->setPlainText(testingText);
|
m_ui->testResultEdit->setPlainText(testingText);
|
||||||
@@ -110,7 +110,7 @@ void MaemoConfigTestDialog::handleConnectionError()
|
|||||||
return;
|
return;
|
||||||
QString output = tr("Could not connect to host: %1")
|
QString output = tr("Could not connect to host: %1")
|
||||||
.arg(m_testProcessRunner->connection()->errorString());
|
.arg(m_testProcessRunner->connection()->errorString());
|
||||||
if (m_config->type() == MaemoDeviceConfig::Simulator)
|
if (m_config->type() == MaemoDeviceConfig::Emulator)
|
||||||
output += tr("\nDid you start Qemu?");
|
output += tr("\nDid you start Qemu?");
|
||||||
m_ui->testResultEdit->setPlainText(output);
|
m_ui->testResultEdit->setPlainText(output);
|
||||||
stopConfigTest();
|
stopConfigTest();
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ void MaemoDeployStep::start()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_needsInstall || !m_filesToCopy.isEmpty()) {
|
if (m_needsInstall || !m_filesToCopy.isEmpty()) {
|
||||||
if (m_cachedDeviceConfig->type() == MaemoDeviceConfig::Simulator
|
if (m_cachedDeviceConfig->type() == MaemoDeviceConfig::Emulator
|
||||||
&& !MaemoQemuManager::instance().qemuIsRunning()) {
|
&& !MaemoQemuManager::instance().qemuIsRunning()) {
|
||||||
MaemoQemuManager::instance().startRuntime();
|
MaemoQemuManager::instance().startRuntime();
|
||||||
raiseError(tr("Deployment failed: Qemu was not running. "
|
raiseError(tr("Deployment failed: Qemu was not running. "
|
||||||
@@ -998,7 +998,7 @@ MaemoPortList MaemoDeployStep::freePorts() const
|
|||||||
= m_cachedDeviceConfig ? m_cachedDeviceConfig : m_deviceConfig;
|
= m_cachedDeviceConfig ? m_cachedDeviceConfig : m_deviceConfig;
|
||||||
if (!devConf)
|
if (!devConf)
|
||||||
return MaemoPortList();
|
return MaemoPortList();
|
||||||
if (devConf->type() == MaemoDeviceConfig::Simulator && qt4bc) {
|
if (devConf->type() == MaemoDeviceConfig::Emulator && qt4bc) {
|
||||||
MaemoQemuRuntime rt;
|
MaemoQemuRuntime rt;
|
||||||
const int id = qt4bc->qtVersion()->uniqueId();
|
const int id = qt4bc->qtVersion()->uniqueId();
|
||||||
if (MaemoQemuManager::instance().runtimeForQtVersion(id, &rt))
|
if (MaemoQemuManager::instance().runtimeForQtVersion(id, &rt))
|
||||||
|
|||||||
@@ -243,9 +243,9 @@ MaemoDeviceConfig::Ptr MaemoDeviceConfig::createEmulatorConfig(const QString &na
|
|||||||
{
|
{
|
||||||
Utils::SshConnectionParameters sshParams(Utils::SshConnectionParameters::NoProxy);
|
Utils::SshConnectionParameters sshParams(Utils::SshConnectionParameters::NoProxy);
|
||||||
sshParams.authType = Utils::SshConnectionParameters::AuthByPwd;
|
sshParams.authType = Utils::SshConnectionParameters::AuthByPwd;
|
||||||
sshParams.host = defaultHost(Simulator);
|
sshParams.host = defaultHost(Emulator);
|
||||||
sshParams.pwd = defaultQemuPassword(osVersion);
|
sshParams.pwd = defaultQemuPassword(osVersion);
|
||||||
return Ptr(new MaemoDeviceConfig(name, osVersion, Simulator, sshParams, nextId));
|
return Ptr(new MaemoDeviceConfig(name, osVersion, Emulator, sshParams, nextId));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaemoDeviceConfig::MaemoDeviceConfig(const QString &name,
|
MaemoDeviceConfig::MaemoDeviceConfig(const QString &name,
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class MaemoDeviceConfig
|
|||||||
public:
|
public:
|
||||||
typedef QSharedPointer<const MaemoDeviceConfig> ConstPtr;
|
typedef QSharedPointer<const MaemoDeviceConfig> ConstPtr;
|
||||||
typedef quint64 Id;
|
typedef quint64 Id;
|
||||||
enum DeviceType { Physical, Simulator };
|
enum DeviceType { Physical, Emulator };
|
||||||
|
|
||||||
MaemoPortList freePorts() const;
|
MaemoPortList freePorts() const;
|
||||||
Utils::SshConnectionParameters sshParameters() const { return m_sshParameters; }
|
Utils::SshConnectionParameters sshParameters() const { return m_sshParameters; }
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ void MaemoDeviceConfigurationsSettingsWidget::fillInValues()
|
|||||||
m_ui->keyFileLineEdit->setPath(sshParams.privateKeyFile);
|
m_ui->keyFileLineEdit->setPath(sshParams.privateKeyFile);
|
||||||
m_ui->showPasswordCheckBox->setChecked(false);
|
m_ui->showPasswordCheckBox->setChecked(false);
|
||||||
updatePortsWarningLabel();
|
updatePortsWarningLabel();
|
||||||
const bool isSimulator = current->type() == MaemoDeviceConfig::Simulator;
|
const bool isSimulator = current->type() == MaemoDeviceConfig::Emulator;
|
||||||
m_ui->hostLineEdit->setReadOnly(isSimulator);
|
m_ui->hostLineEdit->setReadOnly(isSimulator);
|
||||||
m_ui->sshPortSpinBox->setReadOnly(isSimulator);
|
m_ui->sshPortSpinBox->setReadOnly(isSimulator);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,8 +108,8 @@ public:
|
|||||||
|
|
||||||
QString hostName() const
|
QString hostName() const
|
||||||
{
|
{
|
||||||
return deviceType() == MaemoDeviceConfig::Simulator
|
return deviceType() == MaemoDeviceConfig::Emulator
|
||||||
? MaemoDeviceConfig::defaultHost(MaemoDeviceConfig::Simulator)
|
? MaemoDeviceConfig::defaultHost(MaemoDeviceConfig::Emulator)
|
||||||
: m_ui->hostNameLineEdit->text().trimmed();
|
: m_ui->hostNameLineEdit->text().trimmed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ public:
|
|||||||
MaemoDeviceConfig::DeviceType deviceType() const
|
MaemoDeviceConfig::DeviceType deviceType() const
|
||||||
{
|
{
|
||||||
return m_ui->hwButton->isChecked()
|
return m_ui->hwButton->isChecked()
|
||||||
? MaemoDeviceConfig::Physical : MaemoDeviceConfig::Simulator;
|
? MaemoDeviceConfig::Physical : MaemoDeviceConfig::Emulator;
|
||||||
}
|
}
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
@@ -475,7 +475,7 @@ public:
|
|||||||
"created and a test procedure will be run to check whether "
|
"created and a test procedure will be run to check whether "
|
||||||
"Qt Creator can connect to the device and to provide some "
|
"Qt Creator can connect to the device and to provide some "
|
||||||
"information about its features.");
|
"information about its features.");
|
||||||
if (m_wizardData.deviceType == MaemoDeviceConfig::Simulator) {
|
if (m_wizardData.deviceType == MaemoDeviceConfig::Emulator) {
|
||||||
infoText += QLatin1Char('\n')
|
infoText += QLatin1Char('\n')
|
||||||
+ tr("Please make sure that Qemu is running, otherwise "
|
+ tr("Please make sure that Qemu is running, otherwise "
|
||||||
"the test will fail.");
|
"the test will fail.");
|
||||||
@@ -562,7 +562,7 @@ int MaemoDeviceConfigWizard::nextId() const
|
|||||||
d->wizardData.deviceType = d->startPage.deviceType();
|
d->wizardData.deviceType = d->startPage.deviceType();
|
||||||
d->wizardData.hostName = d->startPage.hostName();
|
d->wizardData.hostName = d->startPage.hostName();
|
||||||
|
|
||||||
if (d->wizardData.deviceType == MaemoDeviceConfig::Simulator) {
|
if (d->wizardData.deviceType == MaemoDeviceConfig::Emulator) {
|
||||||
return FinalPageId;
|
return FinalPageId;
|
||||||
} else {
|
} else {
|
||||||
return PreviousKeySetupCheckPageId;
|
return PreviousKeySetupCheckPageId;
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ QString MaemoGlobal::failedToConnectToServerMessage(const Utils::SshConnection::
|
|||||||
QString errorMsg = tr("Could not connect to host: %1")
|
QString errorMsg = tr("Could not connect to host: %1")
|
||||||
.arg(connection->errorString());
|
.arg(connection->errorString());
|
||||||
|
|
||||||
if (deviceConfig->type() == MaemoDeviceConfig::Simulator) {
|
if (deviceConfig->type() == MaemoDeviceConfig::Emulator) {
|
||||||
if (connection->errorState() == Utils::SshTimeoutError
|
if (connection->errorState() == Utils::SshTimeoutError
|
||||||
|| connection->errorState() == Utils::SshSocketError) {
|
|| connection->errorState() == Utils::SshSocketError) {
|
||||||
errorMsg += tr("\nDid you start Qemu?");
|
errorMsg += tr("\nDid you start Qemu?");
|
||||||
|
|||||||
@@ -567,7 +567,7 @@ bool MaemoQemuManager::targetUsesMatchingRuntimeConfig(Target *target,
|
|||||||
if (qtVersion)
|
if (qtVersion)
|
||||||
*qtVersion = version;
|
*qtVersion = version;
|
||||||
const MaemoDeviceConfig::ConstPtr &config = mrc->deviceConfig();
|
const MaemoDeviceConfig::ConstPtr &config = mrc->deviceConfig();
|
||||||
return config && config->type() == MaemoDeviceConfig::Simulator;
|
return config && config->type() == MaemoDeviceConfig::Emulator;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoQemuManager::notify(const QList<int> uniqueIds)
|
void MaemoQemuManager::notify(const QList<int> uniqueIds)
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ void MaemoSshRunner::start()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_devConfig->type() == MaemoDeviceConfig::Simulator
|
if (m_devConfig->type() == MaemoDeviceConfig::Emulator
|
||||||
&& !MaemoQemuManager::instance().qemuIsRunning()) {
|
&& !MaemoQemuManager::instance().qemuIsRunning()) {
|
||||||
MaemoQemuManager::instance().startRuntime();
|
MaemoQemuManager::instance().startRuntime();
|
||||||
emitError(tr("Cannot run: Qemu was not running. "
|
emitError(tr("Cannot run: Qemu was not running. "
|
||||||
|
|||||||
Reference in New Issue
Block a user