mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
a?adidos 2 estados para importWidget (import y update)
a?adido bot?n que muestra las opciones avanzadas de YACReaderFlowGL en los di?logos de opciones v6.2.0 rc1
This commit is contained in:
parent
882dd0c435
commit
65a50fb612
@ -145,7 +145,7 @@ OptionsDialog::OptionsDialog(QWidget * parent)
|
|||||||
gl->vSyncCheck->hide();
|
gl->vSyncCheck->hide();
|
||||||
|
|
||||||
//restoreOptions(); //load options
|
//restoreOptions(); //load options
|
||||||
resize(400,0);
|
//resize(400,0);
|
||||||
setModal (true);
|
setModal (true);
|
||||||
setWindowTitle(tr("Options"));
|
setWindowTitle(tr("Options"));
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
<file>../images/noLibrariesIcon.png</file>
|
<file>../images/noLibrariesIcon.png</file>
|
||||||
<file>../images/noLibrariesLine.png</file>
|
<file>../images/noLibrariesLine.png</file>
|
||||||
<file>../images/importingIcon.png</file>
|
<file>../images/importingIcon.png</file>
|
||||||
|
<file>../images/updatingIcon.png</file>
|
||||||
<file>../images/importTopCoversDecoration.png</file>
|
<file>../images/importTopCoversDecoration.png</file>
|
||||||
<file>../images/importBottomCoversDecoration.png</file>
|
<file>../images/importBottomCoversDecoration.png</file>
|
||||||
<file>../images/glowLine.png</file>
|
<file>../images/glowLine.png</file>
|
||||||
|
@ -97,7 +97,7 @@ ImportWidget::ImportWidget(QWidget *parent) :
|
|||||||
setPalette(p);
|
setPalette(p);
|
||||||
|
|
||||||
QPixmap icon(":/images/importingIcon.png");
|
QPixmap icon(":/images/importingIcon.png");
|
||||||
QLabel * iconLabel = new QLabel();
|
iconLabel = new QLabel();
|
||||||
iconLabel->setPixmap(icon);
|
iconLabel->setPixmap(icon);
|
||||||
|
|
||||||
/*QPixmap line(":/images/noLibrariesLine.png");
|
/*QPixmap line(":/images/noLibrariesLine.png");
|
||||||
@ -106,9 +106,9 @@ ImportWidget::ImportWidget(QWidget *parent) :
|
|||||||
|
|
||||||
YACReaderActivityIndicatorWidget * activityIndicator = new YACReaderActivityIndicatorWidget();
|
YACReaderActivityIndicatorWidget * activityIndicator = new YACReaderActivityIndicatorWidget();
|
||||||
|
|
||||||
QLabel * text = new QLabel("<font color=\"#495252\">"+tr("Importing comics")+"</font>");
|
text = new QLabel("<font color=\"#495252\">"+tr("Importing comics")+"</font>");
|
||||||
text->setStyleSheet("QLabel {font-size:25px;font-weight:bold;}");
|
text->setStyleSheet("QLabel {font-size:25px;font-weight:bold;}");
|
||||||
QLabel * textDescription = new QLabel("<font color=\"#565959\">"+tr("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")+"</font>");
|
textDescription = new QLabel("<font color=\"#565959\">"+tr("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")+"</font>");
|
||||||
textDescription->setWordWrap(true);
|
textDescription->setWordWrap(true);
|
||||||
textDescription->setMaximumWidth(330);
|
textDescription->setMaximumWidth(330);
|
||||||
currentComicLabel = new QLabel("<font color=\"#565959\">...</font>");
|
currentComicLabel = new QLabel("<font color=\"#565959\">...</font>");
|
||||||
@ -331,6 +331,20 @@ void ImportWidget::clear()
|
|||||||
i = 0;
|
i = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ImportWidget::setImportLook()
|
||||||
|
{
|
||||||
|
iconLabel->setPixmap(QPixmap(":/images/importingIcon.png"));
|
||||||
|
text->setText("<font color=\"#495252\">"+tr("Importing comics")+"</font>");
|
||||||
|
textDescription->setText("<font color=\"#565959\">"+tr("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")+"</font>");
|
||||||
|
}
|
||||||
|
|
||||||
|
void ImportWidget::setUpdateLook()
|
||||||
|
{
|
||||||
|
iconLabel->setPixmap(QPixmap(":/images/updatingIcon.png"));
|
||||||
|
text->setText("<font color=\"#495252\">"+tr("Updating the library")+"</font>");
|
||||||
|
textDescription->setText("<font color=\"#565959\">"+tr("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")+"</font>");
|
||||||
|
}
|
||||||
|
|
||||||
void ImportWidget::clearScene()
|
void ImportWidget::clearScene()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -23,9 +23,14 @@ public slots:
|
|||||||
void addCoverTest();
|
void addCoverTest();
|
||||||
void finishedUpdatingCover();
|
void finishedUpdatingCover();
|
||||||
void clearScene();
|
void clearScene();
|
||||||
|
void setImportLook();
|
||||||
|
void setUpdateLook();
|
||||||
private:
|
private:
|
||||||
QLabel * currentComicLabel;
|
QLabel * currentComicLabel;
|
||||||
QLabel * portadasLabel;
|
QLabel * portadasLabel;
|
||||||
|
QLabel * iconLabel;
|
||||||
|
QLabel * text;
|
||||||
|
QLabel * textDescription;
|
||||||
QGraphicsView * coversView;
|
QGraphicsView * coversView;
|
||||||
QGraphicsScene * coversScene;
|
QGraphicsScene * coversScene;
|
||||||
int previousWidth;
|
int previousWidth;
|
||||||
|
@ -1019,6 +1019,7 @@ void LibraryWindow::create(QString source, QString dest, QString name)
|
|||||||
_lastAdded = name;
|
_lastAdded = name;
|
||||||
_sourceLastAdded = source;
|
_sourceLastAdded = source;
|
||||||
|
|
||||||
|
importWidget->setImportLook();
|
||||||
showImportingWidget();
|
showImportingWidget();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1115,6 +1116,7 @@ void LibraryWindow::saveLibraries()
|
|||||||
void LibraryWindow::updateLibrary()
|
void LibraryWindow::updateLibrary()
|
||||||
{
|
{
|
||||||
//updateLibraryDialog->show();
|
//updateLibraryDialog->show();
|
||||||
|
importWidget->setUpdateLook();
|
||||||
showImportingWidget();
|
showImportingWidget();
|
||||||
|
|
||||||
QString currentLibrary = selectedLibrary->currentText();
|
QString currentLibrary = selectedLibrary->currentText();
|
||||||
|
@ -43,6 +43,8 @@ OptionsDialog::OptionsDialog(QWidget * parent)
|
|||||||
//resize(200,0);
|
//resize(200,0);
|
||||||
setModal (true);
|
setModal (true);
|
||||||
setWindowTitle(tr("Options"));
|
setWindowTitle(tr("Options"));
|
||||||
|
|
||||||
|
this->layout()->setSizeConstraint(QLayout::SetFixedSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -605,16 +605,19 @@ YACReaderOptionsDialog::YACReaderOptionsDialog(QWidget * parent)
|
|||||||
:QDialog(parent)
|
:QDialog(parent)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
sw = new YACReaderFlowConfigWidget(this);
|
||||||
|
gl = new YACReaderGLFlowConfigWidget(this);
|
||||||
|
|
||||||
accept = new QPushButton(tr("Save"));
|
accept = new QPushButton(tr("Save"));
|
||||||
cancel = new QPushButton(tr("Cancel"));
|
cancel = new QPushButton(tr("Cancel"));
|
||||||
|
|
||||||
|
cancel->setDefault(true);
|
||||||
|
|
||||||
connect(accept,SIGNAL(clicked()),this,SLOT(saveOptions()));
|
connect(accept,SIGNAL(clicked()),this,SLOT(saveOptions()));
|
||||||
connect(cancel,SIGNAL(clicked()),this,SLOT(restoreOptions()));
|
connect(cancel,SIGNAL(clicked()),this,SLOT(restoreOptions()));
|
||||||
connect(cancel,SIGNAL(clicked()),this,SLOT(close()));
|
connect(cancel,SIGNAL(clicked()),this,SLOT(close()));
|
||||||
|
|
||||||
sw = new YACReaderFlowConfigWidget(this);
|
useGL = new QCheckBox(tr("Use hardware acceleration (restart needed)"));
|
||||||
|
|
||||||
gl = new YACReaderGLFlowConfigWidget(this);
|
|
||||||
useGL = useGL = new QCheckBox(tr("Use hardware acceleration (restart needed)"));
|
|
||||||
connect(useGL,SIGNAL(stateChanged(int)),this,SLOT(saveUseGL(int)));
|
connect(useGL,SIGNAL(stateChanged(int)),this,SLOT(saveUseGL(int)));
|
||||||
|
|
||||||
//sw CONNECTIONS
|
//sw CONNECTIONS
|
||||||
@ -1027,10 +1030,16 @@ YACReaderGLFlowConfigWidget::YACReaderGLFlowConfigWidget(QWidget * parent /* = 0
|
|||||||
opt5->addWidget(lOpt5);
|
opt5->addWidget(lOpt5);
|
||||||
vbox->addLayout(opt5);
|
vbox->addLayout(opt5);
|
||||||
|
|
||||||
|
showAdvancedOptions = new QPushButton(tr("Show advanced settings"));
|
||||||
|
showAdvancedOptions->setCheckable(true);
|
||||||
|
connect(showAdvancedOptions,SIGNAL(toggled(bool)),this,SLOT(avancedOptionToogled(bool)));
|
||||||
|
|
||||||
|
vbox->addWidget(showAdvancedOptions,0,Qt::AlignRight);
|
||||||
|
|
||||||
groupBox->setLayout(vbox);
|
groupBox->setLayout(vbox);
|
||||||
|
|
||||||
//OPTIONS------------------------------------------------------------------
|
//OPTIONS------------------------------------------------------------------
|
||||||
QGroupBox *optionsGroupBox = new QGroupBox(tr("Custom:"));
|
optionsGroupBox = new QGroupBox(tr("Custom:"));
|
||||||
|
|
||||||
xRotation = new YACReaderSpinSliderWidget(this);
|
xRotation = new YACReaderSpinSliderWidget(this);
|
||||||
xRotation->setText(tr("View angle"));
|
xRotation->setText(tr("View angle"));
|
||||||
@ -1122,6 +1131,8 @@ YACReaderGLFlowConfigWidget::YACReaderGLFlowConfigWidget(QWidget * parent /* = 0
|
|||||||
groupBoxesLayout->addWidget(groupBox);
|
groupBoxesLayout->addWidget(groupBox);
|
||||||
groupBoxesLayout->addWidget(optionsGroupBox);
|
groupBoxesLayout->addWidget(optionsGroupBox);
|
||||||
|
|
||||||
|
optionsGroupBox->hide();
|
||||||
|
|
||||||
QHBoxLayout * performanceSliderLayout = new QHBoxLayout;
|
QHBoxLayout * performanceSliderLayout = new QHBoxLayout;
|
||||||
performanceSliderLayout->addWidget(new QLabel(tr("Low Performance")));
|
performanceSliderLayout->addWidget(new QLabel(tr("Low Performance")));
|
||||||
performanceSliderLayout->addWidget(performanceSlider = new QSlider(Qt::Horizontal));
|
performanceSliderLayout->addWidget(performanceSlider = new QSlider(Qt::Horizontal));
|
||||||
@ -1161,6 +1172,14 @@ YACReaderGLFlowConfigWidget::YACReaderGLFlowConfigWidget(QWidget * parent /* = 0
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void YACReaderGLFlowConfigWidget::avancedOptionToogled(bool show)
|
||||||
|
{
|
||||||
|
if(show)
|
||||||
|
optionsGroupBox->show();
|
||||||
|
else
|
||||||
|
optionsGroupBox->hide();
|
||||||
|
}
|
||||||
|
|
||||||
void YACReaderGLFlowConfigWidget::setValues(Preset preset)
|
void YACReaderGLFlowConfigWidget::setValues(Preset preset)
|
||||||
{
|
{
|
||||||
xRotation->setValue(preset.cfRX);
|
xRotation->setValue(preset.cfRX);
|
||||||
|
@ -313,8 +313,12 @@ public:
|
|||||||
QSlider * performanceSlider;
|
QSlider * performanceSlider;
|
||||||
QCheckBox * vSyncCheck;
|
QCheckBox * vSyncCheck;
|
||||||
|
|
||||||
|
QPushButton * showAdvancedOptions;
|
||||||
|
QGroupBox *optionsGroupBox;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setValues(Preset preset);
|
void setValues(Preset preset);
|
||||||
|
void avancedOptionToogled(bool show);
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef __YACREADER_GLOBAL_H
|
#ifndef __YACREADER_GLOBAL_H
|
||||||
#define __YACREADER_GLOBAL_H
|
#define __YACREADER_GLOBAL_H
|
||||||
|
|
||||||
#define VERSION "6.0.0"
|
#define VERSION "6.2.0"
|
||||||
|
|
||||||
#define PATH "PATH"
|
#define PATH "PATH"
|
||||||
#define MAG_GLASS_SIZE "MAG_GLASS_SIZE"
|
#define MAG_GLASS_SIZE "MAG_GLASS_SIZE"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<p>
|
<p>
|
||||||
<img src=":/images/icon.png" /> <br/>
|
<img src=":/images/icon.png" /> <br/>
|
||||||
YACReader - Yet Another Comic Reader - version 6.0.0 <br/>
|
YACReader - Yet Another Comic Reader - version 6.2.0 <br/>
|
||||||
by Luis Ángel San Martín Rodríguez <br/>
|
by Luis Ángel San Martín Rodríguez <br/>
|
||||||
e-mail: luisangelsm@gmail.com <br/>
|
e-mail: luisangelsm@gmail.com <br/>
|
||||||
web site: <a href="http://www.yacreader.com">http://www.yacreader.com</a> <br/>
|
web site: <a href="http://www.yacreader.com">http://www.yacreader.com</a> <br/>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<p>
|
<p>
|
||||||
<img src=":/images/icon.png" /> <br/>
|
<img src=":/images/icon.png" /> <br/>
|
||||||
YACReader - Yet Another Comic Reader - versión 6.0.0 <br/>
|
YACReader - Yet Another Comic Reader - versión 6.2.0 <br/>
|
||||||
por Luis Ángel San Martín Rodríguez <br/>
|
por Luis Ángel San Martín Rodríguez <br/>
|
||||||
e-mail: luisangelsm@gmail.com <br/>
|
e-mail: luisangelsm@gmail.com <br/>
|
||||||
Página web: <a href="http://www.yacreader.com">http://www.yacreader.com</a> <br/>
|
Página web: <a href="http://www.yacreader.com">http://www.yacreader.com</a> <br/>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 3.1 KiB |
BIN
images/updatingIcon.png
Normal file
BIN
images/updatingIcon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
Loading…
x
Reference in New Issue
Block a user