mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
a?adidos di?logos para la exportaci?n/importaci?n de la informaci?n de los c?mics
(falta por maquetar el di?logo de importaci?n)
This commit is contained in:
parent
2858262a0a
commit
5f89443060
@ -36,7 +36,10 @@ HEADERS += comic_flow.h \
|
|||||||
./db/tableitem.h \
|
./db/tableitem.h \
|
||||||
./db/comic.h \
|
./db/comic.h \
|
||||||
./db/folder.h \
|
./db/folder.h \
|
||||||
./db/library_item.h
|
./db/library_item.h \
|
||||||
|
export_comics_info_dialog.h \
|
||||||
|
import_comics_info_dialog.h
|
||||||
|
|
||||||
SOURCES += comic_flow.cpp \
|
SOURCES += comic_flow.cpp \
|
||||||
create_library_dialog.cpp \
|
create_library_dialog.cpp \
|
||||||
library_creator.cpp \
|
library_creator.cpp \
|
||||||
@ -60,7 +63,9 @@ SOURCES += comic_flow.cpp \
|
|||||||
./db/tableitem.cpp \
|
./db/tableitem.cpp \
|
||||||
./db/comic.cpp \
|
./db/comic.cpp \
|
||||||
./db/folder.cpp \
|
./db/folder.cpp \
|
||||||
./db/library_item.cpp
|
./db/library_item.cpp \
|
||||||
|
export_comics_info_dialog.cpp \
|
||||||
|
import_comics_info_dialog.cpp
|
||||||
|
|
||||||
include(./server/server.pri)
|
include(./server/server.pri)
|
||||||
|
|
||||||
|
@ -81,4 +81,17 @@ bool DataBaseManagement::createTables(QSqlDatabase & database)
|
|||||||
|
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DataBaseManagement::exportComicsInfo(QString source, QString dest)
|
||||||
|
{
|
||||||
|
QSqlDatabase source = loadDatabase(source);
|
||||||
|
QSqlDatabase dest = loadDatabase(dest);
|
||||||
|
|
||||||
|
}
|
||||||
|
void DataBaseManagement::importComicsInfo(QString source, QString dest)
|
||||||
|
{
|
||||||
|
QSqlDatabase source = loadDatabase(source);
|
||||||
|
QSqlDatabase dest = loadDatabase(dest);
|
||||||
|
|
||||||
}
|
}
|
@ -20,6 +20,9 @@ public:
|
|||||||
//carga una base de datos desde la ruta path
|
//carga una base de datos desde la ruta path
|
||||||
static QSqlDatabase loadDatabase(QString path);
|
static QSqlDatabase loadDatabase(QString path);
|
||||||
static bool createTables(QSqlDatabase & database);
|
static bool createTables(QSqlDatabase & database);
|
||||||
|
|
||||||
|
void exportComicsInfo(QString source, QString dest);
|
||||||
|
void importComicsInfo(QString source, QString dest);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -35,5 +35,6 @@
|
|||||||
<file>../images/hideComicFlow.png</file>
|
<file>../images/hideComicFlow.png</file>
|
||||||
<file>../images/exportComicsInfo.png</file>
|
<file>../images/exportComicsInfo.png</file>
|
||||||
<file>../images/importComicsInfo.png</file>
|
<file>../images/importComicsInfo.png</file>
|
||||||
|
<file>../images/db.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@ -171,6 +171,8 @@ void LibraryWindow::doDialogs()
|
|||||||
propertiesDialog = new PropertiesDialog(this);
|
propertiesDialog = new PropertiesDialog(this);
|
||||||
exportLibraryDialog = new ExportLibraryDialog(this);
|
exportLibraryDialog = new ExportLibraryDialog(this);
|
||||||
importLibraryDialog = new ImportLibraryDialog(this);
|
importLibraryDialog = new ImportLibraryDialog(this);
|
||||||
|
exportComicsInfoDialog = new ExportComicsInfoDialog(this);
|
||||||
|
importComicsInfoDialog = new ImportComicsInfoDialog(this);
|
||||||
addLibraryDialog = new AddLibraryDialog(this);
|
addLibraryDialog = new AddLibraryDialog(this);
|
||||||
optionsDialog = new OptionsDialog(this);
|
optionsDialog = new OptionsDialog(this);
|
||||||
optionsDialog->restoreOptions();
|
optionsDialog->restoreOptions();
|
||||||
@ -541,7 +543,10 @@ void LibraryWindow::createConnections()
|
|||||||
connect(setAllAsNonReadAction,SIGNAL(triggered()),this,SLOT(setComicsUnreaded()));
|
connect(setAllAsNonReadAction,SIGNAL(triggered()),this,SLOT(setComicsUnreaded()));
|
||||||
|
|
||||||
connect(showHideMarksAction,SIGNAL(toggled(bool)),comicFlow,SLOT(setShowMarks(bool)));
|
connect(showHideMarksAction,SIGNAL(toggled(bool)),comicFlow,SLOT(setShowMarks(bool)));
|
||||||
|
|
||||||
|
//comicsInfoManagement
|
||||||
|
connect(exportComicsInfo,SIGNAL(triggered()),this,SLOT(showExportComicsInfo()));
|
||||||
|
connect(importComicsInfo,SIGNAL(triggered()),this,SLOT(showImportComicsInfo()));
|
||||||
|
|
||||||
connect(updateLibraryAction,SIGNAL(triggered()),this,SLOT(updateLibrary()));
|
connect(updateLibraryAction,SIGNAL(triggered()),this,SLOT(updateLibrary()));
|
||||||
connect(renameLibraryAction,SIGNAL(triggered()),this,SLOT(renameLibrary()));
|
connect(renameLibraryAction,SIGNAL(triggered()),this,SLOT(renameLibrary()));
|
||||||
@ -1141,4 +1146,14 @@ void LibraryWindow::hideComicFlow(bool hide)
|
|||||||
sVertical->setSizes(sizes);
|
sVertical->setSizes(sizes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void LibraryWindow::showExportComicsInfo()
|
||||||
|
{
|
||||||
|
exportComicsInfoDialog->show();
|
||||||
|
}
|
||||||
|
|
||||||
|
void LibraryWindow::showImportComicsInfo()
|
||||||
|
{
|
||||||
|
importComicsInfoDialog->show();
|
||||||
}
|
}
|
@ -20,6 +20,8 @@
|
|||||||
#include "rename_library_dialog.h"
|
#include "rename_library_dialog.h"
|
||||||
#include "properties_dialog.h"
|
#include "properties_dialog.h"
|
||||||
#include "options_dialog.h"
|
#include "options_dialog.h"
|
||||||
|
#include "export_comics_info_dialog.h"
|
||||||
|
#include "import_comics_info_dialog.h"
|
||||||
#include "export_library_dialog.h"
|
#include "export_library_dialog.h"
|
||||||
#include "import_library_dialog.h"
|
#include "import_library_dialog.h"
|
||||||
#include "package_manager.h"
|
#include "package_manager.h"
|
||||||
@ -37,6 +39,8 @@ private:
|
|||||||
UpdateLibraryDialog * updateLibraryDialog;
|
UpdateLibraryDialog * updateLibraryDialog;
|
||||||
ExportLibraryDialog * exportLibraryDialog;
|
ExportLibraryDialog * exportLibraryDialog;
|
||||||
ImportLibraryDialog * importLibraryDialog;
|
ImportLibraryDialog * importLibraryDialog;
|
||||||
|
ExportComicsInfoDialog * exportComicsInfoDialog;
|
||||||
|
ImportComicsInfoDialog * importComicsInfoDialog;
|
||||||
AddLibraryDialog * addLibraryDialog;
|
AddLibraryDialog * addLibraryDialog;
|
||||||
LibraryCreator * libraryCreator;
|
LibraryCreator * libraryCreator;
|
||||||
HelpAboutDialog * had;
|
HelpAboutDialog * had;
|
||||||
@ -186,6 +190,8 @@ public:
|
|||||||
void setComicsUnreaded();
|
void setComicsUnreaded();
|
||||||
void searchInFiles(int);
|
void searchInFiles(int);
|
||||||
void hideComicFlow(bool hide);
|
void hideComicFlow(bool hide);
|
||||||
|
void showExportComicsInfo();
|
||||||
|
void showImportComicsInfo();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -237,7 +237,7 @@ void PropertiesDialog::setComics(QList<Comic> comics)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Comic comic = comics.at(0);
|
Comic comic = comics.at(0);
|
||||||
title->setText(comic.name);
|
title->setText(comic.info.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
images/db.png
Normal file
BIN
images/db.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
images/exportComicsInfo.png
Normal file
BIN
images/exportComicsInfo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
images/importComicsInfo.png
Normal file
BIN
images/importComicsInfo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Reference in New Issue
Block a user