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>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#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
|