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
Dirk Mueller
628e1a28c9
compile++
...
svn path=/trunk/KDE/kdebase/workspace/; revision=678540
2007-06-21 16:35:18 +00:00
Laurent Montel
c5e1b4b204
Renome not necessary forward declaration
...
Fix warning
svn path=/trunk/KDE/kdebase/workspace/; revision=676230
2007-06-16 10:59:08 +00:00
André Wöbbeking
08d6ebfd8d
-pedantic
...
svn path=/trunk/KDE/kdebase/workspace/; revision=676182
2007-06-16 08:12:13 +00:00
Casper Boemann
994a11916c
Move it correctly this time
...
svn path=/trunk/KDE/kdebase/workspace/; revision=676058
2007-06-15 20:48:52 +00:00