Commit Graph

9204 Commits (1f97345e3545a0b9cd9232b0668b39cf6c652a4c)

Author SHA1 Message Date
Thomas Lübking d791b6e421 fix restore size for shaded windows
BUG: 243423
REVIEW: 104236
2012-03-13 21:38:55 +01:00
Thomas Lübking 0aefd56e0f store restore size /before/ removing the decoration for BorderlessMaximized (lead to window resizes on unmaximization)
BUG: 295449
REVIEW: 104185
2012-03-13 21:38:54 +01:00
Thomas Lübking dbea548a43 select minimum layer per screen
BUG: 261799
REVIEW: 104186
2012-03-13 21:38:54 +01:00
Marco Martin 2e576c7cdd turns out scripts are needed on PA 2012-03-13 13:48:14 +01:00
Martin Gräßlin 4e0ab36ae9 Add an AnimationData class for meta values
Objects of AnimationData can be instantiated by scripts and expose
all relevant data as properties, so that the ScriptedEffect can
construct the meta value out of it.

This is probably something that could be done a little bit better.
Still need to think about it, so API not yet final.

REVIEW: 103823
2012-03-12 21:37:47 +01:00
Martin Gräßlin 6baafd28cd Remove unused code 2012-03-12 21:37:42 +01:00
Martin Gräßlin 06b6ea1199 Export another enum 2012-03-12 21:37:42 +01:00
Martin Gräßlin fa66940966 Drop Plasma::ConfigLoader again
It doesn't make really any sense for the effects. Instead the
JS API allows to specify a default value for not present keys.
2012-03-12 21:37:42 +01:00
Martin Gräßlin 875df96143 Fix exporting of EffectWindowList to scripts 2012-03-12 21:37:42 +01:00
Martin Gräßlin ab0daa1701 FadeDesktop effect ported to JavaScript 2012-03-12 21:37:42 +01:00
Martin Gräßlin f8c0616574 Fade effect goes JavaScript
Our first effect written in JavaScript to replace an existing C++
effect. Fade effect has been chosen as it has shown to be problematic
in the past and would have needed a migration to AnimationEffect anyway.
2012-03-12 21:37:42 +01:00
Martin Gräßlin 048540a7c5 Fix error in package structure of scripted effects
The Plasma package structure contains a subdirectory "contents".
Furthermore we have to use locate instead of locateLocal to find
system wide installed packages and adding some debug output for
the case that the script cannot be found.
2012-03-12 21:37:41 +01:00
Martin Gräßlin 8175278526 Make displayWidth/Height available to scripts 2012-03-12 21:37:41 +01:00
Martin Gräßlin d0beb0b9a2 Make some EffectsHandler methods scriptable 2012-03-12 21:37:41 +01:00
Martin Gräßlin a8d3732240 Adding properties to EffectsHandler 2012-03-12 21:37:41 +01:00
Martin Gräßlin 3af37460f8 Make minimize EffectWindows work through scripting 2012-03-12 21:37:41 +01:00
Martin Gräßlin 98dd3ead43 Make some EffectWindow methods scriptable 2012-03-12 21:37:41 +01:00
Martin Gräßlin 8a74ad380c Some more properties for EffectWindow 2012-03-12 21:37:41 +01:00
Martin Gräßlin e3aaf017c0 Make EffectWindow's activities available to scripts 2012-03-12 21:37:41 +01:00
Martin Gräßlin 5246de285b Export animationTime to Scripted KWin effects 2012-03-12 21:37:41 +01:00
Martin Gräßlin 8996876044 Scripted effects become configurable
The scripted effects can define their configuration through a
KConfigXT file in the same way as a packaged Plasmoid. Because of
that the ScriptedEffect also uses the Plasma::ConfigLoader to load
and manage the configuration. The config group used for the scripted
effect is like any other effect the "Effect-name" group.

In difference to the Plasmoid JavaScript API effects are not allowed
to change their configuration.
2012-03-12 21:37:40 +01:00
Martin Gräßlin e363c6bb18 Adding a method to allow scripts to test whether a window is grabbed 2012-03-12 21:37:40 +01:00
Martin Gräßlin 5c02d0e41b Define Q_PROPERTIES for EffectWindow 2012-03-12 21:37:40 +01:00
Martin Gräßlin fdc917d469 Fix QML thumbnail item by using correct signal 2012-03-12 21:37:40 +01:00
Martin Gräßlin e824412535 Export FPx2 to scripted effects
Simplifies the API. An FPx2 can be defined as a single real value
or a complex object with two real values:
{
value1: 1.0,
value2: 2.0
}
For a default ctor a null value can be used.
2012-03-12 21:37:40 +01:00
Martin Gräßlin 5592dffb48 JavaScript bindings for KWin effects
Scripted effects follow the Plamsoid package structure and the effect
loader recognizes a scripted effect at the according line in the desktop
file. If it is a scripted effect a different loader is used which
instantiates an object of the ScriptedEffect class. This class inherits
the AnimationEffect and exports the animate method and the EffectsHandler.
2012-03-12 21:37:40 +01:00
Martin Gräßlin 2007a7eab8 Use namespaced parameters in signals
Required to get scripting bindings working.
2012-03-12 21:37:40 +01:00
Martin Gräßlin d4a919a9bf Demands Attention support for KWin Scripting
Client has a property for demands attention and Workspace
is emitting a signal whenever the demands attention state
of any Client changes.

REVIEW: 104204
2012-03-12 21:25:45 +01:00
Script Kiddy 21b859e520 SVN_SILENT made messages (.desktop file) 2012-03-12 14:34:18 +01:00
Thomas Lübking d50bf4e283 Merge branch 'KDE/4.8' 2012-03-11 23:50:42 +01:00
Thomas Lübking 63ab501557 zoom untracked towards cursor 2012-03-11 23:48:51 +01:00
Martin Gräßlin bfc406e073 QtScript wants namespaces params 2012-03-09 18:20:50 +01:00
Script Kiddy 58225c286b SVN_SILENT made messages (.desktop file) 2012-03-09 14:59:37 +01:00
Script Kiddy bfe144e30e SVN_SILENT made messages (.desktop file) 2012-03-09 09:50:00 +01:00
Burkhard Lück 037c59391f load catalog with translations 2012-03-08 15:29:53 +01:00
Martin Gräßlin 23485fd604 Add graphics system information to debug output 2012-03-08 07:46:21 +01:00
Christoph Feck 75a26a41b2 Fix build
CCMAIL: kwin@kde.org
2012-03-08 00:25:08 +01:00
Thomas Lübking 357b6b5338 resolve merge conflict 2012-03-07 22:02:26 +01:00
Thomas Lübking 3e4cb7539e fix shading for xrender compositing
REVIEW: 104150
2012-03-07 20:53:38 +01:00
Thomas Lübking c885d88f28 set desktop w/o desktop hint on all desktops
helps with legacy desktops replacing decorations like IceWM which withdraw the desktop settings

REVIEW: 104112
2012-03-07 20:52:15 +01:00
Thomas Lübking 3f0b4826dd - lower windows does not change focus for F(S)UM
- lower by shortcut honors nextFocusPrefersMouse setting

CCBUG: 80897
REVIEW: 104041
2012-03-07 20:49:44 +01:00
Stefano Avallone 76c00aa189 Refactor checks for inclusion of TabBoxClients in the client list
REVIEW: 104025
2012-03-05 20:26:35 +01:00
Script Kiddy e70b0efeea SVN_SILENT made messages (.desktop file) 2012-03-05 10:08:08 +01:00
Martin Gräßlin 15f9e80937 Merge branch 'KDE/4.8' 2012-03-04 16:36:39 +01:00
Martin Gräßlin b91e8e788b Ensure that update script does not overwrite settings
The upgrade script changed to thumbnails layout in case that there
has not been any settings for BoxSwitch effect stored in the config
file.

REVIEW: 104129
2012-03-04 16:35:55 +01:00
Martin Gräßlin 214375f923 Query KWin for available debug output
This adds extensive support information about the running instance
by printing out all used options, the compositing information
including GL platform, loaded effects and active effects.

The debug output can be retrieved through D-Bus:

qdbus org.kde.kwin /KWin supportInformation

or through a KWin Script (use desktop console):

print(workspace.supportInformation())

REVIEW: 104142
2012-03-04 15:21:10 +01:00
Martin Gräßlin e8a038d66f More getters for GlPlatform
A few more getters for parsed information are added to GlPlatform.
This includes the driver information retrieved through glGetString
and information like direct rendering and loose binding.

Additionally the methods to convert version, driver and chipClass
to string are added to the public interface.

These changes allow parts outside GlPlatform to get the same debug
information about the GL system.
2012-03-04 15:21:10 +01:00
Script Kiddy c4ba09aa93 SVN_SILENT made messages (.desktop file) 2012-03-04 09:25:16 +01:00
Montel Laurent 329bd03f6b Fix warning 2012-03-02 14:03:05 +01:00
Montel Laurent b8478624aa Fix warning 2012-03-02 13:58:39 +01:00