summaryrefslogtreecommitdiffstats
path: root/smglobals.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2011-01-27 13:06:32 +0100
committerArno <am@disconnect.de>2011-01-27 13:06:32 +0100
commitaaef34e66368a2803ae876d734809b69f0c258a2 (patch)
tree71db0c618431c361c143dba3386045c7682d4d17 /smglobals.cpp
parente4718ab079f4a4eba4a47fb75992b977a787f369 (diff)
downloadSheMov-aaef34e66368a2803ae876d734809b69f0c258a2.tar.gz
SheMov-aaef34e66368a2803ae876d734809b69f0c258a2.tar.bz2
SheMov-aaef34e66368a2803ae876d734809b69f0c258a2.zip
Finished metadata
Created a modes for metadata, revamped NewMovieWizard to use the model and created a MetadataWidget to edit and display metadata.
Diffstat (limited to 'smglobals.cpp')
-rw-r--r--smglobals.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/smglobals.cpp b/smglobals.cpp
index de71872..005c710 100644
--- a/smglobals.cpp
+++ b/smglobals.cpp
@@ -25,6 +25,7 @@
#include "seriestreemodel.h"
#include "filestreemodel.h"
#include "mappingtablemodel.h"
+#include "seriesmetadatamodel.h"
#include "pictureviewer.h"
SmGlobals *SmGlobals::mInstance = 0;
@@ -79,6 +80,12 @@ QAbstractItemModel *SmGlobals::model(const QString &which){
MappingTableModel *model = new MappingTableModel(headers, "genres");
mModels.insert(which, model);
}
+ }else if(which == "SeriesMetadata"){
+ if(!mModels.contains(which)){
+ QStringList headers = QStringList() << tr("SeriesPartId") << tr("Release Year") << tr("Source Medium") << tr("Subject") << tr("Release Group") << tr("Encoder Options") << tr("Comment") << tr("Encoding Passes") << tr("Added");
+ SeriesMetadataModel *model = new SeriesMetadataModel(headers);
+ mModels.insert(which, model);
+ }
}
return mModels.contains(which) ? mModels.value(which) : 0;
}