diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-10 06:12:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-10 06:12:07 -0400 |
| commit | 168fc950f9b15ce89084316d96a1f613a12e3013 (patch) | |
| tree | 73b1eb1afd04830e65c25060f1ce4763db98b642 /src/editexecutablesdialog.h | |
| parent | 0f5ecb8b78b86f309be3ef1902dbf4ee51738fc4 (diff) | |
| parent | 4d3495b3fb00b644c57e773bbcdbfb2eee7c0ea6 (diff) | |
Merge pull request #863 from isanae/executables-fixes
Executables fixes
Diffstat (limited to 'src/editexecutablesdialog.h')
| -rw-r--r-- | src/editexecutablesdialog.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/editexecutablesdialog.h b/src/editexecutablesdialog.h index 494f0651..c8be0bf6 100644 --- a/src/editexecutablesdialog.h +++ b/src/editexecutablesdialog.h @@ -141,13 +141,15 @@ private: **/
class EditExecutablesDialog : public MOBase::TutorableDialog
{
- Q_OBJECT
+ Q_OBJECT;
+ friend class IgnoreChanges;
public:
using CustomOverwrites = ToggableMap<QString>;
using ForcedLibraries = ToggableMap<QList<MOBase::ExecutableForcedLoadSetting>>;
- explicit EditExecutablesDialog(OrganizerCore& oc, QWidget* parent=nullptr);
+ explicit EditExecutablesDialog(
+ OrganizerCore& oc, int selection=-1, QWidget* parent=nullptr);
~EditExecutablesDialog();
@@ -169,6 +171,7 @@ private slots: void on_down_clicked();
void on_title_textChanged(const QString& s);
+ void on_title_editingFinished();
void on_overwriteSteamAppID_toggled(bool checked);
void on_createFilesInMod_toggled(bool checked);
void on_forceLoadLibraries_toggled(bool checked);
@@ -196,6 +199,10 @@ private: // forced libraries set in the dialog
ForcedLibraries m_forcedLibraries;
+ // remembers the last executable title that made sense, reverts to this when
+ // the widget loses focus if it's empty
+ QString m_lastGoodTitle;
+
// true when the change events being triggered are in response to loading
// the executable's data into the UI, not from a user change
bool m_settingUI;
@@ -217,10 +224,19 @@ private: void saveOrder();
bool canMove(const QListWidgetItem* item, int direction);
void move(QListWidgetItem* item, int direction);
- void setJarBinary(const QString& binaryName);
bool isTitleConflicting(const QString& s);
void commitChanges();
void setDirty(bool b);
+ void selectIndex(int i);
+
+ void addFromFile();
+ void addEmpty();
+ void clone();
+ void addNew(Executable e);
+
+ QFileInfo browseBinary(const QString& initial);
+ void setBinary(const QFileInfo& binary);
+ void setJarBinary(const QFileInfo& binary);
};
#endif // EDITEXECUTABLESDIALOG_H
|
