Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinscreenedges/touch.cpp
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Line(s) | 188 | { | |||
---|---|---|---|---|---|
247 | foreach (int i, list) { | 247 | foreach (int i, list) { | ||
248 | monitorChangeEdge(ElectricBorder(i), int(Sphere)); | 248 | monitorChangeEdge(ElectricBorder(i), int(Sphere)); | ||
249 | } | 249 | } | ||
250 | 250 | | |||
251 | // TabBox | 251 | // TabBox | ||
252 | KConfigGroup tabBoxConfig(m_config, "TabBox"); | 252 | KConfigGroup tabBoxConfig(m_config, "TabBox"); | ||
253 | list.clear(); | 253 | list.clear(); | ||
254 | // TabBox | 254 | // TabBox | ||
255 | list.append(int(ElectricNone)); | 255 | list.append(int(ElectricLeft)); | ||
256 | list = tabBoxConfig.readEntry("TouchBorderActivate", list); | 256 | list = tabBoxConfig.readEntry("TouchBorderActivate", list); | ||
257 | foreach (int i, list) { | 257 | foreach (int i, list) { | ||
258 | monitorChangeEdge(ElectricBorder(i), int(TabBox)); | 258 | monitorChangeEdge(ElectricBorder(i), int(TabBox)); | ||
259 | } | 259 | } | ||
260 | // Alternative TabBox | 260 | // Alternative TabBox | ||
261 | list.clear(); | 261 | list.clear(); | ||
262 | list.append(int(ElectricNone)); | 262 | list.append(int(ElectricNone)); | ||
263 | list = tabBoxConfig.readEntry("TouchBorderAlternativeActivate", list); | 263 | list = tabBoxConfig.readEntry("TouchBorderAlternativeActivate", list); | ||
▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 298 | { | |||
342 | } | 342 | } | ||
343 | } | 343 | } | ||
344 | 344 | | |||
345 | void KWinScreenEdgesConfig::monitorDefaults() | 345 | void KWinScreenEdgesConfig::monitorDefaults() | ||
346 | { | 346 | { | ||
347 | // Clear all edges | 347 | // Clear all edges | ||
348 | for (int i = 0; i < 8; i++) | 348 | for (int i = 0; i < 8; i++) | ||
349 | m_ui->monitor->selectEdgeItem(i, 0); | 349 | m_ui->monitor->selectEdgeItem(i, 0); | ||
350 | // select TabBox | ||||
351 | m_ui->monitor->selectEdgeItem(int(Monitor::Left), int(TabBox)); | ||||
350 | } | 352 | } | ||
351 | 353 | | |||
352 | void KWinScreenEdgesConfig::monitorShowEvent() | 354 | void KWinScreenEdgesConfig::monitorShowEvent() | ||
353 | { | 355 | { | ||
354 | // Check if they are enabled | 356 | // Check if they are enabled | ||
355 | KConfigGroup config(m_config, "Plugins"); | 357 | KConfigGroup config(m_config, "Plugins"); | ||
356 | 358 | | |||
357 | // Present Windows | 359 | // Present Windows | ||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |