added doxygen documentation
This commit is contained in:
@@ -5,11 +5,32 @@
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cCheckBoxItemDelegate ccheckboxitemdelegate.h "ccheckboxitemdelegate.h"
|
||||
*/
|
||||
class cCheckBoxItemDelegate : public QStyledItemDelegate
|
||||
{
|
||||
public:
|
||||
protected:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paint
|
||||
\param painter
|
||||
\param option
|
||||
\param index
|
||||
*/
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn sizeHint
|
||||
\param option
|
||||
\param index
|
||||
\return QSize
|
||||
*/
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
};
|
||||
|
||||
|
||||
@@ -11,9 +11,20 @@
|
||||
#include "ckoditextureslibrary.h"
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cImage cimage.h "cimage.h"
|
||||
*/
|
||||
|
||||
class cImage
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\enum MEDIATYPE
|
||||
*/
|
||||
enum MEDIATYPE
|
||||
{
|
||||
MEDIATYPE_unknown = 0,
|
||||
@@ -26,6 +37,11 @@ public:
|
||||
MEDIATYPE_musicvideo = 7,
|
||||
};
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\enum TYPE
|
||||
*/
|
||||
enum TYPE
|
||||
{
|
||||
TYPE_unknown = 0,
|
||||
@@ -37,42 +53,104 @@ public:
|
||||
|
||||
cImage(cKodiVideoLibrary* lpKodiVideoLibrary, cKodiTexturesLibrary* lpKodiTexturesLibrary, cImage::MEDIATYPE mediaType, cImage::TYPE type, qint32 idMovie, const QString& szPath);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn mediaType
|
||||
\return cImage::MEDIATYPE
|
||||
*/
|
||||
cImage::MEDIATYPE mediaType();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn type
|
||||
\return cImage::TYPE
|
||||
*/
|
||||
cImage::TYPE type();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn idMovie
|
||||
\return qint32
|
||||
*/
|
||||
qint32 idMovie();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fileName
|
||||
\return QString
|
||||
*/
|
||||
QString fileName();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn image
|
||||
\return QPixmap
|
||||
*/
|
||||
QPixmap image();
|
||||
private:
|
||||
cKodiVideoLibrary* m_lpKodiVideoLibrary;
|
||||
cKodiTexturesLibrary* m_lpKodiTexturesLibrary;
|
||||
cKodiVideoLibrary* m_lpKodiVideoLibrary; /*!< TODO: describe */
|
||||
cKodiTexturesLibrary* m_lpKodiTexturesLibrary; /*!< TODO: describe */
|
||||
|
||||
qint32 m_artID;
|
||||
cImage::MEDIATYPE m_mediaType;
|
||||
cImage::TYPE m_type;
|
||||
qint32 m_idMovie;
|
||||
QString m_szURL;
|
||||
QString m_szCachedURL;
|
||||
QString m_szFileName;
|
||||
qint32 m_textureID;
|
||||
QString m_szPath;
|
||||
qint32 m_artID; /*!< TODO: describe */
|
||||
cImage::MEDIATYPE m_mediaType; /*!< TODO: describe */
|
||||
cImage::TYPE m_type; /*!< TODO: describe */
|
||||
qint32 m_idMovie; /*!< TODO: describe */
|
||||
QString m_szURL; /*!< TODO: describe */
|
||||
QString m_szCachedURL; /*!< TODO: describe */
|
||||
QString m_szFileName; /*!< TODO: describe */
|
||||
qint32 m_textureID; /*!< TODO: describe */
|
||||
QString m_szPath; /*!< TODO: describe */
|
||||
|
||||
QPixmap m_image;
|
||||
QPixmap m_image; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE (cImage*)
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cImageList cimage.h "cimage.h"
|
||||
*/
|
||||
class cImageList : public QList<cImage*>
|
||||
{
|
||||
public:
|
||||
cImageList(cKodiVideoLibrary* lpKodiVideoLibrary, cKodiTexturesLibrary* lpKodiTexturesLibrary, const QString& szPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn get
|
||||
\param mediaType
|
||||
\param type
|
||||
\param idMovie
|
||||
\return QPixmap
|
||||
*/
|
||||
QPixmap get(cImage::MEDIATYPE mediaType, cImage::TYPE type, qint32 idMovie);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fileName
|
||||
\param mediaType
|
||||
\param type
|
||||
\param idMovie
|
||||
\return QString
|
||||
*/
|
||||
QString fileName(cImage::MEDIATYPE mediaType, cImage::TYPE type, qint32 idMovie);
|
||||
private:
|
||||
cKodiVideoLibrary* m_lpKodiVideoLibrary;
|
||||
cKodiTexturesLibrary* m_lpKodiTexturesLibrary;
|
||||
QString m_szPath;
|
||||
cKodiVideoLibrary* m_lpKodiVideoLibrary; /*!< TODO: describe */
|
||||
cKodiTexturesLibrary* m_lpKodiTexturesLibrary; /*!< TODO: describe */
|
||||
QString m_szPath; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn find
|
||||
\param mediaType
|
||||
\param type
|
||||
\param idMovie
|
||||
\return cImage
|
||||
*/
|
||||
cImage* find(cImage::MEDIATYPE mediaType, cImage::TYPE type, qint32 idMovie);
|
||||
};
|
||||
|
||||
|
||||
+63
-14
@@ -16,35 +16,84 @@
|
||||
class cImage;
|
||||
class cImageList;
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cKodiLibrary ckodilibrary.h "ckodilibrary.h"
|
||||
*/
|
||||
class cKodiLibrary
|
||||
{
|
||||
public:
|
||||
cKodiLibrary(QStatusBar* lpMainWindowStatusBar, const QString& szPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cKodiLibrary
|
||||
\param lpSplashScreen
|
||||
\param szPath
|
||||
*/
|
||||
cKodiLibrary(QSplashScreen* lpSplashScreen, const QString& szPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cKodiLibrary
|
||||
*/
|
||||
~cKodiLibrary();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn init
|
||||
\return bool
|
||||
*/
|
||||
bool init();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn videoLibrary
|
||||
\return cKodiVideoLibrary
|
||||
*/
|
||||
cKodiVideoLibrary* videoLibrary();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn texturesLibrary
|
||||
\return cKodiTexturesLibrary
|
||||
*/
|
||||
cKodiTexturesLibrary* texturesLibrary();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn imageList
|
||||
\return cImageList
|
||||
*/
|
||||
cImageList* imageList();
|
||||
private:
|
||||
QStatusBar* m_lpMainWindowStatusBar;
|
||||
QSplashScreen* m_lpSplashScreen;
|
||||
cKodiVideoLibrary* m_lpKodiVideoLibrary;
|
||||
cKodiTexturesLibrary* m_lpKodiTexturesLibrary;
|
||||
cImageList* m_lpImageList;
|
||||
QString m_szPath;
|
||||
QStatusBar* m_lpMainWindowStatusBar; /*!< TODO: describe */
|
||||
QSplashScreen* m_lpSplashScreen; /*!< TODO: describe */
|
||||
cKodiVideoLibrary* m_lpKodiVideoLibrary; /*!< TODO: describe */
|
||||
cKodiTexturesLibrary* m_lpKodiTexturesLibrary; /*!< TODO: describe */
|
||||
cImageList* m_lpImageList; /*!< TODO: describe */
|
||||
QString m_szPath; /*!< TODO: describe */
|
||||
|
||||
QString m_szAddons;
|
||||
QString m_szADSP;
|
||||
QString m_szEpg;
|
||||
QString m_szMyMusic;
|
||||
QString m_szMyVideos;
|
||||
QString m_szTextures;
|
||||
QString m_szTV;
|
||||
QString m_szViewModes;
|
||||
QString m_szAddons; /*!< TODO: describe */
|
||||
QString m_szADSP; /*!< TODO: describe */
|
||||
QString m_szEpg; /*!< TODO: describe */
|
||||
QString m_szMyMusic; /*!< TODO: describe */
|
||||
QString m_szMyVideos; /*!< TODO: describe */
|
||||
QString m_szTextures; /*!< TODO: describe */
|
||||
QString m_szTV; /*!< TODO: describe */
|
||||
QString m_szViewModes; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn findFile
|
||||
\param szPath
|
||||
\param szFile
|
||||
\return QString
|
||||
*/
|
||||
QString findFile(const QString& szPath, const QString& szFile);
|
||||
};
|
||||
|
||||
|
||||
+35
-4
@@ -7,21 +7,52 @@
|
||||
#include <QStatusBar>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cKodiTexturesLibrary ckoditextureslibrary.h "ckoditextureslibrary.h"
|
||||
*/
|
||||
class cKodiTexturesLibrary
|
||||
{
|
||||
public:
|
||||
cKodiTexturesLibrary(const QString& szFileName);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cKodiTexturesLibrary
|
||||
*/
|
||||
~cKodiTexturesLibrary();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn init
|
||||
\return qint16
|
||||
*/
|
||||
qint16 init();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn version
|
||||
\return qint16
|
||||
*/
|
||||
qint16 version();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn texture
|
||||
\param szURL
|
||||
\param id
|
||||
\param szCachedURL
|
||||
\return bool
|
||||
*/
|
||||
bool texture(const QString& szURL, qint32& id, QString& szCachedURL);
|
||||
private:
|
||||
QSqlDatabase m_db;
|
||||
QString m_szFileName;
|
||||
bool m_bConnected;
|
||||
qint16 m_iVersion;
|
||||
QSqlDatabase m_db; /*!< TODO: describe */
|
||||
QString m_szFileName; /*!< TODO: describe */
|
||||
bool m_bConnected; /*!< TODO: describe */
|
||||
qint16 m_iVersion; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CKODITEXTURESLIBRARY_H
|
||||
|
||||
+193
-11
@@ -14,54 +14,236 @@
|
||||
#include <QComboBox>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cKodiVideoLibrary ckodivideolibrary.h "ckodivideolibrary.h"
|
||||
*/
|
||||
class cKodiVideoLibrary
|
||||
{
|
||||
public:
|
||||
cKodiVideoLibrary(const QString& szFileName);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cKodiVideoLibrary
|
||||
*/
|
||||
~cKodiVideoLibrary();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn init
|
||||
\return qint16
|
||||
*/
|
||||
qint16 init();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn version
|
||||
\return qint16
|
||||
*/
|
||||
qint16 version();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn load
|
||||
\param lpStatusBar
|
||||
\param lpSplashScreen
|
||||
\return qint32
|
||||
*/
|
||||
qint32 load(QStatusBar* lpStatusBar, QSplashScreen* lpSplashScreen);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn art
|
||||
\param szMediaType
|
||||
\param szType
|
||||
\param idMovie
|
||||
\param artID
|
||||
\param szURL
|
||||
\return bool
|
||||
*/
|
||||
bool art(const QString& szMediaType, const QString& szType, qint32 idMovie, qint32& artID, QString& szURL);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillVideoList
|
||||
\param lpModel
|
||||
*/
|
||||
void fillVideoList(QStandardItemModel* lpModel);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillTVShowList
|
||||
\param lpModel
|
||||
*/
|
||||
void fillTVShowList(QStandardItemModel* lpModel);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillCountriesList
|
||||
\param lpModel
|
||||
*/
|
||||
void fillCountriesList(QStandardItemModel* lpModel);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillGenresList
|
||||
\param lpModel
|
||||
*/
|
||||
void fillGenresList(QStandardItemModel* lpModel);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillStudiosList
|
||||
\param lpModel
|
||||
*/
|
||||
void fillStudiosList(QStandardItemModel* lpModel);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillSetsList
|
||||
\param lpComboBox
|
||||
*/
|
||||
void fillSetsList(QComboBox* lpComboBox);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillActorList
|
||||
\param lpList
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillActorList(QStandardItemModel* lpList, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillDirectorsList
|
||||
\param lpList
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillDirectorsList(QStandardItemModel* lpList, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillWritersList
|
||||
\param lpList
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillWritersList(QStandardItemModel* lpList, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillCountriesList
|
||||
\param lpList
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillCountriesList(QStandardItemModel* lpList, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillGenresList
|
||||
\param lpList
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillGenresList(QStandardItemModel* lpList, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillStudiosList
|
||||
\param lpList
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillStudiosList(QStandardItemModel* lpList, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillVideoStreamList
|
||||
\param lpModel
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillVideoStreamList(QStandardItemModel* lpModel, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillAudioStreamList
|
||||
\param lpModel
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillAudioStreamList(QStandardItemModel* lpModel, cMyVideos* lpVideos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fillSubtitleStreamList
|
||||
\param lpModel
|
||||
\param lpVideos
|
||||
*/
|
||||
void fillSubtitleStreamList(QStandardItemModel* lpModel, cMyVideos* lpVideos);
|
||||
private:
|
||||
QSqlDatabase m_db;
|
||||
QString m_szFileName;
|
||||
bool m_bConnected;
|
||||
qint16 m_iVersion;
|
||||
QSqlDatabase m_db; /*!< TODO: describe */
|
||||
QString m_szFileName; /*!< TODO: describe */
|
||||
bool m_bConnected; /*!< TODO: describe */
|
||||
qint16 m_iVersion; /*!< TODO: describe */
|
||||
|
||||
cMyVideosActorList m_videosActorList;
|
||||
cMyVideosCountryList m_videosCountryList;
|
||||
cMyVideosGenreList m_videosGenreList;
|
||||
cMyVideosStudioList m_videosStudioList;
|
||||
cMyVideosSetList m_videosSetList;
|
||||
cMyVideosList m_videosList;
|
||||
cMyVideosActorList m_videosActorList; /*!< TODO: describe */
|
||||
cMyVideosCountryList m_videosCountryList; /*!< TODO: describe */
|
||||
cMyVideosGenreList m_videosGenreList; /*!< TODO: describe */
|
||||
cMyVideosStudioList m_videosStudioList; /*!< TODO: describe */
|
||||
cMyVideosSetList m_videosSetList; /*!< TODO: describe */
|
||||
cMyVideosList m_videosList; /*!< TODO: describe */
|
||||
|
||||
cMyTVShowsList m_tvShowsList;
|
||||
cMyTVShowsList m_tvShowsList; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadActors
|
||||
\return qint32
|
||||
*/
|
||||
qint32 loadActors();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadCountries
|
||||
\return qint32
|
||||
*/
|
||||
qint32 loadCountries();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadGenres
|
||||
\return qint32
|
||||
*/
|
||||
qint32 loadGenres();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadStudios
|
||||
\return qint32
|
||||
*/
|
||||
qint32 loadStudios();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadVideos
|
||||
\return qint32
|
||||
*/
|
||||
qint32 loadVideos();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadTVShows
|
||||
\return qint32
|
||||
*/
|
||||
qint32 loadTVShows();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadSets
|
||||
\return qint32
|
||||
*/
|
||||
qint32 loadSets();
|
||||
};
|
||||
|
||||
|
||||
@@ -7,15 +7,38 @@
|
||||
#include <QPainter>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMainTabBar cmaintabbar.h "cmaintabbar.h"
|
||||
*/
|
||||
class cMainTabBar : public QTabBar
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
cMainTabBar(QWidget *parent = Q_NULLPTR);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMainTabBar
|
||||
*/
|
||||
virtual ~cMainTabBar();
|
||||
|
||||
protected:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn tabSizeHint
|
||||
\param index
|
||||
\return QSize
|
||||
*/
|
||||
QSize tabSizeHint(int index) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paintEvent
|
||||
\param
|
||||
*/
|
||||
void paintEvent(QPaintEvent *);
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
#include <QTabWidget>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMainTabWidget cmaintabwidget.h "cmaintabwidget.h"
|
||||
*/
|
||||
class cMainTabWidget : public QTabWidget
|
||||
{
|
||||
public:
|
||||
|
||||
+35
-6
@@ -20,25 +20,54 @@ namespace Ui
|
||||
class cMainWindow;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMainWindow cmainwindow.h "cmainwindow.h"
|
||||
*/
|
||||
class cMainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMainWindow
|
||||
\param parent
|
||||
\param lpSplashScreen
|
||||
*/
|
||||
explicit cMainWindow(QWidget *parent = 0, QSplashScreen* lpSplashScreen = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMainWindow
|
||||
*/
|
||||
~cMainWindow();
|
||||
|
||||
private slots:
|
||||
|
||||
private:
|
||||
Ui::cMainWindow* ui;
|
||||
cVideoWidget* m_lpVideoWidget;
|
||||
cTVShowWidget* m_lpTVShowWidget;
|
||||
cMusicWidget* m_lpMusicWidget;
|
||||
cMusicVideosWidget* m_lpMusicVideoWidget;
|
||||
cKodiLibrary* m_lpKodiLibrary;
|
||||
Ui::cMainWindow* ui; /*!< TODO: describe */
|
||||
cVideoWidget* m_lpVideoWidget; /*!< TODO: describe */
|
||||
cTVShowWidget* m_lpTVShowWidget; /*!< TODO: describe */
|
||||
cMusicWidget* m_lpMusicWidget; /*!< TODO: describe */
|
||||
cMusicVideosWidget* m_lpMusicVideoWidget; /*!< TODO: describe */
|
||||
cKodiLibrary* m_lpKodiLibrary; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn initUI
|
||||
\param lpSplashScreen
|
||||
*/
|
||||
void initUI(QSplashScreen* lpSplashScreen);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn initDB
|
||||
\param lpSplashScreen
|
||||
*/
|
||||
void initDB(QSplashScreen* lpSplashScreen);
|
||||
};
|
||||
|
||||
|
||||
+17
-1
@@ -7,16 +7,32 @@ namespace Ui {
|
||||
class cMusicVideosWidget;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMusicVideosWidget cmusicvideoswidget.h "cmusicvideoswidget.h"
|
||||
*/
|
||||
class cMusicVideosWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMusicVideosWidget
|
||||
\param parent
|
||||
*/
|
||||
explicit cMusicVideosWidget(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMusicVideosWidget
|
||||
*/
|
||||
~cMusicVideosWidget();
|
||||
|
||||
private:
|
||||
Ui::cMusicVideosWidget *ui;
|
||||
Ui::cMusicVideosWidget *ui; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CMUSICVIDEOSWIDGET_H
|
||||
|
||||
+17
-1
@@ -7,16 +7,32 @@ namespace Ui {
|
||||
class cMusicWidget;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMusicWidget cmusicwidget.h "cmusicwidget.h"
|
||||
*/
|
||||
class cMusicWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMusicWidget
|
||||
\param parent
|
||||
*/
|
||||
explicit cMusicWidget(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMusicWidget
|
||||
*/
|
||||
~cMusicWidget();
|
||||
|
||||
private:
|
||||
Ui::cMusicWidget *ui;
|
||||
Ui::cMusicWidget *ui; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CMUSICWIDGET_H
|
||||
|
||||
+2165
-138
File diff suppressed because it is too large
Load Diff
+43
-10
@@ -21,28 +21,61 @@ class cTVShowWidget;
|
||||
class cImage;
|
||||
class cImageList;
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cTVShowWidget ctvshowwidget.h "ctvshowwidget.h"
|
||||
*/
|
||||
class cTVShowWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cTVShowWidget
|
||||
\param parent
|
||||
*/
|
||||
explicit cTVShowWidget(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cTVShowWidget
|
||||
*/
|
||||
~cTVShowWidget();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLibrary
|
||||
\param lpVideoLibrary
|
||||
\param lpImageList
|
||||
*/
|
||||
void setLibrary(cKodiVideoLibrary* lpVideoLibrary, cImageList* lpImageList);
|
||||
private:
|
||||
Ui::cTVShowWidget *ui;
|
||||
QStandardItemModel* m_lpTVShowModel;
|
||||
QStandardItemModel* m_lpCastModel;
|
||||
QStandardItemModel* m_lpDirectorModel;
|
||||
QStandardItemModel* m_lpWriterModel;
|
||||
QStandardItemModel* m_lpCountryModel;
|
||||
QStandardItemModel* m_lpGenreModel;
|
||||
QStandardItemModel* m_lpStudioModel;
|
||||
cKodiVideoLibrary* m_lpVideoLibrary;
|
||||
cImageList* m_lpImageList;
|
||||
Ui::cTVShowWidget *ui; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpTVShowModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpCastModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpDirectorModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpWriterModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpCountryModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpGenreModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpStudioModel; /*!< TODO: describe */
|
||||
cKodiVideoLibrary* m_lpVideoLibrary; /*!< TODO: describe */
|
||||
cImageList* m_lpImageList; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn initUI
|
||||
*/
|
||||
void initUI();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn showList
|
||||
*/
|
||||
void showList();
|
||||
};
|
||||
|
||||
|
||||
@@ -5,11 +5,32 @@
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cVideoViewItemDelegate cvideoviewitemdelegate.h "cvideoviewitemdelegate.h"
|
||||
*/
|
||||
class cVideoViewItemDelegate : public QStyledItemDelegate
|
||||
{
|
||||
public:
|
||||
protected:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paint
|
||||
\param painter
|
||||
\param option
|
||||
\param index
|
||||
*/
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn sizeHint
|
||||
\param option
|
||||
\param index
|
||||
\return QSize
|
||||
*/
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
};
|
||||
|
||||
|
||||
+134
-13
@@ -21,47 +21,168 @@ class cVideoWidget;
|
||||
class cImage;
|
||||
class cImageList;
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cVideoWidget cvideowidget.h "cvideowidget.h"
|
||||
*/
|
||||
class cVideoWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cVideoWidget
|
||||
\param parent
|
||||
*/
|
||||
explicit cVideoWidget(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cVideoWidget
|
||||
*/
|
||||
~cVideoWidget();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLibrary
|
||||
\param lpVideoLibrary
|
||||
\param lpImageList
|
||||
*/
|
||||
void setLibrary(cKodiVideoLibrary* lpVideoLibrary, cImageList* lpImageList);
|
||||
private:
|
||||
Ui::cVideoWidget* ui;
|
||||
QStandardItemModel* m_lpVideoModel;
|
||||
QStandardItemModel* m_lpCastModel;
|
||||
QStandardItemModel* m_lpDirectorModel;
|
||||
QStandardItemModel* m_lpWriterModel;
|
||||
QStandardItemModel* m_lpCountryModel;
|
||||
QStandardItemModel* m_lpGenreModel;
|
||||
QStandardItemModel* m_lpStudioModel;
|
||||
QStandardItemModel* m_lpVideoStreamModel;
|
||||
QStandardItemModel* m_lpAudioStreamModel;
|
||||
QStandardItemModel* m_lpSubtitleStreamModel;
|
||||
cKodiVideoLibrary* m_lpVideoLibrary;
|
||||
cImageList* m_lpImageList;
|
||||
Ui::cVideoWidget* ui; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpVideoModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpCastModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpDirectorModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpWriterModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpCountryModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpGenreModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpStudioModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpVideoStreamModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpAudioStreamModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpSubtitleStreamModel; /*!< TODO: describe */
|
||||
cKodiVideoLibrary* m_lpVideoLibrary; /*!< TODO: describe */
|
||||
cImageList* m_lpImageList; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn initUI
|
||||
*/
|
||||
void initUI();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn showList
|
||||
*/
|
||||
void showList();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn displaySet
|
||||
\param lpSet
|
||||
*/
|
||||
void displaySet(cMyVideosSet* lpSet);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn displayVideo
|
||||
\param lpVideos
|
||||
*/
|
||||
void displayVideo(cMyVideos* lpVideos);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setValue
|
||||
\param lpLineEdit
|
||||
\param szText
|
||||
\param bEnable
|
||||
*/
|
||||
void setValue(QLineEdit* lpLineEdit, QString szText, bool bEnable);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setValue
|
||||
\param lpLineEdit
|
||||
\param szText
|
||||
\param bEnable
|
||||
*/
|
||||
void setValue(QTextEdit* lpLineEdit, QString szText, bool bEnable);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setValue
|
||||
\param lpSpinBox
|
||||
\param dValue
|
||||
\param bEnable
|
||||
*/
|
||||
void setValue(QDoubleSpinBox* lpSpinBox, qreal dValue, bool bEnable);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setValue
|
||||
\param lpSpinBox
|
||||
\param iValue
|
||||
\param bEnable
|
||||
*/
|
||||
void setValue(QSpinBox* lpSpinBox, qint32 iValue, bool bEnable);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setValue
|
||||
\param lpDateTimeEdit
|
||||
\param value
|
||||
\param bEnable
|
||||
*/
|
||||
void setValue(QDateTimeEdit* lpDateTimeEdit, QDateTime value, bool bEnable);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setValue
|
||||
\param lpTimeEdit
|
||||
\param value
|
||||
\param bEnable
|
||||
*/
|
||||
void setValue(QTimeEdit* lpTimeEdit, QTime value, bool bEnable);
|
||||
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn videoSelectionChanged
|
||||
\param newSelection
|
||||
\param oldSelection
|
||||
*/
|
||||
void videoSelectionChanged(const QItemSelection& newSelection, const QItemSelection& oldSelection);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn castSelectionChanged
|
||||
\param newSelection
|
||||
\param oldSelection
|
||||
*/
|
||||
void castSelectionChanged(const QItemSelection& newSelection, const QItemSelection& oldSelection);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn directorSelectionChanged
|
||||
\param newSelection
|
||||
\param oldSelection
|
||||
*/
|
||||
void directorSelectionChanged(const QItemSelection& newSelection, const QItemSelection& oldSelection);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn writerSelectionChanged
|
||||
\param newSelection
|
||||
\param oldSelection
|
||||
*/
|
||||
void writerSelectionChanged(const QItemSelection& newSelection, const QItemSelection& oldSelection);
|
||||
};
|
||||
|
||||
|
||||
+2
-1
@@ -68,4 +68,5 @@ DISTFILES += \
|
||||
icons/empty.ico \
|
||||
splash/splash.jpg \
|
||||
splash/splash.png \
|
||||
splash/splash.svg
|
||||
splash/splash.svg \
|
||||
Doxyfile
|
||||
|
||||
Reference in New Issue
Block a user