1 /* 2 For general Scribus (>=1.3.2) copyright and licensing information please refer 3 to the COPYING file provided with the program. Following this notice may exist 4 a copyright and/or license notice that predates the release of Scribus 1.3.2 5 for which a new license (GPL+exception) is in place. 6 */ 7 8 #ifndef PREFS_PANE_H 9 #define PREFS_PANE_H 10 11 #include <QWidget> 12 #include "scribusapi.h" 13 14 class SCRIBUS_API Prefs_Pane : public QWidget 15 { 16 Q_OBJECT 17 18 public: Prefs_Pane(QWidget * parent)19 Prefs_Pane(QWidget* parent) : QWidget(parent) {} ~Prefs_Pane()20 ~Prefs_Pane() {} 21 22 virtual void restoreDefaults(struct ApplicationPrefs *prefsData) = 0; 23 virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const = 0; 24 const QString& caption() const; 25 const QString& icon() const; 26 27 public slots: apply()28 virtual void apply() {}; // For plugin prefs panels 29 30 protected: 31 QString m_caption; 32 QString m_icon; 33 }; 34 35 #endif // PREFS_PANE_H 36 37 38 39 40 41