Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 1713 Lines • ▼ Show 20 Line(s) | 1713 | { | |||
---|---|---|---|---|---|
1714 | sceneWindow()->enablePainting(reason); | 1714 | sceneWindow()->enablePainting(reason); | ||
1715 | } | 1715 | } | ||
1716 | 1716 | | |||
1717 | void EffectWindowImpl::disablePainting(int reason) | 1717 | void EffectWindowImpl::disablePainting(int reason) | ||
1718 | { | 1718 | { | ||
1719 | sceneWindow()->disablePainting(reason); | 1719 | sceneWindow()->disablePainting(reason); | ||
1720 | } | 1720 | } | ||
1721 | 1721 | | |||
1722 | void EffectWindowImpl::addRepaint(const QRect &r) | ||||
1723 | { | ||||
1724 | toplevel->addRepaint(r); | ||||
1725 | } | ||||
1726 | | ||||
1727 | void EffectWindowImpl::addRepaint(int x, int y, int w, int h) | ||||
1728 | { | ||||
1729 | toplevel->addRepaint(x, y, w, h); | ||||
1730 | } | ||||
1731 | | ||||
1732 | void EffectWindowImpl::addRepaintFull() | ||||
1733 | { | ||||
1734 | toplevel->addRepaintFull(); | ||||
1735 | } | ||||
1736 | | ||||
1737 | void EffectWindowImpl::addLayerRepaint(const QRect &r) | ||||
1738 | { | ||||
1739 | toplevel->addLayerRepaint(r); | ||||
1740 | } | ||||
1741 | | ||||
1742 | void EffectWindowImpl::addLayerRepaint(int x, int y, int w, int h) | ||||
1743 | { | ||||
1744 | toplevel->addLayerRepaint(x, y, w, h); | ||||
1745 | } | ||||
1746 | | ||||
1722 | const EffectWindowGroup* EffectWindowImpl::group() const | 1747 | const EffectWindowGroup* EffectWindowImpl::group() const | ||
1723 | { | 1748 | { | ||
1724 | if (auto c = qobject_cast<Client *>(toplevel)) { | 1749 | if (auto c = qobject_cast<Client *>(toplevel)) { | ||
1725 | return c->group()->effectGroup(); | 1750 | return c->group()->effectGroup(); | ||
1726 | } | 1751 | } | ||
1727 | return nullptr; // TODO | 1752 | return nullptr; // TODO | ||
1728 | } | 1753 | } | ||
1729 | 1754 | | |||
▲ Show 20 Lines • Show All 277 Lines • ▼ Show 20 Line(s) | |||||
2007 | } | 2032 | } | ||
2008 | 2033 | | |||
2009 | void EffectWindowImpl::desktopThumbnailDestroyed(QObject *object) | 2034 | void EffectWindowImpl::desktopThumbnailDestroyed(QObject *object) | ||
2010 | { | 2035 | { | ||
2011 | // we know it is a DesktopThumbnailItem | 2036 | // we know it is a DesktopThumbnailItem | ||
2012 | m_desktopThumbnails.removeAll(static_cast<DesktopThumbnailItem*>(object)); | 2037 | m_desktopThumbnails.removeAll(static_cast<DesktopThumbnailItem*>(object)); | ||
2013 | } | 2038 | } | ||
2014 | 2039 | | |||
2040 | void EffectWindowImpl::minimize() | ||||
2041 | { | ||||
2042 | if (auto client = qobject_cast<AbstractClient *>(toplevel)) { | ||||
2043 | client->minimize(); | ||||
2044 | } | ||||
2045 | } | ||||
2046 | | ||||
2047 | void EffectWindowImpl::unminimize() | ||||
2048 | { | ||||
2049 | if (auto client = qobject_cast<AbstractClient *>(toplevel)) { | ||||
2050 | client->unminimize(); | ||||
2051 | } | ||||
2052 | } | ||||
2053 | | ||||
2054 | void EffectWindowImpl::closeWindow() | ||||
2055 | { | ||||
2056 | if (auto client = qobject_cast<AbstractClient *>(toplevel)) { | ||||
2057 | client->closeWindow(); | ||||
2058 | } | ||||
2059 | } | ||||
2060 | | ||||
2015 | void EffectWindowImpl::referencePreviousWindowPixmap() | 2061 | void EffectWindowImpl::referencePreviousWindowPixmap() | ||
2016 | { | 2062 | { | ||
2017 | if (sw) { | 2063 | if (sw) { | ||
2018 | sw->referencePreviousPixmap(); | 2064 | sw->referencePreviousPixmap(); | ||
2019 | } | 2065 | } | ||
2020 | } | 2066 | } | ||
2021 | 2067 | | |||
2022 | void EffectWindowImpl::unreferencePreviousWindowPixmap() | 2068 | void EffectWindowImpl::unreferencePreviousWindowPixmap() | ||
▲ Show 20 Lines • Show All 278 Lines • Show Last 20 Lines |