Commit graph

8796 commits

Author SHA1 Message Date
Martin Gräßlin
2e69668f99 Fix TabBoxHandler::containsPos for desktop switching box 2012-01-14 15:02:30 +01:00
Martin Gräßlin
58725981eb Drop more unused TabBox related code
Especially we do no longer need to invoke JavaScript methods from C++.
2012-01-14 15:01:42 +01:00
Martin Gräßlin
28dd3b1353 Adjust TabBox::handleMouseEvent for only declarative views
Makes mouse wheel work again.
2012-01-14 14:48:06 +01:00
Martin Gräßlin
bd5ad8aa6b Remove unused build-dep on QtXml from KWin
Was used to parse the tabbox layout configuration.
2012-01-14 14:25:21 +01:00
Martin Gräßlin
9bb59dc1ed Fix incorrect merge from KDE/4.8 branch
CCMAIL afiestas@kde.org
2012-01-14 14:10:46 +01:00
Alex Fiestas
9e943bf39e Merge branch 'KDE/4.8'
Conflicts:
	kwin/tabbox/tabboxhandler.cpp
2012-01-14 13:25:19 +01:00
Martin Gräßlin
a243d0b0b8 Delete highlight windows property from correct window
TabBox is always declarative view.
2012-01-14 11:55:39 +01:00
Martin Gräßlin
c85452d517 Drop old (non QML) TabBox
This includes the delegates, the layout configuration for the delegates
and the custom view for the TabBox.

This can now finally be done as desktop tabbox is based on QML, too.
2012-01-14 11:51:35 +01:00
Martin Gräßlin
e1cbb33631 Desktop Box support for QML based TabBox
First very simple layout just rendering icon and name.
Good enough for the start.
2012-01-14 11:51:35 +01:00
Martin Gräßlin
1f07877adb Move AuroraePreview into a Loader
Makes performance of list a little bit better.
2012-01-13 18:08:46 +01:00
Martin Gräßlin
afae882ba4 Adding scrollbar to list view 2012-01-13 18:08:46 +01:00
Martin Gräßlin
2fce5db7cf Fix button sizes in Aurorae
Maximize/Restore, Menu and spacers did not honor button size factor.
2012-01-13 18:08:45 +01:00
Martin Gräßlin
de72df5a90 Proper resetting of Aurorae on changes
Most settings don't require a reload of the decorations.
2012-01-13 18:08:45 +01:00
Martin Gräßlin
5f5499a74f Reload Aurorae buttons when the button settings changed 2012-01-13 18:08:45 +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
4e07ced451 Drop unused code 2012-01-13 18:08:45 +01:00
Martin Gräßlin
0df0266602 Makes two methods private which are no longer accessed from outside 2012-01-13 18:08:45 +01:00
Martin Gräßlin
beba190f8f Correctly update decoration width/height on theme change 2012-01-13 18:08:45 +01:00
Martin Gräßlin
12ca69deda Ensure that borders have at least a size of 0
Prevents cropping of windows with tiny borders.
BUG: 257428
2012-01-13 18:08:45 +01:00
Martin Gräßlin
cb47db887c Fix c'n'p error 2012-01-13 18:08:44 +01:00
Martin Gräßlin
30d8f2c1ea Don't load FrameSvg in AuroraeTheme
This allows to remove Plasma compile dependency from Aurorae and
the KCM.
2012-01-13 18:08:44 +01:00
Martin Gräßlin
8a4a8b3903 Drop GraphicsScene based Aurorae 2012-01-13 18:08:44 +01:00
Martin Gräßlin
5ce7381f15 Decoration KCM uses QML and loads QML based Aurorae themes
This allows to have the Aurorae themes interactive.
2012-01-13 18:08:44 +01:00
Martin Gräßlin
a0efa6453e Adding a slot to load an AuroraeTheme.
Can be used from the decoration module to load the theme for each
decoration.
2012-01-13 18:08:44 +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
c2b23a3772 Aurorae supports all buttons
Not really correct, but we can hardly check it.
2012-01-13 18:08:43 +01:00
Martin Gräßlin
acfdc9765e Disable window tabbing in Aurorae 2012-01-13 18:08:43 +01:00
Martin Gräßlin
459794f65a Send mouse events to support window resizing 2012-01-13 18:08:43 +01:00
Martin Gräßlin
a8f47b6a4a Reload Aurorae theme when settings changed. 2012-01-13 18:08:43 +01:00
Martin Gräßlin
f96f5c979e Better Maximized/Restore button
Use just one button with the two variants embedded. Makes the state
transitions more robust.
2012-01-13 18:08:42 +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
d5021ca956 Don't read properties if compiling the script failed 2012-01-13 18:08:42 +01:00
Martin Gräßlin
5ba3f0356b Use parallel animations for button group 2012-01-13 18:08:42 +01:00
Martin Gräßlin
41dc4f35d1 Add inner-border support 2012-01-13 18:08:42 +01:00
Martin Gräßlin
90c882161c Export titleHeight for caption element 2012-01-13 18:08:42 +01:00
Martin Gräßlin
9b5f5a49cc Proper maximized support in Aurorae (QML)
Switches to the explicit maximized decoration element and animates
the button groups and caption.

Legacy support for just the centered element is still missing. Unsure
if it should be added or if it makes sense to break compatibility here.
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
ee882624e4 Make AuroraeTheme config available through properties
Some minor aspects are still missing. Will be added if needed.
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
Thomas Lübking
c33c52d09a Fix regression igonring hiddenPreviews on stacking updates
BUG: 289945
REVIEW: 103687
2012-01-13 16:42:39 +01:00
Thomas Lübking
e76ecd7c4c Don't listen to repetitive motif hints regarding the window border and prefer rules over them anyway
BUG: 291312
REVIEW: 103681
FIXED-IN: 4.8
2012-01-13 16:42:39 +01:00
Thomas Lübking
7d3f668790 Withdraw partial maximization state when resizing partially maximized client but moveResizeMaximizedWindows() isn't true
REVIEW: 103683
BUG: 290990
FIXED-IN: 4.8
2012-01-13 16:42:39 +01:00
Thomas Lübking
17eb923f34 Fix regression igonring hiddenPreviews on stacking updates
BUG: 289945
REVIEW: 103687
2012-01-13 15:57:34 +01:00
Thomas Lübking
5f2371a47d Don't listen to repetitive motif hints regarding the window border and prefer rules over them anyway
BUG: 291312
REVIEW: 103681
FIXED-IN: 4.8
2012-01-13 15:57:34 +01:00
Thomas Lübking
d57a0a05ab Withdraw partial maximization state when resizing partially maximized client but moveResizeMaximizedWindows() isn't true
REVIEW: 103683
BUG: 290990
FIXED-IN: 4.8
2012-01-13 15:57:34 +01:00
Martin Gräßlin
8627c12167 Remove stupid code 2012-01-13 09:19:45 +01:00
Martin Gräßlin
e785550be4 Remove unused method parameter in Fade effect 2012-01-13 09:15:44 +01:00