From d125036903bbf5d956233ab79e1fdda3724a1e9e Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Fri, 7 Jun 2019 21:15:29 -0400 Subject: stop changing add button to modify, disable remove for plugin executables general clean up of member variable names, whitespace --- src/editexecutablesdialog.h | 63 +++++++++++---------------------------------- 1 file changed, 15 insertions(+), 48 deletions(-) (limited to 'src/editexecutablesdialog.h') diff --git a/src/editexecutablesdialog.h b/src/editexecutablesdialog.h index bb1538ef..9214941d 100644 --- a/src/editexecutablesdialog.h +++ b/src/editexecutablesdialog.h @@ -32,10 +32,8 @@ namespace Ui { class EditExecutablesDialog; } - class ModList; - /** * @brief Dialog to manage the list of executables **/ @@ -44,91 +42,60 @@ class EditExecutablesDialog : public MOBase::TutorableDialog Q_OBJECT public: - /** - * @brief constructor - * * @param executablesList current list of executables * @param parent parent widget **/ - explicit EditExecutablesDialog(const ExecutablesList &executablesList, - const ModList &modList, - Profile *profile, - const MOBase::IPluginGame *game, - QWidget *parent = 0); + explicit EditExecutablesDialog( + const ExecutablesList &executablesList, const ModList &modList, + Profile *profile, const MOBase::IPluginGame *game, QWidget *parent = 0); ~EditExecutablesDialog(); /** * @brief retrieve the updated list of executables - * * @return updated list of executables **/ ExecutablesList getExecutablesList() const; - void saveExecutable(); - private slots: void on_newFilesModCheckBox_toggled(bool checked); - -private slots: - 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 delayedRefresh(); - void on_executablesListBox_itemSelectionChanged(); - void on_executablesListBox_clicked(const QModelIndex &index); - void on_forceLoadButton_clicked(); - void on_forceLoadCheckBox_toggled(); -private: - - void resetInput(); - - void refreshExecutablesWidget(); - - bool executableChanged(); - - void updateButtonStates(); - private: std::unique_ptr ui; + ExecutablesList m_executablesList; + Profile *m_profile; + const MOBase::IPluginGame *m_gamePlugin; + bool m_dirty; - QListWidgetItem *m_CurrentItem; - - ExecutablesList m_ExecutablesList; - - Profile *m_Profile; - - QList m_ForcedLibraries; - - const MOBase::IPluginGame *m_GamePlugin; + QListWidgetItem *m_currentItem; + QList m_forcedLibraries; void updateUI(const Executable* e); void clearEdits(); void setEdits(const Executable& e); + + void resetInput(); + void refreshExecutablesWidget(); + bool executableChanged(); + void updateButtonStates(); + void saveExecutable(); }; #endif // EDITEXECUTABLESDIALOG_H -- cgit v1.3.1