git repos / SagoImageBrowser

blame: src/preferencesdialog.h

normal view · raw

10d6e6f8 Poul Sander 2026-02-24 18:40 1
#pragma once
10d6e6f8 Poul Sander 2026-02-24 18:40 2
10d6e6f8 Poul Sander 2026-02-24 18:40 3
#include <QDialog>
10d6e6f8 Poul Sander 2026-02-24 18:40 4
10d6e6f8 Poul Sander 2026-02-24 18:40 5
class QComboBox;
4ae57f60 Poul Sander 2026-02-25 21:35 6
class QCheckBox;
459bad0f Poul Sander 2026-05-17 14:11 7
class QSpinBox;
10d6e6f8 Poul Sander 2026-02-24 18:40 8
10d6e6f8 Poul Sander 2026-02-24 18:40 9
class PreferencesDialog : public QDialog
10d6e6f8 Poul Sander 2026-02-24 18:40 10
{
10d6e6f8 Poul Sander 2026-02-24 18:40 11
    Q_OBJECT
10d6e6f8 Poul Sander 2026-02-24 18:40 12
10d6e6f8 Poul Sander 2026-02-24 18:40 13
public:
10d6e6f8 Poul Sander 2026-02-24 18:40 14
    explicit PreferencesDialog(QWidget *parent = nullptr);
10d6e6f8 Poul Sander 2026-02-24 18:40 15
10d6e6f8 Poul Sander 2026-02-24 18:40 16
    QString getBackgroundColor() const;
10d6e6f8 Poul Sander 2026-02-24 18:40 17
    void setBackgroundColor(const QString &color);
10d6e6f8 Poul Sander 2026-02-24 18:40 18
459bad0f Poul Sander 2026-05-17 14:11 19
    int getCacheSize() const;
459bad0f Poul Sander 2026-05-17 14:11 20
    void setCacheSize(int n);
459bad0f Poul Sander 2026-05-17 14:11 21
4ae57f60 Poul Sander 2026-02-25 21:35 22
    bool getLockDocking() const;
4ae57f60 Poul Sander 2026-02-25 21:35 23
    void setLockDocking(bool lock);
4ae57f60 Poul Sander 2026-02-25 21:35 24
d1aa6cbe Poul Sander 2026-03-02 16:57 25
    bool getResetLayout() const;
d1aa6cbe Poul Sander 2026-03-02 16:57 26
    void setResetLayout(bool reset);
d1aa6cbe Poul Sander 2026-03-02 16:57 27
7370f1c0 Poul Sander 2026-03-01 15:15 28
signals:
7370f1c0 Poul Sander 2026-03-01 15:15 29
    void resetLayoutRequested();
7370f1c0 Poul Sander 2026-03-01 15:15 30
10d6e6f8 Poul Sander 2026-02-24 18:40 31
private:
10d6e6f8 Poul Sander 2026-02-24 18:40 32
    QComboBox *m_backgroundColorCombo;
459bad0f Poul Sander 2026-05-17 14:11 33
    QSpinBox  *m_cacheSizeSpinBox;
4ae57f60 Poul Sander 2026-02-25 21:35 34
    QCheckBox *m_lockDockingCheck;
d1aa6cbe Poul Sander 2026-03-02 16:57 35
    QCheckBox *m_resetLayoutCheck;
10d6e6f8 Poul Sander 2026-02-24 18:40 36
};
1970-01-01 00:00 37