mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00

was coded around assumptions that clock and menu applets use custom backgrounds and such - now that I've rewritten some applets that is no longer the case Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
64 lines
1.7 KiB
C++
64 lines
1.7 KiB
C++
/*
|
|
* KCMDesktopTheme
|
|
* Copyright (C) 2002 Karol Szwed <gallium@kde.org>
|
|
* Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org>
|
|
* Copyright (C) 2007 Urs Wolfer <uwolfer @ kde.org>
|
|
*
|
|
* Portions Copyright (C) TrollTech AS.
|
|
*
|
|
* Based on kcmstyle which is based on kcmdisplay
|
|
* Copyright (C) 1997-2002 kcmdisplay Authors.
|
|
* (see Help -> About Style Settings)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public
|
|
* License version 2 as published by the Free Software Foundation.
|
|
*
|
|
* 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; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef KCMDESKTOPTHEME_H
|
|
#define KCMDESKTOPTHEME_H
|
|
|
|
#include <kcmodule.h>
|
|
|
|
#include "ui_DesktopTheme.h"
|
|
|
|
class ThemeModel;
|
|
|
|
class KCMDesktopTheme : public KCModule, public Ui::DesktopTheme
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
KCMDesktopTheme( QWidget* parent, const QVariantList& );
|
|
~KCMDesktopTheme();
|
|
|
|
virtual void load();
|
|
virtual void save();
|
|
virtual void defaults();
|
|
|
|
protected Q_SLOTS:
|
|
void loadDesktopTheme();
|
|
void setDesktopThemeDirty();
|
|
|
|
private:
|
|
static QString toolbarButtonText(int index);
|
|
static int toolbarButtonIndex(const QString &text);
|
|
|
|
bool m_bDesktopThemeDirty;
|
|
|
|
ThemeModel* m_themeModel;
|
|
};
|
|
|
|
#endif // KCMDESKTOPTHEME_H
|
|
|
|
// vim: set noet ts=4:
|