summaryrefslogtreecommitdiff
path: root/src/editexecutablesdialog.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-07 21:57:29 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-15 14:40:40 -0400
commitb8199f0c471f2b5ee2b070a96b42ad0040cddf2f (patch)
treee66b6b7ff6d739423829cbf44a75cc811f30928a /src/editexecutablesdialog.h
parentd125036903bbf5d956233ab79e1fdda3724a1e9e (diff)
renamed most of the widgets to shorter or more descriptive names (newFilesModCheckBox?)
modifying widgets calls save()
Diffstat (limited to 'src/editexecutablesdialog.h')
-rw-r--r--src/editexecutablesdialog.h40
1 files changed, 24 insertions, 16 deletions
diff --git a/src/editexecutablesdialog.h b/src/editexecutablesdialog.h
index 9214941d..f28658e3 100644
--- a/src/editexecutablesdialog.h
+++ b/src/editexecutablesdialog.h
@@ -59,43 +59,51 @@ public:
ExecutablesList getExecutablesList() const;
private slots:
- void on_newFilesModCheckBox_toggled(bool checked);
- void on_binaryEdit_textChanged(const QString &arg1);
- void on_workingDirEdit_textChanged(const QString &arg1);
- void on_addButton_clicked();
- void on_browseBinaryButton_clicked();
- void on_removeButton_clicked();
- void on_titleEdit_textChanged(const QString &arg1);
- void on_overwriteAppIDBox_toggled(bool checked);
- void on_browseWorkingDirButton_clicked();
- void on_buttonBox_accepted();
- void on_buttonBox_rejected();
+ void on_list_itemSelectionChanged();
+
+ void on_add_clicked();
+ void on_remove_clicked();
+
+ void on_overwriteSteamAppID_toggled(bool checked);
+ void on_createFilesInMod_toggled(bool checked);
+ void on_forceLoadLibraries_toggled(bool checked);
+ void on_useApplicationIcon_toggled(bool checked);
+
+ void on_browseBinary_clicked();
+ void on_browseWorkingDirectory_clicked();
+ void on_configureLibraries_clicked();
+
+ void on_buttons_accepted();
+ void on_buttons_rejected();
+
void delayedRefresh();
- void on_executablesListBox_itemSelectionChanged();
- void on_executablesListBox_clicked(const QModelIndex &index);
- void on_forceLoadButton_clicked();
- void on_forceLoadCheckBox_toggled();
private:
std::unique_ptr<Ui::EditExecutablesDialog> ui;
ExecutablesList m_executablesList;
Profile *m_profile;
const MOBase::IPluginGame *m_gamePlugin;
- bool m_dirty;
+ bool m_settingUI;
QListWidgetItem *m_currentItem;
QList<MOBase::ExecutableForcedLoadSetting> m_forcedLibraries;
+ QListWidgetItem* selectedItem();
+ Executable* selectedExe();
+
void updateUI(const Executable* e);
void clearEdits();
void setEdits(const Executable& e);
+ void save();
void resetInput();
void refreshExecutablesWidget();
bool executableChanged();
void updateButtonStates();
void saveExecutable();
+
+ void onTitleChanged(const QString& s);
};
#endif // EDITEXECUTABLESDIALOG_H