From 5556e2b152decad3392c30c9760a5584454b52e6 Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Fri, 7 Jun 2019 20:08:53 -0400
Subject: replaced close with ok/cancel moved add/remove below the list
---
src/editexecutablesdialog.cpp | 9 +-
src/editexecutablesdialog.h | 3 +-
src/editexecutablesdialog.ui | 218 +++++++++++++++++++++++-------------------
3 files changed, 125 insertions(+), 105 deletions(-)
(limited to 'src')
diff --git a/src/editexecutablesdialog.cpp b/src/editexecutablesdialog.cpp
index 559bc8f0..f7348889 100644
--- a/src/editexecutablesdialog.cpp
+++ b/src/editexecutablesdialog.cpp
@@ -370,10 +370,8 @@ void EditExecutablesDialog::on_overwriteAppIDBox_toggled(bool checked)
ui->appIDOverwriteEdit->setEnabled(checked);
}
-void EditExecutablesDialog::on_buttonBox_clicked(QAbstractButton*)
+void EditExecutablesDialog::on_buttonBox_accepted()
{
- // there's only a close button for now, so the actual button doesn't matter
-
if (executableChanged()) {
QMessageBox::StandardButton res = QMessageBox::question(this, tr("Save Changes?"),
tr("You made changes to the current executable, do you want to save them?"),
@@ -391,6 +389,11 @@ void EditExecutablesDialog::on_buttonBox_clicked(QAbstractButton*)
accept();
}
+void EditExecutablesDialog::on_buttonBox_rejected()
+{
+ reject();
+}
+
void EditExecutablesDialog::on_executablesListBox_clicked(const QModelIndex ¤t)
{
if (current.isValid()) {
diff --git a/src/editexecutablesdialog.h b/src/editexecutablesdialog.h
index 07d6459c..7f389b24 100644
--- a/src/editexecutablesdialog.h
+++ b/src/editexecutablesdialog.h
@@ -89,7 +89,8 @@ private slots:
void on_browseDirButton_clicked();
- void on_buttonBox_clicked(QAbstractButton *button);
+ void on_buttonBox_accepted();
+ void on_buttonBox_rejected();
void delayedRefresh();
diff --git a/src/editexecutablesdialog.ui b/src/editexecutablesdialog.ui
index 1cf1116a..52bbf187 100644
--- a/src/editexecutablesdialog.ui
+++ b/src/editexecutablesdialog.ui
@@ -6,8 +6,8 @@
0
0
- 524
- 366
+ 710
+ 293
@@ -82,6 +82,70 @@
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ Add an executable
+
+
+ Add an executable
+
+
+ Add
+
+
+
+ :/new/guiresources/resources/list-add.png:/new/guiresources/resources/list-add.png
+
+
+
+ -
+
+
+ Remove the selected executable
+
+
+ Remove the selected executable
+
+
+ Remove
+
+
+
+ :/new/guiresources/resources/list-remove.png:/new/guiresources/resources/list-remove.png
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
+
@@ -99,15 +163,18 @@
0
-
-
-
-
+
+
+ 20
+
+
-
Title
- -
+
-
Name of the executable. This is only for display purposes.
@@ -117,73 +184,69 @@
-
-
- -
-
-
-
+
-
Binary
- -
-
-
- Binary to run
-
-
- Binary to run
-
-
-
- -
-
-
- Browse filesystem
-
-
- Browse filesystem for the executable to run.
-
-
- ...
-
-
+
-
+
+
-
+
+
+ Binary to run
+
+
+ Binary to run
+
+
+
+ -
+
+
+ Browse filesystem
+
+
+ Browse filesystem for the executable to run.
+
+
+ ...
+
+
+
+
-
-
- -
-
-
-
+
-
Start in
- -
-
-
- -
-
-
- ...
-
-
+
-
+
+
-
+
+
+ -
+
+
+ ...
+
+
+
+
-
-
- -
-
-
-
+
-
Arguments
- -
+
-
Arguments to pass to the application
@@ -258,7 +321,7 @@ Right now the only case I know of where this needs to be overwritten is for the
If this is enabled, the configured libraries will be automatically loaded when this executable is launched.
- Force Load Libraries (*)
+ Force Load Libraries (Profile Specific)
@@ -294,51 +357,6 @@ Right now the only case I know of where this needs to be overwritten is for the
- -
-
-
- (*) This setting is profile-specific
-
-
-
- -
-
-
-
-
-
- Add an executable
-
-
- Add an executable
-
-
- Add
-
-
-
- :/new/guiresources/resources/list-add.png:/new/guiresources/resources/list-add.png
-
-
-
- -
-
-
- Remove the selected executable
-
-
- Remove the selected executable
-
-
- Remove
-
-
-
- :/new/guiresources/resources/list-remove.png:/new/guiresources/resources/list-remove.png
-
-
-
-
-
-
@@ -362,19 +380,17 @@ Right now the only case I know of where this needs to be overwritten is for the
-
- QDialogButtonBox::Close
+ QDialogButtonBox::Cancel|QDialogButtonBox::Ok
- titleEdit
binaryEdit
browseBinaryButton
workingDirEdit
browseDirButton
- argumentsEdit
overwriteAppIDBox
appIDOverwriteEdit
newFilesModCheckBox
--
cgit v1.3.1