Files
yacreader/YACReaderLibrary/options_dialog.h
luisangelsm 3709b6e737
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
Format includes using clang-format
2026-03-13 18:21:38 +01:00

75 lines
2.0 KiB
C++

#ifndef __OPTIONS_DIALOG_H
#define __OPTIONS_DIALOG_H
#include "yacreader_global.h"
#include "yacreader_options_dialog.h"
#include <QCheckBox>
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QSlider>
#include <QTimeEdit>
#include <QWidget>
using namespace YACReader;
class OptionsDialog : public YACReaderOptionsDialog
{
Q_OBJECT
public:
OptionsDialog(QWidget *parent = nullptr);
public slots:
void editApiKey();
void restoreOptions(QSettings *settings) override;
void saveOptions() override;
private slots:
void useBackgroundImageCheckClicked(bool checked);
void backgroundImageOpacitySliderChanged(int value);
void backgroundImageBlurRadiusSliderChanged(int value);
void useCurrentComicCoverCheckClicked(bool checked);
void numDaysToConsiderRecentChanged(int value);
void resetToDefaults();
private:
// General tabs
QCheckBox *displayGlobalContinueReadingBannerCheck;
QCheckBox *displayContinueReadingBannerCheck;
QCheckBox *trayIconCheckbox;
QCheckBox *startToTrayCheckbox;
QComboBox *languageCombo;
QCheckBox *comicInfoXMLCheckbox;
QSlider *recentIntervalSlider;
QLabel *numDaysLabel;
QLineEdit *thirdPartyReaderEdit;
// Libraries tab
QCheckBox *updateLibrariesAtStartupCheck;
QCheckBox *detectChangesAutomaticallyCheck;
QCheckBox *updateLibrariesPeriodicallyCheck;
QComboBox *intervalComboBox;
QCheckBox *updateLibrariesAtCertainTimeCheck;
QTimeEdit *updateLibrariesTimeEdit;
QCheckBox *compareModifiedDateWhenUpdatingLibrariesCheck;
// Grid tab
QCheckBox *useBackgroundImageCheck;
QCheckBox *useCurrentComicCoverCheck;
QSlider *backgroundImageOpacitySlider;
QSlider *backgroundImageBlurRadiusSlider;
QLabel *opacityLabel;
QLabel *blurLabel;
QPushButton *resetButton;
QWidget *createGeneralTab();
QWidget *createLibrariesTab();
QWidget *createFlowTab();
QWidget *createGridTab();
QWidget *createAppearanceTab();
};
#endif