diff --git a/YACReaderLibrary/images.qrc b/YACReaderLibrary/images.qrc index 65de2ec6..5fe13260 100644 --- a/YACReaderLibrary/images.qrc +++ b/YACReaderLibrary/images.qrc @@ -23,9 +23,9 @@ ../images/open.png ../images/coversPackage.png ../images/setRead.png - ../images/setAllRead.png + ../images/setUnread.png - ../images/setAllUnread.png + ../images/showMarks.png ../images/editComic.png ../images/selectAll.png @@ -87,12 +87,7 @@ ../images/collapsed_branch_selected.png ../images/previousCoverPage.png ../images/nextCoverPage.png - ../images/rating0.png - ../images/rating1.png - ../images/rating2.png - ../images/rating3.png - ../images/rating4.png - ../images/rating5.png + ../images/getInfo.png diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 4c88d9ad..8e4e5594 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -463,6 +463,10 @@ void LibraryWindow::createActions() hideComicViewAction->setIcon(QIcon(":/images/hideComicFlow.png")); hideComicViewAction->setCheckable(true); hideComicViewAction->setChecked(false); + + getInfoAction = new QAction(this); + getInfoAction->setText(tr("Download tags from Comic Vine")); + getInfoAction->setIcon(QIcon(":/images/getInfo.png")); //------------------------------------------------------------------------- //disable actions disableAllActions(); @@ -484,6 +488,7 @@ void LibraryWindow::disableComicsActions(bool disabled) deleteComicsAction->setDisabled(disabled); //context menu openContainingFolderComicAction->setDisabled(disabled); + getInfoAction->setDisabled(disabled); } @@ -566,9 +571,12 @@ void LibraryWindow::createToolBars() editInfoToolBar->addAction(openComicAction); editInfoToolBar->addSeparator(); editInfoToolBar->addAction(editSelectedComicsAction); - editInfoToolBar->addAction(selectAllComicsAction); - editInfoToolBar->addSeparator(); + editInfoToolBar->addAction(getInfoAction); editInfoToolBar->addAction(asignOrderActions); + + editInfoToolBar->addSeparator(); + + editInfoToolBar->addAction(selectAllComicsAction); editInfoToolBar->addSeparator(); @@ -732,6 +740,8 @@ void LibraryWindow::createConnections() connect(hideComicViewAction, SIGNAL(toggled(bool)),this, SLOT(hideComicFlow(bool))); + connect(getInfoAction,SIGNAL(triggered()),this,SLOT(showComicVineScraper())); + //connect(socialAction,SIGNAL(triggered()),this,SLOT(showSocial())); } @@ -1403,6 +1413,11 @@ void LibraryWindow::showProperties() propertiesDialog->show(); } +void LibraryWindow::showComicVineScraper() +{ + +} + void LibraryWindow::asignNumbers() { QModelIndexList indexList = getSelectedComics(); diff --git a/YACReaderLibrary/library_window.h b/YACReaderLibrary/library_window.h index 17536352..5372530c 100644 --- a/YACReaderLibrary/library_window.h +++ b/YACReaderLibrary/library_window.h @@ -141,6 +141,7 @@ private: //QAction * setAllAsReadAction; //QAction * setAllAsNonReadAction; QAction * showHideMarksAction; + QAction * getInfoAction; //comic vine //edit info actions QAction * selectAllComicsAction; @@ -266,6 +267,7 @@ public: void importLibraryPackage(); void updateComicsView(quint64 libraryId, const ComicDB & comic); void setCurrentComicOpened(); + void showComicVineScraper(); }; #endif