X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fcolorsettingspage.h;fp=src%2Fqtui%2Fsettingspages%2Fcolorsettingspage.h;h=0000000000000000000000000000000000000000;hp=a89190de63d74e24094a8cc2b7acc59c15214c76;hb=f6e4cd5bb3612a05933c9d985aa55041a47d5756;hpb=c6a6c0e4317986792320826956fd5ead2b3e9e67 diff --git a/src/qtui/settingspages/colorsettingspage.h b/src/qtui/settingspages/colorsettingspage.h deleted file mode 100644 index a89190de..00000000 --- a/src/qtui/settingspages/colorsettingspage.h +++ /dev/null @@ -1,68 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * - * devel@quassel-irc.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) version 3. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * 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. * - ***************************************************************************/ - -#ifndef _COLORSETTINGSPAGE_H_ -#define _COLORSETTINGSPAGE_H_ - -#include - -#include "settingspage.h" -#include "ui_colorsettingspage.h" -#include "uistyle.h" - -class QSignalMapper; -class ColorButton; - -class ColorSettingsPage : public SettingsPage { - Q_OBJECT - - public: - ColorSettingsPage(QWidget *parent = 0); - - bool hasDefaults() const; - - public slots: - void save(); - void load(); - void defaults(); - void defaultBufferview(); - void defaultServerActivity(); - void defaultUserActivity(); - void defaultMessage(); - void defaultMircColorCodes(); - void defaultNickview(); - - private slots: - void widgetHasChanged(); - void chooseColor(QWidget *button); - - private: - Ui::ColorSettingsPage ui; - QHash settings; - QSignalMapper *mapper; - - bool testHasChanged(); - void chatviewPreview(); - void bufferviewPreview(); - void saveColor(UiStyle::FormatType formatType, const QColor &foreground, const QColor &background, bool enableBG = true); - void saveMircColor(int num, const QColor &color); -}; - -#endif