1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
/***************************************************************************
* Copyright (C) 2003-2005 by liuspider *
* liuspider@users.sourceforge.net *
* *
* 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. *
**************************************************************************/
#ifndef SCIMLAUNCHER_H
#define SCIMLAUNCHER_H
#include "src/skimplugin.h"
#include "dcopobject.h"
class CompMgrClient : public SkimPlugin, public DCOPObject
{
Q_OBJECT
K_DCOP
friend class CompositeManagerConfig;
friend class TopWindowlistViewItem;
public:
CompMgrClient(QObject *parent, const char *name, const QStringList & /*args*/);
virtual ~CompMgrClient();
virtual void setOpacity(QWidget *w, uint opacity, bool updateImmediate = true);
// virtual void aboutToUnload();
k_dcop:
void update(QString);
public slots:
virtual void loadCompositeSettings();
virtual void updateCompositeSettings(QString name = QString::null);
private:
void create_X11_atoms();
virtual void loadCompositeSettingsInternal();
struct windowCompositeSetting
{
bool translucencyEnabled;
int translucency;
bool operator == (const windowCompositeSetting & st) const {
return translucencyEnabled == st.translucencyEnabled && translucency == st.translucency;
}
};
void fillWidgetSetting(const QString &, bool overwrite = true);
typedef QMap<QString, windowCompositeSetting> WindowCompositeSettingRepository;
WindowCompositeSettingRepository m_compSetting;
bool m_enableComposite;
bool m_useKompmgr;
bool m_createdAtoms;
// QValueStack< QPair<QWidget *, int> > widgetToUpdateComposite;
};
#endif
|