diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2022-05-17 11:47:01 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:20:40 +0200 |
| commit | d13f6bb870cdda71257f665367be8ef9fca86255 (patch) | |
| tree | 52e214718478f1e52856572f5aa1a2ac58537f9f /src/modlistviewactions.h | |
| parent | 86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff) | |
Apply clang-format.
Diffstat (limited to 'src/modlistviewactions.h')
| -rw-r--r-- | src/modlistviewactions.h | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/src/modlistviewactions.h b/src/modlistviewactions.h index de7bdaba..5927654f 100644 --- a/src/modlistviewactions.h +++ b/src/modlistviewactions.h @@ -19,17 +19,12 @@ class ModListViewActions : public QObject Q_OBJECT public: - // currently passing the main window itself because a lots of stuff needs it but // it would be nice to avoid passing it at some point // - ModListViewActions( - OrganizerCore& core, - FilterList& filters, - CategoryFactory& categoryFactory, - ModListView* view, - PluginListView* pluginView, - QObject* nxmReceiver); + ModListViewActions(OrganizerCore& core, FilterList& filters, + CategoryFactory& categoryFactory, ModListView* view, + PluginListView* pluginView, QObject* nxmReceiver); // install mod, create an empty mod or a separator with at priority based on the // index and the current sorting of the view @@ -44,7 +39,8 @@ public: // if the archivePath is empty for installMod, ask the user for the archive // to install // - void installMod(const QString& archivePath = "", const QModelIndex& index = QModelIndex()) const; + void installMod(const QString& archivePath = "", + const QModelIndex& index = QModelIndex()) const; void createEmptyMod(const QModelIndex& index = QModelIndex()) const; void createSeparator(const QModelIndex& index = QModelIndex()) const; @@ -63,11 +59,15 @@ public: // display mod information // - void displayModInformation(const QString& modName, ModInfoTabIDs tabID = ModInfoTabIDs::None) const; - void displayModInformation(unsigned int index, ModInfoTabIDs tab = ModInfoTabIDs::None) const; - void displayModInformation(ModInfo::Ptr modInfo, unsigned int modIndex, ModInfoTabIDs tabID = ModInfoTabIDs::None) const; + void displayModInformation(const QString& modName, + ModInfoTabIDs tabID = ModInfoTabIDs::None) const; + void displayModInformation(unsigned int index, + ModInfoTabIDs tab = ModInfoTabIDs::None) const; + void displayModInformation(ModInfo::Ptr modInfo, unsigned int modIndex, + ModInfoTabIDs tabID = ModInfoTabIDs::None) const; - // move mods to top/bottom, start the "Send to priority" and "Send to separator" dialog + // move mods to top/bottom, start the "Send to priority" and "Send to separator" + // dialog // void sendModsToTop(const QModelIndexList& index) const; void sendModsToBottom(const QModelIndexList& index) const; @@ -106,13 +106,14 @@ public: // on the reference is different // void setCategories(const QModelIndexList& selected, const QModelIndex& ref, - const std::vector<std::pair<int, bool>>& categories) const; + const std::vector<std::pair<int, bool>>& categories) const; // set the primary category of the mods in the given list, adding the appropriate // category to the mods unless force is false, in which case the primary category // is set only on mods that have this category // - void setPrimaryCategory(const QModelIndexList& selected, int category, bool force = true); + void setPrimaryCategory(const QModelIndexList& selected, int category, + bool force = true); // open the Windows explorer for the specified mods // @@ -143,7 +144,6 @@ signals: void modInfoDisplayed() const; private: - // find the priority where to install or create a mod for the // given index (e.g. above, below, inside separator or at the end) // @@ -155,19 +155,20 @@ private: // set the category of the given mod based on the given array // - void setCategories(ModInfo::Ptr mod, const std::vector<std::pair<int, bool>>& categories) const; + void setCategories(ModInfo::Ptr mod, + const std::vector<std::pair<int, bool>>& categories) const; - // set the category of the given mod if the category from the reference mod does not match - // the one in the array of categories + // set the category of the given mod if the category from the reference mod does not + // match the one in the array of categories // - void setCategoriesIf(ModInfo::Ptr mod, ModInfo::Ptr ref, const std::vector<std::pair<int, bool>>& categories) const; + void setCategoriesIf(ModInfo::Ptr mod, ModInfo::Ptr ref, + const std::vector<std::pair<int, bool>>& categories) const; // check the given mods from update, the map should map game names to nexus ID // void checkModsForUpdates(std::multimap<QString, int> const& IDs) const; private: - OrganizerCore& m_core; FilterList& m_filters; CategoryFactory& m_categories; |
