File indexing completed on 2024-04-28 04:21:19
0001 // SPDX-FileCopyrightText: 2003-2022 The KPhotoAlbum Development Team 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-or-later 0004 0005 #ifndef GENERALPAGE_H 0006 #define GENERALPAGE_H 0007 0008 #include <QWidget> 0009 0010 class QComboBox; 0011 class QSpinBox; 0012 class QCheckBox; 0013 class KComboBox; 0014 class QTextEdit; 0015 0016 namespace Settings 0017 { 0018 class SettingsData; 0019 0020 class GeneralPage : public QWidget 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit GeneralPage(QWidget *parent); 0025 void loadSettings(Settings::SettingsData *); 0026 void saveSettings(Settings::SettingsData *); 0027 void setUseRawThumbnailSize(const QSize &size); 0028 QSize useRawThumbnailSize(); 0029 0030 private Q_SLOTS: 0031 void showHistogramChanged(int state) const; 0032 void useEXIFCommentsChanged(int state); 0033 void stripEXIFCommentsChanged(int state); 0034 0035 private: 0036 KComboBox *m_trustTimeStamps; 0037 QCheckBox *m_useEXIFRotate; 0038 QCheckBox *m_useEXIFComments; 0039 QTextEdit *m_commentsToStrip; 0040 QCheckBox *m_stripEXIFComments; 0041 QCheckBox *m_useRawThumbnail; 0042 QSpinBox *m_useRawThumbnailWidth; 0043 QSpinBox *m_useRawThumbnailHeight; 0044 QCheckBox *m_showHistogram; 0045 QCheckBox *m_histogramUseLinearScale; 0046 QSpinBox *m_barWidth; 0047 QSpinBox *m_barHeight; 0048 QCheckBox *m_showSplashScreen; 0049 #ifdef KPA_ENABLE_REMOTECONTROL 0050 QCheckBox *m_listenForAndroidDevicesOnStartup; 0051 #endif 0052 }; 0053 } 0054 0055 #endif /* GENERALPAGE_H */ 0056 0057 // vi:expandtab:tabstop=4 shiftwidth=4: