Commit graph

23 commits

Author SHA1 Message Date
Martin Gräßlin
cb5360c53d Improve mouse click behavior of Aurorae Menu button
The general idea is: single click opens menu, double click closes
the window. The problem is that the when the menu is opened after
the single click, the menu will eat the second click. So double
click will not work.

This commit brings back the workaround from Aurorae2. The clicked
event is not used at all, but we start a timer on the press event
with the doubleClickInterval. If no double click appears during the
interval we open the menu, if there is a double click we close the
window.

The downside of this approach is that there is a slight delay between
clicking the menu button and the menu appearing. For that the right
click behavior is unchanged. That is right clicking opens the menu
instantly and double click to close it, is broken.
2012-02-16 11:34:37 +01:00
Martin Gräßlin
a1bee6f8a7 Proper button handling in Aurorae QML
Buttons are exported as a global "options" in the factory.
Additionally the theme's buttons are also exported. The thme decided
based on the custom button positions property which one to use.

In the kcm the button options are also exported.
2012-01-13 18:08:45 +01:00
Martin Gräßlin
b44efd3c22 Use one declarative engine for all decortions
Each decoration gets a graphicsview and scene instead and a declarative
item is created for each decoration.

There's probably still room for improvments. E.g. never render the
scene onto the widget but directly into the textures?
2012-01-13 18:08:43 +01:00
Martin Gräßlin
fee9a52fd5 No longer updating the window shape
We don't have the mask for the opaque version anyway, so it does
not make any sense as for composited no mask was set.
2012-01-13 18:08:42 +01:00
Martin Gräßlin
d78320fa65 Support for Maximized/Restore buttons 2012-01-13 18:08:41 +01:00
Martin Gräßlin
5c36fcac36 Aurorae goes QML
What's working:
* background for active and inactive decorations inclusive transitions
* all buttons get loaded
* transition between button states
* all borders, paddings etc is working
* mouse interaction with buttons and title area

What's not yet working:
* special maximize mode
* mouse wheel on title area
* window tabs
* changing themes
* crash resistence (currently a not compiling QML file crashes KWin badly)
* window/blur mask (tricky - we need the alpha mask of the background SVG)

What's going to be dropped:
* special opaque mode
* decoration position at left/right/bottom instead of top
Why? Because nobody uses these features
2012-01-13 18:08:41 +01:00
Martin Gräßlin
e8e4029a79 Prepare Aurorae for a QML based theme 2012-01-13 18:08:41 +01:00
Martin Gräßlin
e801c12c69 Create a DeclarativeView instead of GraphicsView
Now we cannot see anything any more, but hey it compiles :-)
2012-01-13 18:08:41 +01:00
Martin Gräßlin
d8ce81d241 First set of properties and signals added to Aurorae 2012-01-13 18:08:40 +01:00
Martin Gräßlin
36744df4c1 Defer deletion of the AuroraeScene and View to the next event loop. It is possible that the scene get's deleted before processing mouse events is finished which causes crashes.
BUG: 242165
FIXED-IN: 4.5.0
CCBUG: 241876
CCBUG: 242116

svn path=/trunk/KDE/kdebase/workspace/; revision=1139942
2010-06-19 15:23:48 +00:00
Martin Gräßlin
a9d772796c Drag&Drop support for window tabs in Aurorae.
svn path=/trunk/KDE/kdebase/workspace/; revision=1124608
2010-05-09 16:34:58 +00:00
Martin Gräßlin
a1fa419ea6 Aurorae supports window tabbing.
svn path=/trunk/KDE/kdebase/workspace/; revision=1124521
2010-05-09 09:08:09 +00:00
Martin Gräßlin
1bcd9fe4f6 Import of new Aurorae based on QGraphicsView and KDecoration instead of KCommonDecoration.
It should support everything the old engine supported. Only known regression is the lack of tooltips.
Now finally Aurorae is ready to get window tab support \o/

svn path=/trunk/KDE/kdebase/workspace/; revision=1114115
2010-04-12 19:28:58 +00:00
Martin Gräßlin
12efb634f0 Fix forward declaration.
svn path=/trunk/KDE/kdebase/workspace/; revision=1081957
2010-01-29 12:38:20 +00:00
Martin Gräßlin
25852b6eaa Aurorae uses a QPropertyAnimation for the animation instead of Plasma::Animator::customAnimation.
deprecatedCode--

svn path=/trunk/KDE/kdebase/workspace/; revision=1081956
2010-01-29 12:37:42 +00:00
Martin Gräßlin
c92e314c9f Do not abort if the Aurorae theme could not be loaded. So a missing theme will result in a translucent decoration and not in a crashing kwin.
svn path=/trunk/KDE/kdebase/workspace/; revision=1068533
2010-01-01 12:47:48 +00:00
Martin Gräßlin
88c7f69708 Aurorae supports border sizes.
svn path=/trunk/KDE/kdebase/workspace/; revision=1046472
2009-11-08 20:35:34 +00:00
Martin Gräßlin
8fd12edfe0 Animation for active/inactive change in Aurorae.
svn path=/trunk/KDE/kdebase/workspace/; revision=1043389
2009-11-01 12:12:30 +00:00
Martin Gräßlin
5582f69f92 Let's use the reset method for compositing change instead of the KSelectionWatcher hack
svn path=/trunk/KDE/kdebase/workspace/; revision=1043060
2009-10-31 17:06:31 +00:00
Martin Gräßlin
d32d9c4876 As KSelectionWatcher is finally working we can add a selection watcher on compositing change to update the mask and to repaint the deco.
So finally we have the shadow back when resuming. Of course it would be nice if kwin would just inform the decos and they don't have to watch for themselves ;-)

svn path=/trunk/KDE/kdebase/workspace/; revision=1003235
2009-07-27 21:30:26 +00:00
Laurent Montel
ffdb93e845 Fix forward declaration
svn path=/trunk/KDE/kdebase/workspace/; revision=989832
2009-07-01 07:01:18 +00:00
Laurent Montel
fb35ff9813 Pedantic
svn path=/trunk/KDE/kdebase/workspace/; revision=989477
2009-06-30 11:34:57 +00:00
Martin Gräßlin
2d24bce243 Initial import of Aurorae Kwin decoration theme engine.
This theme engine uses SVG files to theme the decoration like the themes for Plasma desktop shell.

svn path=/trunk/playground/artwork/aurorae/; revision=983819
2009-06-19 09:18:07 +00:00