/***************************************************************************
- * Copyright (C) 2005-09 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _SETTINGSPAGE_H_
class QCheckBox;
class QComboBox;
class QSpinBox;
+class FontSelector;
//! A SettingsPage is a page in the settings dialog.
/** The SettingsDlg provides suitable standard buttons, such as Ok, Apply, Cancel, Restore Defaults and Reset.
*/
inline virtual bool needsCoreConnection() const { return false; }
+ /**
+ * Whether the settingspage should be selectable or not, in a given situation
+ * Used for pages that should only be visible if certain features are available (or not).
+ * @return
+ */
+ inline virtual bool isSelectable() const { return true; }
+
//! The key this settings page stores its values under
/** This needs to be overriden to enable automatic loading/saving/hasChanged checking of widgets.
* The child widgets' values will be stored in client settings under this key. Every widget that
static bool hasChanged(QComboBox *box);
static void load(QSpinBox *box, int value);
static bool hasChanged(QSpinBox *box);
+ static void load(FontSelector *box, QFont value);
+ static bool hasChanged(FontSelector *box);
public slots:
//! Save settings to permanent storage.