mirror of
https://github.com/YACReader/yacreader
synced 2025-07-25 00:15:07 -04:00
Format code using clang-format
This commit is contained in:
@ -24,108 +24,105 @@ class QScriptValue;
|
||||
//----------------------------------------
|
||||
class ComicVineDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ComicVineDialog(QWidget *parent = 0);
|
||||
QString databasePath;
|
||||
QString basePath;
|
||||
void setComics(const QList<ComicDB> & comics);
|
||||
explicit ComicVineDialog(QWidget *parent = 0);
|
||||
QString databasePath;
|
||||
QString basePath;
|
||||
void setComics(const QList<ComicDB> &comics);
|
||||
QSize sizeHint() const;
|
||||
QSize minimumSizeHint() const;
|
||||
|
||||
signals:
|
||||
|
||||
|
||||
public slots:
|
||||
void show();
|
||||
void show();
|
||||
|
||||
protected slots:
|
||||
void goNext();
|
||||
void goBack();
|
||||
void debugClientResults(const QString & string);
|
||||
//show widget methods
|
||||
void showSeriesQuestion();
|
||||
void showSearchSingleComic();
|
||||
void showSearchVolume();
|
||||
void showLoading(const QString & message = "");
|
||||
void search();
|
||||
void searchVolume(const QString & v, int page = 1);
|
||||
void getVolumeComicsInfo(const QString &vID, int page = 1);
|
||||
void launchSearchVolume();
|
||||
void launchSearchComic();
|
||||
void showSelectVolume(const QString & json);
|
||||
void showSelectVolume();
|
||||
void showSelectComic(const QString & json);
|
||||
void showSortVolumeComics(const QString & json);
|
||||
void queryTimeOut();
|
||||
void getComicsInfo(QList<QPair<ComicDB,QString> > & matchingInfo, int count, const QString & publisher);
|
||||
void getComicInfo(const QString & comicId, int count, const QString & publisher);
|
||||
ComicDB parseComicInfo(ComicDB &comic, const QString & json, int count, const QString &publisher);
|
||||
void goNext();
|
||||
void goBack();
|
||||
void debugClientResults(const QString &string);
|
||||
//show widget methods
|
||||
void showSeriesQuestion();
|
||||
void showSearchSingleComic();
|
||||
void showSearchVolume();
|
||||
void showLoading(const QString &message = "");
|
||||
void search();
|
||||
void searchVolume(const QString &v, int page = 1);
|
||||
void getVolumeComicsInfo(const QString &vID, int page = 1);
|
||||
void launchSearchVolume();
|
||||
void launchSearchComic();
|
||||
void showSelectVolume(const QString &json);
|
||||
void showSelectVolume();
|
||||
void showSelectComic(const QString &json);
|
||||
void showSortVolumeComics(const QString &json);
|
||||
void queryTimeOut();
|
||||
void getComicsInfo(QList<QPair<ComicDB, QString>> &matchingInfo, int count, const QString &publisher);
|
||||
void getComicInfo(const QString &comicId, int count, const QString &publisher);
|
||||
ComicDB parseComicInfo(ComicDB &comic, const QString &json, int count, const QString &publisher);
|
||||
void setLoadingMessage(const QString &message);
|
||||
void goToNextComic();
|
||||
void goToNextComic();
|
||||
|
||||
private:
|
||||
QString getCharacters(const QScriptValue &json_characters);
|
||||
QMap<QString, QString> getAuthors(const QScriptValue &json_authors);
|
||||
|
||||
QString getCharacters(const QScriptValue & json_characters);
|
||||
QMap<QString,QString> getAuthors(const QScriptValue & json_authors);
|
||||
void toggleSkipButton();
|
||||
|
||||
void toggleSkipButton();
|
||||
enum ScraperMode {
|
||||
SingleComic, //the scraper has been opened for a single comic
|
||||
Volume, //the scraper is trying to get comics info for a whole volume
|
||||
SingleComicInList //the scraper has been opened for a list of unrelated comics
|
||||
};
|
||||
|
||||
enum ScraperMode
|
||||
{
|
||||
SingleComic, //the scraper has been opened for a single comic
|
||||
Volume, //the scraper is trying to get comics info for a whole volume
|
||||
SingleComicInList //the scraper has been opened for a list of unrelated comics
|
||||
};
|
||||
enum ScraperStatus {
|
||||
AutoSearching,
|
||||
AskingForInfo,
|
||||
SelectingComic,
|
||||
SelectingSeries,
|
||||
SearchingSingleComic,
|
||||
SearchingVolume,
|
||||
SortingComics,
|
||||
GettingVolumeComics
|
||||
};
|
||||
|
||||
enum ScraperStatus
|
||||
{
|
||||
AutoSearching,
|
||||
AskingForInfo,
|
||||
SelectingComic,
|
||||
SelectingSeries,
|
||||
SearchingSingleComic,
|
||||
SearchingVolume,
|
||||
SortingComics,
|
||||
GettingVolumeComics
|
||||
};
|
||||
ScraperMode mode;
|
||||
ScraperStatus status;
|
||||
|
||||
ScraperMode mode;
|
||||
ScraperStatus status;
|
||||
int currentIndex;
|
||||
|
||||
int currentIndex;
|
||||
TitleHeader *titleHeader;
|
||||
|
||||
TitleHeader * titleHeader;
|
||||
QPushButton *skipButton;
|
||||
QPushButton *backButton;
|
||||
QPushButton *nextButton;
|
||||
QPushButton *searchButton;
|
||||
QPushButton *closeButton;
|
||||
|
||||
QPushButton * skipButton;
|
||||
QPushButton * backButton;
|
||||
QPushButton * nextButton;
|
||||
QPushButton * searchButton;
|
||||
QPushButton * closeButton;
|
||||
//stacked widgets
|
||||
QStackedWidget *content;
|
||||
|
||||
//stacked widgets
|
||||
QStackedWidget * content;
|
||||
QWidget *infoNotFound;
|
||||
QWidget *singleComicBrowser;
|
||||
|
||||
QWidget * infoNotFound;
|
||||
QWidget * singleComicBrowser;
|
||||
|
||||
QLabel * loadingMessage;
|
||||
QLabel *loadingMessage;
|
||||
|
||||
void doLayout();
|
||||
void doStackedWidgets();
|
||||
void doLoading();
|
||||
void doConnections();
|
||||
void doLayout();
|
||||
void doStackedWidgets();
|
||||
void doLoading();
|
||||
void doConnections();
|
||||
|
||||
QList<ComicDB> comics;
|
||||
QList<ComicDB> comics;
|
||||
|
||||
SeriesQuestion * seriesQuestionWidget;
|
||||
SearchSingleComic * searchSingleComicWidget;
|
||||
SearchVolume * searchVolumeWidget;
|
||||
SelectVolume * selectVolumeWidget;
|
||||
SelectComic * selectComicWidget;
|
||||
SortVolumeComics * sortVolumeComicsWidget;
|
||||
SeriesQuestion *seriesQuestionWidget;
|
||||
SearchSingleComic *searchSingleComicWidget;
|
||||
SearchVolume *searchVolumeWidget;
|
||||
SelectVolume *selectVolumeWidget;
|
||||
SelectComic *selectComicWidget;
|
||||
SortVolumeComics *sortVolumeComicsWidget;
|
||||
|
||||
QString currentVolumeSearchString;
|
||||
QString currentVolumeId;
|
||||
QString currentVolumeSearchString;
|
||||
QString currentVolumeId;
|
||||
};
|
||||
|
||||
#endif // COMIC_VINE_DIALOG_H
|
||||
|
Reference in New Issue
Block a user