X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuisettings.h;h=704a1d5fb7994575389448adfb2d5aee1d0d593f;hp=1476f90aec2d015eb9a1221ebf30c9f372fb4f70;hb=f824db0e31b54969e0b7fa0b5405b1e9173d482c;hpb=4bfbd8dcbcb398302aaad0b6707c561760d7a7ac diff --git a/src/uisupport/uisettings.h b/src/uisupport/uisettings.h index 1476f90a..704a1d5f 100644 --- a/src/uisupport/uisettings.h +++ b/src/uisupport/uisettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,33 +18,35 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _UISETTINGS_H_ -#define _UISETTINGS_H_ +#ifndef UISETTINGS_H +#define UISETTINGS_H #include "clientsettings.h" +#include "uistyle.h" class UiSettings : public ClientSettings { +public: + UiSettings(const QString &group = "Ui"); - public: - UiSettings(const QString &group = "UI"); - - void setValue(const QString &key, const QVariant &data); - QVariant value(const QString &key, const QVariant &def = QVariant()); - - + inline void setValue(const QString &key, const QVariant &data) { setLocalValue(key, data); } + inline QVariant value(const QString &key, const QVariant &def = QVariant()) { return localValue(key, def); } + inline void remove(const QString &key) { removeLocalKey(key); } }; -/* -class GuiProfile : public ClientSettings { - public: - GuiProfile(); +class UiStyleSettings : public ClientSettings { +public: + UiStyleSettings(const QString &group = "UiStyle"); - static QStringList availableProfiles(); - static GuiProfile *profile(QString name); + inline void setValue(const QString &key, const QVariant &data) { setLocalValue(key, data); } + inline QVariant value(const QString &key, const QVariant &def = QVariant()) { return localValue(key, def); } + inline void remove(const QString &key) { removeLocalKey(key); } - + void setCustomFormat(UiStyle::FormatType, QTextCharFormat); + QTextCharFormat customFormat(UiStyle::FormatType); + void removeCustomFormat(UiStyle::FormatType); + QList availableFormats(); }; -*/ + #endif