diff options
| author | Tannin <devnull@localhost> | 2014-12-09 20:02:28 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-12-09 20:02:28 +0100 |
| commit | 8634b97bea67744d2ac147f2c8b94b8e52c37acd (patch) | |
| tree | 84f8f9557a4c7fb95f312252b9f08aa27a1b7811 /src/executableslist.h | |
| parent | 116a36b9439b27fe3ea7a5bed1f462792634d50d (diff) | |
all executables can now be repositioned, including auto-detected ones
Diffstat (limited to 'src/executableslist.h')
| -rw-r--r-- | src/executableslist.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/executableslist.h b/src/executableslist.h index 6f7771e5..09023a04 100644 --- a/src/executableslist.h +++ b/src/executableslist.h @@ -114,7 +114,17 @@ public: * @param arguments arguments to pass to the executable
* @param closeMO if true, MO will be closed when the binary is started
**/
- void addExecutable(const QString &title, const QString &executableName, const QString &arguments, const QString &workingDirectory, MOShared::CloseMOStyle closeMO, const QString &steamAppID, bool custom, bool toolbar);
+ void addExecutable(const QString &title, const QString &executableName, const QString &arguments,
+ const QString &workingDirectory, MOShared::CloseMOStyle closeMO, const QString &steamAppID,
+ bool custom, bool toolbar, int pos = -1);
+
+ /**
+ * @brief change position of an executable which is expected to exist
+ * @param title title of the executable
+ * @param toolbar enable/disable placement on the toolbar
+ * @param pos new position for the executable
+ */
+ void position(const QString &title, bool toolbar, int pos);
/**
* @brief remove the executable with the specified file name. This needs to be an absolute file path
@@ -142,7 +152,7 @@ public: private:
- Executable *findExe(const QString &title);
+ std::vector<Executable>::iterator findExe(const QString &title);
void addExecutableInternal(const QString &title, const QString &executableName, const QString &arguments, const QString &workingDirectory, MOShared::CloseMOStyle closeMO, const QString &steamAppID);
|
