diff options
| author | Jeremy Rimpo <jrim@rimpo.org> | 2017-11-30 16:37:14 -0600 |
|---|---|---|
| committer | Jeremy Rimpo <jrim@rimpo.org> | 2017-11-30 16:37:14 -0600 |
| commit | d7bc542b3d1a96a546d48850e61d3ecdc953c4cc (patch) | |
| tree | 8a02758752b525a32876a687ae207962b7e5be9a /src/modinfo.h | |
| parent | 977d562976a06b9d98e08197d28dfca7cb3d229e (diff) | |
Implement mod/plugin highlighting when pair is selected
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index 1485a4b3..c62df549 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -67,7 +67,8 @@ public: FLAG_CONFLICT_OVERWRITE,
FLAG_CONFLICT_OVERWRITTEN,
FLAG_CONFLICT_MIXED,
- FLAG_CONFLICT_REDUNDANT
+ FLAG_CONFLICT_REDUNDANT,
+ FLAG_PLUGIN_SELECTED
};
enum EContent {
@@ -89,7 +90,8 @@ public: HIGHLIGHT_NONE = 0,
HIGHLIGHT_INVALID = 1,
HIGHLIGHT_CENTER = 2,
- HIGHLIGHT_IMPORTANT = 4
+ HIGHLIGHT_IMPORTANT = 4,
+ HIGHLIGHT_PLUGIN = 8
};
enum EEndorsedState {
@@ -269,6 +271,12 @@ public: virtual void setVersion(const MOBase::VersionInfo &version);
/**
+ * @brief Controls if mod should be highlighted based on plugin selection
+ * @param isSelected whether or not the plugin has a selected mod
+ **/
+ virtual void setPluginSelected(const bool &isSelected);
+
+ /**
* @brief set the newest version of this mod on the nexus
*
* this can be used to overwrite the version of a mod without actually
@@ -599,6 +607,8 @@ protected: MOBase::VersionInfo m_Version;
+ bool m_PluginSelected = false;
+
private:
static QMutex s_Mutex;
|
