mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
81 lines
1.9 KiB
C++
81 lines
1.9 KiB
C++
#ifndef __OPTIONS_DIALOG_H
|
|
#define __OPTIONS_DIALOG_H
|
|
|
|
#include "yacreader_options_dialog.h"
|
|
|
|
class QDialog;
|
|
class QLabel;
|
|
class QLineEdit;
|
|
class QPushButton;
|
|
class QSlider;
|
|
class QPushButton;
|
|
class QRadioButton;
|
|
class YACReaderSpinSliderWidget;
|
|
|
|
class OptionsDialog : public YACReaderOptionsDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
OptionsDialog(QWidget *parent = nullptr);
|
|
|
|
private:
|
|
// QLabel * pathLabel;
|
|
QLineEdit *pathEdit;
|
|
QPushButton *pathFindButton;
|
|
QCheckBox *quickNavi;
|
|
QCheckBox *disableShowOnMouseOver;
|
|
QCheckBox *scaleCheckbox;
|
|
QCheckBox *coverSPCheckBox;
|
|
|
|
QLabel *magGlassSizeLabel;
|
|
|
|
QLabel *zoomLevel;
|
|
|
|
// QLabel * slideSizeLabel;
|
|
QSlider *slideSize;
|
|
|
|
// QLabel * fitToWidthRatioLabel;
|
|
// QSlider * fitToWidthRatioS;
|
|
|
|
QLabel *backgroundColor;
|
|
QPushButton *selectBackgroundColorButton;
|
|
|
|
QCheckBox *doNotTurnPageOnScroll;
|
|
QCheckBox *useSingleScrollStepToTurnPage;
|
|
QCheckBox *disableScrollAnimations;
|
|
|
|
YACReaderSpinSliderWidget *brightnessS;
|
|
|
|
YACReaderSpinSliderWidget *contrastS;
|
|
|
|
YACReaderSpinSliderWidget *gammaS;
|
|
|
|
QColor currentColor;
|
|
|
|
QRadioButton *normalMouseModeRadioButton;
|
|
QRadioButton *leftRightNavigationMouseModeRadioButton;
|
|
QRadioButton *hotAreasMouseModeRadioButton;
|
|
|
|
public slots:
|
|
void saveOptions() override;
|
|
void restoreOptions(QSettings *settings) override;
|
|
void findFolder();
|
|
void showColorDialog();
|
|
void updateColor(const QColor &color);
|
|
// void fitToWidthRatio(int value);
|
|
void brightnessChanged(int value);
|
|
void contrastChanged(int value);
|
|
void gammaChanged(int value);
|
|
void resetImageConfig();
|
|
void show();
|
|
void setFilters(int brightness, int contrast, int gamma);
|
|
|
|
signals:
|
|
void changedOptions();
|
|
void changedImageOptions();
|
|
void changedFilters(int brightness, int contrast, int gamma);
|
|
// void fitToWidthRatioChanged(float ratio);
|
|
};
|
|
|
|
#endif
|