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;
10d6e6f8 Poul Sander 2026-02-24 18:40 7
10d6e6f8 Poul Sander 2026-02-24 18:40 8
class PreferencesDialog : public QDialog
10d6e6f8 Poul Sander 2026-02-24 18:40 9
{
10d6e6f8 Poul Sander 2026-02-24 18:40 10
    Q_OBJECT
10d6e6f8 Poul Sander 2026-02-24 18:40 11
10d6e6f8 Poul Sander 2026-02-24 18:40 12
public:
10d6e6f8 Poul Sander 2026-02-24 18:40 13
    explicit PreferencesDialog(QWidget *parent = nullptr);
10d6e6f8 Poul Sander 2026-02-24 18:40 14
10d6e6f8 Poul Sander 2026-02-24 18:40 15
    QString getBackgroundColor() const;
10d6e6f8 Poul Sander 2026-02-24 18:40 16
    void setBackgroundColor(const QString &color);
10d6e6f8 Poul Sander 2026-02-24 18:40 17
4ae57f60 Poul Sander 2026-02-25 21:35 18
    bool getLockDocking() const;
4ae57f60 Poul Sander 2026-02-25 21:35 19
    void setLockDocking(bool lock);
4ae57f60 Poul Sander 2026-02-25 21:35 20
d1aa6cbe Poul Sander 2026-03-02 16:57 21
    bool getResetLayout() const;
d1aa6cbe Poul Sander 2026-03-02 16:57 22
    void setResetLayout(bool reset);
d1aa6cbe Poul Sander 2026-03-02 16:57 23
7370f1c0 Poul Sander 2026-03-01 15:15 24
signals:
7370f1c0 Poul Sander 2026-03-01 15:15 25
    void resetLayoutRequested();
7370f1c0 Poul Sander 2026-03-01 15:15 26
10d6e6f8 Poul Sander 2026-02-24 18:40 27
private:
10d6e6f8 Poul Sander 2026-02-24 18:40 28
    QComboBox *m_backgroundColorCombo;
4ae57f60 Poul Sander 2026-02-25 21:35 29
    QCheckBox *m_lockDockingCheck;
d1aa6cbe Poul Sander 2026-03-02 16:57 30
    QCheckBox *m_resetLayoutCheck;
10d6e6f8 Poul Sander 2026-02-24 18:40 31
};
1970-01-01 00:00 32