From 2858262a0aa8de7f6545cd619ae691d6e7ed2f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 18 Jun 2012 23:25:42 +0200 Subject: [PATCH] a?adidas las acciones para exportar e importar la informaci?n de los c?mics --- YACReaderLibrary/images.qrc | 2 ++ YACReaderLibrary/library_window.cpp | 22 +++++++++++++++++++--- YACReaderLibrary/library_window.h | 5 +++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/YACReaderLibrary/images.qrc b/YACReaderLibrary/images.qrc index 3a7313cb..43bd801d 100644 --- a/YACReaderLibrary/images.qrc +++ b/YACReaderLibrary/images.qrc @@ -33,5 +33,7 @@ ../images/editComic.png ../images/selectAll.png ../images/hideComicFlow.png + ../images/exportComicsInfo.png + ../images/importComicsInfo.png diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index f92907c3..f98b5aff 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -217,11 +217,19 @@ void LibraryWindow::createActions() openLibraryAction->setShortcut(Qt::Key_O); openLibraryAction->setIcon(QIcon(":/images/openLibrary.png")); - exportLibraryAction = new QAction(this); + exportComicsInfo = new QAction(tr("Export comics info"),this); + exportComicsInfo->setToolTip(tr("Export comics info")); + exportComicsInfo->setIcon(QIcon(":/images/exportComicsInfo.png")); + + importComicsInfo = new QAction(tr("Import comics info"),this); + importComicsInfo->setToolTip(tr("Import comics info")); + importComicsInfo->setIcon(QIcon(":/images/importComicsInfo.png")); + + exportLibraryAction = new QAction(tr("Pack covers"),this); exportLibraryAction->setToolTip(tr("Pack the covers of the selected library")); exportLibraryAction->setIcon(QIcon(":/images/exportLibrary.png")); - importLibraryAction = new QAction(this); + importLibraryAction = new QAction(tr("Unpack covers"),this); importLibraryAction->setToolTip(tr("Unpack a catalog")); importLibraryAction->setIcon(QIcon(":/images/importLibrary.png")); @@ -410,8 +418,16 @@ void LibraryWindow::createToolBars() libraryToolBar->setIconSize(QSize(32,32)); //TODO make icon size dynamic libraryToolBar->addAction(createLibraryAction); libraryToolBar->addAction(openLibraryAction); - libraryToolBar->addAction(exportLibraryAction); + + libraryToolBar->addSeparator(); + + libraryToolBar->addAction(exportComicsInfo); + libraryToolBar->addAction(importComicsInfo); + + libraryToolBar->addSeparator(); + libraryToolBar->addAction(importLibraryAction); + libraryToolBar->addAction(exportLibraryAction); libraryToolBar->addSeparator(); libraryToolBar->addAction(updateLibraryAction); diff --git a/YACReaderLibrary/library_window.h b/YACReaderLibrary/library_window.h index c28c7859..25a47d4a 100644 --- a/YACReaderLibrary/library_window.h +++ b/YACReaderLibrary/library_window.h @@ -79,8 +79,13 @@ private: QAction * showPropertiesAction; QAction * createLibraryAction; QAction * openLibraryAction; + + QAction * exportComicsInfo; + QAction * importComicsInfo; + QAction * exportLibraryAction; QAction * importLibraryAction; + QAction * updateLibraryAction; QAction * deleteLibraryAction; QAction * removeLibraryAction;