2007-11-27 19:40:25 +00:00
|
|
|
/********************************************************************
|
2007-07-20 16:19:09 +00:00
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2007 Rivo Laks <rivolaks@hot.ee>
|
|
|
|
|
2007-11-27 19:40:25 +00:00
|
|
|
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) any later version.
|
2007-07-20 16:19:09 +00:00
|
|
|
|
2007-11-27 19:40:25 +00:00
|
|
|
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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*********************************************************************/
|
2007-07-20 16:19:09 +00:00
|
|
|
|
|
|
|
#ifndef ADVANCED_H
|
|
|
|
#define ADVANCED_H
|
|
|
|
|
|
|
|
#include <kdialog.h>
|
|
|
|
|
|
|
|
#include "ui_advanced.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
2007-09-18 14:32:37 +00:00
|
|
|
class CompositingPrefs;
|
|
|
|
|
2007-07-20 16:19:09 +00:00
|
|
|
class KWinAdvancedCompositingOptions : public KDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2007-09-18 14:32:37 +00:00
|
|
|
KWinAdvancedCompositingOptions(QWidget* parent, KSharedConfigPtr config, CompositingPrefs* defaults);
|
2007-07-20 16:19:09 +00:00
|
|
|
virtual ~KWinAdvancedCompositingOptions();
|
|
|
|
|
|
|
|
void load();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void changed();
|
|
|
|
void save();
|
2007-08-27 12:53:56 +00:00
|
|
|
void compositingModeChanged();
|
2007-09-20 20:34:24 +00:00
|
|
|
void showConfirmDialog();
|
|
|
|
|
|
|
|
void reinitKWinCompositing();
|
2007-07-20 16:19:09 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
KSharedConfigPtr mKWinConfig;
|
|
|
|
Ui::KWinAdvancedCompositingOptions ui;
|
2007-09-18 14:32:37 +00:00
|
|
|
CompositingPrefs* mDefaultPrefs;
|
2007-09-20 20:34:24 +00:00
|
|
|
QMap<QString, QString> mPreviousConfig;
|
2007-07-20 16:19:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|