1 /* 2 SPDX-FileCopyrightText: 2001-2003 Otto Bruggeman <otto.bruggeman@home.nl> 3 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org> 4 SPDX-FileCopyrightText: 2007 Kevin Kofler <kevin.kofler@chello.at> 5 6 SPDX-License-Identifier: GPL-2.0-or-later 7 */ 8 9 #ifndef VIEWPAGE_H 10 #define VIEWPAGE_H 11 12 #include <QFrame> 13 14 #include "dialogpages_export.h" 15 16 class QFontComboBox; 17 class QSpinBox; 18 class QTabWidget; 19 20 class KColorButton; 21 22 class ViewSettings; 23 24 class DIALOGPAGES_EXPORT ViewPage : public QFrame 25 { 26 Q_OBJECT 27 public: 28 ViewPage(); 29 ~ViewPage() override; 30 31 public: 32 void setSettings(ViewSettings*); 33 ViewSettings* settings(); 34 35 public: 36 ViewSettings* m_settings; 37 38 public: 39 virtual void restore(); 40 virtual void apply(); 41 virtual void setDefaults(); 42 43 public: 44 KColorButton* m_removedColorButton; 45 KColorButton* m_changedColorButton; 46 KColorButton* m_addedColorButton; 47 KColorButton* m_appliedColorButton; 48 // snol == scroll number of lines 49 QSpinBox* m_snolSpinBox; 50 QSpinBox* m_tabSpinBox; 51 QFontComboBox* m_fontCombo; 52 QSpinBox* m_fontSizeSpinBox; 53 QTabWidget* m_tabWidget; 54 }; 55 56 #endif 57