Changeset View
Changeset View
Standalone View
Standalone View
effects/wobblywindows/wobblywindows.cpp
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Line(s) | |||||
136 | }; | 136 | }; | ||
137 | 137 | | |||
138 | static const ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; | 138 | static const ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; | ||
139 | 139 | | |||
140 | WobblyWindowsEffect::WobblyWindowsEffect() | 140 | WobblyWindowsEffect::WobblyWindowsEffect() | ||
141 | { | 141 | { | ||
142 | initConfig<WobblyWindowsConfig>(); | 142 | initConfig<WobblyWindowsConfig>(); | ||
143 | reconfigure(ReconfigureAll); | 143 | reconfigure(ReconfigureAll); | ||
144 | connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*))); | 144 | connect(effects, &EffectsHandler::windowAdded, this, &WobblyWindowsEffect::slotWindowAdded); | ||
145 | connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*))); | 145 | connect(effects, &EffectsHandler::windowClosed, this, &WobblyWindowsEffect::slotWindowClosed); | ||
146 | connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(KWin::EffectWindow*))); | 146 | connect(effects, &EffectsHandler::windowStartUserMovedResized, this, &WobblyWindowsEffect::slotWindowStartUserMovedResized); | ||
147 | connect(effects, SIGNAL(windowStepUserMovedResized(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(KWin::EffectWindow*,QRect))); | 147 | connect(effects, &EffectsHandler::windowStepUserMovedResized, this, &WobblyWindowsEffect::slotWindowStepUserMovedResized); | ||
148 | connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*))); | 148 | connect(effects, &EffectsHandler::windowFinishUserMovedResized, this, &WobblyWindowsEffect::slotWindowFinishUserMovedResized); | ||
149 | connect(effects, SIGNAL(windowMaximizedStateChanged(KWin::EffectWindow*,bool,bool)), this, SLOT(slotWindowMaximizeStateChanged(KWin::EffectWindow*,bool,bool))); | 149 | connect(effects, &EffectsHandler::windowMaximizedStateChanged, this, &WobblyWindowsEffect::slotWindowMaximizeStateChanged); | ||
150 | | ||||
151 | connect(effects, &EffectsHandler::windowDataChanged, this, &WobblyWindowsEffect::cancelWindowGrab); | 150 | connect(effects, &EffectsHandler::windowDataChanged, this, &WobblyWindowsEffect::cancelWindowGrab); | ||
152 | } | 151 | } | ||
153 | 152 | | |||
154 | WobblyWindowsEffect::~WobblyWindowsEffect() | 153 | WobblyWindowsEffect::~WobblyWindowsEffect() | ||
155 | { | 154 | { | ||
156 | if (!windows.empty()) { | 155 | if (!windows.empty()) { | ||
157 | // we should be empty at this point... | 156 | // we should be empty at this point... | ||
158 | // emit a warning and clean the list. | 157 | // emit a warning and clean the list. | ||
▲ Show 20 Lines • Show All 1070 Lines • Show Last 20 Lines |