Manager: Miscellaneous changes
This commit is contained in:
@@ -30,7 +30,6 @@ UpdateCheckDialog::
|
|||||||
UpdateCheckDialog(const UpdateCheck::UpdateChannel channel, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateCheckDialog), updateCheck(new UpdateCheck(channel))
|
UpdateCheckDialog(const UpdateCheck::UpdateChannel channel, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateCheckDialog), updateCheck(new UpdateCheck(channel))
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setWindowTitle(tr("Update check"));
|
|
||||||
ui->statusLabel->setHidden(true);
|
ui->statusLabel->setHidden(true);
|
||||||
this->setFixedSize(400, 130);
|
this->setFixedSize(400, 130);
|
||||||
updateChannel = channel;
|
updateChannel = channel;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dialog</string>
|
<string>Update check</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ UpdateDetails::
|
|||||||
UpdateDetails(const UpdateCheck::UpdateResult &updateResult, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateDetails)
|
UpdateDetails(const UpdateCheck::UpdateResult &updateResult, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateDetails)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setWindowTitle("86Box Update");
|
|
||||||
ui->updateTitle->setText("<b>An update to 86Box is available!</b>");
|
ui->updateTitle->setText("<b>An update to 86Box is available!</b>");
|
||||||
QString currentVersionText;
|
QString currentVersionText;
|
||||||
QString releaseType = updateResult.channel == UpdateCheck::UpdateChannel::Stable ? tr("version") : tr("build");
|
QString releaseType = updateResult.channel == UpdateCheck::UpdateChannel::Stable ? tr("version") : tr("build");
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dialog</string>
|
<string>86Box Update</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ VMManagerDetails::VMManagerDetails(QWidget *parent) :
|
|||||||
ui->leftColumn->layout()->addWidget(networkSection);
|
ui->leftColumn->layout()->addWidget(networkSection);
|
||||||
// ui->leftColumn->layout()->addWidget(createHorizontalLine());
|
// ui->leftColumn->layout()->addWidget(createHorizontalLine());
|
||||||
|
|
||||||
inputSection = new VMManagerDetailSection(tr("Input Devices", "Header for Input section in VM Manager Details"));
|
inputSection = new VMManagerDetailSection(tr("Input devices", "Header for Input section in VM Manager Details"));
|
||||||
ui->leftColumn->layout()->addWidget(inputSection);
|
ui->leftColumn->layout()->addWidget(inputSection);
|
||||||
// ui->leftColumn->layout()->addWidget(createHorizontalLine());
|
// ui->leftColumn->layout()->addWidget(createHorizontalLine());
|
||||||
|
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ VMManagerDetailSection::setSections()
|
|||||||
labelKey->setFont(smaller_font);
|
labelKey->setFont(smaller_font);
|
||||||
labelValue->setFont(smaller_font);
|
labelValue->setFont(smaller_font);
|
||||||
|
|
||||||
labelKey->setText(section.name + ":");
|
labelKey->setText(QCoreApplication::translate("", QString(section.name + ":").toUtf8().data()));
|
||||||
labelValue->setText(line);
|
labelValue->setText(line);
|
||||||
if(!keyAdded) {
|
if(!keyAdded) {
|
||||||
frameGridLayout->addWidget(labelKey, row, 0, Qt::AlignLeft);
|
frameGridLayout->addWidget(labelKey, row, 0, Qt::AlignLeft);
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
VMManagerMain::VMManagerMain(QWidget *parent) :
|
VMManagerMain::VMManagerMain(QWidget *parent) :
|
||||||
QWidget(parent), ui(new Ui::VMManagerMain), selected_sysconfig(new VMManagerSystem) {
|
QWidget(parent), ui(new Ui::VMManagerMain), selected_sysconfig(new VMManagerSystem) {
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
this->setWindowTitle("86Box VM Manager");
|
|
||||||
|
|
||||||
// Set up the main listView
|
// Set up the main listView
|
||||||
ui->listView->setItemDelegate(new VMManagerListViewDelegate);
|
ui->listView->setItemDelegate(new VMManagerListViewDelegate);
|
||||||
@@ -100,7 +99,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
|
|||||||
QAction killIcon(tr("&Kill"));
|
QAction killIcon(tr("&Kill"));
|
||||||
contextMenu.addAction(&killIcon);
|
contextMenu.addAction(&killIcon);
|
||||||
connect(&killIcon, &QAction::triggered, [this, parent] {
|
connect(&killIcon, &QAction::triggered, [this, parent] {
|
||||||
QMessageBox msgbox(QMessageBox::Warning, tr("Warning"), tr("Killing a virtual machine can cause data loss. Only do this if 86Box.exe process gets stuck.\n\nDo you really wish to kill the virtual machine \"%1\"?").arg(selected_sysconfig->displayName), QMessageBox::StandardButton::Yes | QMessageBox::StandardButton::No, parent);
|
QMessageBox msgbox(QMessageBox::Warning, tr("Warning"), tr("Killing a virtual machine can cause data loss. Only do this if the 86Box process gets stuck.\n\nDo you really wish to kill the virtual machine \"%1\"?").arg(selected_sysconfig->displayName), QMessageBox::StandardButton::Yes | QMessageBox::StandardButton::No, parent);
|
||||||
msgbox.exec();
|
msgbox.exec();
|
||||||
if (msgbox.result() == QMessageBox::Yes) {
|
if (msgbox.result() == QMessageBox::Yes) {
|
||||||
selected_sysconfig->process->kill();
|
selected_sysconfig->process->kill();
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <86box/86box.h> // for vmm_path
|
#include <86box/86box.h> // for vmm_path
|
||||||
|
#include <86box/version.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
#if EMU_BUILD_NUM != 0
|
#if EMU_BUILD_NUM != 0
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ VMManagerMainWindow(QWidget *parent)
|
|||||||
// Connect signals from the VMManagerMain widget
|
// Connect signals from the VMManagerMain widget
|
||||||
connect(vmm, &VMManagerMain::selectionChanged, this, &VMManagerMainWindow::vmmSelectionChanged);
|
connect(vmm, &VMManagerMain::selectionChanged, this, &VMManagerMainWindow::vmmSelectionChanged);
|
||||||
|
|
||||||
setWindowTitle(tr("86Box VM Manager"));
|
setWindowTitle(tr("%1 VM Manager").arg(EMU_NAME));
|
||||||
setCentralWidget(vmm);
|
setCentralWidget(vmm);
|
||||||
|
|
||||||
// Set up the buttons
|
// Set up the buttons
|
||||||
@@ -97,6 +97,9 @@ VMManagerMainWindow(QWidget *parent)
|
|||||||
auto *completerModel = new QStringListModel(allStrings, completer);
|
auto *completerModel = new QStringListModel(allStrings, completer);
|
||||||
completer->setModel(completerModel);
|
completer->setModel(completerModel);
|
||||||
searchBar->setCompleter(completer);
|
searchBar->setCompleter(completer);
|
||||||
|
#ifdef Q_OS_WINDOWS
|
||||||
|
ui->toolBar->setBackgroundRole(QPalette::Light);
|
||||||
|
#endif
|
||||||
ui->toolBar->setVisible(false);
|
ui->toolBar->setVisible(false);
|
||||||
// END REMOVE
|
// END REMOVE
|
||||||
|
|
||||||
|
|||||||
@@ -52,12 +52,18 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar"/>
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
<widget class="QToolBar" name="toolBar">
|
<widget class="QToolBar" name="toolBar">
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>toolBar</string>
|
<string>toolBar</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="movable">
|
<property name="movable">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="allowedAreas">
|
||||||
|
<set>Qt::TopToolBarArea</set>
|
||||||
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16</width>
|
<width>16</width>
|
||||||
@@ -212,9 +218,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionExit">
|
<action name="actionExit">
|
||||||
<property name="icon">
|
|
||||||
<iconset theme="QIcon::ApplicationExit"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>E&xit</string>
|
<string>E&xit</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user