mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
fixed load volumes model in select volume
added full fordwar and backward navigation in volume scraping
This commit is contained in:
@ -73,6 +73,8 @@ void ComicVineDialog::doLayout()
|
|||||||
|
|
||||||
setLayout(mainLayout);
|
setLayout(mainLayout);
|
||||||
setFixedSize(872,529);
|
setFixedSize(872,529);
|
||||||
|
|
||||||
|
setWindowTitle("Comic Vine Scraper (beta)");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComicVineDialog::doStackedWidgets()
|
void ComicVineDialog::doStackedWidgets()
|
||||||
@ -145,6 +147,9 @@ void ComicVineDialog::goBack()
|
|||||||
else
|
else
|
||||||
showSearchSingleComic();
|
showSearchSingleComic();
|
||||||
break;
|
break;
|
||||||
|
case SortingComics:
|
||||||
|
showSelectVolume();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -265,6 +270,12 @@ void ComicVineDialog::showSearchVolume()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ComicVineDialog::showSelectVolume(const QString & json)
|
void ComicVineDialog::showSelectVolume(const QString & json)
|
||||||
|
{
|
||||||
|
showSelectVolume();
|
||||||
|
selectVolumeWidget->load(json);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ComicVineDialog::showSelectVolume()
|
||||||
{
|
{
|
||||||
status = SelectingSeries;
|
status = SelectingSeries;
|
||||||
|
|
||||||
@ -274,8 +285,6 @@ void ComicVineDialog::showSelectVolume(const QString & json)
|
|||||||
nextButton->setVisible(true);
|
nextButton->setVisible(true);
|
||||||
searchButton->setHidden(true);
|
searchButton->setHidden(true);
|
||||||
closeButton->setVisible(true);
|
closeButton->setVisible(true);
|
||||||
|
|
||||||
selectVolumeWidget->load(json);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComicVineDialog::showSelectComic(const QString &json)
|
void ComicVineDialog::showSelectComic(const QString &json)
|
||||||
@ -286,8 +295,16 @@ void ComicVineDialog::showSelectComic(const QString &json)
|
|||||||
|
|
||||||
void ComicVineDialog::showSortVolumeComics(const QString &json)
|
void ComicVineDialog::showSortVolumeComics(const QString &json)
|
||||||
{
|
{
|
||||||
|
status = SortingComics;
|
||||||
|
|
||||||
content->setCurrentWidget(sortVolumeComicsWidget);
|
content->setCurrentWidget(sortVolumeComicsWidget);
|
||||||
|
|
||||||
sortVolumeComicsWidget->setData(comics, json);
|
sortVolumeComicsWidget->setData(comics, json);
|
||||||
|
|
||||||
|
backButton->setVisible(true);
|
||||||
|
nextButton->setVisible(true);
|
||||||
|
searchButton->setHidden(true);
|
||||||
|
closeButton->setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComicVineDialog::showLoading()
|
void ComicVineDialog::showLoading()
|
||||||
|
@ -47,6 +47,7 @@ protected slots:
|
|||||||
void launchSearchVolume();
|
void launchSearchVolume();
|
||||||
void launchSearchComic();
|
void launchSearchComic();
|
||||||
void showSelectVolume(const QString & json);
|
void showSelectVolume(const QString & json);
|
||||||
|
void showSelectVolume();
|
||||||
void showSelectComic(const QString & json);
|
void showSelectComic(const QString & json);
|
||||||
void showSortVolumeComics(const QString & json);
|
void showSortVolumeComics(const QString & json);
|
||||||
private:
|
private:
|
||||||
@ -65,7 +66,8 @@ private:
|
|||||||
SelectingComic,
|
SelectingComic,
|
||||||
SelectingSeries,
|
SelectingSeries,
|
||||||
SearchingSingleComic,
|
SearchingSingleComic,
|
||||||
SearchingVolume
|
SearchingVolume,
|
||||||
|
SortingComics
|
||||||
};
|
};
|
||||||
|
|
||||||
ScraperMode mode;
|
ScraperMode mode;
|
||||||
|
@ -103,7 +103,7 @@ void SelectVolume::load(const QString & json)
|
|||||||
|
|
||||||
if(model != 0)
|
if(model != 0)
|
||||||
delete model;
|
delete model;
|
||||||
else
|
|
||||||
model = tempM;
|
model = tempM;
|
||||||
|
|
||||||
if(model->rowCount()>0)
|
if(model->rowCount()>0)
|
||||||
|
Reference in New Issue
Block a user