From 8634b97bea67744d2ac147f2c8b94b8e52c37acd Mon Sep 17 00:00:00 2001 From: Tannin Date: Tue, 9 Dec 2014 20:02:28 +0100 Subject: all executables can now be repositioned, including auto-detected ones --- src/executableslist.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/executableslist.h') 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::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); -- cgit v1.3.1