Commit graph

54 commits

Author SHA1 Message Date
Martin Gräßlin
47857bb9f3 [oxygen] Use new update mechanism of KDecoration in the Button
This allows to have the button animations working in the preview.

Needs to change the reference to Client to non-const.
2013-11-14 09:41:52 +01:00
Martin Gräßlin
f5819656b6 Q_SLOTS/Q_SIGNALS in Oxygen windeco 2013-07-30 06:56:16 +02:00
Hugo Pereira Da Costa
fcb275abe7 - use kcfg for shadow configuration
- move Shadow configuration UI to libs
- removed useDropShadow and useOxygenShadow options, and replaced by activeShadow::enable and inactiveShadow::enable
- use kcfg for decoration configuration. The handling of exceptions requires dedicated readConfig and writeConfig methods, implemented in oxygenutils
- changed sizegrip combobox into a check box and rephrased for clarification
2013-01-07 12:12:12 +01:00
Cedric Bellegarde
53ae2b91e2 GUI: Kwin appmenu support:
- Add support for application menu button in Kwin
- Add kded appmenu configuration in kcm_style
2012-11-09 13:44:50 +01:00
Hugo Pereira Da Costa
acf1ba4717 keep button hover state even when pressed. 2011-09-22 22:22:37 +02:00
Hugo Pereira Da Costa
58e2393d56 re-ordered button.
No "parentUpdate" in non-compositing mode (cause unneeded)
2011-09-19 16:23:29 +02:00
Hugo Pereira Da Costa
b8a767e3cf properly update parent when button state is changed. 2011-09-19 15:20:07 +02:00
Hugo Pereira Da Costa
01da5bb015 moved all button painting to client. 2011-09-19 15:16:43 +02:00
Hugo Pereira Da Costa
c5365e287a fixed indentation. 2011-09-13 14:19:47 +02:00
Hugo Pereira Da Costa
c21122c863 added necessary options to configure all type of animations individually. 2011-07-18 07:36:44 +02:00
Hugo Pereira Da Costa
dfcab17585 use backing store pixmap for buttons when compositing is not active.
Copy parent backgronud from backing store pixmap when rendering buttons.
2011-06-28 09:24:02 +02:00
Hugo Pereira Da Costa
d3d5d9b9d3 Merge branch 'master' into master-no-composite 2011-06-28 09:09:50 +02:00
Hugo Pereira Da Costa
f6a12ad1cf coding style. 2011-06-28 09:09:31 +02:00
Hugo Pereira Da Costa
8361b13de9 added double buffering to oxygen-client when compositing is off;
force update of buttons in client->paintEvent();
call _client->paint() from Button, instead of parentWidget()->render();
2011-06-28 01:27:58 +02:00
Hugo Pereira Da Costa
6e0733e0de fixed button rendering when compositing is disabled. 2011-06-28 01:09:22 +02:00
Hugo Pereira Da Costa
24543ebbb9 Use QPalette::Button colors for button (!) rendering. 2011-04-28 17:28:46 +02:00
Hugo Pereira Da Costa
0960942f4e cleanup variable names for consistency 2011-02-24 17:37:04 +01:00
Pavel Heimlich
2a1de10460 fix build. properly initialize QString
svn path=/trunk/KDE/kdebase/workspace/; revision=1187632
2010-10-19 22:42:05 +00:00
Hugo Pereira Da Costa
6309ac1928 OxygenClient: remove use of QWeakPointer for the glowAnimation_ as it is unnecessary: the object is never used outside of the class
and is a child of the client, deleted in the client destructor, by Qt.

Client, Button: removed useless acessor to the glowAnimation pointer.

svn path=/trunk/KDE/kdebase/workspace/; revision=1170327
2010-08-31 14:24:01 +00:00
Hugo Pereira Da Costa
1a1d2b964b Removed use of a weakPointer for storing the glowAnimation in buttons:
it is unnecessary since the object is never accessed outside of the button class, is a child and the button, and thus destroyed 
only in the button destructor, by Qt. 


svn path=/trunk/KDE/kdebase/workspace/; revision=1170321
2010-08-31 14:18:02 +00:00
Hugo Pereira Da Costa
2947ec516b - Simplified titleBar title color handling, moved to oxygenHelper, and cached.
- added some missing consts in Client.

svn path=/trunk/KDE/kdebase/workspace/; revision=1169247
2010-08-28 19:58:22 +00:00
Hugo Pereira Da Costa
18042bba95 removed all connections to QPropertyAnimation::valueChanged() and call relevant update in the 'setValue' method directly, instead
svn path=/trunk/KDE/kdebase/workspace/; revision=1168989
2010-08-28 02:52:26 +00:00
Hugo Pereira Da Costa
ed8788d3af - added utility inline functions for readability
- cleaned up color handling
- fixed appearance of toggled keep above and keep-below buttons, consistently with the 'on all desktop' 
button.

svn path=/trunk/KDE/kdebase/workspace/; revision=1146313
2010-07-05 17:39:25 +00:00
Hugo Pereira Da Costa
56095681ed changed helper.h/.cpp into oxygendecohelper.h/.cpp for consistency with classname.
svn path=/trunk/KDE/kdebase/workspace/; revision=1121943
2010-05-02 18:50:01 +00:00
Hugo Pereira Da Costa
43d7384663 oxygen.h/.cpp renamed to oxygenfactory.h/.cpp for consistency.
svn path=/trunk/KDE/kdebase/workspace/; revision=1121941
2010-05-02 18:38:05 +00:00
Hugo Pereira Da Costa
c5bf8d012e Changed all "Oxygen::OxygenXXX" classnames into "Oxygen::XXX" for consistancy with style class
naming scheme. Also made indentation consistent.

svn path=/trunk/KDE/kdebase/workspace/; revision=1121935
2010-05-02 18:34:08 +00:00
Hugo Pereira Da Costa
8d1314a26b added local oxygendecohelper, that derives from libs/oxygen/oxygenhelper and implements methods used here but not in the style. Modified relevant headers accordingly
svn path=/trunk/KDE/kdebase/workspace/; revision=1099028
2010-03-04 22:49:18 +00:00
Aaron J. Seigo
bfbe44dacc * move kstyles from runtime into workspace
* make a proper library out of the oxygen helper lib
* make the oxygen widget and kwin style link against it

svn path=/trunk/KDE/kdebase/workspace/; revision=1097791
2010-03-02 03:40:34 +00:00
Hugo Pereira Da Costa
5a852ac75b make sure that the (hidden) useAnimation flag also disables button hover animated glow
svn path=/trunk/KDE/kdebase/workspace/; revision=1084320
2010-02-02 21:55:56 +00:00
Hugo Pereira Da Costa
045daadccb used external lib/oxygenanimation class to handle animations in place of QTimeLine. This will make transition to Qt Kinetic easier
svn path=/trunk/KDE/kdebase/workspace/; revision=1050690
2009-11-17 21:56:04 +00:00
Lucas Murray
a0d07d12a2 Merged r970865:1049322 from /branches/work/kwin-tabbing
Adds window tabbing support to KWin.
FEATURE: 42023

svn path=/trunk/KDE/kdebase/workspace/; revision=1049334
2009-11-15 03:24:04 +00:00
Hugo Pereira Da Costa
88cfb2df63 changed back 'setDirty' method into 'update' method. kwin/paintRedirector should be fixed though, so that buttons created after the deco is registered for redirection are properly accounted for
svn path=/trunk/KDE/kdebase/workspace/; revision=1036114
2009-10-16 16:25:02 +00:00
Hugo Pereira Da Costa
e26538e368 port design changes from tabbing branch to trunk: new title outline design; simplification of layout metrics; proper handling of text ellision; simplification of shadow cache; addition of to local button types. In oxygen.h also temporarily added missing enumeration to ease compilation against kde4.3
svn path=/trunk/KDE/kdebase/workspace/; revision=1035658
2009-10-15 16:03:30 +00:00
Hugo Pereira Da Costa
253892d5dd More code cleanup: moved declaration of 'reduceContrast' and 'renderDot' global functions to oxygenclient.h. Added 'renderFlags' to control which part of the button is to be drawn. Also added flag to force button as 'inactive' even if belonging to an active window (needed for window tabs)
svn path=/trunk/KDE/kdebase/workspace/; revision=1035245
2009-10-14 15:36:38 +00:00
Hugo Pereira Da Costa
cef60f90cb removed useless colorCacheInvalid_ member
svn path=/trunk/KDE/kdebase/workspace/; revision=1034964
2009-10-14 02:55:40 +00:00
Hugo Pereira Da Costa
3c3d093d2b set local reference to client as const. Safer
svn path=/trunk/KDE/kdebase/workspace/; revision=1034053
2009-10-11 20:30:38 +00:00
Hugo Pereira Da Costa
b4f63cb440 fixed Qt headers; removed WX11 defines; removed 'using namespace std'
svn path=/trunk/KDE/kdebase/workspace/; revision=1025937
2009-09-20 07:42:03 +00:00
Hugo Pereira Da Costa
99c012ab33 Changed inactive button shape to match active button; moved more methods inline; added smooth transition between active and inactive button
svn path=/trunk/KDE/kdebase/workspace/; revision=1025846
2009-09-19 21:12:57 +00:00
Hugo Pereira Da Costa
45f5f00f9f Removed oxygentimeline (was not working). Use qtimeline directly, to handle animations. It is simpler, and it is actually working. Also changed 'repaint' into 'update' for the slot connected to the timeLine FrameChanged signal. More efficient.
svn path=/trunk/KDE/kdebase/workspace/; revision=1024648
2009-09-17 03:43:55 +00:00
Hugo Pereira Da Costa
e679d07b93 Added animated button glow.
svn path=/trunk/KDE/kdebase/workspace/; revision=1024489
2009-09-16 17:09:33 +00:00
Hugo Pereira Da Costa
8244e7644f Changed nitrogen class names and file names into oxygen; adding Oxygen namespace where missing; updated CMakeFiles.txt accordingly
svn path=/trunk/KDE/kdebase/workspace/; revision=1023654
2009-09-15 07:12:54 +00:00
Hugo Pereira Da Costa
c7f4edf5e1 Removed oxygen decoration
svn path=/trunk/KDE/kdebase/workspace/; revision=1023633
2009-09-15 05:36:30 +00:00
Casper Boemann
d2fd031544 Try to do the same fix for kwin
Please svn up and test this out

CCBUG:163538

svn path=/trunk/KDE/kdebase/workspace/; revision=899162
2008-12-20 04:39:14 +00:00
Huynh Huu Long
d29c446e3c Implement pressed state
svn path=/trunk/KDE/kdebase/workspace/; revision=831765
2008-07-13 09:50:51 +00:00
Huynh Huu Long
7d0bd3567a colored lines added to improve visibility of active windows
svn path=/trunk/KDE/kdebase/workspace/; revision=812922
2008-05-26 16:21:49 +00:00
Casper Boemann
a454357d4e Paint buttons of inactive windows different too
Prepare for caching of those colors - doesn't connect to actual KGS
signal yet - so are never invalidated


svn path=/trunk/KDE/kdebase/workspace/; revision=726729
2007-10-18 19:09:41 +00:00
Matthew Woehlke
cb8d764ba1 Keep around the helper as a reference member of OxygenClient and OxygenButton, instead of having two global statics. Also refer to the client (from the button) as a reference to ensure that it exists (namely, so that we can grab our own reference to its helper).
svn path=/trunk/KDE/kdebase/workspace/; revision=723558
2007-10-10 00:05:24 +00:00
Casper Boemann
f5c53e76d6 change windec to inherit kcommondecoration, which brings us several
pleasenties

svn path=/trunk/KDE/kdebase/workspace/; revision=713524
2007-09-17 18:16:26 +00:00
Arto Hytönen
f3fbc3665b explicit ctors
svn path=/trunk/KDE/kdebase/workspace/; revision=707717
2007-09-02 19:11:09 +00:00
Casper Boemann
fb78c8f6ad update windec to have same background as new style
get rid of xrender stuff
did this to get smooth painting:
    widget()->setAttribute( Qt::WA_PaintOnScreen, false);



svn path=/trunk/KDE/kdebase/workspace/; revision=688425
2007-07-16 02:12:45 +00:00