diff options
| author | Tannin <devnull@localhost> | 2014-07-21 19:14:24 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-07-21 19:14:24 +0200 |
| commit | 9879aae5757e0c2ca930b38c6b7a4aeb4715d2d9 (patch) | |
| tree | 43ccc85bf5998c4e37abc7cdb627b49276cc441b /src/modlist.h | |
| parent | cc9827cdda5776a4fd540a2ab0fb8a08ec9f75a7 (diff) | |
- download-list will no longer show a file as having incomplete data if there is no file version
- added a new mod column with icons displaying the content of the mod
- MO now differentiates between mods using an internal name that disambiguates between foreign and regular mods
Diffstat (limited to 'src/modlist.h')
| -rw-r--r-- | src/modlist.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modlist.h b/src/modlist.h index c43632db..f5cd70f2 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -52,6 +52,7 @@ public: enum EColumn {
COL_NAME,
COL_FLAGS,
+ COL_CONTENT,
COL_CATEGORY,
COL_MODID,
COL_VERSION,
@@ -102,6 +103,9 @@ public: public:
+ /// \copydoc MOBase::IModList::displayName
+ virtual QString displayName(const QString &internalName) const;
+
/// \copydoc MOBase::IModList::state
virtual ModStates state(const QString &name) const;
@@ -232,6 +236,10 @@ private: static QString getColumnToolTip(int column);
+ QVariantList contentsToIcons(const std::vector<ModInfo::EContent> &content) const;
+
+ QString contentsToToolTip(const std::vector<ModInfo::EContent> &contents) const;
+
ModList::EColumn getEnabledColumn(int index) const;
QVariant categoryData(int categoryID, int column, int role) const;
@@ -282,6 +290,8 @@ private: SignalModStateChanged m_ModStateChanged;
SignalModMoved m_ModMoved;
+ std::map<ModInfo::EContent, std::tuple<QIcon, QString, QString> > m_ContentIcons;
+
};
#endif // MODLIST_H
|
