diff options
author | Arno <arno@disconnect.de> | 2018-08-26 20:35:23 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-08-26 20:35:23 +0200 |
commit | 68ee6a0ec973940eb4f799b00f6518a902cbc4e5 (patch) | |
tree | 41ddac1434482ae0a20686c8bc8c8231bf9aed36 /smglobals.h | |
parent | 1aebcdcc41d60f891a12b70584d3ceb833d5bfdc (diff) | |
download | SheMov-68ee6a0ec973940eb4f799b00f6518a902cbc4e5.tar.gz SheMov-68ee6a0ec973940eb4f799b00f6518a902cbc4e5.tar.bz2 SheMov-68ee6a0ec973940eb4f799b00f6518a902cbc4e5.zip |
Implement custom Video player
Well, well, well. Due to several unforseen circumstances I ventured into
the sources again and implemented a Video player with Qt. Looks very
promising so far. There are some bugs to weed out, but I'm getting
there...
Diffstat (limited to 'smglobals.h')
-rw-r--r-- | smglobals.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/smglobals.h b/smglobals.h index c4eb6c3..83e63be 100644 --- a/smglobals.h +++ b/smglobals.h @@ -15,6 +15,7 @@ class QAbstractItemModel; class PictureViewer2; +class VideoViewer; class QPixmap; class SeriesTreeWidget; class ArchiveController; @@ -37,32 +38,34 @@ class SmGlobals : public QObject { static SmGlobals *instance(); QAbstractItemModel *model(const QString &which); PictureViewer2 *pictureViewer(); + VideoViewer *videoViewer(); void setArchiveController(ArchiveController *c) { mArchiveController = c; } ArchiveController *archiveController() { return mArchiveController; } QSize cursorSize(); QIcon iconFor(const QString &type); const QHash<QString, QString> & icons() const { return mIcons; } QHash<int, QString> filetypeMap() const { return mFiletypeMap; } - void registerWidget(const QString &name, QWidget *w); - QWidget *getRegisteredWidget(const QString &name); void setGlobalAction(QAction *a) { mGlobalActions = a; } QAction *globalAction() { return mGlobalActions; } QStringList reencReasons() const { return mReencReasons; } void setReencReasons(const QStringList reasons); + void addGlobalWidget(QWidget *w) { mWidgets.append(w); } + void removeGlobalWidget(QWidget *w) { mWidgets.removeAll(w); } private: SmGlobals(); SmGlobals(const SmGlobals &other); SmGlobals &operator=(const SmGlobals &other); static SmGlobals *mInstance; - QHash<QString, QAbstractItemModel*> mModels; + QHash<QString, QAbstractItemModel*> mModels; PictureViewer2 *mPictureViewer; + VideoViewer *mVideoViewer; SeriesTreeWidget *mSeriesTreeWidget; QSize mCursorSize; QHash<QString, QString> mIcons; ArchiveController *mArchiveController; QHash<int, QString> mFiletypeMap; - QHash<QString, QWidget*> mWidgets; + QList<QWidget*> mWidgets; QStringList mReencReasons; QAction *mGlobalActions; }; |