{
qDebug("SDB shell");
- if (!is_sdb_daemon_initialized()) {
- showMsgBox(QMessageBox::Warning, MSG_SDB_NOT_READY);
- return;
- }
-
const QString sdbPath = shellOpener->getSdbPath();
QFileInfo sdbFileInfo(sdbPath);
if (sdbFileInfo.exists() == false) {
- showMsgBox(QMessageBox::Warning,
- MSG_SDB_NOT_EXIST + sdbFileInfo.absoluteFilePath());
+ showMsgBox(QMessageBox::Warning, MSG_SDB_NOT_EXIST + sdbPath);
+ return;
+ }
+
+ if (!is_sdb_daemon_initialized()) {
+ showMsgBox(QMessageBox::Warning, MSG_SDB_NOT_READY);
return;
}
QMessageBox::StandardButtons buttons,
QMessageBox::StandardButton defaultButton)
{
- qDebug() << text;
+ qWarning() << text;
QMessageBox *msgBox = new QMessageBox(iconType,
EMULATOR_TITLE, text, buttons, parent);
/* parameter parsing */
// TODO:
- uiInfo->vmName = QString(get_vm_name()).trimmed();
+ uiInfo->vmName = QString(QString::fromLocal8Bit(get_vm_name())).trimmed();
qDebug() << "VM name:" << uiInfo->vmName;
uiInfo->resolution.setWidth(get_display_resolution_width());
uiInfo->resolution.setHeight(get_display_resolution_height());
uiInfo->basePort = get_emul_vm_base_port();
- uiInfo->vmDataPath = QDir(QString::fromLocal8Bit(get_vm_data_path())).canonicalPath();
+ uiInfo->vmDataPath = QDir(
+ QString::fromLocal8Bit(get_vm_data_path())).canonicalPath();
if (uiInfo->vmDataPath.endsWith(QDir::separator()) == false) {
uiInfo->vmDataPath += QDir::separator();
}
qDebug() << "VM path:" << uiInfo->vmDataPath;
- uiInfo->skinPath = QDir(QString::fromLocal8Bit(get_emul_skin_path())).canonicalPath();
+ uiInfo->skinPath = QDir(
+ QString::fromLocal8Bit(get_emul_skin_path())).canonicalPath();
if (uiInfo->skinPath.endsWith(QDir::separator()) == false) {
uiInfo->skinPath += QDir::separator();
}
QSettings::IniFormat);
QString skinName = skinInfo.value(SKIN_PROPERTY_NAME).toString();
if (skinName.isEmpty() == true) {
- skinName = "Undefined";
+ skinName = GENERIC_TEXT_UNDEFINED;
}
uiInfo->skinName = skinName;
/* position */
QRect hostBounds = UIUtil::getHostScreenBounds();
- qDebug() << "host geometry :" << hostBounds;
+ qDebug() << "host geometry:" << hostBounds;
int defaultValueX = hostBounds.x() - 1;
int defaultValueY = hostBounds.y() - 1;
if (xx == defaultValueX || yy == defaultValueY) {
xx = yy = 80 + (uiInfo->basePort % 100); /* default position */
} else {
- qDebug("previous position value : (%d, %d)", xx, yy);
+ qDebug("previous position: (%d, %d)", xx, yy);
xx = qMax(xx, hostBounds.x());
xx = qMin(xx, hostBounds.x() + hostBounds.width() - 100);
}
mainwindow->move(xx, yy);
- qDebug("current position value : (%d, %d)", xx, yy);
+ qDebug("current position: (%d, %d)", xx, yy);
bool onTop = mruInfo.value(SKIN_PROPERTY_WINDOW_TOPMOST).toBool();
if (onTop == true) {