Commit graph

39 commits

Author SHA1 Message Date
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
1852c87178 invalidate shadow caches when color-scheme is changed. This fixes some issues with corner bevel
svn path=/trunk/KDE/kdebase/workspace/; revision=1025835
2009-09-19 20:32:23 +00:00
Hugo Pereira Da Costa
9eec5543bf Moved all shadow handling into global cache oxygenShadowCache. This allows to share same
shadow tilesets between clients, thus reducing the memory usage; to simplify the oxygenclient
class; and leave room for optimizing active/inactive shadow transitions. The global class is
declared using K_GLOBAL_STATIC_WITH_ARGS.

Also cleaned-up unnecessary headers.


svn path=/trunk/KDE/kdebase/workspace/; revision=1025063
2009-09-17 22:40:06 +00:00
Hugo Pereira Da Costa
363986a030 fixed Krazy stuff (headers, K classes in place of Q classes, and use of pointers to modal dialogs)
svn path=/trunk/KDE/kdebase/workspace/; revision=1024127
2009-09-16 06:09:31 +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
Hugo Pereira Da Costa
dbb4b8ffca FEATURE: added option to enable/disable the horizontal bar between decoration title bar
and window contents.


svn path=/trunk/KDE/kdebase/workspace/; revision=987096
2009-06-25 15:14:11 +00:00
Lucas Murray
8d09ed341a Remove old decoration shadow API, rename AbilityProvidesShadow and add
support for the new decoration shadow API in the shadow effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=980130
2009-06-11 08:11:13 +00:00
Huynh Huu Long
74cb4ddd81 Update the decoration to use KWin´s new API
Things to take care of:
* the shadow caching code has to be revised
* shadows sometimes don´t redraw correctly
* error messages like: Couldn't resolve property: linearGradient4203


svn path=/trunk/KDE/kdebase/workspace/; revision=979988
2009-06-10 21:02:50 +00:00
Huynh Huu Long
62f7201f41 Use the stardard method to adjust the border width
svn path=/trunk/KDE/kdebase/workspace/; revision=937562
2009-03-09 22:36:39 +00:00
Huynh Huu Long
b49c213e59 Add option "Use thin borders"
svn path=/trunk/KDE/kdebase/workspace/; revision=926623
2009-02-15 21:16:10 +00:00
Lucas Murray
14b6d36634 A slightly better, less aggressive window shadow cutout.
svn path=/trunk/KDE/kdebase/workspace/; revision=889943
2008-11-28 04:05:26 +00:00
Lucas Murray
2385ed545b Make parts of the shadow texture that are under windows transparent.
Fixes translucent windows graphical glitch.

svn path=/trunk/KDE/kdebase/workspace/; revision=889744
2008-11-27 14:25:59 +00:00
Lucas Murray
a7d883cc5d Make Oxygen not advertise support for shadow types that it does not yet.
Fallback to default shadows if the decoration doesn't support a certain type.

svn path=/trunk/KDE/kdebase/workspace/; revision=878627
2008-11-01 14:24:20 +00:00
Lucas Murray
154c19b0e7 Make the client shadowOpacity() return a relative opacity instead of absolute.
svn path=/trunk/KDE/kdebase/workspace/; revision=873440
2008-10-19 13:43:16 +00:00
Casper Boemann
48c1eee79a Improved Oxygen window decoration
- in composite it takes advantage of the new shadow api in kwin
 - in non-composite a thin colored frame is added to active window

For both the intention is that inactive windows have shadow and active window have 
a glow. Naturally this looks much more realistic  with composite


svn path=/trunk/KDE/kdebase/workspace/; revision=873293
2008-10-19 10:31:32 +00:00
Lucas Murray
5cb4d3f0ec Swap bottom and top shadow textures to match the texture coords.
svn path=/trunk/KDE/kdebase/workspace/; revision=872817
2008-10-18 09:37:32 +00:00
Lucas Murray
899d578c49 Merge Libkdecoration2 Git branch.
WARNING: Breaks shadow effect. I don't think it causes anything to crash anymore but it is VERY ugly visually.

Contains:
 - New decoration API that allows decorations to change the way shadows look.
 - Shadows now wobble.
 - API example code in the Oxygen decoration.
 - Added buildQuads() effect plugin hook.
 - Work on the shadow effect to use the new decoration shadow API as well.
 - Added IDs to WindowQuads.
 - Added public accessors to texture coords in WindowVertex.

Would like all this to be reviewed.

CCMAIL: kwin@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=872473
2008-10-17 10:30:43 +00:00
Huynh Huu Long
844f815ff8 Add shade and unshade buttons
BUG: 166887

svn path=/trunk/KDE/kdebase/workspace/; revision=872210
2008-10-16 16:13:18 +00:00
Huynh Huu Long
5b9067fb84 Add an option to change the alignment of the window title
BUG: 172076

svn path=/trunk/KDE/kdebase/workspace/; revision=869205
2008-10-08 13:42:24 +00:00
Huynh Huu Long
ecfa8aa80f add configuration option for stripes
svn path=/trunk/KDE/kdebase/workspace/; revision=818156
2008-06-07 23:06:31 +00:00
Huynh Huu Long
e3721c8751 Enable the on-all-desktops button
svn path=/trunk/KDE/kdebase/workspace/; revision=815426
2008-06-01 19:03:09 +00:00
Lukas Kropatschek
8eeddd6c55 some krazy include issue fixes
svn path=/trunk/KDE/kdebase/workspace/; revision=814568
2008-05-30 17:47:24 +00:00
Luboš Luňák
90240a5d61 Forgot this when comitting r787165.
svn path=/trunk/KDE/kdebase/workspace/; revision=788488
2008-03-21 17:10:51 +00:00
Casper Boemann
80342f99da don't say we suppport Above and below others when we don't
This might solve a crash but since i couldn't confirm the crash in the 
first place i cannot say for sure.

svn path=/trunk/KDE/kdebase/workspace/; revision=765464
2008-01-24 02:46:43 +00:00
Teemu Rytilahti
eefef6df1c Add ability to add keep above/keep below buttons to the titlebar. To enable, you need to modify oxygenclient.cpp yourself for now.
svn path=/trunk/KDE/kdebase/workspace/; revision=759107
2008-01-10 01:09:02 +00:00
Matthew Woehlke
4ed0b4abeb change config file name and group, style will use the same file
svn path=/trunk/KDE/kdebase/workspace/; revision=756053
2008-01-02 17:14:42 +00:00
Luboš Luňák
cefbf62136 I'm quite sure these in fact do support spacers.
svn path=/trunk/KDE/kdebase/workspace/; revision=743036
2007-11-29 18:41:23 +00:00
Matthew Woehlke
36850bd14a use new AbilityAnnounceColor
svn path=/trunk/KDE/kdebase/workspace/; revision=743016
2007-11-29 17:14:26 +00:00
Luboš Luňák
0170623a9c Separate KCommonDecoration from KDecoration, in order to allow
greater possibilities in extending KDecoration. KCommonDecoration
now does not inherit KDecoration, only wraps it (i.e. it's source
compatible). Added comments on how to extend KDecoration
in the future by subclassing to KDecoration2, added PORTING
document with all API changes in KDE4.
CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=742976
2007-11-29 14:11:02 +00:00
Matthew Woehlke
a7c46120b6 undo (unintentional?) function removal by ruphy that broke the build... ruphy, please check the diff first! :-)
svn path=/trunk/KDE/kdebase/workspace/; revision=732044
2007-11-02 16:28:27 +00:00
Riccardo Iaconelli
843839c21d SVN_SILENT
Changing email address from ruphy@fsfe.org to riccardo@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=732026
2007-11-02 15:30:53 +00:00
Luboš Luňák
f55b1056a2 Make KDecorationFactory::supports() const, and also pure virtual to force
changing this signature in reimplementations, as -Woverloaded-virtual is
not in default flags :(.


svn path=/trunk/KDE/kdebase/workspace/; revision=731695
2007-11-01 16:07:38 +00:00
Andreas Pakulat
39e322fc83 Merge the KConfig branch. This are the 3 main modules (+kdeadmin), which are
needed now because friday is the last BC day. The rest of the modules will
follow as fast as my laptop allows.

svn path=/trunk/KDE/kdebase/workspace/; revision=721704
2007-10-05 22:21:25 +00:00
Casper Boemann
b67a883b5e left align title on windows
svn path=/trunk/KDE/kdebase/workspace/; revision=717379
2007-09-26 19:35:55 +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
Casper Boemann
994a11916c Move it correctly this time
svn path=/trunk/KDE/kdebase/workspace/; revision=676058
2007-06-15 20:48:52 +00:00
Casper Boemann
faa0516b5d move it back for now - sorry
svn path=/trunk/KDE/kdebase/workspace/; revision=676057
2007-06-15 20:47:59 +00:00
Casper Boemann
83cd5b0ba2 Import Oxygen windec into kdebase
svn path=/trunk/KDE/kdebase/workspace/; revision=676051
2007-06-15 20:11:33 +00:00