From 2de876f5a912b710c24a619b1c5d6c3e83b900c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 5 Sep 2013 11:52:18 +0200 Subject: [PATCH] added comic vine dialog (empty) --- YACReaderLibrary/comic_vine_dialog.cpp | 6 +++++- YACReaderLibrary/comic_vine_dialog.h | 10 +++++----- YACReaderLibrary/library_window.cpp | 5 ++++- YACReaderLibrary/library_window.h | 2 ++ 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/YACReaderLibrary/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine_dialog.cpp index 5c98e5bc..a824d7c1 100644 --- a/YACReaderLibrary/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine_dialog.cpp @@ -1,6 +1,10 @@ #include "comic_vine_dialog.h" ComicVineDialog::ComicVineDialog(QWidget *parent) : - QDialog(parent) + QDialog(parent) { + setStyleSheet("" + "QDialog {background-color: #404040; }" + ""); + setFixedSize(672,529); } diff --git a/YACReaderLibrary/comic_vine_dialog.h b/YACReaderLibrary/comic_vine_dialog.h index fce833e7..48208243 100644 --- a/YACReaderLibrary/comic_vine_dialog.h +++ b/YACReaderLibrary/comic_vine_dialog.h @@ -5,14 +5,14 @@ class ComicVineDialog : public QDialog { - Q_OBJECT + Q_OBJECT public: - explicit ComicVineDialog(QWidget *parent = 0); - + explicit ComicVineDialog(QWidget *parent = 0); + signals: - + public slots: - + }; #endif // COMIC_VINE_DIALOG_H diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 8e4e5594..c5b79af3 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -55,6 +55,8 @@ #include "comics_remover.h" #include "yacreader_library_list_widget.h" #include "yacreader_treeview.h" + +#include "comic_vine_dialog.h" //#include "yacreader_social_dialog.h" // @@ -261,6 +263,7 @@ void LibraryWindow::doDialogs() createLibraryDialog = new CreateLibraryDialog(this); renameLibraryDialog = new RenameLibraryDialog(this); propertiesDialog = new PropertiesDialog(this); + comicVineDialog = new ComicVineDialog(this); exportLibraryDialog = new ExportLibraryDialog(this); importLibraryDialog = new ImportLibraryDialog(this); exportComicsInfoDialog = new ExportComicsInfoDialog(this); @@ -1415,7 +1418,7 @@ void LibraryWindow::showProperties() void LibraryWindow::showComicVineScraper() { - + comicVineDialog->show(); } void LibraryWindow::asignNumbers() diff --git a/YACReaderLibrary/library_window.h b/YACReaderLibrary/library_window.h index 5372530c..e5e4ec91 100644 --- a/YACReaderLibrary/library_window.h +++ b/YACReaderLibrary/library_window.h @@ -48,6 +48,7 @@ class YACReaderSideBar; class YACReaderLibraryListWidget; class YACReaderTreeView; class YACReaderMainToolBar; +class ComicVineDialog; #include "comic_db.h" using namespace YACReader; @@ -68,6 +69,7 @@ private: HelpAboutDialog * had; RenameLibraryDialog * renameLibraryDialog; PropertiesDialog * propertiesDialog; + ComicVineDialog * comicVineDialog; //YACReaderSocialDialog * socialDialog; bool fullscreen; bool importedCovers; //if true, the library is read only (not updates,open comic or properties)