added Doxygen
This commit is contained in:
+51
-4
@@ -12,27 +12,74 @@ namespace Ui {
|
||||
class cDiscover;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cDiscover cdiscover.h "cdiscover.h"
|
||||
*/
|
||||
class cDiscover : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cDiscover
|
||||
\param serieList
|
||||
\param parent
|
||||
*/
|
||||
explicit cDiscover(const cSerieList serieList, QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cDiscover
|
||||
*/
|
||||
~cDiscover();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn id
|
||||
\return QList<qint32>
|
||||
*/
|
||||
QList<qint32> id();
|
||||
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn spanChanged
|
||||
\param lower
|
||||
\param upper
|
||||
*/
|
||||
void spanChanged(int lower, int upper);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpDiscover_clicked
|
||||
*/
|
||||
void on_m_lpDiscover_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpYearEnable_clicked
|
||||
\param checked
|
||||
*/
|
||||
void on_m_lpYearEnable_clicked(bool checked);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeries_clicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpSeries_clicked(const QModelIndex &index);
|
||||
|
||||
private:
|
||||
Ui::cDiscover* ui;
|
||||
QStandardItemModel* m_lpGenresModel;
|
||||
QStandardItemModel* m_lpSeriesModel;
|
||||
cSerieList m_serieList;
|
||||
Ui::cDiscover* ui; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpGenresModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpSeriesModel; /*!< TODO: describe */
|
||||
cSerieList m_serieList; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CDISCOVER_H
|
||||
|
||||
@@ -11,55 +11,130 @@ namespace Ui {
|
||||
class cEdit;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cEdit cedit.h "cedit.h"
|
||||
*/
|
||||
class cEdit : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cEdit
|
||||
\param parent
|
||||
*/
|
||||
explicit cEdit(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cEdit
|
||||
*/
|
||||
~cEdit();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSerie
|
||||
\param lpSerie
|
||||
*/
|
||||
void setSerie(cSerie* lpSerie);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn download
|
||||
\return QString
|
||||
*/
|
||||
QString download();
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn lpAllInit_clicked
|
||||
*/
|
||||
void lpAllInit_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn lpAllProgress_clicked
|
||||
*/
|
||||
void lpAllProgress_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn lpAllDone_clicked
|
||||
*/
|
||||
void lpAllDone_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allInit_clicked
|
||||
*/
|
||||
void allInit_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allProgress_clicked
|
||||
*/
|
||||
void allProgress_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allDone_clicked
|
||||
*/
|
||||
void allDone_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpTabWidget_tabBarClicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpTabWidget_tabBarClicked(int index);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpCliffhanger_clicked
|
||||
*/
|
||||
void on_m_lpCliffhanger_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpFirstAired_dateChanged
|
||||
\param date
|
||||
*/
|
||||
void on_m_lpFirstAired_dateChanged(const QDate &date);
|
||||
|
||||
private:
|
||||
Ui::cEdit* ui;
|
||||
bool m_bLoaded;
|
||||
QRadioButton* m_lpButton1;
|
||||
QRadioButton* m_lpButton2;
|
||||
QRadioButton* m_lpButton3;
|
||||
QPushButton* m_lpInit;
|
||||
QPushButton* m_lpProgress;
|
||||
QPushButton* m_lpDone;
|
||||
Ui::cEdit* ui; /*!< TODO: describe */
|
||||
bool m_bLoaded; /*!< TODO: describe */
|
||||
QRadioButton* m_lpButton1; /*!< TODO: describe */
|
||||
QRadioButton* m_lpButton2; /*!< TODO: describe */
|
||||
QRadioButton* m_lpButton3; /*!< TODO: describe */
|
||||
QPushButton* m_lpInit; /*!< TODO: describe */
|
||||
QPushButton* m_lpProgress; /*!< TODO: describe */
|
||||
QPushButton* m_lpDone; /*!< TODO: describe */
|
||||
|
||||
QGroupBox* m_lpGroupBox;
|
||||
QGridLayout* m_lpGridLayout;
|
||||
QGridLayout* m_lpGrid;
|
||||
QLabel* m_lpLabel;
|
||||
QLabel* m_lpLabel1;
|
||||
QSpacerItem* m_lpSpacer;
|
||||
QButtonGroup* m_lpGroup;
|
||||
QPushButton* m_lpAllInit;
|
||||
QPushButton* m_lpAllProgress;
|
||||
QPushButton* m_lpAllDone;
|
||||
QGroupBox* m_lpGroupBox; /*!< TODO: describe */
|
||||
QGridLayout* m_lpGridLayout; /*!< TODO: describe */
|
||||
QGridLayout* m_lpGrid; /*!< TODO: describe */
|
||||
QLabel* m_lpLabel; /*!< TODO: describe */
|
||||
QLabel* m_lpLabel1; /*!< TODO: describe */
|
||||
QSpacerItem* m_lpSpacer; /*!< TODO: describe */
|
||||
QButtonGroup* m_lpGroup; /*!< TODO: describe */
|
||||
QPushButton* m_lpAllInit; /*!< TODO: describe */
|
||||
QPushButton* m_lpAllProgress; /*!< TODO: describe */
|
||||
QPushButton* m_lpAllDone; /*!< TODO: describe */
|
||||
|
||||
QSpacerItem* m_lpVerticalSpacer;
|
||||
QSpacerItem* m_lpVerticalSpacer; /*!< TODO: describe */
|
||||
|
||||
cSerie* m_lpSerie;
|
||||
cSerie* m_lpSerie; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CEDIT_H
|
||||
|
||||
+315
-20
@@ -11,9 +11,19 @@
|
||||
#include <QRadioButton>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cEpisode cepisode.h "cepisode.h"
|
||||
*/
|
||||
class cEpisode
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\enum State
|
||||
*/
|
||||
enum State
|
||||
{
|
||||
StateUnknown = 0,
|
||||
@@ -23,96 +33,381 @@ public:
|
||||
};
|
||||
|
||||
cEpisode();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cEpisode
|
||||
*/
|
||||
~cEpisode();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setID
|
||||
\param iID
|
||||
*/
|
||||
void setID(const qint32& iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn id
|
||||
\return qint32
|
||||
*/
|
||||
qint32 id();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setName
|
||||
\param szName
|
||||
*/
|
||||
void setName(const QString& szName);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn name
|
||||
\return QString
|
||||
*/
|
||||
QString name();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setEpisodeNumber
|
||||
\param iEpisodeNumber
|
||||
*/
|
||||
void setEpisodeNumber(const qint16& iEpisodeNumber);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn episodeNumber
|
||||
\return qint16
|
||||
*/
|
||||
qint16 episodeNumber();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAirDate
|
||||
\param szAirDate
|
||||
*/
|
||||
void setAirDate(const QString& szAirDate);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAirDate
|
||||
\param airDate
|
||||
*/
|
||||
void setAirDate(const QDate& airDate);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn airDate
|
||||
\return QDate
|
||||
*/
|
||||
QDate airDate();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGuestStars
|
||||
\param szGuestStars
|
||||
*/
|
||||
void setGuestStars(const QString& szGuestStars);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGuestStars
|
||||
\param szGuestStars
|
||||
*/
|
||||
void setGuestStars(const QStringList& szGuestStars);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn guestStars
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList guestStars();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOverview
|
||||
\param szOverview
|
||||
*/
|
||||
void setOverview(const QString& szOverview);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn overview
|
||||
\return QString
|
||||
*/
|
||||
QString overview();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProductionCode
|
||||
\param szProductionCode
|
||||
*/
|
||||
void setProductionCode(const QString& szProductionCode);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn productionCode
|
||||
\return QString
|
||||
*/
|
||||
QString productionCode();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeasonNumber
|
||||
\param iSeasonNumber
|
||||
*/
|
||||
void setSeasonNumber(const qint16& iSeasonNumber);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasonNumber
|
||||
\return qint16
|
||||
*/
|
||||
qint16 seasonNumber();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeasonID
|
||||
\param iSeasonID
|
||||
*/
|
||||
void setSeasonID(const qint32& iSeasonID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasonID
|
||||
\return qint32
|
||||
*/
|
||||
qint32 seasonID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeriesID
|
||||
\param iSeriesID
|
||||
*/
|
||||
void setSeriesID(const qint32& iSeriesID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seriesID
|
||||
\return qint32
|
||||
*/
|
||||
qint32 seriesID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setStillPath
|
||||
\param szStillPath
|
||||
*/
|
||||
void setStillPath(const QString& szStillPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn stillPath
|
||||
\return QString
|
||||
*/
|
||||
QString stillPath();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setVoteAverage
|
||||
\param dVoteAverage
|
||||
*/
|
||||
void setVoteAverage(const qreal& dVoteAverage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn voteAverage
|
||||
\return qreal
|
||||
*/
|
||||
qreal voteAverage();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setVoteCount
|
||||
\param iVoteCount
|
||||
*/
|
||||
void setVoteCount(const qint16& iVoteCount);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn voteCount
|
||||
\return qint16
|
||||
*/
|
||||
qint16 voteCount();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCrew
|
||||
\param szCrew
|
||||
*/
|
||||
void setCrew(const QString& szCrew);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCrew
|
||||
\param szCrew
|
||||
*/
|
||||
void setCrew(const QStringList& szCrew);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn crew
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList crew();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setState
|
||||
\param state
|
||||
*/
|
||||
void setState(const State& state);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn state
|
||||
\return State
|
||||
*/
|
||||
State state();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setFileName
|
||||
\param szFileName
|
||||
*/
|
||||
void setFileName(const QString& szFileName);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fileName
|
||||
\return QString
|
||||
*/
|
||||
QString fileName();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setThumbHeight
|
||||
\param iThumbHeight
|
||||
*/
|
||||
void setThumbHeight(const qint16& iThumbHeight);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn thumbHeight
|
||||
\return qint16
|
||||
*/
|
||||
qint16 thumbHeight();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setThumbWidth
|
||||
\param iThumbWidth
|
||||
*/
|
||||
void setThumbWidth(const qint16& iThumbWidth);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn thumbWidth
|
||||
\return qint16
|
||||
*/
|
||||
qint16 thumbWidth();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn isValid
|
||||
\return bool
|
||||
*/
|
||||
bool isValid();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGroup
|
||||
\param lpGroup
|
||||
*/
|
||||
void setGroup(QButtonGroup* lpGroup);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLabel
|
||||
\param lpLabel
|
||||
*/
|
||||
void setLabel(QLabel* lpLabel);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setButton1
|
||||
\param lpButton1
|
||||
*/
|
||||
void setButton1(QRadioButton* lpButton1);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setButton2
|
||||
\param lpButton2
|
||||
*/
|
||||
void setButton2(QRadioButton* lpButton2);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setButton3
|
||||
\param lpButton3
|
||||
*/
|
||||
void setButton3(QRadioButton* lpButton3);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateState
|
||||
*/
|
||||
void updateState();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn deleteResources
|
||||
*/
|
||||
void deleteResources();
|
||||
private:
|
||||
qint32 m_iID;
|
||||
QString m_szName;
|
||||
qint16 m_iEpisodeNumber;
|
||||
QDate m_airDate;
|
||||
QStringList m_szGuestStars;
|
||||
QString m_szOverview;
|
||||
QString m_szProductionCode;
|
||||
qint16 m_iSeasonNumber;
|
||||
qint32 m_iSeasonID;
|
||||
qint32 m_iSeriesID;
|
||||
QString m_szStillPath;
|
||||
qreal m_dVoteAverage;
|
||||
qint16 m_iVoteCount;
|
||||
QStringList m_szCrew;
|
||||
State m_state;
|
||||
QButtonGroup* m_lpGroup;
|
||||
QLabel* m_lpLabel;
|
||||
QRadioButton* m_lpButton1;
|
||||
QRadioButton* m_lpButton2;
|
||||
QRadioButton* m_lpButton3;
|
||||
qint32 m_iID; /*!< TODO: describe */
|
||||
QString m_szName; /*!< TODO: describe */
|
||||
qint16 m_iEpisodeNumber; /*!< TODO: describe */
|
||||
QDate m_airDate; /*!< TODO: describe */
|
||||
QStringList m_szGuestStars; /*!< TODO: describe */
|
||||
QString m_szOverview; /*!< TODO: describe */
|
||||
QString m_szProductionCode; /*!< TODO: describe */
|
||||
qint16 m_iSeasonNumber; /*!< TODO: describe */
|
||||
qint32 m_iSeasonID; /*!< TODO: describe */
|
||||
qint32 m_iSeriesID; /*!< TODO: describe */
|
||||
QString m_szStillPath; /*!< TODO: describe */
|
||||
qreal m_dVoteAverage; /*!< TODO: describe */
|
||||
qint16 m_iVoteCount; /*!< TODO: describe */
|
||||
QStringList m_szCrew; /*!< TODO: describe */
|
||||
State m_state; /*!< TODO: describe */
|
||||
QButtonGroup* m_lpGroup; /*!< TODO: describe */
|
||||
QLabel* m_lpLabel; /*!< TODO: describe */
|
||||
QRadioButton* m_lpButton1; /*!< TODO: describe */
|
||||
QRadioButton* m_lpButton2; /*!< TODO: describe */
|
||||
QRadioButton* m_lpButton3; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(cEpisode*)
|
||||
|
||||
+30
-3
@@ -10,20 +10,47 @@ namespace Ui {
|
||||
class cEpisodeDetails;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cEpisodeDetails cepisodedetails.h "cepisodedetails.h"
|
||||
*/
|
||||
class cEpisodeDetails : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cEpisodeDetails
|
||||
\param parent
|
||||
*/
|
||||
explicit cEpisodeDetails(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cEpisodeDetails
|
||||
*/
|
||||
~cEpisodeDetails();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setEpisode
|
||||
\param lpEpisode
|
||||
*/
|
||||
void setEpisode(cEpisode* lpEpisode);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadImages
|
||||
*/
|
||||
void loadImages();
|
||||
private:
|
||||
Ui::cEpisodeDetails* ui;
|
||||
cEpisode* m_lpEpisode;
|
||||
bool m_bLoaded;
|
||||
Ui::cEpisodeDetails* ui; /*!< TODO: describe */
|
||||
cEpisode* m_lpEpisode; /*!< TODO: describe */
|
||||
bool m_bLoaded; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CEPISODEDETAILS_H
|
||||
|
||||
+36
-1
@@ -9,21 +9,56 @@ namespace Ui {
|
||||
class cExportDialog;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cExportDialog cexportdialog.h "cexportdialog.h"
|
||||
*/
|
||||
class cExportDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cExportDialog
|
||||
\param parent
|
||||
*/
|
||||
explicit cExportDialog(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cExportDialog
|
||||
*/
|
||||
~cExportDialog();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn values
|
||||
\param bSeries
|
||||
\param szSeriesPath
|
||||
\param bMovies
|
||||
\param szMoviesPath
|
||||
*/
|
||||
void values(bool& bSeries, QString& szSeriesPath, bool& bMovies, QString& szMoviesPath);
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesPathSelect_clicked
|
||||
*/
|
||||
void on_m_lpSeriesPathSelect_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMoviesPathSelect_clicked
|
||||
*/
|
||||
void on_m_lpMoviesPathSelect_clicked();
|
||||
|
||||
private:
|
||||
Ui::cExportDialog *ui;
|
||||
Ui::cExportDialog *ui; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CEXPORTDIALOG_H
|
||||
|
||||
@@ -7,9 +7,19 @@
|
||||
#include <QList>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cFanart cfanart.h "cfanart.h"
|
||||
*/
|
||||
class cFanart
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\enum Type
|
||||
*/
|
||||
enum Type
|
||||
{
|
||||
TypeUnknown = 0,
|
||||
@@ -38,51 +48,188 @@ public:
|
||||
|
||||
cFanart(Type type = TypeUnknown);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setType
|
||||
\param type
|
||||
*/
|
||||
void setType(const Type& type);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn type
|
||||
\return Type
|
||||
*/
|
||||
Type type();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setID
|
||||
\param iID
|
||||
*/
|
||||
void setID(const qint32& iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn id
|
||||
\return qint32
|
||||
*/
|
||||
qint32 id();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setURL
|
||||
\param szURL
|
||||
*/
|
||||
void setURL(const QString& szURL);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn url
|
||||
\return QString
|
||||
*/
|
||||
QString url();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLanguage
|
||||
\param szLanguage
|
||||
*/
|
||||
void setLanguage(const QString& szLanguage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn language
|
||||
\return QString
|
||||
*/
|
||||
QString language();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLikes
|
||||
\param iLikes
|
||||
*/
|
||||
void setLikes(const qint32& iLikes);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn likes
|
||||
\return qint32
|
||||
*/
|
||||
qint32 likes();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeason
|
||||
\param iSeason
|
||||
*/
|
||||
void setSeason(const qint16& iSeason);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn season
|
||||
\return qint16
|
||||
*/
|
||||
qint16 season();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setDisc
|
||||
\param szDisc
|
||||
*/
|
||||
void setDisc(const QString& szDisc);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn disc
|
||||
\return QString
|
||||
*/
|
||||
QString disc();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setDiscType
|
||||
\param szDiscType
|
||||
*/
|
||||
void setDiscType(const QString& szDiscType);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn discType
|
||||
\return QString
|
||||
*/
|
||||
QString discType();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setActive
|
||||
\param bActive
|
||||
*/
|
||||
void setActive(const bool& bActive);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn active
|
||||
\return bool
|
||||
*/
|
||||
bool active();
|
||||
private:
|
||||
Type m_type;
|
||||
qint32 m_iID;
|
||||
QString m_szURL;
|
||||
QString m_szLanguage;
|
||||
qint32 m_iLikes;
|
||||
qint16 m_iSeason;
|
||||
QString m_szDisc;
|
||||
QString m_szDiscType;
|
||||
bool m_bActive;
|
||||
Type m_type; /*!< TODO: describe */
|
||||
qint32 m_iID; /*!< TODO: describe */
|
||||
QString m_szURL; /*!< TODO: describe */
|
||||
QString m_szLanguage; /*!< TODO: describe */
|
||||
qint32 m_iLikes; /*!< TODO: describe */
|
||||
qint16 m_iSeason; /*!< TODO: describe */
|
||||
QString m_szDisc; /*!< TODO: describe */
|
||||
QString m_szDiscType; /*!< TODO: describe */
|
||||
bool m_bActive; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(cFanart*)
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cFanartList cfanart.h "cfanart.h"
|
||||
*/
|
||||
class cFanartList : public QList<cFanart*>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn add
|
||||
\param type
|
||||
\return cFanart
|
||||
*/
|
||||
cFanart* add(const cFanart::Type& type);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn search
|
||||
\param type
|
||||
\param szLanguage
|
||||
\return cFanart
|
||||
*/
|
||||
cFanart* search(const cFanart::Type& type, const QString& szLanguage = "");
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn search
|
||||
\param type
|
||||
\param bActive
|
||||
\param szLanguage
|
||||
\return cFanart
|
||||
*/
|
||||
cFanart* search(const cFanart::Type& type, const bool bActive, const QString& szLanguage = "");
|
||||
};
|
||||
|
||||
|
||||
@@ -5,12 +5,31 @@
|
||||
#include <QPixmap>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cFanartImage cfanartimage.h "cfanartimage.h"
|
||||
*/
|
||||
class cFanartImage
|
||||
{
|
||||
public:
|
||||
cFanartImage();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn getImage
|
||||
\param szFileName
|
||||
\return QPixmap
|
||||
*/
|
||||
QPixmap getImage(const QString& szFileName);
|
||||
private:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn downloadFile
|
||||
\param szFileName
|
||||
\return QPixmap
|
||||
*/
|
||||
QPixmap downloadFile(const QString& szFileName);
|
||||
};
|
||||
|
||||
|
||||
+28
-1
@@ -7,16 +7,43 @@
|
||||
#include <QString>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cFanartTV cfanarttv.h "cfanarttv.h"
|
||||
*/
|
||||
class cFanartTV
|
||||
{
|
||||
public:
|
||||
cFanartTV();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadFanartSerie
|
||||
\param iID
|
||||
\return cFanartList
|
||||
*/
|
||||
cFanartList loadFanartSerie(const qint32 &iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadFanartMovie
|
||||
\param szIMDBID
|
||||
\return cFanartList
|
||||
*/
|
||||
cFanartList loadFanartMovie(const QString& szIMDBID);
|
||||
private:
|
||||
QString m_szAPIKey;
|
||||
QString m_szAPIKey; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn processArray
|
||||
\param array
|
||||
\param fanartList
|
||||
\param type
|
||||
*/
|
||||
void processArray(const QJsonArray& array, cFanartList& fanartList, cFanart::Type type);
|
||||
};
|
||||
|
||||
|
||||
+484
-18
@@ -28,148 +28,614 @@ namespace Ui {
|
||||
class cMainWindow;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMainWindow cmainwindow.h "cmainwindow.h"
|
||||
*/
|
||||
class cMainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMainWindow
|
||||
\param parent
|
||||
*/
|
||||
explicit cMainWindow(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMainWindow
|
||||
*/
|
||||
~cMainWindow();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn initDone
|
||||
*/
|
||||
void initDone();
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesList1_customContextMenuRequested
|
||||
\param pos
|
||||
*/
|
||||
void on_m_lpSeriesList1_customContextMenuRequested(const QPoint &pos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesList1_doubleClicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpSeriesList1_doubleClicked(const QModelIndex &index);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesList1_pressed
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpSeriesList1_pressed(const QModelIndex &index);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesList2_customContextMenuRequested
|
||||
\param pos
|
||||
*/
|
||||
void on_m_lpSeriesList2_customContextMenuRequested(const QPoint &pos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesList2_doubleClicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpSeriesList2_doubleClicked(const QModelIndex &index);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesList2_pressed
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpSeriesList2_pressed(const QModelIndex &index);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMoviesList_customContextMenuRequested
|
||||
\param pos
|
||||
*/
|
||||
void on_m_lpMoviesList_customContextMenuRequested(const QPoint &pos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMoviesList_doubleClicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpMoviesList_doubleClicked(const QModelIndex &index);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionAdd
|
||||
*/
|
||||
void onActionAdd();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionUpdateAll
|
||||
*/
|
||||
void onActionUpdateAll();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionUpdateUnfinished
|
||||
*/
|
||||
void onActionUpdateUnfinished();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionUpdate
|
||||
*/
|
||||
void onActionUpdate();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionDelete
|
||||
*/
|
||||
void onActionDelete();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionEdit
|
||||
*/
|
||||
void onActionEdit();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionGotoDownload
|
||||
*/
|
||||
void onActionGotoDownload();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionCopyDownload
|
||||
*/
|
||||
void onActionCopyDownload();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionGotoIMDB
|
||||
*/
|
||||
void onActionGotoIMDB();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionLoadPictures
|
||||
*/
|
||||
void onActionLoadPictures();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionFind
|
||||
*/
|
||||
void onActionFind();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionFindAgain
|
||||
*/
|
||||
void onActionFindAgain();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionDiscover
|
||||
*/
|
||||
void onActionDiscover();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionGotoAllDownload
|
||||
*/
|
||||
void onActionGotoAllDownload();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionGotoAllDownloadOpen
|
||||
*/
|
||||
void onActionGotoAllDownloadOpen();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieAdd
|
||||
*/
|
||||
void onActionMovieAdd();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieUpdateAll
|
||||
*/
|
||||
void onActionMovieUpdateAll();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieUpdate
|
||||
*/
|
||||
void onActionMovieUpdate();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieDelete
|
||||
*/
|
||||
void onActionMovieDelete();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieEdit
|
||||
*/
|
||||
void onActionMovieEdit();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieGotoIMDB
|
||||
*/
|
||||
void onActionMovieGotoIMDB();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieLoadPictures
|
||||
*/
|
||||
void onActionMovieLoadPictures();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieFind
|
||||
*/
|
||||
void onActionMovieFind();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieFindAgain
|
||||
*/
|
||||
void onActionMovieFindAgain();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionMovieDiscover
|
||||
*/
|
||||
void onActionMovieDiscover();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionExport
|
||||
*/
|
||||
void onActionExport();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionAddGlobal
|
||||
*/
|
||||
void onActionAddGlobal();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionFindGlobal
|
||||
*/
|
||||
void onActionFindGlobal();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionFindAgainGlobal
|
||||
*/
|
||||
void onActionFindAgainGlobal();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateMessage
|
||||
\param szMessage
|
||||
\param iProgress
|
||||
*/
|
||||
void updateMessage(const QString& szMessage, const qint32 &iProgress);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateAppendMessage
|
||||
\param szMessage
|
||||
*/
|
||||
void updateAppendMessage(const QString& szMessage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateDone
|
||||
*/
|
||||
void updateDone();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn picturesMessage
|
||||
\param szMessage
|
||||
\param iProgress
|
||||
*/
|
||||
void picturesMessage(const QString& szMessage, const qint32 &iProgress);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn picturesAppendMessage
|
||||
\param szMessage
|
||||
*/
|
||||
void picturesAppendMessage(const QString& szMessage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn picturesDone
|
||||
*/
|
||||
void picturesDone();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn selectionChanged1
|
||||
\param selected
|
||||
\param deselected
|
||||
*/
|
||||
void selectionChanged1(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn selectionChanged2
|
||||
\param selected
|
||||
\param deselected
|
||||
*/
|
||||
void selectionChanged2(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn scrollbarValueChanged1
|
||||
\param value
|
||||
*/
|
||||
void scrollbarValueChanged1(int value);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn scrollbarValueChanged2
|
||||
\param value
|
||||
*/
|
||||
void scrollbarValueChanged2(int value);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesFilterInitialized_clicked
|
||||
*/
|
||||
void on_m_lpSeriesFilterInitialized_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesFilterProgress_clicked
|
||||
*/
|
||||
void on_m_lpSeriesFilterProgress_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesFilterDone_clicked
|
||||
*/
|
||||
void on_m_lpSeriesFilterDone_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesFilterWithLink_clicked
|
||||
*/
|
||||
void on_m_lpSeriesFilterWithLink_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesFilterCliffhanger_clicked
|
||||
*/
|
||||
void on_m_lpSeriesFilterCliffhanger_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesFilterNotFinished_clicked
|
||||
*/
|
||||
void on_m_lpSeriesFilterNotFinished_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMoviesFilterInitialized_clicked
|
||||
*/
|
||||
void on_m_lpMoviesFilterInitialized_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMoviesFilterProgress_clicked
|
||||
*/
|
||||
void on_m_lpMoviesFilterProgress_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMoviesFilterDone_clicked
|
||||
*/
|
||||
void on_m_lpMoviesFilterDone_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSeriesFilter_clicked
|
||||
*/
|
||||
void on_m_lpSeriesFilter_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMoviesFilter_clicked
|
||||
*/
|
||||
void on_m_lpMoviesFilter_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn onActionExit
|
||||
*/
|
||||
void onActionExit();
|
||||
|
||||
private:
|
||||
Ui::cMainWindow* ui;
|
||||
cSerieList m_serieList;
|
||||
cMovieList m_movieList;
|
||||
QSqlDatabase m_db;
|
||||
Ui::cMainWindow* ui; /*!< TODO: describe */
|
||||
cSerieList m_serieList; /*!< TODO: describe */
|
||||
cMovieList m_movieList; /*!< TODO: describe */
|
||||
QSqlDatabase m_db; /*!< TODO: describe */
|
||||
|
||||
QString m_szOldSelected;
|
||||
QString m_szOldSelected; /*!< TODO: describe */
|
||||
|
||||
cMessageDialog* m_lpMessageDialog;
|
||||
cPicturesThread* m_lpPicturesThread;
|
||||
cMessageDialog* m_lpMessageDialog; /*!< TODO: describe */
|
||||
cPicturesThread* m_lpPicturesThread; /*!< TODO: describe */
|
||||
|
||||
QStandardItemModel* m_lpSeriesListModel;
|
||||
QStandardItemModel* m_lpMoviesListModel;
|
||||
QStandardItemModel* m_lpSeriesListModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpMoviesListModel; /*!< TODO: describe */
|
||||
|
||||
bool m_bProcessing;
|
||||
bool m_bProcessing; /*!< TODO: describe */
|
||||
|
||||
QShortcut* m_lpShortcutAdd;
|
||||
QShortcut* m_lpShortcutFind;
|
||||
QShortcut* m_lpShortcutFindAgain;
|
||||
QShortcut* m_lpShortcutAdd; /*!< TODO: describe */
|
||||
QShortcut* m_lpShortcutFind; /*!< TODO: describe */
|
||||
QShortcut* m_lpShortcutFindAgain; /*!< TODO: describe */
|
||||
|
||||
QString m_szFind;
|
||||
QString m_szFindMovie;
|
||||
QString m_szFind; /*!< TODO: describe */
|
||||
QString m_szFindMovie; /*!< TODO: describe */
|
||||
|
||||
QMenu* m_lpFileMenu;
|
||||
QAction* m_lpFileExportAction;
|
||||
QAction* m_lpFileExitAction;
|
||||
QMenu* m_lpFileMenu; /*!< TODO: describe */
|
||||
QAction* m_lpFileExportAction; /*!< TODO: describe */
|
||||
QAction* m_lpFileExitAction; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn initDB
|
||||
*/
|
||||
void initDB();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadDB
|
||||
*/
|
||||
void loadDB();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn convertSeries
|
||||
*/
|
||||
void convertSeries();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadSeriesDB
|
||||
*/
|
||||
void loadSeriesDB();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadMoviesDB
|
||||
*/
|
||||
void loadMoviesDB();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn displaySeries
|
||||
*/
|
||||
void displaySeries();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn displayMovies
|
||||
*/
|
||||
void displayMovies();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn runEdit
|
||||
\param lpSerie
|
||||
\param szDownload
|
||||
\return bool
|
||||
*/
|
||||
bool runEdit(cSerie *lpSerie, QString& szDownload);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn runMovieEdit
|
||||
\param lpMovie
|
||||
\return bool
|
||||
*/
|
||||
bool runMovieEdit(cMovie *lpMovie);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn showSeriesContextMenu
|
||||
\param lpTreeView
|
||||
\param pos
|
||||
*/
|
||||
void showSeriesContextMenu(QTreeView* lpTreeView, const QPoint &pos);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn doUpdate
|
||||
\param serieList
|
||||
*/
|
||||
void doUpdate(cSerieList& serieList);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn showMoviesContextMenu
|
||||
\param lpTreeView
|
||||
\param pos
|
||||
*/
|
||||
void showMoviesContextMenu(QTreeView* lpTreeView, const QPoint &pos);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeriesStyle
|
||||
\param lpItems
|
||||
*/
|
||||
void setSeriesStyle(QList<QStandardItem *> lpItems);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setMovieStyle
|
||||
\param lpItem
|
||||
*/
|
||||
void setMovieStyle(QStandardItem* lpItem);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn applySeriesFilter
|
||||
*/
|
||||
void applySeriesFilter();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn applyMoviesFilter
|
||||
*/
|
||||
void applyMoviesFilter();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn applyMoviesFilter
|
||||
\param i
|
||||
\param lpMovie
|
||||
\return bool
|
||||
*/
|
||||
bool applyMoviesFilter(qint16 i, cMovie* lpMovie);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn applyMoviesFilter
|
||||
\param lpParent
|
||||
*/
|
||||
void applyMoviesFilter(QStandardItem* lpParent);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn checkState
|
||||
\param state
|
||||
\param bDesiredState
|
||||
\return bool
|
||||
*/
|
||||
bool checkState(const Qt::CheckState &state, bool bDesiredState);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn find
|
||||
*/
|
||||
void find();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn findMovie
|
||||
*/
|
||||
void findMovie();
|
||||
protected:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn closeEvent
|
||||
\param event
|
||||
*/
|
||||
void closeEvent(QCloseEvent *event);
|
||||
};
|
||||
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace Ui {
|
||||
class cMessageAnimateDialog;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMessageAnimateDialog cmessageanimatedialog.h "cmessageanimatedialog.h"
|
||||
*/
|
||||
class cMessageAnimateDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
+48
-1
@@ -7,22 +7,69 @@ namespace Ui {
|
||||
class cMessageDialog;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMessageDialog cmessagedialog.h "cmessagedialog.h"
|
||||
*/
|
||||
class cMessageDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMessageDialog
|
||||
\param parent
|
||||
*/
|
||||
explicit cMessageDialog(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMessageDialog
|
||||
*/
|
||||
~cMessageDialog();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setMessage
|
||||
\param szMessage
|
||||
*/
|
||||
void setMessage(const QString& szMessage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn addMessage
|
||||
\param szMessage
|
||||
*/
|
||||
void addMessage(const QString& szMessage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProgress
|
||||
\param iMin
|
||||
\param iMax
|
||||
*/
|
||||
void setProgress(qint32 iMin, qint32 iMax);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProgress
|
||||
\param iValue
|
||||
*/
|
||||
void setProgress(qint32 iValue);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cancelButton
|
||||
\return QPushButton
|
||||
*/
|
||||
QPushButton* cancelButton();
|
||||
private:
|
||||
Ui::cMessageDialog *ui;
|
||||
Ui::cMessageDialog *ui; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CMESSAGEDIALOG_H
|
||||
|
||||
@@ -11,9 +11,19 @@
|
||||
#include <QMap>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovie cmovie.h "cmovie.h"
|
||||
*/
|
||||
class cMovie
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\enum State
|
||||
*/
|
||||
enum State
|
||||
{
|
||||
StateUnknown = 0,
|
||||
@@ -24,140 +34,557 @@ public:
|
||||
|
||||
cMovie();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setMovieTitle
|
||||
\param szTitle
|
||||
*/
|
||||
void setMovieTitle(const QString& szTitle);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn movieTitle
|
||||
\return QString
|
||||
*/
|
||||
QString movieTitle();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setMovieID
|
||||
\param iID
|
||||
*/
|
||||
void setMovieID(const qint32 iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn movieID
|
||||
\return qint32
|
||||
*/
|
||||
qint32 movieID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOriginalTitle
|
||||
\param szOriginalTitle
|
||||
*/
|
||||
void setOriginalTitle(const QString& szOriginalTitle);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn originalTitle
|
||||
\return QString
|
||||
*/
|
||||
QString originalTitle();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setReleaseDate
|
||||
\param szDate
|
||||
*/
|
||||
void setReleaseDate(const QString& szDate);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn releaseDate
|
||||
\return QDate
|
||||
*/
|
||||
QDate releaseDate();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAdult
|
||||
\param bAdult
|
||||
*/
|
||||
void setAdult(const bool bAdult);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn adult
|
||||
\return bool
|
||||
*/
|
||||
bool adult();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setBackdropPath
|
||||
\param szBackdropPath
|
||||
*/
|
||||
void setBackdropPath(const QString& szBackdropPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn backdropPath
|
||||
\return QString
|
||||
*/
|
||||
QString backdropPath();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setBelongsToCollection
|
||||
\param szBelongsToCollection
|
||||
*/
|
||||
void setBelongsToCollection(const QString& szBelongsToCollection);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn belongsToCollection
|
||||
\return QString
|
||||
*/
|
||||
QString belongsToCollection();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setBudget
|
||||
\param dBudget
|
||||
*/
|
||||
void setBudget(const qreal dBudget);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn budget
|
||||
\return qreal
|
||||
*/
|
||||
qreal budget();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGenres
|
||||
\param szGenres
|
||||
*/
|
||||
void setGenres(const QString& szGenres);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGenres
|
||||
\param szGenres
|
||||
*/
|
||||
void setGenres(const QStringList& szGenres);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn genres
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList genres();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setHomepage
|
||||
\param szHomepage
|
||||
*/
|
||||
void setHomepage(const QString& szHomepage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn homepage
|
||||
\return QString
|
||||
*/
|
||||
QString homepage();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setIMDBID
|
||||
\param szIMDBID
|
||||
*/
|
||||
void setIMDBID(const QString& szIMDBID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn imdbID
|
||||
\return QString
|
||||
*/
|
||||
QString imdbID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOriginalLanguage
|
||||
\param szOriginalLanguage
|
||||
*/
|
||||
void setOriginalLanguage(const QString& szOriginalLanguage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn originalLanguage
|
||||
\return QString
|
||||
*/
|
||||
QString originalLanguage();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOverview
|
||||
\param szOverview
|
||||
*/
|
||||
void setOverview(const QString& szOverview);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn overview
|
||||
\return QString
|
||||
*/
|
||||
QString overview();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setPopularity
|
||||
\param dPopularity
|
||||
*/
|
||||
void setPopularity(const qreal dPopularity);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn popularity
|
||||
\return qreal
|
||||
*/
|
||||
qreal popularity();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setPosterPath
|
||||
\param szPosterPath
|
||||
*/
|
||||
void setPosterPath(const QString& szPosterPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn posterPath
|
||||
\return QString
|
||||
*/
|
||||
QString posterPath();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProductionCompanies
|
||||
\param szProductionCompanies
|
||||
*/
|
||||
void setProductionCompanies(const QString& szProductionCompanies);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProductionCompanies
|
||||
\param szProductionCompanies
|
||||
*/
|
||||
void setProductionCompanies(const QStringList& szProductionCompanies);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn productionCompanies
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList productionCompanies();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProductionCountries
|
||||
\param szProductionCountries
|
||||
*/
|
||||
void setProductionCountries(const QString& szProductionCountries);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProductionCountries
|
||||
\param szProductionCountries
|
||||
*/
|
||||
void setProductionCountries(const QStringList& szProductionCountries);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn productionCountries
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList productionCountries();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setRevenue
|
||||
\param dRevenue
|
||||
*/
|
||||
void setRevenue(const qreal dRevenue);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn revenue
|
||||
\return qreal
|
||||
*/
|
||||
qreal revenue();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setRuntime
|
||||
\param iRuntime
|
||||
*/
|
||||
void setRuntime(const qint32 iRuntime);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn runtime
|
||||
\return qint32
|
||||
*/
|
||||
qint32 runtime();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSpokenLanguages
|
||||
\param szSpokenLanguages
|
||||
*/
|
||||
void setSpokenLanguages(const QString& szSpokenLanguages);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSpokenLanguages
|
||||
\param szSpokenLanguages
|
||||
*/
|
||||
void setSpokenLanguages(const QStringList& szSpokenLanguages);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn spokenLanguages
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList spokenLanguages();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setStatus
|
||||
\param szStatus
|
||||
*/
|
||||
void setStatus(const QString& szStatus);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn status
|
||||
\return QString
|
||||
*/
|
||||
QString status();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setTagline
|
||||
\param szTagline
|
||||
*/
|
||||
void setTagline(const QString& szTagline);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn tagline
|
||||
\return QString
|
||||
*/
|
||||
QString tagline();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setVideo
|
||||
\param bVideo
|
||||
*/
|
||||
void setVideo(const bool bVideo);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn video
|
||||
\return bool
|
||||
*/
|
||||
bool video();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setVoteAverage
|
||||
\param dVoteAverage
|
||||
*/
|
||||
void setVoteAverage(const qreal dVoteAverage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn voteAverage
|
||||
\return qreal
|
||||
*/
|
||||
qreal voteAverage();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setVoteCount
|
||||
\param iVoteCount
|
||||
*/
|
||||
void setVoteCount(const qint32 iVoteCount);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn voteCount
|
||||
\return qint32
|
||||
*/
|
||||
qint32 voteCount();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCast
|
||||
\param szCast
|
||||
*/
|
||||
void setCast(const QStringList& szCast);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cast
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList cast();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCrew
|
||||
\param szCrew
|
||||
*/
|
||||
void setCrew(const QStringList& szCrew);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn crew
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList crew();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setState
|
||||
\param state
|
||||
*/
|
||||
void setState(const State state);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn state
|
||||
\return State
|
||||
*/
|
||||
State state();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn save
|
||||
\param db
|
||||
\return bool
|
||||
*/
|
||||
bool save(QSqlDatabase& db);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn del
|
||||
\param db
|
||||
\return bool
|
||||
*/
|
||||
bool del(QSqlDatabase& db);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadFanart
|
||||
*/
|
||||
void loadFanart();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setFanartList
|
||||
\param fanartList
|
||||
*/
|
||||
void setFanartList(const cFanartList& fanartList);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fanartList
|
||||
\return cFanartList
|
||||
*/
|
||||
cFanartList fanartList();
|
||||
private:
|
||||
QString m_szMovieTitle;
|
||||
qint32 m_iID;
|
||||
QString m_szOriginalTitle;
|
||||
QDate m_releaseDate;
|
||||
QString m_szMovieTitle; /*!< TODO: describe */
|
||||
qint32 m_iID; /*!< TODO: describe */
|
||||
QString m_szOriginalTitle; /*!< TODO: describe */
|
||||
QDate m_releaseDate; /*!< TODO: describe */
|
||||
|
||||
bool m_bAdult;
|
||||
QString m_szBackdropPath;
|
||||
QString m_szBelongsToCollection;
|
||||
qreal m_dBudget;
|
||||
QStringList m_szGenres;
|
||||
QString m_szHomepage;
|
||||
QString m_szIMDBID;
|
||||
QString m_szOriginalLanguage;
|
||||
QString m_szOverview;
|
||||
qreal m_dPopularity;
|
||||
QString m_szPosterPath;
|
||||
QStringList m_szProductionCompanies;
|
||||
QStringList m_szProductionCountries;
|
||||
qreal m_dRevenue;
|
||||
qint32 m_iRuntime;
|
||||
QStringList m_szSpokenLanguages;
|
||||
QString m_szStatus;
|
||||
QString m_szTagline;
|
||||
bool m_bVideo;
|
||||
qreal m_dVoteAverage;
|
||||
qint32 m_iVoteCount;
|
||||
QStringList m_szCast;
|
||||
QStringList m_szCrew;
|
||||
State m_iState;
|
||||
cFanartList m_fanartList;
|
||||
bool m_bAdult; /*!< TODO: describe */
|
||||
QString m_szBackdropPath; /*!< TODO: describe */
|
||||
QString m_szBelongsToCollection; /*!< TODO: describe */
|
||||
qreal m_dBudget; /*!< TODO: describe */
|
||||
QStringList m_szGenres; /*!< TODO: describe */
|
||||
QString m_szHomepage; /*!< TODO: describe */
|
||||
QString m_szIMDBID; /*!< TODO: describe */
|
||||
QString m_szOriginalLanguage; /*!< TODO: describe */
|
||||
QString m_szOverview; /*!< TODO: describe */
|
||||
qreal m_dPopularity; /*!< TODO: describe */
|
||||
QString m_szPosterPath; /*!< TODO: describe */
|
||||
QStringList m_szProductionCompanies; /*!< TODO: describe */
|
||||
QStringList m_szProductionCountries; /*!< TODO: describe */
|
||||
qreal m_dRevenue; /*!< TODO: describe */
|
||||
qint32 m_iRuntime; /*!< TODO: describe */
|
||||
QStringList m_szSpokenLanguages; /*!< TODO: describe */
|
||||
QString m_szStatus; /*!< TODO: describe */
|
||||
QString m_szTagline; /*!< TODO: describe */
|
||||
bool m_bVideo; /*!< TODO: describe */
|
||||
qreal m_dVoteAverage; /*!< TODO: describe */
|
||||
qint32 m_iVoteCount; /*!< TODO: describe */
|
||||
QStringList m_szCast; /*!< TODO: describe */
|
||||
QStringList m_szCrew; /*!< TODO: describe */
|
||||
State m_iState; /*!< TODO: describe */
|
||||
cFanartList m_fanartList; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(cMovie*)
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovieList cmovie.h "cmovie.h"
|
||||
*/
|
||||
class cMovieList : public QList<cMovie*>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn add
|
||||
\param iID
|
||||
\return cMovie
|
||||
*/
|
||||
cMovie* add(const qint32& iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn add
|
||||
\param lpMovie
|
||||
\return cMovie
|
||||
*/
|
||||
cMovie* add(cMovie* lpMovie);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn find
|
||||
\param iID
|
||||
\return cMovie
|
||||
*/
|
||||
cMovie* find(const qint32& iID);
|
||||
};
|
||||
|
||||
|
||||
+23
-1
@@ -11,17 +11,39 @@ namespace Ui {
|
||||
class cMovieDetails;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovieDetails cmoviedetails.h "cmoviedetails.h"
|
||||
*/
|
||||
class cMovieDetails : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMovieDetails
|
||||
\param parent
|
||||
*/
|
||||
explicit cMovieDetails(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMovieDetails
|
||||
*/
|
||||
~cMovieDetails();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setMovie
|
||||
\param lpMovie
|
||||
*/
|
||||
void setMovie(cMovie* lpMovie);
|
||||
private:
|
||||
Ui::cMovieDetails* ui;
|
||||
Ui::cMovieDetails* ui; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CMOVIEDETAILS_H
|
||||
|
||||
+51
-4
@@ -12,27 +12,74 @@ namespace Ui {
|
||||
class cMovieDiscover;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovieDiscover cmoviediscover.h "cmoviediscover.h"
|
||||
*/
|
||||
class cMovieDiscover : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMovieDiscover
|
||||
\param movieList
|
||||
\param parent
|
||||
*/
|
||||
explicit cMovieDiscover(const cMovieList movieList, QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMovieDiscover
|
||||
*/
|
||||
~cMovieDiscover();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn id
|
||||
\return QList<qint32>
|
||||
*/
|
||||
QList<qint32> id();
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn spanChanged
|
||||
\param lower
|
||||
\param upper
|
||||
*/
|
||||
void spanChanged(int lower, int upper);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpDiscover_clicked
|
||||
*/
|
||||
void on_m_lpDiscover_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpYearEnable_clicked
|
||||
\param checked
|
||||
*/
|
||||
void on_m_lpYearEnable_clicked(bool checked);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpMovies_clicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpMovies_clicked(const QModelIndex &index);
|
||||
|
||||
private:
|
||||
Ui::cMovieDiscover* ui;
|
||||
QStandardItemModel* m_lpGenresModel;
|
||||
QStandardItemModel* m_lpMoviesModel;
|
||||
cMovieList m_movieList;
|
||||
Ui::cMovieDiscover* ui; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpGenresModel; /*!< TODO: describe */
|
||||
QStandardItemModel* m_lpMoviesModel; /*!< TODO: describe */
|
||||
cMovieList m_movieList; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CMOVIEDISCOVER_H
|
||||
|
||||
+39
-2
@@ -10,26 +10,63 @@ namespace Ui {
|
||||
class cMovieEdit;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovieEdit cmovieedit.h "cmovieedit.h"
|
||||
*/
|
||||
class cMovieEdit : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMovieEdit
|
||||
\param parent
|
||||
*/
|
||||
explicit cMovieEdit(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMovieEdit
|
||||
*/
|
||||
~cMovieEdit();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setMovie
|
||||
\param lpMovie
|
||||
*/
|
||||
void setMovie(cMovie* lpMovie);
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpInit_clicked
|
||||
*/
|
||||
void on_m_lpInit_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpProgress_clicked
|
||||
*/
|
||||
void on_m_lpProgress_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpDone_clicked
|
||||
*/
|
||||
void on_m_lpDone_clicked();
|
||||
|
||||
private:
|
||||
Ui::cMovieEdit *ui;
|
||||
Ui::cMovieEdit *ui; /*!< TODO: describe */
|
||||
|
||||
cMovie* m_lpMovie;
|
||||
cMovie* m_lpMovie; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CMOVIEEDIT_H
|
||||
|
||||
@@ -5,12 +5,31 @@
|
||||
#include <QPixmap>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovieImage cmovieimage.h "cmovieimage.h"
|
||||
*/
|
||||
class cMovieImage
|
||||
{
|
||||
public:
|
||||
cMovieImage();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn getImage
|
||||
\param szFileName
|
||||
\return QPixmap
|
||||
*/
|
||||
QPixmap getImage(const QString& szFileName);
|
||||
private:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn downloadFile
|
||||
\param szFileName
|
||||
\return QPixmap
|
||||
*/
|
||||
QPixmap downloadFile(const QString& szFileName);
|
||||
};
|
||||
|
||||
|
||||
+82
-1
@@ -10,35 +10,116 @@ namespace Ui {
|
||||
class cMovieSearch;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovieSearch cmoviesearch.h "cmoviesearch.h"
|
||||
*/
|
||||
class cMovieSearch : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cMovieSearch
|
||||
\param parent
|
||||
*/
|
||||
explicit cMovieSearch(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cMovieSearch
|
||||
*/
|
||||
~cMovieSearch();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn id
|
||||
\return QList<qint32>
|
||||
*/
|
||||
QList<qint32> id();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn placeholderName
|
||||
\return QString
|
||||
*/
|
||||
QString placeholderName();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn placeholder
|
||||
\return bool
|
||||
*/
|
||||
bool placeholder();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn year
|
||||
\return qint16
|
||||
*/
|
||||
qint16 year();
|
||||
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSearchButton_clicked
|
||||
*/
|
||||
void on_m_lpSearchButton_clicked();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSearch_textChanged
|
||||
\param arg1
|
||||
*/
|
||||
void on_m_lpSearch_textChanged(const QString &arg1);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpPlaceholderName_textChanged
|
||||
\param arg1
|
||||
*/
|
||||
void on_m_lpPlaceholderName_textChanged(const QString &arg1);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpYear_valueChanged
|
||||
\param arg1
|
||||
*/
|
||||
void on_m_lpYear_valueChanged(int arg1);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpResults_clicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpResults_clicked(const QModelIndex &index);
|
||||
// void on_m_lpResults_doubleClicked(const QModelIndex &index);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpResults_currentItemChanged
|
||||
\param current
|
||||
\param previous
|
||||
*/
|
||||
void on_m_lpResults_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
|
||||
|
||||
private:
|
||||
Ui::cMovieSearch *ui;
|
||||
Ui::cMovieSearch *ui; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setButtonBox
|
||||
*/
|
||||
void setButtonBox();
|
||||
};
|
||||
|
||||
|
||||
@@ -5,11 +5,32 @@
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cMovieViewItemDelegate cmovieviewitemdelegate.h "cmovieviewitemdelegate.h"
|
||||
*/
|
||||
class cMovieViewItemDelegate : 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;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,20 @@
|
||||
#include <QString>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn rootPath
|
||||
\return QString
|
||||
*/
|
||||
QString rootPath();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cleanList
|
||||
\param list
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList cleanList(const QStringList& list);
|
||||
|
||||
|
||||
|
||||
+44
-4
@@ -10,27 +10,67 @@
|
||||
#include <QList>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cPicturesThread cpicturesthread.h "cpicturesthread.h"
|
||||
*/
|
||||
class cPicturesThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cPicturesThread
|
||||
*/
|
||||
explicit cPicturesThread();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setData
|
||||
\param lpMessageDialog
|
||||
\param list
|
||||
*/
|
||||
void setData(cMessageDialog *lpMessageDialog, const QList<cSerie*>& list);
|
||||
public slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn stop
|
||||
*/
|
||||
void stop();
|
||||
|
||||
signals:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn picturesMessage
|
||||
\param szMessage
|
||||
\param iProgress
|
||||
*/
|
||||
void picturesMessage(const QString& szMessage, const qint32 &iProgress);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn picturesAppendMessage
|
||||
\param szMessage
|
||||
*/
|
||||
void picturesAppendMessage(const QString& szMessage);
|
||||
|
||||
private:
|
||||
QMutex m_mutex;
|
||||
bool m_bStop;
|
||||
QList<cSerie*> m_items;
|
||||
QWidget* m_lpParent;
|
||||
QMutex m_mutex; /*!< TODO: describe */
|
||||
bool m_bStop; /*!< TODO: describe */
|
||||
QList<cSerie*> m_items; /*!< TODO: describe */
|
||||
QWidget* m_lpParent; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn run
|
||||
*/
|
||||
void run();
|
||||
};
|
||||
|
||||
|
||||
+24
-1
@@ -6,11 +6,28 @@
|
||||
#include <QPixmap>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cPixmapWidget cpixmapwidget.h "cpixmapwidget.h"
|
||||
*/
|
||||
class cPixmapWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cPixmapWidget
|
||||
\param parent
|
||||
*/
|
||||
explicit cPixmapWidget(QWidget *parent = nullptr);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setPixmap
|
||||
\param pixmap
|
||||
*/
|
||||
void setPixmap(const QPixmap& pixmap);
|
||||
|
||||
signals:
|
||||
@@ -18,7 +35,13 @@ signals:
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
QPixmap m_pixmap;
|
||||
QPixmap m_pixmap; /*!< TODO: describe */
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paintEvent
|
||||
\param event
|
||||
*/
|
||||
void paintEvent(QPaintEvent *event);
|
||||
};
|
||||
|
||||
|
||||
+18
-1
@@ -6,13 +6,30 @@
|
||||
#include <QPixmap>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cScrollArea cscrollarea.h "cscrollarea.h"
|
||||
*/
|
||||
class cScrollArea : public QScrollArea
|
||||
{
|
||||
public:
|
||||
cScrollArea(QWidget* parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setPixmap
|
||||
\param pixmap
|
||||
*/
|
||||
void setPixmap(const QPixmap& pixmap);
|
||||
protected:
|
||||
QPixmap m_pixmap;
|
||||
QPixmap m_pixmap; /*!< TODO: describe */
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paintEvent
|
||||
\param event
|
||||
*/
|
||||
void paintEvent(QPaintEvent *event);
|
||||
};
|
||||
|
||||
|
||||
@@ -7,33 +7,113 @@ namespace Ui {
|
||||
class cSearch;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cSearch csearch.h "csearch.h"
|
||||
*/
|
||||
class cSearch : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cSearch
|
||||
\param parent
|
||||
*/
|
||||
explicit cSearch(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cSearch
|
||||
*/
|
||||
~cSearch();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn id
|
||||
\return qint32
|
||||
*/
|
||||
qint32 id();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn placeholderName
|
||||
\return QString
|
||||
*/
|
||||
QString placeholderName();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn placeholder
|
||||
\return bool
|
||||
*/
|
||||
bool placeholder();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn year
|
||||
\return qint16
|
||||
*/
|
||||
qint16 year();
|
||||
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSearchButton_clicked
|
||||
*/
|
||||
void on_m_lpSearchButton_clicked();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpSearch_textChanged
|
||||
\param arg1
|
||||
*/
|
||||
void on_m_lpSearch_textChanged(const QString &arg1);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpResults_clicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpResults_clicked(const QModelIndex &index);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpPlaceholderName_textChanged
|
||||
\param arg1
|
||||
*/
|
||||
void on_m_lpPlaceholderName_textChanged(const QString &arg1);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpYear_valueChanged
|
||||
\param arg1
|
||||
*/
|
||||
void on_m_lpYear_valueChanged(int arg1);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpResults_doubleClicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpResults_doubleClicked(const QModelIndex &index);
|
||||
|
||||
private:
|
||||
Ui::cSearch *ui;
|
||||
Ui::cSearch *ui; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setButtonBox
|
||||
*/
|
||||
void setButtonBox();
|
||||
};
|
||||
|
||||
|
||||
@@ -16,85 +16,339 @@
|
||||
|
||||
class cSerie;
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cSeason cseason.h "cseason.h"
|
||||
*/
|
||||
class cSeason
|
||||
{
|
||||
public:
|
||||
cSeason();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cSeason
|
||||
*/
|
||||
~cSeason();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn set_ID
|
||||
\param _iID
|
||||
*/
|
||||
void set_ID(const qint32& _iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn _id
|
||||
\return qint32
|
||||
*/
|
||||
qint32 _id();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAirDate
|
||||
\param szAirDate
|
||||
*/
|
||||
void setAirDate(const QString& szAirDate);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAirDate
|
||||
\param airDate
|
||||
*/
|
||||
void setAirDate(const QDate& airDate);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn airDate
|
||||
\return QDate
|
||||
*/
|
||||
QDate airDate();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setName
|
||||
\param szName
|
||||
*/
|
||||
void setName(const QString& szName);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn name
|
||||
\return QString
|
||||
*/
|
||||
QString name();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOverview
|
||||
\param szOverview
|
||||
*/
|
||||
void setOverview(const QString& szOverview);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn overview
|
||||
\return QString
|
||||
*/
|
||||
QString overview();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setID
|
||||
\param iID
|
||||
*/
|
||||
void setID(const qint32& iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn id
|
||||
\return qint32
|
||||
*/
|
||||
qint32 id();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setPosterPath
|
||||
\param szPosterPath
|
||||
*/
|
||||
void setPosterPath(const QString& szPosterPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn posterPath
|
||||
\return QString
|
||||
*/
|
||||
QString posterPath();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeasonNumber
|
||||
\param iSeasonNumber
|
||||
*/
|
||||
void setSeasonNumber(const qint16& iSeasonNumber);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasonNumber
|
||||
\return qint16
|
||||
*/
|
||||
qint16 seasonNumber();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSerie
|
||||
\param lpSerie
|
||||
*/
|
||||
void setSerie(cSerie* lpSerie);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn serie
|
||||
\return cSerie
|
||||
*/
|
||||
cSerie* serie();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn addEpisode
|
||||
\param iNumber
|
||||
\return cEpisode
|
||||
*/
|
||||
cEpisode* addEpisode(qint16 iNumber);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn addEpisode
|
||||
\param lpEpisode
|
||||
\return cEpisode
|
||||
*/
|
||||
cEpisode* addEpisode(cEpisode* lpEpisode);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn episodeList
|
||||
\return QList<cEpisode *>
|
||||
*/
|
||||
QList<cEpisode*> episodeList();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn findEpisode
|
||||
\param iNumber
|
||||
\return cEpisode
|
||||
*/
|
||||
cEpisode* findEpisode(qint16 iNumber);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn episodeCount
|
||||
\return qint16
|
||||
*/
|
||||
qint16 episodeCount();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGroupBox
|
||||
\param lpGroupBox
|
||||
*/
|
||||
void setGroupBox(QGroupBox* lpGroupBox);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGridLayout
|
||||
\param lpGridLayout
|
||||
*/
|
||||
void setGridLayout(QGridLayout* lpGridLayout);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGrid
|
||||
\param lpGrid
|
||||
*/
|
||||
void setGrid(QGridLayout* lpGrid);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLabel1
|
||||
\param lpLabel1
|
||||
*/
|
||||
void setLabel1(QLabel* lpLabel1);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAllInit
|
||||
\param lpAllInit
|
||||
*/
|
||||
void setAllInit(QPushButton* lpAllInit);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAllProgress
|
||||
\param lpAllProgress
|
||||
*/
|
||||
void setAllProgress(QPushButton* lpAllProgress);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setAllDone
|
||||
\param lpAllDone
|
||||
*/
|
||||
void setAllDone(QPushButton* lpAllDone);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSpacer
|
||||
\param lpSpacer
|
||||
*/
|
||||
void setSpacer(QSpacerItem* lpSpacer);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateState
|
||||
*/
|
||||
void updateState();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn deleteResources
|
||||
*/
|
||||
void deleteResources();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn hasInit
|
||||
\return bool
|
||||
*/
|
||||
bool hasInit();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn hasProgress
|
||||
\return bool
|
||||
*/
|
||||
bool hasProgress();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn hasDone
|
||||
\return bool
|
||||
*/
|
||||
bool hasDone();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allInit
|
||||
*/
|
||||
void allInit();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allProgress
|
||||
*/
|
||||
void allProgress();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allDone
|
||||
*/
|
||||
void allDone();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allInitButton
|
||||
\return QPushButton
|
||||
*/
|
||||
QPushButton* allInitButton();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allProgressButton
|
||||
\return QPushButton
|
||||
*/
|
||||
QPushButton* allProgressButton();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allDoneButton
|
||||
\return QPushButton
|
||||
*/
|
||||
QPushButton* allDoneButton();
|
||||
private:
|
||||
qint32 m_i_ID;
|
||||
QDate m_airDate;
|
||||
QString m_szName;
|
||||
QString m_szOverview;
|
||||
qint32 m_iID;
|
||||
QString m_szPosterPath;
|
||||
qint16 m_iSeasonNumber;
|
||||
QList<cEpisode*> m_episodeList;
|
||||
QGroupBox* m_lpGroupBox;
|
||||
QGridLayout* m_lpGridLayout;
|
||||
QGridLayout* m_lpGrid;
|
||||
QLabel* m_lpLabel1;
|
||||
QPushButton* m_lpAllInit;
|
||||
QPushButton* m_lpAllProgress;
|
||||
QPushButton* m_lpAllDone;
|
||||
QSpacerItem* m_lpSpacer;
|
||||
cSerie* m_lpSerie;
|
||||
qint32 m_i_ID; /*!< TODO: describe */
|
||||
QDate m_airDate; /*!< TODO: describe */
|
||||
QString m_szName; /*!< TODO: describe */
|
||||
QString m_szOverview; /*!< TODO: describe */
|
||||
qint32 m_iID; /*!< TODO: describe */
|
||||
QString m_szPosterPath; /*!< TODO: describe */
|
||||
qint16 m_iSeasonNumber; /*!< TODO: describe */
|
||||
QList<cEpisode*> m_episodeList; /*!< TODO: describe */
|
||||
QGroupBox* m_lpGroupBox; /*!< TODO: describe */
|
||||
QGridLayout* m_lpGridLayout; /*!< TODO: describe */
|
||||
QGridLayout* m_lpGrid; /*!< TODO: describe */
|
||||
QLabel* m_lpLabel1; /*!< TODO: describe */
|
||||
QPushButton* m_lpAllInit; /*!< TODO: describe */
|
||||
QPushButton* m_lpAllProgress; /*!< TODO: describe */
|
||||
QPushButton* m_lpAllDone; /*!< TODO: describe */
|
||||
QSpacerItem* m_lpSpacer; /*!< TODO: describe */
|
||||
cSerie* m_lpSerie; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(cSeason*)
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cSeasonDelegate cseasondelegate.h "cseasondelegate.h"
|
||||
*/
|
||||
class cSeasonDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -12,7 +17,23 @@ class cSeasonDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
cSeasonDelegate(QWidget *parent = 0) : QStyledItemDelegate(parent) {}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paint
|
||||
\param painter
|
||||
\param option
|
||||
\param index
|
||||
*/
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn sizeHint
|
||||
\param option
|
||||
\param index
|
||||
\return QSize
|
||||
*/
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
//QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
//void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
|
||||
+29
-1
@@ -11,21 +11,49 @@ namespace Ui {
|
||||
class cSeasonDetails;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cSeasonDetails cseasondetails.h "cseasondetails.h"
|
||||
*/
|
||||
class cSeasonDetails : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cSeasonDetails
|
||||
\param parent
|
||||
*/
|
||||
explicit cSeasonDetails(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cSeasonDetails
|
||||
*/
|
||||
~cSeasonDetails();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeason
|
||||
\param lpSeason
|
||||
*/
|
||||
void setSeason(cSeason* lpSeason);
|
||||
|
||||
private slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn on_m_lpDetailsEpisodeTab_tabBarClicked
|
||||
\param index
|
||||
*/
|
||||
void on_m_lpDetailsEpisodeTab_tabBarClicked(int index);
|
||||
|
||||
private:
|
||||
Ui::cSeasonDetails* ui;
|
||||
Ui::cSeasonDetails* ui; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
#endif // CSEASONDETAILS_H
|
||||
|
||||
@@ -10,202 +10,832 @@
|
||||
#include <QSqlDatabase>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cSerie cserie.h "cserie.h"
|
||||
*/
|
||||
class cSerie
|
||||
{
|
||||
public:
|
||||
cSerie();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeriesName
|
||||
\param szSeriesName
|
||||
*/
|
||||
void setSeriesName(const QString& szSeriesName);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seriesName
|
||||
\return QString
|
||||
*/
|
||||
QString seriesName();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOriginalName
|
||||
\param szOriginalName
|
||||
*/
|
||||
void setOriginalName(const QString& szOriginalName);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn originalName
|
||||
\return QString
|
||||
*/
|
||||
QString originalName();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeriesID
|
||||
\param iSeriesID
|
||||
*/
|
||||
void setSeriesID(const qint32& iSeriesID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seriesID
|
||||
\return qint32
|
||||
*/
|
||||
qint32 seriesID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setBackdropPath
|
||||
\param szBackdropPath
|
||||
*/
|
||||
void setBackdropPath(const QString& szBackdropPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn backdropPath
|
||||
\return QString
|
||||
*/
|
||||
QString backdropPath();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCreatedBy
|
||||
\param szCreatedBy
|
||||
*/
|
||||
void setCreatedBy(const QStringList& szCreatedBy);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCreatedBy
|
||||
\param szCreatedBy
|
||||
*/
|
||||
void setCreatedBy(const QString& szCreatedBy);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn createdBy
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList createdBy();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setHomepage
|
||||
\param szHomepage
|
||||
*/
|
||||
void setHomepage(const QString& szHomepage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn homepage
|
||||
\return QString
|
||||
*/
|
||||
QString homepage();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLastAired
|
||||
\param szLAstAired
|
||||
*/
|
||||
void setLastAired(const QString& szLAstAired);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLastAired
|
||||
\param lastAired
|
||||
*/
|
||||
void setLastAired(const QDate& lastAired);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn lastAired
|
||||
\return QDate
|
||||
*/
|
||||
QDate lastAired();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLanguages
|
||||
\param szLanguages
|
||||
*/
|
||||
void setLanguages(const QString& szLanguages);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLanguages
|
||||
\param szLanguages
|
||||
*/
|
||||
void setLanguages(const QStringList& szLanguages);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn languages
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList languages();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setNetworks
|
||||
\param szNetworks
|
||||
*/
|
||||
void setNetworks(const QStringList& szNetworks);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setNetworks
|
||||
\param szNetworks
|
||||
*/
|
||||
void setNetworks(const QString& szNetworks);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn networks
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList networks();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setEpisodes
|
||||
\param iEpisodes
|
||||
*/
|
||||
void setEpisodes(const qint16& iEpisodes);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn episodes
|
||||
\return qint16
|
||||
*/
|
||||
qint16 episodes();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSeasons
|
||||
\param iSeasons
|
||||
*/
|
||||
void setSeasons(const qint16& iSeasons);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasons
|
||||
\return qint16
|
||||
*/
|
||||
qint16 seasons();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOriginCountries
|
||||
\param szOriginCountries
|
||||
*/
|
||||
void setOriginCountries(const QStringList& szOriginCountries);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOriginCountries
|
||||
\param szOriginCountries
|
||||
*/
|
||||
void setOriginCountries(const QString& szOriginCountries);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn originCountries
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList originCountries();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOriginalLanguage
|
||||
\param szOriginalLanguage
|
||||
*/
|
||||
void setOriginalLanguage(const QString& szOriginalLanguage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn originalLanguage
|
||||
\return QString
|
||||
*/
|
||||
QString originalLanguage();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setPopularity
|
||||
\param dPopularity
|
||||
*/
|
||||
void setPopularity(const qreal& dPopularity);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn popularity
|
||||
\return qreal
|
||||
*/
|
||||
qreal popularity();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setPosterPath
|
||||
\param szPosterPath
|
||||
*/
|
||||
void setPosterPath(const QString& szPosterPath);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn posterPath
|
||||
\return QString
|
||||
*/
|
||||
QString posterPath();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProductionCompanies
|
||||
\param szProductionCompanies
|
||||
*/
|
||||
void setProductionCompanies(const QStringList& szProductionCompanies);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setProductionCompanies
|
||||
\param szProductionCompanies
|
||||
*/
|
||||
void setProductionCompanies(const QString& szProductionCompanies);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn productionCompanies
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList productionCompanies();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setType
|
||||
\param szType
|
||||
*/
|
||||
void setType(const QString& szType);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn type
|
||||
\return QString
|
||||
*/
|
||||
QString type();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setVoteAverage
|
||||
\param dVoteAverage
|
||||
*/
|
||||
void setVoteAverage(const qreal& dVoteAverage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn voteAverage
|
||||
\return qreal
|
||||
*/
|
||||
qreal voteAverage();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setVoteCount
|
||||
\param iVoteCount
|
||||
*/
|
||||
void setVoteCount(const qint16& iVoteCount);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn voteCount
|
||||
\return qint16
|
||||
*/
|
||||
qint16 voteCount();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setOverview
|
||||
\param szOverview
|
||||
*/
|
||||
void setOverview(const QString& szOverview);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn overview
|
||||
\return QString
|
||||
*/
|
||||
QString overview();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setFirstAired
|
||||
\param szFirstAired
|
||||
*/
|
||||
void setFirstAired(const QString& szFirstAired);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setFirstAired
|
||||
\param firstAired
|
||||
*/
|
||||
void setFirstAired(const QDate& firstAired);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn firstAired
|
||||
\return QDate
|
||||
*/
|
||||
QDate firstAired();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCast
|
||||
\param szCast
|
||||
*/
|
||||
void setCast(const QStringList& szCast);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cast
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList cast();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCrew
|
||||
\param szCrew
|
||||
*/
|
||||
void setCrew(const QStringList& szCrew);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn crew
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList crew();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGenre
|
||||
\param szGenre
|
||||
*/
|
||||
void setGenre(const QString& szGenre);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setGenre
|
||||
\param szGenre
|
||||
*/
|
||||
void setGenre(const QStringList& szGenre);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn genre
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList genre();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setIMDBID
|
||||
\param szIMDBID
|
||||
*/
|
||||
void setIMDBID(const QString& szIMDBID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn IMDBID
|
||||
\return QString
|
||||
*/
|
||||
QString IMDBID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setFreebaseMID
|
||||
\param szFreebaseMID
|
||||
*/
|
||||
void setFreebaseMID(const QString& szFreebaseMID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn freebaseMID
|
||||
\return QString
|
||||
*/
|
||||
QString freebaseMID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setFreebaseID
|
||||
\param szFreebaseID
|
||||
*/
|
||||
void setFreebaseID(const QString& szFreebaseID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn freebaseID
|
||||
\return QString
|
||||
*/
|
||||
QString freebaseID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setTVDBID
|
||||
\param iTVDBID
|
||||
*/
|
||||
void setTVDBID(const qint32& iTVDBID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn tvdbID
|
||||
\return qint32
|
||||
*/
|
||||
qint32 tvdbID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setTVRageID
|
||||
\param iTVRageID
|
||||
*/
|
||||
void setTVRageID(const qint32& iTVRageID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn tvrageID
|
||||
\return qint32
|
||||
*/
|
||||
qint32 tvrageID();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setStatus
|
||||
\param szStatus
|
||||
*/
|
||||
void setStatus(const QString& szStatus);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn status
|
||||
\return QString
|
||||
*/
|
||||
QString status();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setDownload
|
||||
\param szDownload
|
||||
*/
|
||||
void setDownload(const QString& szDownload);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn download
|
||||
\return QString
|
||||
*/
|
||||
QString download();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setCliffhanger
|
||||
\param bCliffhanger
|
||||
*/
|
||||
void setCliffhanger(const bool& bCliffhanger);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cliffhanger
|
||||
\return bool
|
||||
*/
|
||||
bool cliffhanger();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn addSeason
|
||||
\param iSeason
|
||||
\return cSeason
|
||||
*/
|
||||
cSeason* addSeason(const qint16& iSeason);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasonList
|
||||
\return QList<cSeason *>
|
||||
*/
|
||||
QList<cSeason*> seasonList();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn findSeason
|
||||
\param iSeason
|
||||
\return cSeason
|
||||
*/
|
||||
cSeason* findSeason(const qint16& iSeason);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn minSeason
|
||||
\return qint16
|
||||
*/
|
||||
qint16 minSeason();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn maxSeason
|
||||
\return qint16
|
||||
*/
|
||||
qint16 maxSeason();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn maxEpisode
|
||||
\return qint16
|
||||
*/
|
||||
qint16 maxEpisode();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn findEpisode
|
||||
\param id
|
||||
\return cEpisode
|
||||
*/
|
||||
cEpisode* findEpisode(const qint32& id);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn isValid
|
||||
\return bool
|
||||
*/
|
||||
bool isValid();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn hasInit
|
||||
\return bool
|
||||
*/
|
||||
bool hasInit();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn hasProgress
|
||||
\return bool
|
||||
*/
|
||||
bool hasProgress();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn hasDone
|
||||
\return bool
|
||||
*/
|
||||
bool hasDone();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn save
|
||||
\param db
|
||||
\return bool
|
||||
*/
|
||||
bool save(QSqlDatabase& db);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn del
|
||||
\param db
|
||||
\return bool
|
||||
*/
|
||||
bool del(QSqlDatabase& db);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allInit
|
||||
*/
|
||||
void allInit();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allProgress
|
||||
*/
|
||||
void allProgress();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn allDone
|
||||
*/
|
||||
void allDone();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasonInit
|
||||
\param lpButton
|
||||
*/
|
||||
void seasonInit(QPushButton* lpButton);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasonProgress
|
||||
\param lpButton
|
||||
*/
|
||||
void seasonProgress(QPushButton* lpButton);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn seasonDone
|
||||
\param lpButton
|
||||
*/
|
||||
void seasonDone(QPushButton* lpButton);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateState
|
||||
*/
|
||||
void updateState();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn deleteResources
|
||||
*/
|
||||
void deleteResources();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadFanart
|
||||
*/
|
||||
void loadFanart();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setFanartList
|
||||
\param fanartList
|
||||
*/
|
||||
void setFanartList(const cFanartList& fanartList);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fanartList
|
||||
\return cFanartList
|
||||
*/
|
||||
cFanartList fanartList();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn fanartBanner
|
||||
\return QString
|
||||
*/
|
||||
QString fanartBanner();
|
||||
private:
|
||||
QString m_szSeriesName;
|
||||
QString m_szOriginalName;
|
||||
qint32 m_iSeriesID;
|
||||
QString m_szBackdropPath;
|
||||
QStringList m_szCreatedBy;
|
||||
QString m_szHomepage;
|
||||
QDate m_lastAired;
|
||||
QStringList m_szLanguages;
|
||||
QStringList m_szNetworks;
|
||||
qint16 m_iEpisodes;
|
||||
qint16 m_iSeasons;
|
||||
QStringList m_szOriginCountries;
|
||||
QString m_szOriginalLanguage;
|
||||
qreal m_dPopularity;
|
||||
QString m_szPosterPath;
|
||||
QStringList m_szProductionCompanies;
|
||||
QString m_szType;
|
||||
qreal m_dVoteAverage;
|
||||
qint16 m_iVoteCount;
|
||||
QString m_szOverview;
|
||||
QDate m_firstAired;
|
||||
QStringList m_szCast;
|
||||
QStringList m_szCrew;
|
||||
QStringList m_szGenre;
|
||||
QString m_szIMDBID;
|
||||
QString m_szFreebaseMID;
|
||||
QString m_szFreebaseID;
|
||||
qint32 m_iTVDBID;
|
||||
qint32 m_iTVRageID;
|
||||
QString m_szStatus;
|
||||
QString m_szDownload;
|
||||
bool m_bCliffhanger;
|
||||
cFanartList m_fanartList;
|
||||
QList<cSeason*> m_seasonList;
|
||||
QString m_szSeriesName; /*!< TODO: describe */
|
||||
QString m_szOriginalName; /*!< TODO: describe */
|
||||
qint32 m_iSeriesID; /*!< TODO: describe */
|
||||
QString m_szBackdropPath; /*!< TODO: describe */
|
||||
QStringList m_szCreatedBy; /*!< TODO: describe */
|
||||
QString m_szHomepage; /*!< TODO: describe */
|
||||
QDate m_lastAired; /*!< TODO: describe */
|
||||
QStringList m_szLanguages; /*!< TODO: describe */
|
||||
QStringList m_szNetworks; /*!< TODO: describe */
|
||||
qint16 m_iEpisodes; /*!< TODO: describe */
|
||||
qint16 m_iSeasons; /*!< TODO: describe */
|
||||
QStringList m_szOriginCountries; /*!< TODO: describe */
|
||||
QString m_szOriginalLanguage; /*!< TODO: describe */
|
||||
qreal m_dPopularity; /*!< TODO: describe */
|
||||
QString m_szPosterPath; /*!< TODO: describe */
|
||||
QStringList m_szProductionCompanies; /*!< TODO: describe */
|
||||
QString m_szType; /*!< TODO: describe */
|
||||
qreal m_dVoteAverage; /*!< TODO: describe */
|
||||
qint16 m_iVoteCount; /*!< TODO: describe */
|
||||
QString m_szOverview; /*!< TODO: describe */
|
||||
QDate m_firstAired; /*!< TODO: describe */
|
||||
QStringList m_szCast; /*!< TODO: describe */
|
||||
QStringList m_szCrew; /*!< TODO: describe */
|
||||
QStringList m_szGenre; /*!< TODO: describe */
|
||||
QString m_szIMDBID; /*!< TODO: describe */
|
||||
QString m_szFreebaseMID; /*!< TODO: describe */
|
||||
QString m_szFreebaseID; /*!< TODO: describe */
|
||||
qint32 m_iTVDBID; /*!< TODO: describe */
|
||||
qint32 m_iTVRageID; /*!< TODO: describe */
|
||||
QString m_szStatus; /*!< TODO: describe */
|
||||
QString m_szDownload; /*!< TODO: describe */
|
||||
bool m_bCliffhanger; /*!< TODO: describe */
|
||||
cFanartList m_fanartList; /*!< TODO: describe */
|
||||
QList<cSeason*> m_seasonList; /*!< TODO: describe */
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(cSerie*)
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cSerieList cserie.h "cserie.h"
|
||||
*/
|
||||
class cSerieList : public QList<cSerie*>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn add
|
||||
\param iID
|
||||
\return cSerie
|
||||
*/
|
||||
cSerie* add(const qint32& iID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn add
|
||||
\param lpSerie
|
||||
\return cSerie
|
||||
*/
|
||||
cSerie* add(cSerie* lpSerie);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn find
|
||||
\param iID
|
||||
\return cSerie
|
||||
*/
|
||||
cSerie* find(const qint32& iID);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn minSeason
|
||||
\return qint16
|
||||
*/
|
||||
qint16 minSeason();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn maxSeason
|
||||
\return qint16
|
||||
*/
|
||||
qint16 maxSeason();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn maxEpisode
|
||||
\return qint16
|
||||
*/
|
||||
qint16 maxEpisode();
|
||||
};
|
||||
|
||||
|
||||
+105
-2
@@ -11,27 +11,130 @@
|
||||
#include <QMap>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cTheMovieDBV3 cthemoviedbv3.h "cthemoviedbv3.h"
|
||||
*/
|
||||
class cTheMovieDBV3
|
||||
{
|
||||
public:
|
||||
cTheMovieDBV3();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~cTheMovieDBV3
|
||||
*/
|
||||
~cTheMovieDBV3();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn searchMovie
|
||||
\param szMovie
|
||||
\param year
|
||||
\param szLanguage
|
||||
\return QList<cMovie *>
|
||||
*/
|
||||
QList<cMovie*> searchMovie(const QString& szMovie, const qint16& year = -1, const QString& szLanguage = "all");
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadMovie
|
||||
\param iID
|
||||
\param szLanguage
|
||||
\return cMovie
|
||||
*/
|
||||
cMovie* loadMovie(const qint32 &iID, const QString& szLanguage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn genresMovie
|
||||
\param szLanguage
|
||||
\return QMap<qint32, QString>
|
||||
*/
|
||||
QMap<qint32, QString> genresMovie(const QString& szLanguage = "all");
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn discoverMovie
|
||||
\param szText
|
||||
\param bAdult
|
||||
\param iYear
|
||||
\param genres
|
||||
\param voteMin
|
||||
\param voteMax
|
||||
\param szLanguage
|
||||
\return QList<cMovie *>
|
||||
*/
|
||||
QList<cMovie*> discoverMovie(const QString& szText, const bool& bAdult, const qint16& iYear, const QList<qint32>& genres, const qreal& voteMin, const qreal& voteMax, const QString& szLanguage = "all");
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadCastMovie
|
||||
\param lpMovie
|
||||
*/
|
||||
void loadCastMovie(cMovie* lpMovie);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn searchSerie
|
||||
\param szSerie
|
||||
\param year
|
||||
\param szLanguage
|
||||
\return QList<cSerie *>
|
||||
*/
|
||||
QList<cSerie*> searchSerie(const QString& szSerie, const qint16& year = -1, const QString& szLanguage = "all");
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadSerie
|
||||
\param iID
|
||||
\param szLanguage
|
||||
\return cSerie
|
||||
*/
|
||||
cSerie* loadSerie(const qint32 &iID, const QString& szLanguage);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn loadSerie
|
||||
\param szIMDBID
|
||||
\return cSerie
|
||||
*/
|
||||
cSerie* loadSerie(const QString& szIMDBID);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn genresSerie
|
||||
\param szLanguage
|
||||
\return QMap<qint32, QString>
|
||||
*/
|
||||
QMap<qint32, QString> genresSerie(const QString& szLanguage = "all");
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn discoverSerie
|
||||
\param szText
|
||||
\param iYear
|
||||
\param genres
|
||||
\param voteMin
|
||||
\param voteMax
|
||||
\param szLanguage
|
||||
\return QList<cSerie *>
|
||||
*/
|
||||
QList<cSerie*> discoverSerie(const QString& szText, const qint16& iYear, const QList<qint32>& genres, const qreal& voteMin, const qreal& voteMax, const QString& szLanguage = "all");
|
||||
private:
|
||||
QString m_szToken;
|
||||
QMap<qint32, QString> m_genres;
|
||||
QString m_szToken; /*!< TODO: describe */
|
||||
QMap<qint32, QString> m_genres; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn genresFromID
|
||||
\param genres
|
||||
\return QStringList
|
||||
*/
|
||||
QStringList genresFromID(QList<qint32> genres);
|
||||
};
|
||||
|
||||
|
||||
+46
-5
@@ -13,28 +13,69 @@
|
||||
#include <QSqlDatabase>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cUpdateThread cupdatethread.h "cupdatethread.h"
|
||||
*/
|
||||
class cUpdateThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cUpdateThread
|
||||
*/
|
||||
explicit cUpdateThread();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setData
|
||||
\param lpMessageDialog
|
||||
\param serieList
|
||||
\param db
|
||||
*/
|
||||
void setData(cMessageDialog *lpMessageDialog, const cSerieList& serieList, const QSqlDatabase& db);
|
||||
public slots:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn stop
|
||||
*/
|
||||
void stop();
|
||||
|
||||
signals:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateMessage
|
||||
\param szMessage
|
||||
\param iProgress
|
||||
*/
|
||||
void updateMessage(const QString& szMessage, const qint32 &iProgress);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateAppendMessage
|
||||
\param szMessage
|
||||
*/
|
||||
void updateAppendMessage(const QString& szMessage);
|
||||
|
||||
private:
|
||||
QMutex m_mutex;
|
||||
bool m_bStop;
|
||||
cSerieList m_serieList;
|
||||
QSqlDatabase m_db;
|
||||
QWidget* m_lpParent;
|
||||
QMutex m_mutex; /*!< TODO: describe */
|
||||
bool m_bStop; /*!< TODO: describe */
|
||||
cSerieList m_serieList; /*!< TODO: describe */
|
||||
QSqlDatabase m_db; /*!< TODO: describe */
|
||||
QWidget* m_lpParent; /*!< TODO: describe */
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn run
|
||||
*/
|
||||
void run();
|
||||
};
|
||||
|
||||
|
||||
@@ -5,18 +5,54 @@
|
||||
#include <QLabel>
|
||||
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class cVerticalLabel cverticallabel.h "cverticallabel.h"
|
||||
*/
|
||||
class cVerticalLabel : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cVerticalLabel
|
||||
\param parent
|
||||
*/
|
||||
explicit cVerticalLabel(QWidget *parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn cVerticalLabel
|
||||
\param text
|
||||
\param parent
|
||||
*/
|
||||
explicit cVerticalLabel(const QString &text, QWidget *parent=0);
|
||||
|
||||
signals:
|
||||
|
||||
protected:
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paintEvent
|
||||
\param
|
||||
*/
|
||||
void paintEvent(QPaintEvent*);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn sizeHint
|
||||
\return QSize
|
||||
*/
|
||||
QSize sizeHint() const ;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn minimumSizeHint
|
||||
\return QSize
|
||||
*/
|
||||
QSize minimumSizeHint() const;
|
||||
|
||||
public slots:
|
||||
|
||||
+2
-1
@@ -95,7 +95,8 @@ FORMS += cmainwindow.ui \
|
||||
cmoviedetails.ui
|
||||
|
||||
DISTFILES += \
|
||||
qtMovies.ico
|
||||
qtMovies.ico \
|
||||
Doxyfile
|
||||
|
||||
RESOURCES += \
|
||||
resource.qrc
|
||||
|
||||
+195
-28
@@ -37,6 +37,11 @@
|
||||
|
||||
class QxtSpanSliderPrivate;
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class QxtSpanSlider qxtspanslider.h "qxtspanslider.h"
|
||||
*/
|
||||
class QxtSpanSlider : public QSlider {
|
||||
Q_OBJECT
|
||||
|
||||
@@ -49,60 +54,222 @@ class QxtSpanSlider : public QSlider {
|
||||
Q_ENUMS(HandleMovementMode)
|
||||
|
||||
public:
|
||||
explicit QxtSpanSlider(QWidget* parent = 0);
|
||||
explicit QxtSpanSlider(Qt::Orientation orientation, QWidget* parent = 0);
|
||||
virtual ~QxtSpanSlider();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
enum HandleMovementMode
|
||||
\fn QxtSpanSlider
|
||||
\param parent
|
||||
*/
|
||||
explicit QxtSpanSlider(QWidget* parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn QxtSpanSlider
|
||||
\param orientation
|
||||
\param parent
|
||||
*/
|
||||
explicit QxtSpanSlider(Qt::Orientation orientation, QWidget* parent = 0);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn ~QxtSpanSlider
|
||||
*/
|
||||
virtual ~QxtSpanSlider();
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\enum HandleMovementMode
|
||||
*/
|
||||
enum HandleMovementMode
|
||||
{
|
||||
FreeMovement,
|
||||
NoCrossing,
|
||||
NoOverlapping
|
||||
};
|
||||
|
||||
enum SpanHandle
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\enum SpanHandle
|
||||
*/
|
||||
enum SpanHandle
|
||||
{
|
||||
NoHandle,
|
||||
LowerHandle,
|
||||
UpperHandle
|
||||
};
|
||||
|
||||
HandleMovementMode handleMovementMode() const;
|
||||
void setHandleMovementMode(HandleMovementMode mode);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
int lowerValue() const;
|
||||
int upperValue() const;
|
||||
\fn handleMovementMode
|
||||
\return HandleMovementMode
|
||||
*/
|
||||
HandleMovementMode handleMovementMode() const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
int lowerPosition() const;
|
||||
int upperPosition() const;
|
||||
\fn setHandleMovementMode
|
||||
\param mode
|
||||
*/
|
||||
void setHandleMovementMode(HandleMovementMode mode);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn lowerValue
|
||||
\return int
|
||||
*/
|
||||
int lowerValue() const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn upperValue
|
||||
\return int
|
||||
*/
|
||||
int upperValue() const;
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn lowerPosition
|
||||
\return int
|
||||
*/
|
||||
int lowerPosition() const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn upperPosition
|
||||
\return int
|
||||
*/
|
||||
int upperPosition() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void setLowerValue(int lower);
|
||||
void setUpperValue(int upper);
|
||||
void setSpan(int lower, int upper);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
void setLowerPosition(int lower);
|
||||
void setUpperPosition(int upper);
|
||||
\fn setLowerValue
|
||||
\param lower
|
||||
*/
|
||||
void setLowerValue(int lower);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setUpperValue
|
||||
\param upper
|
||||
*/
|
||||
void setUpperValue(int upper);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setSpan
|
||||
\param lower
|
||||
\param upper
|
||||
*/
|
||||
void setSpan(int lower, int upper);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setLowerPosition
|
||||
\param lower
|
||||
*/
|
||||
void setLowerPosition(int lower);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setUpperPosition
|
||||
\param upper
|
||||
*/
|
||||
void setUpperPosition(int upper);
|
||||
|
||||
Q_SIGNALS:
|
||||
void spanChanged(int lower, int upper);
|
||||
void lowerValueChanged(int lower);
|
||||
void upperValueChanged(int upper);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
void lowerPositionChanged(int lower);
|
||||
void upperPositionChanged(int upper);
|
||||
\fn spanChanged
|
||||
\param lower
|
||||
\param upper
|
||||
*/
|
||||
void spanChanged(int lower, int upper);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
void sliderPressed(SpanHandle handle);
|
||||
\fn lowerValueChanged
|
||||
\param lower
|
||||
*/
|
||||
void lowerValueChanged(int lower);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn upperValueChanged
|
||||
\param upper
|
||||
*/
|
||||
void upperValueChanged(int upper);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn lowerPositionChanged
|
||||
\param lower
|
||||
*/
|
||||
void lowerPositionChanged(int lower);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn upperPositionChanged
|
||||
\param upper
|
||||
*/
|
||||
void upperPositionChanged(int upper);
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn sliderPressed
|
||||
\param handle
|
||||
*/
|
||||
void sliderPressed(SpanHandle handle);
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent* event);
|
||||
virtual void mousePressEvent(QMouseEvent* event);
|
||||
virtual void mouseMoveEvent(QMouseEvent* event);
|
||||
virtual void mouseReleaseEvent(QMouseEvent* event);
|
||||
virtual void paintEvent(QPaintEvent* event);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn keyPressEvent
|
||||
\param event
|
||||
*/
|
||||
virtual void keyPressEvent(QKeyEvent* event);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn mousePressEvent
|
||||
\param event
|
||||
*/
|
||||
virtual void mousePressEvent(QMouseEvent* event);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn mouseMoveEvent
|
||||
\param event
|
||||
*/
|
||||
virtual void mouseMoveEvent(QMouseEvent* event);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn mouseReleaseEvent
|
||||
\param event
|
||||
*/
|
||||
virtual void mouseReleaseEvent(QMouseEvent* event);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn paintEvent
|
||||
\param event
|
||||
*/
|
||||
virtual void paintEvent(QPaintEvent* event);
|
||||
|
||||
private:
|
||||
QxtSpanSliderPrivate* d_ptr;
|
||||
QxtSpanSliderPrivate* d_ptr; /*!< TODO: describe */
|
||||
friend class QxtSpanSliderPrivate;
|
||||
};
|
||||
|
||||
|
||||
+115
-26
@@ -38,44 +38,133 @@
|
||||
QT_FORWARD_DECLARE_CLASS(QStylePainter)
|
||||
QT_FORWARD_DECLARE_CLASS(QStyleOptionSlider)
|
||||
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\class QxtSpanSliderPrivate qxtspanslider_p.h "qxtspanslider_p.h"
|
||||
*/
|
||||
class QxtSpanSliderPrivate : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
QxtSpanSliderPrivate();
|
||||
void initStyleOption(QStyleOptionSlider* option, QxtSpanSlider::SpanHandle handle = QxtSpanSlider::UpperHandle) const;
|
||||
int pick(const QPoint& pt) const
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn QxtSpanSliderPrivate
|
||||
*/
|
||||
QxtSpanSliderPrivate();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn initStyleOption
|
||||
\param option
|
||||
\param handle
|
||||
*/
|
||||
void initStyleOption(QStyleOptionSlider* option, QxtSpanSlider::SpanHandle handle = QxtSpanSlider::UpperHandle) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn pick
|
||||
\param pt
|
||||
\return int
|
||||
*/
|
||||
int pick(const QPoint& pt) const
|
||||
{
|
||||
return q_ptr->orientation() == Qt::Horizontal ? pt.x() : pt.y();
|
||||
}
|
||||
int pixelPosToRangeValue(int pos) const;
|
||||
void handleMousePress(const QPoint& pos, QStyle::SubControl& control, int value, QxtSpanSlider::SpanHandle handle);
|
||||
void drawHandle(QStylePainter* painter, QxtSpanSlider::SpanHandle handle) const;
|
||||
void setupPainter(QPainter* painter, Qt::Orientation orientation, qreal x1, qreal y1, qreal x2, qreal y2) const;
|
||||
void drawSpan(QStylePainter* painter, const QRect& rect) const;
|
||||
void triggerAction(QAbstractSlider::SliderAction action, bool main);
|
||||
void swapControls();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
int lower;
|
||||
int upper;
|
||||
int lowerPos;
|
||||
int upperPos;
|
||||
int offset;
|
||||
int position;
|
||||
QxtSpanSlider::SpanHandle lastPressed;
|
||||
QxtSpanSlider::SpanHandle mainControl;
|
||||
QStyle::SubControl lowerPressed;
|
||||
QStyle::SubControl upperPressed;
|
||||
QxtSpanSlider::HandleMovementMode movement;
|
||||
bool firstMovement;
|
||||
bool blockTracking;
|
||||
\fn pixelPosToRangeValue
|
||||
\param pos
|
||||
\return int
|
||||
*/
|
||||
int pixelPosToRangeValue(int pos) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn handleMousePress
|
||||
\param pos
|
||||
\param control
|
||||
\param value
|
||||
\param handle
|
||||
*/
|
||||
void handleMousePress(const QPoint& pos, QStyle::SubControl& control, int value, QxtSpanSlider::SpanHandle handle);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn drawHandle
|
||||
\param painter
|
||||
\param handle
|
||||
*/
|
||||
void drawHandle(QStylePainter* painter, QxtSpanSlider::SpanHandle handle) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn setupPainter
|
||||
\param painter
|
||||
\param orientation
|
||||
\param x1
|
||||
\param y1
|
||||
\param x2
|
||||
\param y2
|
||||
*/
|
||||
void setupPainter(QPainter* painter, Qt::Orientation orientation, qreal x1, qreal y1, qreal x2, qreal y2) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn drawSpan
|
||||
\param painter
|
||||
\param rect
|
||||
*/
|
||||
void drawSpan(QStylePainter* painter, const QRect& rect) const;
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn triggerAction
|
||||
\param action
|
||||
\param main
|
||||
*/
|
||||
void triggerAction(QAbstractSlider::SliderAction action, bool main);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn swapControls
|
||||
*/
|
||||
void swapControls();
|
||||
|
||||
int lower; /*!< TODO: describe */
|
||||
int upper; /*!< TODO: describe */
|
||||
int lowerPos; /*!< TODO: describe */
|
||||
int upperPos; /*!< TODO: describe */
|
||||
int offset; /*!< TODO: describe */
|
||||
int position; /*!< TODO: describe */
|
||||
QxtSpanSlider::SpanHandle lastPressed; /*!< TODO: describe */
|
||||
QxtSpanSlider::SpanHandle mainControl; /*!< TODO: describe */
|
||||
QStyle::SubControl lowerPressed; /*!< TODO: describe */
|
||||
QStyle::SubControl upperPressed; /*!< TODO: describe */
|
||||
QxtSpanSlider::HandleMovementMode movement; /*!< TODO: describe */
|
||||
bool firstMovement; /*!< TODO: describe */
|
||||
bool blockTracking; /*!< TODO: describe */
|
||||
|
||||
|
||||
public Q_SLOTS:
|
||||
void updateRange(int min, int max);
|
||||
void movePressedHandle();
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn updateRange
|
||||
\param min
|
||||
\param max
|
||||
*/
|
||||
void updateRange(int min, int max);
|
||||
/*!
|
||||
\brief
|
||||
|
||||
\fn movePressedHandle
|
||||
*/
|
||||
void movePressedHandle();
|
||||
|
||||
private:
|
||||
QxtSpanSlider* q_ptr;
|
||||
QxtSpanSlider* q_ptr; /*!< TODO: describe */
|
||||
friend class QxtSpanSlider;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user