mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
a?adido di?logo "social" falta por implementar la integraci?n con las redes sociales y depurar el aspecto visual
This commit is contained in:
@ -82,5 +82,12 @@
|
||||
<file>../images/deleting_progress/imgBottomMiddle.png</file>
|
||||
<file>../images/deleting_progress/imgBottomRight.png</file>
|
||||
<file>../images/deleting_progress/icon.png</file>
|
||||
<file>../images/social_dialog/close.png</file>
|
||||
<file>../images/social_dialog/facebook.png</file>
|
||||
<file>../images/social_dialog/google+.png</file>
|
||||
<file>../images/social_dialog/icon.png</file>
|
||||
<file>../images/social_dialog/shadow.png</file>
|
||||
<file>../images/social_dialog/twitter.png</file>
|
||||
<file>../images/social_dialog/separator.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
@ -48,6 +48,8 @@
|
||||
|
||||
#include "yacreader_dark_menu.h"
|
||||
#include "yacreader_titled_toolbar.h"
|
||||
|
||||
//#include "yacreader_social_dialog.h"
|
||||
//
|
||||
|
||||
LibraryWindow::LibraryWindow()
|
||||
@ -100,6 +102,9 @@ void LibraryWindow::setupUI()
|
||||
comicView->horizontalHeader()->restoreState(settings->value(COMICS_VIEW_HEADERS).toByteArray());
|
||||
/*if(settings->contains(COMICS_VIEW_HEADERS_GEOMETRY))
|
||||
comicView->horizontalHeader()->restoreGeometry(settings->value(COMICS_VIEW_HEADERS_GEOMETRY).toByteArray());*/
|
||||
|
||||
/*socialDialog = new YACReaderSocialDialog(this);
|
||||
socialDialog->setHidden(true);*/
|
||||
}
|
||||
|
||||
void LibraryWindow::doLayout()
|
||||
@ -413,6 +418,8 @@ void LibraryWindow::createActions()
|
||||
serverConfigAction->setToolTip(tr("Show comics server options dialog"));
|
||||
serverConfigAction->setIcon(QIcon(":/images/server.png"));
|
||||
|
||||
//socialAction = new QAction(this);
|
||||
|
||||
//disable actions
|
||||
disableAllActions();
|
||||
|
||||
@ -554,6 +561,7 @@ void LibraryWindow::createToolBars()
|
||||
#endif
|
||||
libraryToolBar->addAction(optionsAction);
|
||||
libraryToolBar->addAction(helpAboutAction);
|
||||
//libraryToolBar->addAction(socialAction);
|
||||
|
||||
|
||||
libraryToolBar->setMovable(false);
|
||||
@ -700,6 +708,8 @@ void LibraryWindow::createConnections()
|
||||
|
||||
connect(hideComicViewAction, SIGNAL(toggled(bool)),this, SLOT(hideComicFlow(bool)));
|
||||
|
||||
//connect(socialAction,SIGNAL(triggered()),this,SLOT(showSocial()));
|
||||
|
||||
}
|
||||
|
||||
void LibraryWindow::loadLibrary(const QString & name)
|
||||
@ -1460,4 +1470,17 @@ void LibraryWindow::deleteComics()
|
||||
comicFlow->remove(mi.row());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
void LibraryWindow::showSocial()
|
||||
{
|
||||
socialDialog->move(this->mapToGlobal(QPoint(width()-socialDialog->width()-10, centralWidget()->pos().y()+10)));
|
||||
|
||||
QModelIndexList indexList = getSelectedComics();
|
||||
|
||||
ComicDB comic = dmCV->getComic(indexList.at(0));
|
||||
|
||||
socialDialog->setComic(comic,currentPath());
|
||||
socialDialog->setHidden(false);
|
||||
}*/
|
@ -44,6 +44,7 @@ class ImportWidget;
|
||||
class QSettings;
|
||||
class LibraryItem;
|
||||
class YACReaderTableView;
|
||||
//class YACReaderSocialDialog;
|
||||
#include "comic_db.h"
|
||||
|
||||
class LibraryWindow : public QMainWindow
|
||||
@ -63,6 +64,7 @@ private:
|
||||
HelpAboutDialog * had;
|
||||
RenameLibraryDialog * renameLibraryDialog;
|
||||
PropertiesDialog * propertiesDialog;
|
||||
//YACReaderSocialDialog * socialDialog;
|
||||
bool fullscreen;
|
||||
bool importedCovers; //if true, the library is read only (not updates,open comic or properties)
|
||||
bool fromMaximized;
|
||||
@ -120,6 +122,7 @@ private:
|
||||
QAction * toggleFullScreenAction;
|
||||
QAction * optionsAction;
|
||||
QAction * serverConfigAction;
|
||||
//QAction * socialAction;
|
||||
|
||||
//tree actions
|
||||
QAction * setRootIndexAction;
|
||||
@ -235,6 +238,7 @@ public:
|
||||
void manageOpeningLibraryError(const QString & error);
|
||||
QModelIndexList getSelectedComics();
|
||||
void deleteComics();
|
||||
//void showSocial();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user