mirror of
https://github.com/YACReader/yacreader
synced 2025-07-24 07:55:02 -04:00
fixed spaces/tabs mix
This commit is contained in:
@ -17,21 +17,21 @@ public:
|
||||
Bookmark():lastPage(0){};
|
||||
friend QDataStream & operator<< ( QDataStream & out, const Bookmark & bm )
|
||||
{
|
||||
out << bm.lastPage;
|
||||
out << bm.bookmarks;
|
||||
out << bm.added;
|
||||
return out;
|
||||
}
|
||||
out << bm.lastPage;
|
||||
out << bm.bookmarks;
|
||||
out << bm.added;
|
||||
return out;
|
||||
}
|
||||
friend QDataStream & operator>> ( QDataStream & in, Bookmark & bm )
|
||||
{
|
||||
in >> bm.lastPage;
|
||||
in >> bm.bookmarks;
|
||||
in >> bm.added;
|
||||
return in;
|
||||
}
|
||||
in >> bm.lastPage;
|
||||
in >> bm.bookmarks;
|
||||
in >> bm.added;
|
||||
return in;
|
||||
}
|
||||
|
||||
};
|
||||
BookmarksList():numMaxBookmarks(400){}
|
||||
BookmarksList():numMaxBookmarks(400){}
|
||||
void load();
|
||||
void save();
|
||||
void add(const QString & comicID, const Bookmark & b);
|
||||
@ -46,32 +46,32 @@ private:
|
||||
|
||||
class Bookmarks : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
QString comicPath;
|
||||
//bookmarks setted by the user
|
||||
QMap<int,QImage> bookmarks;
|
||||
QList<int> latestBookmarks;
|
||||
//last page readed
|
||||
int lastPageIndex;
|
||||
QImage lastPage;
|
||||
BookmarksList list;
|
||||
protected:
|
||||
QString comicPath;
|
||||
//bookmarks setted by the user
|
||||
QMap<int,QImage> bookmarks;
|
||||
QList<int> latestBookmarks;
|
||||
//last page readed
|
||||
int lastPageIndex;
|
||||
QImage lastPage;
|
||||
BookmarksList list;
|
||||
QDateTime added;
|
||||
|
||||
public:
|
||||
Bookmarks();
|
||||
void setLastPage(int index,const QImage & page);
|
||||
void setBookmark(int index,const QImage & page);
|
||||
void removeBookmark(int index);
|
||||
QList<int> getBookmarkPages() const;
|
||||
QImage getBookmarkPixmap(int page) const;
|
||||
QImage getLastPagePixmap() const;
|
||||
int getLastPage() const;
|
||||
bool isBookmark(int page);
|
||||
bool imageLoaded(int page);
|
||||
void newComic(const QString & path);
|
||||
void clear();
|
||||
public:
|
||||
Bookmarks();
|
||||
void setLastPage(int index,const QImage & page);
|
||||
void setBookmark(int index,const QImage & page);
|
||||
void removeBookmark(int index);
|
||||
QList<int> getBookmarkPages() const;
|
||||
QImage getBookmarkPixmap(int page) const;
|
||||
QImage getLastPagePixmap() const;
|
||||
int getLastPage() const;
|
||||
bool isBookmark(int page);
|
||||
bool imageLoaded(int page);
|
||||
void newComic(const QString & path);
|
||||
void clear();
|
||||
void save();
|
||||
bool load(const QList<int> & bookmarkIndexes, int lastPage);
|
||||
|
||||
|
@ -10,17 +10,17 @@
|
||||
#include "bookmarks.h"
|
||||
|
||||
BookmarksDialog::BookmarksDialog(QWidget * parent)
|
||||
:QDialog(parent)
|
||||
:QDialog(parent)
|
||||
{
|
||||
setModal(true);
|
||||
setModal(true);
|
||||
|
||||
//animation = new QPropertyAnimation(this,"windowOpacity");
|
||||
//animation->setDuration(150);
|
||||
|
||||
QHBoxLayout * layout = new QHBoxLayout();
|
||||
QHBoxLayout * layout = new QHBoxLayout();
|
||||
|
||||
//bookmarks
|
||||
QGridLayout * bookmarksL = new QGridLayout();
|
||||
//bookmarks
|
||||
QGridLayout * bookmarksL = new QGridLayout();
|
||||
|
||||
pages.push_back(new QLabel(tr("Lastest Page")));
|
||||
for(int i=0;i<3;i++)
|
||||
@ -35,10 +35,10 @@ BookmarksDialog::BookmarksDialog(QWidget * parent)
|
||||
|
||||
int heightDesktopResolution = QApplication::desktop()->screenGeometry().height();
|
||||
int height,width;
|
||||
height = heightDesktopResolution*0.50;
|
||||
width = height*0.65;
|
||||
height = heightDesktopResolution*0.50;
|
||||
width = height*0.65;
|
||||
|
||||
coverSize = QSize(width,height);
|
||||
coverSize = QSize(width,height);
|
||||
|
||||
for(int i=0;i<4;i++)
|
||||
{
|
||||
@ -57,32 +57,32 @@ BookmarksDialog::BookmarksDialog(QWidget * parent)
|
||||
bookmarksL->addWidget(images.at(i+1),1,i,Qt::AlignCenter);
|
||||
|
||||
|
||||
//last page
|
||||
QGridLayout * lp = new QGridLayout();
|
||||
lp->addWidget(pages.at(0),0,0,Qt::AlignCenter);
|
||||
lp->addWidget(images.at(0),1,0,Qt::AlignCenter);
|
||||
//last page
|
||||
QGridLayout * lp = new QGridLayout();
|
||||
lp->addWidget(pages.at(0),0,0,Qt::AlignCenter);
|
||||
lp->addWidget(images.at(0),1,0,Qt::AlignCenter);
|
||||
|
||||
layout->addLayout(bookmarksL);
|
||||
QFrame *f = new QFrame( this );
|
||||
f->setFrameStyle( QFrame::VLine | QFrame::Sunken );
|
||||
layout->addWidget(f);
|
||||
layout->addLayout(lp);
|
||||
layout->addLayout(bookmarksL);
|
||||
QFrame *f = new QFrame( this );
|
||||
f->setFrameStyle( QFrame::VLine | QFrame::Sunken );
|
||||
layout->addWidget(f);
|
||||
layout->addLayout(lp);
|
||||
|
||||
QHBoxLayout * buttons = new QHBoxLayout();
|
||||
QHBoxLayout * buttons = new QHBoxLayout();
|
||||
|
||||
cancel = new QPushButton(tr("Close"));
|
||||
//cancel->setFlat(true);
|
||||
connect(cancel,SIGNAL(clicked()),this,SLOT(hide()));
|
||||
buttons->addStretch();
|
||||
buttons->addWidget(cancel);
|
||||
cancel = new QPushButton(tr("Close"));
|
||||
//cancel->setFlat(true);
|
||||
connect(cancel,SIGNAL(clicked()),this,SLOT(hide()));
|
||||
buttons->addStretch();
|
||||
buttons->addWidget(cancel);
|
||||
|
||||
cancel->setStyleSheet("QPushButton {color:white; border:1px solid #BBBBBB; padding:3px 5px 3px 5px;}");
|
||||
|
||||
QVBoxLayout * l = new QVBoxLayout();
|
||||
QVBoxLayout * l = new QVBoxLayout();
|
||||
|
||||
l->addWidget(new QLabel("<font color=\"#FFFFFF\">"+tr("Click on any image to go to the bookmark")+"</font>"),0,Qt::AlignCenter);
|
||||
l->addLayout(layout);
|
||||
//l->addLayout(buttons);
|
||||
l->addLayout(layout);
|
||||
//l->addLayout(buttons);
|
||||
|
||||
QPalette Pal(palette());
|
||||
// set black background
|
||||
@ -95,9 +95,9 @@ BookmarksDialog::BookmarksDialog(QWidget * parent)
|
||||
|
||||
void BookmarksDialog::setBookmarks(const Bookmarks & bm)
|
||||
{
|
||||
lastPage = bm.getLastPage();
|
||||
if (lastPage > 0)
|
||||
{
|
||||
lastPage = bm.getLastPage();
|
||||
if (lastPage > 0)
|
||||
{
|
||||
QPixmap p = QPixmap::fromImage(bm.getLastPagePixmap());
|
||||
if(p.isNull())
|
||||
{
|
||||
@ -109,16 +109,16 @@ void BookmarksDialog::setBookmarks(const Bookmarks & bm)
|
||||
images.at(0)->setAlignment(Qt::AlignHCenter|Qt::AlignBottom);
|
||||
images.at(0)->setPixmap(p.scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
images.at(0)->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
images.at(0)->setPixmap(QPixmap(":/images/notCover.png").scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
images.at(0)->setPixmap(QPixmap(":/images/notCover.png").scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
|
||||
}
|
||||
|
||||
QList<int> l = bm.getBookmarkPages();
|
||||
int s = l.count();
|
||||
QList<int> l = bm.getBookmarkPages();
|
||||
int s = l.count();
|
||||
for(int i=0;i<s;i++)
|
||||
{
|
||||
pages.at(i+1)->setText(QString::number(l.at(i)+1));
|
||||
@ -138,7 +138,7 @@ void BookmarksDialog::setBookmarks(const Bookmarks & bm)
|
||||
{
|
||||
pages.at(i+1)->setText("-");
|
||||
images.at(i+1)->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
images.at(i+1)->setPixmap(QPixmap(":/images/notCover.png").scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
images.at(i+1)->setPixmap(QPixmap(":/images/notCover.png").scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,35 +11,35 @@
|
||||
|
||||
#include "bookmarks.h"
|
||||
|
||||
class BookmarksDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
class BookmarksDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
protected:
|
||||
QList<QLabel *> pages;
|
||||
QList<QLabel *> images;
|
||||
|
||||
int lastPage;
|
||||
|
||||
QPushButton * accept;
|
||||
QPushButton * cancel;
|
||||
QPushButton * accept;
|
||||
QPushButton * cancel;
|
||||
|
||||
QSize coverSize;
|
||||
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
void keyPressEvent(QKeyEvent * event);
|
||||
//QPropertyAnimation * animation;
|
||||
|
||||
public:
|
||||
BookmarksDialog(QWidget * parent = 0);
|
||||
public:
|
||||
BookmarksDialog(QWidget * parent = 0);
|
||||
|
||||
public slots:
|
||||
void setBookmarks(const Bookmarks & bookmarks);
|
||||
void setBookmarks(const Bookmarks & bookmarks);
|
||||
//void show();
|
||||
//void hide();
|
||||
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
};
|
||||
void goToPage(unsigned int page);
|
||||
};
|
||||
|
||||
#endif // BOOKMARKS_DIALOG_H
|
||||
|
@ -66,7 +66,7 @@ void Configuration::load(const QString & path)
|
||||
//gotoSlideSize = QSize(220,350); //huge
|
||||
zoomLevel = 0.5;
|
||||
adjustToWidth = true;
|
||||
flowType = Strip;
|
||||
flowType = Strip;
|
||||
fullScreen = false;
|
||||
fitToWidthRatio = 1;
|
||||
windowSize = QSize(0,0);
|
||||
@ -107,7 +107,7 @@ void Configuration::load(const QString & path)
|
||||
if(name==SLIDE_SIZE)
|
||||
{
|
||||
int height = line.toInt();
|
||||
gotoSlideSize = QSize(static_cast<int>(height/SLIDE_ASPECT_RATIO),height);
|
||||
gotoSlideSize = QSize(static_cast<int>(height/SLIDE_ASPECT_RATIO),height);
|
||||
}
|
||||
else
|
||||
if(name==FIT)
|
||||
@ -161,13 +161,13 @@ void Configuration::load(const QString & path)
|
||||
|
||||
void Configuration::save()
|
||||
{
|
||||
QFile f(QCoreApplication::applicationDirPath()+"/YACReader.conf");
|
||||
if(!f.open(QIODevice::WriteOnly))
|
||||
{
|
||||
QMessageBox::critical(NULL,tr("Saving config file...."),tr("There was a problem saving YACReader configuration. Please, check if you have enough permissions in the YACReader root folder."));
|
||||
}
|
||||
else
|
||||
{
|
||||
QFile f(QCoreApplication::applicationDirPath()+"/YACReader.conf");
|
||||
if(!f.open(QIODevice::WriteOnly))
|
||||
{
|
||||
QMessageBox::critical(NULL,tr("Saving config file...."),tr("There was a problem saving YACReader configuration. Please, check if you have enough permissions in the YACReader root folder."));
|
||||
}
|
||||
else
|
||||
{
|
||||
QTextStream txtS(&f);
|
||||
|
||||
txtS << PATH << "\n";
|
||||
@ -214,5 +214,5 @@ void Configuration::save()
|
||||
|
||||
txtS << ALWAYS_ON_TOP << "\n";
|
||||
txtS << (int)alwaysOnTop << "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,12 +26,6 @@
|
||||
#include "goto_flow_toolbar.h"
|
||||
#include "goto_flow_decorationbar.h"
|
||||
|
||||
/*#define WIDTH 126
|
||||
#define HEIGHT 200*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
GoToFlow::GoToFlow(QWidget *parent,FlowType flowType)
|
||||
:GoToFlowWidget(parent),ready(false)
|
||||
|
@ -155,39 +155,39 @@ void MagnifyingGlass::updateImage()
|
||||
}
|
||||
void MagnifyingGlass::wheelEvent(QWheelEvent * event)
|
||||
{
|
||||
switch(event->modifiers())
|
||||
{
|
||||
switch(event->modifiers())
|
||||
{
|
||||
//size
|
||||
case Qt::NoModifier:
|
||||
if(event->delta()<0)
|
||||
if(event->delta()<0)
|
||||
sizeUp();
|
||||
else
|
||||
else
|
||||
sizeDown();
|
||||
break;
|
||||
//size height
|
||||
case Qt::ControlModifier:
|
||||
if(event->delta()<0)
|
||||
if(event->delta()<0)
|
||||
heightUp();
|
||||
else
|
||||
else
|
||||
heightDown();
|
||||
break;
|
||||
//size width
|
||||
case Qt::AltModifier:
|
||||
if(event->delta()<0)
|
||||
if(event->delta()<0)
|
||||
widthUp();
|
||||
else
|
||||
else
|
||||
widthDown();
|
||||
break;
|
||||
//zoom level
|
||||
case Qt::ShiftModifier:
|
||||
if(event->delta()<0)
|
||||
if(event->delta()<0)
|
||||
zoomIn();
|
||||
else
|
||||
else
|
||||
zoomOut();
|
||||
break;
|
||||
}
|
||||
updateImage();
|
||||
event->setAccepted(true);
|
||||
}
|
||||
updateImage();
|
||||
event->setAccepted(true);
|
||||
}
|
||||
void MagnifyingGlass::zoomIn()
|
||||
{
|
||||
@ -216,28 +216,28 @@ void MagnifyingGlass::sizeDown()
|
||||
|
||||
void MagnifyingGlass::heightUp()
|
||||
{
|
||||
Viewer * p = (Viewer *)parent();
|
||||
if(height()<(p->height()*0.90))
|
||||
resize(width(),height()+15);
|
||||
Viewer * p = (Viewer *)parent();
|
||||
if(height()<(p->height()*0.90))
|
||||
resize(width(),height()+15);
|
||||
}
|
||||
|
||||
void MagnifyingGlass::heightDown()
|
||||
{
|
||||
if(height()>80)
|
||||
resize(width(),height()-15);
|
||||
if(height()>80)
|
||||
resize(width(),height()-15);
|
||||
}
|
||||
|
||||
void MagnifyingGlass::widthUp()
|
||||
{
|
||||
Viewer * p = (Viewer *)parent();
|
||||
if(width()<(p->width()*0.90))
|
||||
resize(width()+30,height());
|
||||
Viewer * p = (Viewer *)parent();
|
||||
if(width()<(p->width()*0.90))
|
||||
resize(width()+30,height());
|
||||
}
|
||||
|
||||
void MagnifyingGlass::widthDown()
|
||||
{
|
||||
if(width()>175)
|
||||
resize(width()-30,height());
|
||||
if(width()>175)
|
||||
resize(width()-30,height());
|
||||
}
|
||||
|
||||
void MagnifyingGlass::keyPressEvent(QKeyEvent *event)
|
||||
|
@ -15,17 +15,17 @@
|
||||
|
||||
|
||||
#if defined(WIN32) && defined(_DEBUG)
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
#define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )
|
||||
#define new DEBUG_NEW
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
#define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
|
||||
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
|
||||
#endif
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
@ -21,7 +21,7 @@ public:
|
||||
NotificationsLabelWidget(QWidget * parent);
|
||||
|
||||
public slots:
|
||||
void flash();
|
||||
void flash();
|
||||
void setText(const QString & text);
|
||||
void updatePosition();
|
||||
};
|
||||
|
@ -44,13 +44,13 @@ PageLabelWidget::PageLabelWidget(QWidget * parent)
|
||||
move(QPoint((parent->geometry().size().width()-this->width()),-this->height()));
|
||||
/*QSize size = textLabel->sizeHint();
|
||||
|
||||
int w = width(); // returns screen width
|
||||
int h = height(); // returns screen height
|
||||
int mw = size.width();
|
||||
int mh = size.height();
|
||||
int cw = (w-mw)/2;
|
||||
int ch = 0;
|
||||
textLabel->move(cw,ch);*/
|
||||
int w = width(); // returns screen width
|
||||
int h = height(); // returns screen height
|
||||
int mw = size.width();
|
||||
int mh = size.height();
|
||||
int cw = (w-mw)/2;
|
||||
int ch = 0;
|
||||
textLabel->move(cw,ch);*/
|
||||
}
|
||||
|
||||
void PageLabelWidget::show()
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
PageLabelWidget(QWidget * parent);
|
||||
|
||||
public slots:
|
||||
void show();
|
||||
void show();
|
||||
void hide();
|
||||
void setText(const QString & text);
|
||||
void updatePosition();
|
||||
|
@ -9,59 +9,59 @@
|
||||
#include <QTextCodec>
|
||||
|
||||
ShortcutsDialog::ShortcutsDialog(QWidget * parent)
|
||||
:QDialog(parent)//,Qt::FramelessWindowHint)
|
||||
:QDialog(parent)//,Qt::FramelessWindowHint)
|
||||
{
|
||||
setModal(true);
|
||||
setWindowIcon(QIcon(":/images/shortcuts.png"));
|
||||
setWindowTitle(tr("YACReader keyboard shortcuts"));
|
||||
setModal(true);
|
||||
setWindowIcon(QIcon(":/images/shortcuts.png"));
|
||||
setWindowTitle(tr("YACReader keyboard shortcuts"));
|
||||
|
||||
QVBoxLayout * mainLayout = new QVBoxLayout;
|
||||
QVBoxLayout * mainLayout = new QVBoxLayout;
|
||||
|
||||
close = new QPushButton(tr("Close"));
|
||||
connect(close,SIGNAL(clicked()),this,SLOT(close()));
|
||||
close = new QPushButton(tr("Close"));
|
||||
connect(close,SIGNAL(clicked()),this,SLOT(close()));
|
||||
|
||||
QHBoxLayout *bottomLayout = new QHBoxLayout;
|
||||
bottomLayout->addStretch();
|
||||
bottomLayout->addWidget(close);
|
||||
QHBoxLayout *bottomLayout = new QHBoxLayout;
|
||||
bottomLayout->addStretch();
|
||||
bottomLayout->addWidget(close);
|
||||
|
||||
QHBoxLayout * shortcutsLayout = new QHBoxLayout;
|
||||
|
||||
shortcuts = new QTextEdit();
|
||||
shortcuts = new QTextEdit();
|
||||
shortcuts->setFrameStyle(QFrame::NoFrame);
|
||||
|
||||
//"<p><b>General functions:</b><hr/><b>O</b> : Open comic<br/><b>Esc</b> : Exit</p>"
|
||||
shortcuts->setReadOnly(true);
|
||||
shortcutsLayout->addWidget(shortcuts);
|
||||
//"<p><b>General functions:</b><hr/><b>O</b> : Open comic<br/><b>Esc</b> : Exit</p>"
|
||||
shortcuts->setReadOnly(true);
|
||||
shortcutsLayout->addWidget(shortcuts);
|
||||
//shortcutsLayout->addWidget(shortcuts2);
|
||||
shortcutsLayout->setSpacing(0);
|
||||
mainLayout->addLayout(shortcutsLayout);
|
||||
mainLayout->addLayout(bottomLayout);
|
||||
mainLayout->addLayout(bottomLayout);
|
||||
|
||||
QHBoxLayout *imgMainLayout = new QHBoxLayout;
|
||||
QLabel * imgLabel = new QLabel();
|
||||
QPixmap p(":/images/shortcuts.png");
|
||||
imgLabel->setPixmap(p);
|
||||
QHBoxLayout *imgMainLayout = new QHBoxLayout;
|
||||
QLabel * imgLabel = new QLabel();
|
||||
QPixmap p(":/images/shortcuts.png");
|
||||
imgLabel->setPixmap(p);
|
||||
|
||||
QVBoxLayout * imgLayout = new QVBoxLayout;
|
||||
QVBoxLayout * imgLayout = new QVBoxLayout;
|
||||
imgLayout->addWidget(imgLabel);
|
||||
imgLayout->addStretch();
|
||||
imgLayout->addStretch();
|
||||
|
||||
imgMainLayout->addLayout(imgLayout);
|
||||
imgMainLayout->addLayout(mainLayout);
|
||||
imgMainLayout->addLayout(imgLayout);
|
||||
imgMainLayout->addLayout(mainLayout);
|
||||
|
||||
setLayout(imgMainLayout);
|
||||
setLayout(imgMainLayout);
|
||||
|
||||
setFixedSize(QSize(700,500));
|
||||
setFixedSize(QSize(700,500));
|
||||
|
||||
QFile f(":/files/shortcuts.html");
|
||||
f.open(QIODevice::ReadOnly);
|
||||
QTextStream txtS(&f);
|
||||
QFile f(":/files/shortcuts.html");
|
||||
f.open(QIODevice::ReadOnly);
|
||||
QTextStream txtS(&f);
|
||||
txtS.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
QString content = txtS.readAll();
|
||||
QString content = txtS.readAll();
|
||||
|
||||
f.close();
|
||||
f.close();
|
||||
|
||||
shortcuts->setHtml(content);
|
||||
shortcuts->setHtml(content);
|
||||
|
||||
setWindowTitle(tr("Keyboard Shortcuts"));
|
||||
}
|
||||
|
@ -31,10 +31,10 @@ YACReaderTranslator::YACReaderTranslator(QWidget * parent)
|
||||
:QWidget(parent),drag(false)
|
||||
{
|
||||
QString scrollBarStyle = "QScrollBar:vertical { border: none; background: #404040; width: 7px; margin: 0 3px 0 0; }"
|
||||
"QScrollBar::handle:vertical { background: #DDDDDD; width: 7px; min-height: 20px; }"
|
||||
"QScrollBar::add-line:vertical { border: none; background: #404040; height: 10px; subcontrol-position: bottom; subcontrol-origin: margin; margin: 0 3px 0 0;}"
|
||||
"QScrollBar::handle:vertical { background: #DDDDDD; width: 7px; min-height: 20px; }"
|
||||
"QScrollBar::add-line:vertical { border: none; background: #404040; height: 10px; subcontrol-position: bottom; subcontrol-origin: margin; margin: 0 3px 0 0;}"
|
||||
|
||||
"QScrollBar::sub-line:vertical { border: none; background: #404040; height: 10px; subcontrol-position: top; subcontrol-origin: margin; margin: 0 3px 0 0;}"
|
||||
"QScrollBar::sub-line:vertical { border: none; background: #404040; height: 10px; subcontrol-position: top; subcontrol-origin: margin; margin: 0 3px 0 0;}"
|
||||
"QScrollBar::up-arrow:vertical {border:none;width: 9px;height: 6px;background: url(':/images/folders_view/line-up.png') center top no-repeat;}"
|
||||
"QScrollBar::down-arrow:vertical {border:none;width: 9px;height: 6px;background: url(':/images/folders_view/line-down.png') center top no-repeat;}"
|
||||
|
||||
|
@ -8,19 +8,19 @@
|
||||
|
||||
YACReaderSliderAction::YACReaderSliderAction (QWidget * parent)
|
||||
:QWidgetAction (0) {
|
||||
|
||||
QWidget* pWidget = new QWidget (NULL);
|
||||
QHBoxLayout* pLayout = new QHBoxLayout();
|
||||
|
||||
QWidget* pWidget = new QWidget (NULL);
|
||||
QHBoxLayout* pLayout = new QHBoxLayout();
|
||||
|
||||
pLayout->addStretch();
|
||||
|
||||
percentageLabel = new QLabel ("100%");
|
||||
percentageLabel = new QLabel ("100%");
|
||||
percentageLabel->setStyleSheet("QLabel { color : white; }");
|
||||
percentageLabel->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
pLayout->addWidget (percentageLabel);
|
||||
slider = new QSlider(NULL);
|
||||
pLayout->addWidget (percentageLabel);
|
||||
slider = new QSlider(NULL);
|
||||
slider->setOrientation(Qt::Horizontal);
|
||||
pLayout->addWidget (slider);
|
||||
pLayout->addWidget (slider);
|
||||
|
||||
QString sliderCSS =
|
||||
|
||||
@ -31,7 +31,7 @@ YACReaderSliderAction::YACReaderSliderAction (QWidget * parent)
|
||||
;
|
||||
slider->setStyleSheet(sliderCSS);
|
||||
slider->setFixedSize(218,45);
|
||||
|
||||
|
||||
QLabel* imgLabel = new QLabel(pWidget);
|
||||
QPixmap p(":/images/sliderBackground.png");
|
||||
imgLabel->resize(p.size());
|
||||
@ -49,7 +49,7 @@ YACReaderSliderAction::YACReaderSliderAction (QWidget * parent)
|
||||
|
||||
pWidget->setMinimumSize(276,45);
|
||||
|
||||
setDefaultWidget(pWidget);
|
||||
setDefaultWidget(pWidget);
|
||||
|
||||
slider->setMinimum(50);
|
||||
slider->setMaximum(100);
|
||||
|
@ -15,7 +15,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
YACReaderSliderAction (QWidget * parent = 0);
|
||||
YACReaderSliderAction (QWidget * parent = 0);
|
||||
|
||||
public slots:
|
||||
void updateText(int value);
|
||||
|
@ -1,12 +1,12 @@
|
||||
<RCC>
|
||||
<qresource>
|
||||
<file>../files/about.html</file>
|
||||
<file>../files/helpYACReader.html</file>
|
||||
<file>../files/shortcuts.html</file>
|
||||
</qresource>
|
||||
<qresource>
|
||||
<file>../files/about.html</file>
|
||||
<file>../files/helpYACReader.html</file>
|
||||
<file>../files/shortcuts.html</file>
|
||||
</qresource>
|
||||
|
||||
<qresource lang="es_ES">
|
||||
<file alias="/files/about.html">../files/about_es_ES.html</file>
|
||||
<file alias="/files/helpYACReader.html">../files/helpYACReader_es_ES.html</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
<qresource lang="es_ES">
|
||||
<file alias="/files/about.html">../files/about_es_ES.html</file>
|
||||
<file alias="/files/helpYACReader.html">../files/helpYACReader_es_ES.html</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@ -1,77 +1,77 @@
|
||||
<RCC>
|
||||
<qresource>
|
||||
<file>../images/icon.png</file>
|
||||
<file>../images/goto.png</file>
|
||||
<file>../images/comicFolder.png</file>
|
||||
<file>../images/flow1.png</file>
|
||||
<file>../images/flow2.png</file>
|
||||
<file>../images/flow3.png</file>
|
||||
<file>../images/flow4.png</file>
|
||||
<file>../images/flow5.png</file>
|
||||
<file>../images/notCover.png</file>
|
||||
<file>../images/shortcuts.png</file>
|
||||
<file>../images/close.png</file>
|
||||
<file>../images/up.png</file>
|
||||
<file>../images/down.png</file>
|
||||
<file>../images/numPagesLabel.png</file>
|
||||
<file>../images/numPagesLabelMedium.png</file>
|
||||
<file>../images/numPagesLabelBig.png</file>
|
||||
<file>../images/imgTopLeft.png</file>
|
||||
<file>../images/imgTopMiddle.png</file>
|
||||
<file>../images/imgTopRight.png</file>
|
||||
<file>../images/imgBottomLeft.png</file>
|
||||
<file>../images/imgBottomMiddle.png</file>
|
||||
<file>../images/imgBottomRight.png</file>
|
||||
<file>../images/imgEdit.png</file>
|
||||
<file>../images/imgCenterSlide.png</file>
|
||||
<file>../images/imgGoToSlide.png</file>
|
||||
<file>../images/imgCenterSlidePressed.png</file>
|
||||
<file>../images/imgGoToSlidePressed.png</file>
|
||||
<file>../images/sliderBackground.png</file>
|
||||
<file>../images/sliderGround.png</file>
|
||||
<file>../images/sliderSubPage.png</file>
|
||||
<file>../images/sliderAddPage.png</file>
|
||||
<file>../images/sliderHandle.png</file>
|
||||
|
||||
<file>../images/helpImages/open.png</file>
|
||||
<file>../images/helpImages/openFolder.png</file>
|
||||
<file>../images/helpImages/next.png</file>
|
||||
<file>../images/helpImages/prev.png</file>
|
||||
<file>../images/helpImages/icon.png</file>
|
||||
<file>../images/helpImages/zoom.png</file>
|
||||
<file>../images/helpImages/fit.png</file>
|
||||
<file>../images/helpImages/goto.png</file>
|
||||
<file>../images/helpImages/help.png</file>
|
||||
<file>../images/helpImages/center.png</file>
|
||||
<file>../images/helpImages/options.png</file>
|
||||
<file>../images/helpImages/comicFolder.png</file>
|
||||
<file>../images/helpImages/save.png</file>
|
||||
<file>../images/helpImages/rotateL.png</file>
|
||||
<file>../images/helpImages/rotateR.png</file>
|
||||
<file>../images/helpImages/flow1.png</file>
|
||||
<file>../images/helpImages/flow2.png</file>
|
||||
<file>../images/helpImages/flow3.png</file>
|
||||
<file>../images/helpImages/bookmark.png</file>
|
||||
<file>../images/helpImages/setBookmark.png</file>
|
||||
<file>../images/helpImages/notCover.png</file>
|
||||
<file>../images/helpImages/previousComic.png</file>
|
||||
<file>../images/helpImages/nextComic.png</file>
|
||||
<file>../images/helpImages/deleteLibrary.png</file>
|
||||
<file>../images/helpImages/properties.png</file>
|
||||
<file>../images/helpImages/doublePage.png</file>
|
||||
<file>../images/helpImages/shortcuts.png</file>
|
||||
<file>../images/helpImages/keyboard.png</file>
|
||||
<file>../images/helpImages/mouse.png</file>
|
||||
<file>../images/helpImages/speaker.png</file>
|
||||
<file>../images/defaultCover.png</file>
|
||||
<file>../images/onStartFlowSelection.png</file>
|
||||
<file>../images/onStartFlowSelection_es.png</file>
|
||||
<file>../images/useNewFlowButton.png</file>
|
||||
<file>../images/useOldFlowButton.png</file>
|
||||
<file>../images/notificationsLabel.png</file>
|
||||
<file>../images/fromTo.png</file>
|
||||
<file>../images/dropDownArrow.png</file>
|
||||
<file>../images/translatorSearch.png</file>
|
||||
<file>../images/speaker.png</file>
|
||||
</qresource>
|
||||
<qresource>
|
||||
<file>../images/icon.png</file>
|
||||
<file>../images/goto.png</file>
|
||||
<file>../images/comicFolder.png</file>
|
||||
<file>../images/flow1.png</file>
|
||||
<file>../images/flow2.png</file>
|
||||
<file>../images/flow3.png</file>
|
||||
<file>../images/flow4.png</file>
|
||||
<file>../images/flow5.png</file>
|
||||
<file>../images/notCover.png</file>
|
||||
<file>../images/shortcuts.png</file>
|
||||
<file>../images/close.png</file>
|
||||
<file>../images/up.png</file>
|
||||
<file>../images/down.png</file>
|
||||
<file>../images/numPagesLabel.png</file>
|
||||
<file>../images/numPagesLabelMedium.png</file>
|
||||
<file>../images/numPagesLabelBig.png</file>
|
||||
<file>../images/imgTopLeft.png</file>
|
||||
<file>../images/imgTopMiddle.png</file>
|
||||
<file>../images/imgTopRight.png</file>
|
||||
<file>../images/imgBottomLeft.png</file>
|
||||
<file>../images/imgBottomMiddle.png</file>
|
||||
<file>../images/imgBottomRight.png</file>
|
||||
<file>../images/imgEdit.png</file>
|
||||
<file>../images/imgCenterSlide.png</file>
|
||||
<file>../images/imgGoToSlide.png</file>
|
||||
<file>../images/imgCenterSlidePressed.png</file>
|
||||
<file>../images/imgGoToSlidePressed.png</file>
|
||||
<file>../images/sliderBackground.png</file>
|
||||
<file>../images/sliderGround.png</file>
|
||||
<file>../images/sliderSubPage.png</file>
|
||||
<file>../images/sliderAddPage.png</file>
|
||||
<file>../images/sliderHandle.png</file>
|
||||
|
||||
<file>../images/helpImages/open.png</file>
|
||||
<file>../images/helpImages/openFolder.png</file>
|
||||
<file>../images/helpImages/next.png</file>
|
||||
<file>../images/helpImages/prev.png</file>
|
||||
<file>../images/helpImages/icon.png</file>
|
||||
<file>../images/helpImages/zoom.png</file>
|
||||
<file>../images/helpImages/fit.png</file>
|
||||
<file>../images/helpImages/goto.png</file>
|
||||
<file>../images/helpImages/help.png</file>
|
||||
<file>../images/helpImages/center.png</file>
|
||||
<file>../images/helpImages/options.png</file>
|
||||
<file>../images/helpImages/comicFolder.png</file>
|
||||
<file>../images/helpImages/save.png</file>
|
||||
<file>../images/helpImages/rotateL.png</file>
|
||||
<file>../images/helpImages/rotateR.png</file>
|
||||
<file>../images/helpImages/flow1.png</file>
|
||||
<file>../images/helpImages/flow2.png</file>
|
||||
<file>../images/helpImages/flow3.png</file>
|
||||
<file>../images/helpImages/bookmark.png</file>
|
||||
<file>../images/helpImages/setBookmark.png</file>
|
||||
<file>../images/helpImages/notCover.png</file>
|
||||
<file>../images/helpImages/previousComic.png</file>
|
||||
<file>../images/helpImages/nextComic.png</file>
|
||||
<file>../images/helpImages/deleteLibrary.png</file>
|
||||
<file>../images/helpImages/properties.png</file>
|
||||
<file>../images/helpImages/doublePage.png</file>
|
||||
<file>../images/helpImages/shortcuts.png</file>
|
||||
<file>../images/helpImages/keyboard.png</file>
|
||||
<file>../images/helpImages/mouse.png</file>
|
||||
<file>../images/helpImages/speaker.png</file>
|
||||
<file>../images/defaultCover.png</file>
|
||||
<file>../images/onStartFlowSelection.png</file>
|
||||
<file>../images/onStartFlowSelection_es.png</file>
|
||||
<file>../images/useNewFlowButton.png</file>
|
||||
<file>../images/useOldFlowButton.png</file>
|
||||
<file>../images/notificationsLabel.png</file>
|
||||
<file>../images/fromTo.png</file>
|
||||
<file>../images/dropDownArrow.png</file>
|
||||
<file>../images/translatorSearch.png</file>
|
||||
<file>../images/speaker.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@ -1,28 +1,28 @@
|
||||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file>../images/viewer_toolbar/bookmark.png</file>
|
||||
<file>../images/viewer_toolbar/close.png</file>
|
||||
<file>../images/viewer_toolbar/doublePage.png</file>
|
||||
<file>../images/viewer_toolbar/flow.png</file>
|
||||
<file>../images/viewer_toolbar/full.png</file>
|
||||
<file>../images/viewer_toolbar/goto.png</file>
|
||||
<file>../images/viewer_toolbar/help.png</file>
|
||||
<file>../images/viewer_toolbar/info.png</file>
|
||||
<file>../images/viewer_toolbar/magnifyingGlass.png</file>
|
||||
<file>../images/viewer_toolbar/next.png</file>
|
||||
<file>../images/viewer_toolbar/open.png</file>
|
||||
<file>../images/viewer_toolbar/openFolder.png</file>
|
||||
<file>../images/viewer_toolbar/openNext.png</file>
|
||||
<file>../images/viewer_toolbar/openPrevious.png</file>
|
||||
<file>../images/viewer_toolbar/options.png</file>
|
||||
<file>../images/viewer_toolbar/previous.png</file>
|
||||
<file>../images/viewer_toolbar/rotateL.png</file>
|
||||
<file>../images/viewer_toolbar/rotateR.png</file>
|
||||
<file>../images/viewer_toolbar/save.png</file>
|
||||
<file>../images/viewer_toolbar/shortcuts.png</file>
|
||||
<file>../images/viewer_toolbar/showBookmarks.png</file>
|
||||
<file>../images/viewer_toolbar/toHeight.png</file>
|
||||
<file>../images/viewer_toolbar/toWidth.png</file>
|
||||
<file>../images/viewer_toolbar/translator.png</file>
|
||||
<file>../images/viewer_toolbar/bookmark.png</file>
|
||||
<file>../images/viewer_toolbar/close.png</file>
|
||||
<file>../images/viewer_toolbar/doublePage.png</file>
|
||||
<file>../images/viewer_toolbar/flow.png</file>
|
||||
<file>../images/viewer_toolbar/full.png</file>
|
||||
<file>../images/viewer_toolbar/goto.png</file>
|
||||
<file>../images/viewer_toolbar/help.png</file>
|
||||
<file>../images/viewer_toolbar/info.png</file>
|
||||
<file>../images/viewer_toolbar/magnifyingGlass.png</file>
|
||||
<file>../images/viewer_toolbar/next.png</file>
|
||||
<file>../images/viewer_toolbar/open.png</file>
|
||||
<file>../images/viewer_toolbar/openFolder.png</file>
|
||||
<file>../images/viewer_toolbar/openNext.png</file>
|
||||
<file>../images/viewer_toolbar/openPrevious.png</file>
|
||||
<file>../images/viewer_toolbar/options.png</file>
|
||||
<file>../images/viewer_toolbar/previous.png</file>
|
||||
<file>../images/viewer_toolbar/rotateL.png</file>
|
||||
<file>../images/viewer_toolbar/rotateR.png</file>
|
||||
<file>../images/viewer_toolbar/save.png</file>
|
||||
<file>../images/viewer_toolbar/shortcuts.png</file>
|
||||
<file>../images/viewer_toolbar/showBookmarks.png</file>
|
||||
<file>../images/viewer_toolbar/toHeight.png</file>
|
||||
<file>../images/viewer_toolbar/toWidth.png</file>
|
||||
<file>../images/viewer_toolbar/translator.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Reference in New Issue
Block a user