mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
a?adido soporte para la configuraci?n del comic flow
a?adido soporte para la configuraci?n de la calidad del comic flow primera versi?n del di?logo de configuraci?n del servidor implementada
This commit is contained in:
@ -8,8 +8,12 @@
|
||||
#include <QSlider>
|
||||
#include <QPushButton>
|
||||
#include <QRadioButton>
|
||||
#include <QCheckBox>
|
||||
#include <QSettings>
|
||||
#include "pictureflow.h"
|
||||
|
||||
#include "custom_widgets.h"
|
||||
|
||||
extern PictureFlow::FlowType flowType;
|
||||
|
||||
class OptionsDialog : public QDialog
|
||||
@ -18,32 +22,74 @@ Q_OBJECT
|
||||
public:
|
||||
OptionsDialog(QWidget * parent = 0);
|
||||
private:
|
||||
QLabel * pathLabel;
|
||||
QLineEdit * pathEdit;
|
||||
QPushButton * pathFindButton;
|
||||
|
||||
QLabel * magGlassSizeLabel;
|
||||
|
||||
QLabel * zoomLevel;
|
||||
|
||||
QLabel * slideSizeLabel;
|
||||
QSlider * slideSize;
|
||||
|
||||
|
||||
QPushButton * accept;
|
||||
QPushButton * cancel;
|
||||
QCheckBox * useGL;
|
||||
|
||||
//SW.........................
|
||||
QRadioButton *radio1;
|
||||
QRadioButton *radio2;
|
||||
QRadioButton *radio3;
|
||||
|
||||
//GL.........................
|
||||
QRadioButton *radioClassic;
|
||||
QRadioButton *radioStripe;
|
||||
QRadioButton *radioOver;
|
||||
QRadioButton *radionModern;
|
||||
QRadioButton *radioDown;
|
||||
|
||||
YACReaderSpinSliderWidget * xRotation;
|
||||
YACReaderSpinSliderWidget * yPosition;
|
||||
YACReaderSpinSliderWidget * coverDistance;
|
||||
YACReaderSpinSliderWidget * centralDistance;
|
||||
YACReaderSpinSliderWidget * zoomLevel;
|
||||
YACReaderSpinSliderWidget * yCoverOffset;
|
||||
YACReaderSpinSliderWidget * zCoverOffset;
|
||||
YACReaderSpinSliderWidget * coverRotation;
|
||||
YACReaderSpinSliderWidget * fadeOutDist;
|
||||
YACReaderSpinSliderWidget * lightStrength;
|
||||
YACReaderSpinSliderWidget * maxAngle;
|
||||
|
||||
QSlider * performanceSlider;
|
||||
|
||||
QWidget * sw;
|
||||
QWidget * gl;
|
||||
|
||||
QLayout * setupLayoutSW();
|
||||
QLayout * setupLayoutGL();
|
||||
|
||||
QSettings * settings;
|
||||
QSettings * previousSettings;
|
||||
|
||||
private slots:
|
||||
void savePerformance(int value);
|
||||
void saveUseGL(int b);
|
||||
void saveXRotation(int value);
|
||||
void saveYPosition(int value);
|
||||
void saveCoverDistance(int value);
|
||||
void saveCentralDistance(int value);
|
||||
void saveZoomLevel(int value);
|
||||
void saveYCoverOffset(int value);
|
||||
void saveZCoverOffset(int value);
|
||||
void saveCoverRotation(int value);
|
||||
void saveFadeOutDist(int value);
|
||||
void saveLightStrength(int value);
|
||||
void saveMaxAngle(int value);
|
||||
void loadConfig();
|
||||
void setClassicConfig();
|
||||
void setStripeConfig();
|
||||
void setOverlappedStripeConfig();
|
||||
void setModernConfig();
|
||||
void setRouletteConfig();
|
||||
public slots:
|
||||
void saveOptions();
|
||||
void restoreOptions();
|
||||
void findFolder();
|
||||
|
||||
void restoreOptions(QSettings * settings);
|
||||
signals:
|
||||
void optionsChanged();
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user