added get info (comic vine) button

This commit is contained in:
Luis Ángel San Martín 2013-09-02 16:17:40 +02:00
parent 6c4ad3f5f9
commit 5cb2080387
3 changed files with 22 additions and 10 deletions

View File

@ -23,9 +23,9 @@
<file>../images/open.png</file> <file>../images/open.png</file>
<file>../images/coversPackage.png</file> <file>../images/coversPackage.png</file>
<file>../images/setRead.png</file> <file>../images/setRead.png</file>
<file>../images/setAllRead.png</file> <!--<file>../images/setAllRead.png</file>-->
<file>../images/setUnread.png</file> <file>../images/setUnread.png</file>
<file>../images/setAllUnread.png</file> <!--<file>../images/setAllUnread.png</file>-->
<file>../images/showMarks.png</file> <file>../images/showMarks.png</file>
<file>../images/editComic.png</file> <file>../images/editComic.png</file>
<file>../images/selectAll.png</file> <file>../images/selectAll.png</file>
@ -87,12 +87,7 @@
<file>../images/collapsed_branch_selected.png</file> <file>../images/collapsed_branch_selected.png</file>
<file>../images/previousCoverPage.png</file> <file>../images/previousCoverPage.png</file>
<file>../images/nextCoverPage.png</file> <file>../images/nextCoverPage.png</file>
<file>../images/rating0.png</file> <file>../images/getInfo.png</file>
<file>../images/rating1.png</file>
<file>../images/rating2.png</file>
<file>../images/rating3.png</file>
<file>../images/rating4.png</file>
<file>../images/rating5.png</file>
<!--<file>../images/busy_background.png</file>--> <!--<file>../images/busy_background.png</file>-->
</qresource> </qresource>
</RCC> </RCC>

View File

@ -463,6 +463,10 @@ void LibraryWindow::createActions()
hideComicViewAction->setIcon(QIcon(":/images/hideComicFlow.png")); hideComicViewAction->setIcon(QIcon(":/images/hideComicFlow.png"));
hideComicViewAction->setCheckable(true); hideComicViewAction->setCheckable(true);
hideComicViewAction->setChecked(false); hideComicViewAction->setChecked(false);
getInfoAction = new QAction(this);
getInfoAction->setText(tr("Download tags from Comic Vine"));
getInfoAction->setIcon(QIcon(":/images/getInfo.png"));
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
//disable actions //disable actions
disableAllActions(); disableAllActions();
@ -484,6 +488,7 @@ void LibraryWindow::disableComicsActions(bool disabled)
deleteComicsAction->setDisabled(disabled); deleteComicsAction->setDisabled(disabled);
//context menu //context menu
openContainingFolderComicAction->setDisabled(disabled); openContainingFolderComicAction->setDisabled(disabled);
getInfoAction->setDisabled(disabled);
} }
@ -566,12 +571,15 @@ void LibraryWindow::createToolBars()
editInfoToolBar->addAction(openComicAction); editInfoToolBar->addAction(openComicAction);
editInfoToolBar->addSeparator(); editInfoToolBar->addSeparator();
editInfoToolBar->addAction(editSelectedComicsAction); editInfoToolBar->addAction(editSelectedComicsAction);
editInfoToolBar->addAction(selectAllComicsAction); editInfoToolBar->addAction(getInfoAction);
editInfoToolBar->addSeparator();
editInfoToolBar->addAction(asignOrderActions); editInfoToolBar->addAction(asignOrderActions);
editInfoToolBar->addSeparator(); editInfoToolBar->addSeparator();
editInfoToolBar->addAction(selectAllComicsAction);
editInfoToolBar->addSeparator();
editInfoToolBar->addAction(setAsReadAction); editInfoToolBar->addAction(setAsReadAction);
//editInfoToolBar->addAction(setAllAsReadAction); //editInfoToolBar->addAction(setAllAsReadAction);
editInfoToolBar->addAction(setAsNonReadAction); editInfoToolBar->addAction(setAsNonReadAction);
@ -732,6 +740,8 @@ void LibraryWindow::createConnections()
connect(hideComicViewAction, SIGNAL(toggled(bool)),this, SLOT(hideComicFlow(bool))); connect(hideComicViewAction, SIGNAL(toggled(bool)),this, SLOT(hideComicFlow(bool)));
connect(getInfoAction,SIGNAL(triggered()),this,SLOT(showComicVineScraper()));
//connect(socialAction,SIGNAL(triggered()),this,SLOT(showSocial())); //connect(socialAction,SIGNAL(triggered()),this,SLOT(showSocial()));
} }
@ -1403,6 +1413,11 @@ void LibraryWindow::showProperties()
propertiesDialog->show(); propertiesDialog->show();
} }
void LibraryWindow::showComicVineScraper()
{
}
void LibraryWindow::asignNumbers() void LibraryWindow::asignNumbers()
{ {
QModelIndexList indexList = getSelectedComics(); QModelIndexList indexList = getSelectedComics();

View File

@ -141,6 +141,7 @@ private:
//QAction * setAllAsReadAction; //QAction * setAllAsReadAction;
//QAction * setAllAsNonReadAction; //QAction * setAllAsNonReadAction;
QAction * showHideMarksAction; QAction * showHideMarksAction;
QAction * getInfoAction; //comic vine
//edit info actions //edit info actions
QAction * selectAllComicsAction; QAction * selectAllComicsAction;
@ -266,6 +267,7 @@ public:
void importLibraryPackage(); void importLibraryPackage();
void updateComicsView(quint64 libraryId, const ComicDB & comic); void updateComicsView(quint64 libraryId, const ComicDB & comic);
void setCurrentComicOpened(); void setCurrentComicOpened();
void showComicVineScraper();
}; };
#endif #endif