add missing files

svn path=/trunk/KDE/kdebase/workspace/; revision=1021328
icc-effect-5.14.5
Marco Martin 2009-09-08 21:27:12 +00:00
parent f6bf95cb44
commit f642eab20b
2 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,40 @@
/********************************************************************
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2009 Lucas Murray <lmurray@undefinedfire.com>
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.
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/>.
*********************************************************************/
#include "fade_proxy.h"
#include "fade.h"
namespace KWin
{
FadeEffectProxy::FadeEffectProxy( FadeEffect* effect )
: m_effect( effect )
{
}
FadeEffectProxy::~FadeEffectProxy()
{
}
void FadeEffectProxy::setWindowIgnored(EffectWindow *w, bool ignore)
{
m_effect->setWindowIgnored(w, ignore);
}
} // namespace

47
effects/fade/fade_proxy.h Normal file
View File

@ -0,0 +1,47 @@
/********************************************************************
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2009 Lucas Murray <lmurray@undefinedfire.com>
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.
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/>.
*********************************************************************/
#ifndef KWIN_FADE_PROXY_H
#define KWIN_FADE_PROXY_H
#include <kwineffects.h>
namespace KWin
{
class FadeEffect;
// Example proxy code, TODO: Use or remove
class FadeEffectProxy
{
public:
FadeEffectProxy( FadeEffect* effect );
~FadeEffectProxy();
void setWindowIgnored(EffectWindow *w, bool ignore);
private:
FadeEffect* m_effect;
};
} // namespace
#endif