summaryrefslogtreecommitdiffstats
path: root/logic/OneSixVersion.h
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-01 14:52:21 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-01 14:52:21 +0100
commit4a9e213238234b03fdd994143726a3f75290fc26 (patch)
treeaf1063eeb8cc0e82c09295e52997d88d8b45a581 /logic/OneSixVersion.h
parent556d8f0ec16e5030cfbfac9dc0fc2c796e829dcb (diff)
downloadMultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.gz
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.lz
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.xz
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.zip
Change the OneSix library view. It now shows a list of patches.
Diffstat (limited to 'logic/OneSixVersion.h')
-rw-r--r--logic/OneSixVersion.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/logic/OneSixVersion.h b/logic/OneSixVersion.h
index 98a4b418..d7a6684d 100644
--- a/logic/OneSixVersion.h
+++ b/logic/OneSixVersion.h
@@ -32,6 +32,7 @@ public:
explicit OneSixVersion(OneSixInstance *instance, QObject *parent = 0);
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+ virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
virtual int columnCount(const QModelIndex &parent) const;
virtual Qt::ItemFlags flags(const QModelIndex &index) const;
@@ -41,6 +42,12 @@ public:
void dump() const;
+ bool canRemove(const int index) const;
+
+public
+slots:
+ bool remove(const int index);
+
public:
QList<std::shared_ptr<OneSixLibrary>> getActiveNormalLibs();
QList<std::shared_ptr<OneSixLibrary>> getActiveNativeLibs();
@@ -109,6 +116,16 @@ public:
*/
// QList<Rule> rules;
+ struct VersionFile
+ {
+ QString name;
+ QString id;
+ QString version;
+ QString mcVersion;
+ QString filename;
+ };
+ QList<VersionFile> versionFiles;
+
private:
OneSixInstance *m_instance;
};