Commit graph

2054 commits

Author SHA1 Message Date
Script Kiddy
6bfb54fe77 CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=83062
2001-02-16 03:13:52 +00:00
Waldo Bastian
09595efd93 Implement iconChange().
svn path=/trunk/kdebase/kwin/; revision=83036
2001-02-15 22:48:31 +00:00
Waldo Bastian
6ab086647b Implement iconChange()
svn path=/trunk/kdebase/kwin/; revision=83016
2001-02-15 20:53:22 +00:00
Script Kiddy
60f0c741e0 CVS_SILENT made messages
svn path=/trunk/kdelibs/kstyles/; revision=81664
2001-02-07 03:27:26 +00:00
Daniel M. Duley
5f356d8628 Improved titlebar buffering.
Are these commits going into the KDE2.1final, or do I need to do
something special?

svn path=/trunk/kdebase/kwin/; revision=81613
2001-02-06 22:16:17 +00:00
Script Kiddy
1d95469d9f CVS_SILENT made messages
svn path=/trunk/kdelibs/kstyles/; revision=81120
2001-02-03 03:09:32 +00:00
Waldo Bastian
0ea8e539a5 Attempt to fix the drawing stuff. Resizing a window still fails to redraw
large parts of the window decorations.

svn path=/trunk/kdebase/kwin/; revision=79948
2001-01-24 23:53:37 +00:00
Waldo Bastian
692efa5cde Don't crash when making window sticky/maximized without a sticky/maximized button.
svn path=/trunk/kdebase/kwin/; revision=79649
2001-01-22 23:30:08 +00:00
Waldo Bastian
dc0ce11c7b Install kwmtheme
svn path=/trunk/kdebase/kwin/; revision=78490
2001-01-16 23:52:34 +00:00
Waldo Bastian
922162fad0 Don't crash on missing pixmaps.
svn path=/trunk/kdebase/kwin/; revision=78489
2001-01-16 23:52:11 +00:00
Waldo Bastian
4ab7a90097 WABA: Listen to resetClients()
svn path=/trunk/kdebase/kwin/; revision=78463
2001-01-16 21:45:23 +00:00
Waldo Bastian
6576b45348 Proper error checking.
svn path=/trunk/kdebase/kwin/; revision=78357
2001-01-16 06:17:18 +00:00
Malte Starostik
4e97288705 Added win2k kwin client by Karol Szwed <karlmail@usa.net>
According to him, okayed by Mosfet and Matthias Ettrich,
I add it now to get it in before the freeze as he's got no account (yet)

svn path=/trunk/kdebase/kwin/; revision=77435
2001-01-11 12:24:04 +00:00
Harri Porten
2bfe4742b6 explicit double to int conversion
svn path=/trunk/kdebase/kwin/; revision=77261
2001-01-10 13:13:00 +00:00
Script Kiddy
29a44aa4bb CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=75305
2000-12-19 23:32:07 +00:00
Daniel M. Duley
8d82de546d Added custom mouse position stuff for resizing themed windows. Speed hacks.
There is an error where everything is not redrawn I have to fix, but it's way
faster now ;-)

svn path=/trunk/kdebase/kwin/; revision=74668
2000-12-13 10:21:31 +00:00
Daniel M. Duley
507a315eb2 Okay, we now just store theme pixmaps in the appdata+"/pics", then use locate...
I have no idea why I didn't do this in the first place - must of been drunk or something ;-)

svn path=/trunk/kdebase/kwin/; revision=74577
2000-12-12 17:40:56 +00:00
Daniel M. Duley
8b422dbe29 Small cleanup. I could get rid of the local vs. global pixmap junk... after breakfast ;-)
Also, install the cli_installer if you install this - which you shouldn't yet ;-)

svn path=/trunk/kdebase/kwin/; revision=74568
2000-12-12 15:58:24 +00:00
Daniel M. Duley
c77cf18716 Don't even think of using this yet ;-) Waldo - these keys may not be correct yet,
I need to look at the old KDE1.x theme manager first.

svn path=/trunk/kdebase/kwin/; revision=74567
2000-12-12 15:42:54 +00:00
Daniel M. Duley
e1a5f85d7c Fix compile, get rid of speed hacks that were actually slower, and it isn't
a good idea to use /home/mosfet/... to look for pixmaps (grin ;-)

svn path=/trunk/kdebase/kwin/; revision=74471
2000-12-11 20:27:43 +00:00
Script Kiddy
d226e0de98 CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=74367
2000-12-11 10:56:22 +00:00
David Faure
44a694a004 CVS_SILENT lib_ -> kde_module_
svn path=/trunk/kdebase/kwin/; revision=73405
2000-12-04 18:47:47 +00:00
Script Kiddy
c2f4dd2032 CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=70278
2000-11-08 06:17:50 +00:00
Rik Hemsley
11edd19291 Fix texture colours for buttons.
svn path=/trunk/kdebase/kwin/; revision=69460
2000-10-31 03:23:22 +00:00
Rik Hemsley
907efe6764 Use QLayout::activate(). Looks like I found one of the rare cases where
it's essential. This fixes some bad redraws of the titlebar in certain
hard-to-reproduce circumstances.

svn path=/trunk/kdebase/kwin/; revision=69459
2000-10-31 02:48:56 +00:00
Rik Hemsley
8f79309f44 Minor fixes
svn path=/trunk/kdebase/kwin/; revision=69147
2000-10-28 02:50:47 +00:00
Rik Hemsley
91d2ddc0fc New anim for qwertz, it's no. 2, so IconifyAnimationStyle=2 in [WM]
section of kdeglobals will enable it.

svn path=/trunk/kdebase/kwin/; revision=69146
2000-10-28 02:32:07 +00:00
Rik Hemsley
0ed57b61e0 Let's allow people to play with the new animation(s).
In [WM] section of kdeglobals, add IconifyAnimationStyle=1 to see the
first new animation. (you should change wm style away from, then back
to, RISC OS, if you're already running it)

svn path=/trunk/kdebase/kwin/; revision=69144
2000-10-28 01:49:42 +00:00
Rik Hemsley
abd2f3d6fd Textures for buttons too. Necessary now that titlebar can be large
enough for you to see them. Oh yes, the titlebar now changes size
with your font size. See http://www.geoid.clara.net/silly.jpg for
a (silly) example of this. This is in fact an essential feature
IMO, for people who can't read titlebar text at the restricted
sizes that the other styles allow.

New funky iconify animation, but I haven't made it available via
a config key yet, so you can't use it :P

svn path=/trunk/kdebase/kwin/; revision=69021
2000-10-27 02:16:14 +00:00
Waldo Bastian
8f36a1cb5c WABA: Fixed "maximize" with MMB and RMB.
Based on a patch Boudewijn Rempt <boud2@rempt.xs4all.nl>

svn path=/trunk/kdebase/kwin/; revision=69005
2000-10-26 21:56:18 +00:00
Matthias Ettrich
1512bcd09f patch by boud2
svn path=/trunk/kdebase/kwin/; revision=68706
2000-10-23 14:42:16 +00:00
Rik Hemsley
025cb620a3 No debug info
svn path=/trunk/kdebase/kwin/; revision=68517
2000-10-21 22:55:28 +00:00
Rik Hemsley
2c22ab197d Use active font for inactive windows since we don't get correct font
from options. Temporary work-around.

svn path=/trunk/kdebase/kwin/; revision=68512
2000-10-21 22:05:42 +00:00
Rik Hemsley
c2f73a1d13 Typo fixed (button alignment was set incorrectly and black lines were
missing sometimes)
Added 'ToolManager' class. Still haven't found any apps that set
WStyle_Tool on any windows, so it's untested.

svn path=/trunk/kdebase/kwin/; revision=68501
2000-10-21 18:51:08 +00:00
Daniel M. Duley
420b046646 The old default is now moved to the Laptop style, since they are so similiar
but has so many more bugfixes. So if you liked the old default here it is ;-)

svn path=/trunk/kdebase/kwin/; revision=68367
2000-10-20 01:14:46 +00:00
David Faure
5dd80c3b56 +#include <config.h> // for usleep on non-linux platforms
i.e. Tru64. Showstopper (breaks compilation)......

svn path=/trunk/kdebase/kwin/; revision=68077
2000-10-17 08:15:00 +00:00
Script Kiddy
1e18909d45 CVS_SILENT made messages
svn path=/trunk/kdebase/kscreensaver/; revision=67702
2000-10-15 05:08:42 +00:00
Rik Hemsley
b8e9f83e81 Use a different iconify/restore style to the default, because the
default is too slow and flickery.

svn path=/trunk/kdebase/kwin/; revision=67690
2000-10-14 23:45:05 +00:00
David Faure
7af716f924 #undef Bool for enable-final, reported by Thomas Leitner
svn path=/trunk/kdebase/kwin/; revision=67246
2000-10-11 20:39:24 +00:00
Rik Hemsley
8c7cbff386 Bugfix to make button glyphs the correct colours.
Small cleanup of design w.r.t. signals/slots

svn path=/trunk/kdebase/kwin/; revision=67219
2000-10-11 17:21:49 +00:00
Rik Hemsley
0a27e45f56 This should answer those bug reports about not being able to configure the
button order on the titlebar, for the RISC OS theme at least.

I now have [Sticky][(Help)].....Title.......[Iconify][Maximise][Close].
Much more sensible than the stupid RISC OS layout.

svn path=/trunk/kdebase/kwin/; revision=67108
2000-10-10 22:03:50 +00:00
Script Kiddy
a8a059a53d CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=66638
2000-10-07 05:06:26 +00:00
Script Kiddy
dc66d38dda CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=66420
2000-10-05 02:38:50 +00:00
Rik Hemsley
b753c43345 pixmap fix
svn path=/trunk/kdebase/kwin/; revision=66125
2000-10-02 03:07:38 +00:00
Antonio Larrosa Jimenez
759848b7d3 Removed the minimum width limit imposed by the b2 style by
making the buttons hide when neccesary.
Approved by Mosfet by lack of objection :)

svn path=/trunk/kdebase/kwin/; revision=66109
2000-10-02 01:14:03 +00:00
Rik Hemsley
72a25cf5d9 Slight alteration to button hiding algorithm
svn path=/trunk/kdebase/kwin/; revision=66001
2000-10-01 15:40:29 +00:00
Rik Hemsley
aae66499b9 Texture on resize bar handles
Changed shapes of close and sticky button pix.
Real transparency for button pix instead of pseudo.

svn path=/trunk/kdebase/kwin/; revision=65998
2000-10-01 15:30:04 +00:00
Rik Hemsley
4a55be4548 I like this method of setting colours for the resize bar better, seeing
as there's no way to set it via kcontrol

svn path=/trunk/kdebase/kwin/; revision=65989
2000-10-01 14:48:40 +00:00
Rik Hemsley
6fc8ad8af5 Textured titlebar. Looks very cool in all colour schemes. This is how
RISC OS looks, and I had this working before, but I fixed it so it works
nicely now.

svn path=/trunk/kdebase/kwin/; revision=65633
2000-09-28 14:29:57 +00:00
Dirk Mueller
6f2dfc1764 Insure++: unused variables
svn path=/trunk/kdebase/kcontrol/; revision=65625
2000-09-28 13:33:08 +00:00
Rik Hemsley
4aeea37d93 Use configured font for inactive titlebar text
svn path=/trunk/kdebase/kwin/; revision=65567
2000-09-28 00:39:22 +00:00
Rik Hemsley
22a5becbc5 Nicer glyphs for titlebar. Added sticky and context help buttons.
svn path=/trunk/kdebase/kwin/; revision=65557
2000-09-27 22:51:57 +00:00
Rik Hemsley
3e5e774e10 Many behavioural fixes and new glyphs for buttons.
Still need to do sticky and help buttons.

svn path=/trunk/kdebase/kwin/; revision=65548
2000-09-27 21:33:15 +00:00
Matthias Ettrich
6dacbd0112 tool window handling for the default style
visible dialogs for stays-on-top fullscreen windows (helps with Konqueror's dialogs)
Fixed lock with Alt-Tab box plus accelerator

svn path=/trunk/kdebase/kwin/; revision=65241
2000-09-25 15:30:51 +00:00
Rik Hemsley
f0739dbe1f Oh, forgot to check this stuff in. Fixes mouse position detection on
bottom resize bar.

svn path=/trunk/kdebase/kwin/; revision=64974
2000-09-24 10:28:06 +00:00
Script Kiddy
faed83eace CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=64906
2000-09-24 05:05:45 +00:00
Script Kiddy
22f65e14f9 CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=63821
2000-09-14 04:50:01 +00:00
Waldo Bastian
493fd295b0 - button[1]->setBitmap(sticky_bits, 8, 8);
+        button[1]->setBitmap(sticky_bits, 10, 10);

Fixes br 10156:
On the desktop, I right-click the title bar of a window and select the KStep
decoration.  Then I click on the `+'' titlebar button to pin the window on all desks.
The button turns empty.  I click again to unpin the window, and, instead
of showing the usual `+'', I get a corrupted button pixmap.

svn path=/trunk/kdebase/kwin/; revision=63501
2000-09-11 05:45:02 +00:00
Waldo Bastian
5e3b53660d WABA: Fixed #8656 kwin titlebar: doubleclick does not maximize
if (titlebar->geometry().contains( e->pos() ) )
-        setShade( !isShade() );
+       workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
     workspace()->requestFocus( this );

svn path=/trunk/kdebase/kwin/; revision=63485
2000-09-11 03:34:01 +00:00
Script Kiddy
5c265e015a CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=63221
2000-09-09 04:11:37 +00:00
Daniel M. Duley
2077f51714 Removed note about highcolor usage
svn path=/trunk/kdebase/kwin/; revision=63101
2000-09-08 01:02:13 +00:00
Daniel M. Duley
ee5f19c686 Improved highcolor buttons, and switched to the circular sticky thingy. I'll
post to core-devel in a sec.

svn path=/trunk/kdebase/kwin/; revision=63099
2000-09-08 00:38:29 +00:00
Matthias Ettrich
6a54a209af obey more controlcenter options (mouse actions for frame and titlebar)
svn path=/trunk/kdebase/kwin/; revision=62090
2000-08-28 12:31:16 +00:00
Simon Hausmann
fcfce3bb14 - coolo told me to commit this :) (it's unused)
-static void create_pixmaps();
-QPixmap* kwin_get_menu_pix_hack()
-{
-    create_pixmaps();
-    return menu_pix;
-}
-

svn path=/trunk/kdebase/kwin/; revision=61269
2000-08-16 15:37:36 +00:00
Matthias Ettrich
5b1fb25c55 less flicker for default. Clean-up namespace for classes
(several clients used different versions of the same class 'SystemButton')

svn path=/trunk/kdebase/kwin/; revision=61249
2000-08-16 13:11:21 +00:00
Matthias Ettrich
5314dbb817 mosfet's much ligher version of the default style. Still flickers a little bit, but
uses much less resources

svn path=/trunk/kdebase/kwin/; revision=61022
2000-08-14 18:49:44 +00:00
Matthias Ettrich
d0ab0a1595 less flicker
svn path=/trunk/kdebase/kwin/; revision=61018
2000-08-14 17:50:51 +00:00
Kurt Granroth
6169229047 compile
svn path=/trunk/kdebase/kwin/; revision=59131
2000-07-28 22:38:16 +00:00
Matthias Ettrich
d7d265452b some work on the new default style. Better, but not there yet.
The class still duplicates too much functionality of the base class (Client).
IMO the ResizeBar widgets have to go, it can all be done by painting directly
on the main Manager.

svn path=/trunk/kdebase/kwin/; revision=59127
2000-07-28 22:06:22 +00:00
Matthias Ettrich
02332d191a let kde1 style look like kde1 (no more missing pixels)
svn path=/trunk/kdebase/kwin/; revision=57400
2000-07-16 21:23:26 +00:00
Rik Hemsley
99a1f85bd3 Actually, it was called kde1 ;)
svn path=/trunk/kdebase/kwin/; revision=57282
2000-07-16 13:06:27 +00:00
David Faure
198522aa8f Apparently the directory is named kde, not kde1....
svn path=/trunk/kdebase/kwin/; revision=57278
2000-07-16 12:52:07 +00:00
Rik Hemsley
62e30dc0dc KDE 2 style is now default. KDE 1 style now available as plugin.
KDE 2 style still needs work, but bear with me. I'll get on it...

svn path=/trunk/kdebase/kwin/; revision=57252
2000-07-16 10:20:29 +00:00
Rik Hemsley
cf88f2000a minor work
svn path=/trunk/kdebase/kwin/; revision=57145
2000-07-15 19:27:07 +00:00
Simon Hausmann
513dd56332 - fixed library name
svn path=/trunk/kdebase/kwin/; revision=57076
2000-07-15 12:02:44 +00:00
Rik Hemsley
6a49e57aa8 blah, I screwed up with some sticky date stuff, somehow.
svn path=/trunk/kdebase/kwin/; revision=57067
2000-07-15 11:27:55 +00:00
Rik Hemsley
e482a7d092 you might need this if you want to build things
svn path=/trunk/kdebase/kwin/; revision=57039
2000-07-15 07:14:06 +00:00
Rik Hemsley
db568f2f08 Build the default theme.
svn path=/trunk/kdebase/kwin/; revision=57035
2000-07-15 07:01:53 +00:00
Rik Hemsley
18afbfb26f Um, CVS is shit, and this is the real default theme.
svn path=/trunk/kdebase/kwin/; revision=57034
2000-07-15 07:00:40 +00:00
Rik Hemsley
4c8257e2ad Default theme, first draft.
svn path=/trunk/kdebase/kwin/; revision=57032
2000-07-15 06:59:08 +00:00
Michael Matz
160a2d549b Away with the *.moc.* files.
svn path=/trunk/kdebase/kwin/; revision=54907
2000-06-29 21:36:40 +00:00
Stephan Kulow
74f0724585 naming it System++
svn path=/trunk/kdebase/kwin/; revision=51424
2000-06-01 00:31:39 +00:00
Waldo Bastian
ebbf5fe55c WABA: Use $(KDE_PLUGIN) for plugins and let them link against kwin.{la|so}
svn path=/trunk/kdebase/kwin/; revision=49722
2000-05-16 23:10:41 +00:00
Simon Hausmann
a3e3579d21 - make it compile ;-)
svn path=/trunk/kdebase/kwin/; revision=49150
2000-05-11 08:29:47 +00:00
Rik Hemsley
0d91340735 Fixed some silliness.
Removed more layout code.

svn path=/trunk/kdebase/kwin/; revision=49145
2000-05-11 04:17:35 +00:00
Rik Hemsley
baa151afb3 Many fixes to RISC OS client. Still needs major work to be perfect.
Changed spaces to tab for ettrich in client.cpp ;)
Changed something that looked like it was trying to do manhattanLength()
so it actually does.

svn path=/trunk/kdebase/kwin/; revision=49144
2000-05-11 03:52:24 +00:00
Rik Hemsley
69c7133c9d Temporary, unsatisfactory fix for alt-drag freezing kwin and just about
everything else. kwin assumes you want it to mess with the cursor, and
provide edge-based resize etc. You can't override it easily. In fact,
I still haven't found out how.

svn path=/trunk/kdebase/kwin/; revision=49114
2000-05-10 19:55:13 +00:00
Stephan Kulow
5029a1389a C++
svn path=/trunk/kdebase/kwin/; revision=49111
2000-05-10 19:24:48 +00:00
Matthias Ettrich
68510e52c8 one does not have to exeggerate...
svn path=/trunk/kdebase/kwin/; revision=48848
2000-05-08 12:28:30 +00:00
Matthias Ettrich
9a70b16933 being able to resize at the bottom or right edge is good
svn path=/trunk/kdebase/kwin/; revision=48846
2000-05-08 12:18:26 +00:00
Daniel M. Duley
2c5bfad0cf Buffering for the active title. Reduces flicker when resizes make the titlebar
resize.

svn path=/trunk/kdebase/kwin/; revision=48749
2000-05-07 20:30:50 +00:00
Rik Hemsley
297651e2c3 Understand more about edge-based clients and act appropriately, passing
info along to kdesktop too.

This is funky now :)

svn path=/trunk/kdebase/kwin/; revision=48377
2000-05-04 23:12:29 +00:00
Michael Matz
d19c42bd26 fix for captionChange with long title
svn path=/trunk/kdebase/kwin/; revision=48358
2000-05-04 20:54:08 +00:00
Michael Matz
732c7d78bd Big B2/KWin change:
* title bar now tries to avoid to become completely obscured by other windows ;)
* moving of title bar flicker free (at least on my machine)
* all repaint problems fixed (those I knew of course), even the one on resize
* mousePosition (those arrowed cursors) now complete

svn path=/trunk/kdebase/kwin/; revision=48189
2000-05-03 00:04:26 +00:00
Daniel M. Duley
2021961a07 Fix repainting the handle when shaded.
svn path=/trunk/kdebase/kwin/; revision=47777
2000-04-28 22:00:06 +00:00
Daniel M. Duley
360e0b7686 Lowcolor version.
svn path=/trunk/kdebase/kwin/; revision=47775
2000-04-28 21:47:01 +00:00
Daniel M. Duley
0527ea967c Repaint the frame after color scheme changes.
svn path=/trunk/kdebase/kwin/; revision=47761
2000-04-28 16:40:30 +00:00
Daniel M. Duley
087cfbcbee Repaint the frame after a color scheme change.
svn path=/trunk/kdebase/kwin/; revision=47759
2000-04-28 16:32:17 +00:00
Daniel M. Duley
b58843030c Final updates for the new button color implementation. The options class
now only has one button entry, "ButtonBg", instead of 3. It's up to the client
what to do with it. All the clients are updated except mwm. As the
author noted in his README, mwm isn't Motif window manager at all but KStep ;-)
I disabled it for now until there is new drawing code in there, it would
confuse users anyways since were about to release another Krash and it is
identical to KStep.

Also, I removed the Groove and GrooveText color entries. We now use the
normal TitleBar and Font entries. Hence system will probably look funny until
you adjust the colors since it draws text on the frame and not the titlebar
bg. All the rest look much better by default.

To configure button colors set the active/inactive button background color
in KControl. I'll remove the other entries ASAP. You'll also note that the
active/inactive colors are now actually what you would expect.

svn path=/trunk/kdebase/kwin/; revision=47753
2000-04-28 15:53:00 +00:00
Daniel M. Duley
11b6ddb604 Update to new color handling and efficency improvements.
svn path=/trunk/kdebase/kwin/; revision=47733
2000-04-28 11:01:42 +00:00
Daniel M. Duley
dcf3fda8dd Updated to the new titlebar button color handling.
svn path=/trunk/kdebase/kwin/; revision=47732
2000-04-28 10:34:24 +00:00
Daniel M. Duley
a974abc657 Fixes for when active colors != inactive colors && titlebutton colors !=
frame colors.

svn path=/trunk/kdebase/kwin/; revision=47729
2000-04-28 10:10:27 +00:00
Daniel M. Duley
82316c4893 Repaing fix for when inactive != active colors.
svn path=/trunk/kdebase/kwin/; revision=47728
2000-04-28 09:56:45 +00:00
Daniel M. Duley
5fceccc02d Make it run on lowcolor displays
svn path=/trunk/kdebase/kwin/; revision=47703
2000-04-28 02:59:07 +00:00
Daniel M. Duley
ef63e498cc Updated drawing code. The titlebar buttons color setting is being changed from
three entries (button fg, bg, and blend) to one - button color. What exactly
to do with this is up to the individual style. This is less customizable but
a hell of a lot more coherent since the styles all draw their buttons so
differently. Right now I'm just using the button background entry. Once all
the styles are ported I'll switch to a generic button color entry.

Also I made my buttons more like other window manager styles/themes that
aim to more or less emulate platinum, but not enough to get nasty mail from
Apple ;-)

svn path=/trunk/kdebase/kwin/; revision=47697
2000-04-28 02:44:29 +00:00
Daniel M. Duley
9899f29db2 Don't install the .desktop file.
svn path=/trunk/kdebase/kwin/; revision=47627
2000-04-27 11:44:13 +00:00
Daniel M. Duley
1ca2104e79 Whoops, shouldn't of committed this yet - it's still part of my vast "new
stuff that doesn't work" codebase ;-)

svn path=/trunk/kdebase/kwin/; revision=47625
2000-04-27 11:32:57 +00:00
Daniel M. Duley
0ae123ceef Cool new Kwin C++ style engine - Modern system :) This uses buttons orignally
from the KStyle aqua theme - color reduced, converted to bitmaps, and drawn
using the color scheme. The buttons in different color schemes shows why it's
really cool to support dynamic C++ engines as well as pixmap themes ;-) Also
uses a small frame with a resize handle and mac-like (hehe - of course ;-)
drawing for everything else.

Preliminary screenshots with different color schemes are at:
http://www.mosfet.org/modern-0428.html

svn path=/trunk/kdebase/kwin/; revision=47624
2000-04-27 11:29:25 +00:00
David Faure
494a879f04 grrr
svn path=/trunk/kdebase/kwin/; revision=47549
2000-04-25 23:37:33 +00:00
Daniel M. Duley
3922d1994a Reverting the no-flicker when moving titlebar patch. It doesn't repaint
properly, the whole thing needs an overhaul (I never anticipated the thing
being movable) and I want to use it now ;-)

svn path=/trunk/kdebase/kwin/; revision=47542
2000-04-25 22:44:25 +00:00
Chris Lee
d70c3af41e Adding in a personally preferred KWin style. Yet again- the first one of
its kind? Not created by Mosfet? : )

we'll see...
-Chris

svn path=/trunk/kdebase/kwin/; revision=47482
2000-04-25 01:00:31 +00:00
Rik Hemsley
1f394879df Colour change
svn path=/trunk/kdebase/kwin/; revision=46770
2000-04-16 08:56:32 +00:00
Boris Wedl
06dc47b2da reduce flicker when dragging the titlebar
svn path=/trunk/kdebase/kwin/; revision=46450
2000-04-12 17:00:56 +00:00
Rik Hemsley
6f2db8d4c7 Code from Utils.* moved into Static.*
Removed link testing and debug flags from Makefile.am

Some magic to give a nice 3D look even when specified background colour
is dark (looks good with NeXT colour scheme now).

BTW, what's the point in translating 'RISC OS' ? It's a brand name,
like IBM.

svn path=/trunk/kdebase/kwin/; revision=46360
2000-04-12 00:13:14 +00:00
Rik Hemsley
84e0076486 Noted mouse bindings for resize bar handles.
svn path=/trunk/kdebase/kwin/; revision=46234
2000-04-10 17:22:01 +00:00
Rik Hemsley
7d7e9df7fc * Removed all pixmaps. All drawing is now done with code.
* Implemented colour scheme support, including antialising of symbols
  and coloured edges to 3d items.

* Increased speed and reduced memory usage.

* Implemented raising when button-down on resize bar, unless you use
  the middle/right buttons, in which case you can resize without raising.

svn path=/trunk/kdebase/kwin/; revision=46233
2000-04-10 17:18:21 +00:00
Daniel M. Duley
35b5af4a87 Fixes for buffering and when there is a bg widget pixmap.
svn path=/trunk/kdebase/kwin/; revision=46034
2000-04-08 23:40:56 +00:00
Daniel M. Duley
6a5046ebb6 Smaller spaced bevels
svn path=/trunk/kdebase/kwin/; revision=45492
2000-04-03 06:03:59 +00:00
Daniel M. Duley
7ba2cf2d87 Big ole speed improvement :)
First off, Rikkus was right about double buffering. I really didn't think this
was needed and tried everything to get rid of the flicker but it didn't happen
until I double buffered the title. I was able to optimize this quite a bit
(only recalc on resize, only buffer the active title/color scheme, etc...).

In the meantime, I got rid of a lot of non-optimal painting and now use
NoBackground for the widget. The latter was a obvious move as it avoids a whole
clearing of the widget :P This resulted in a big speed improvement, which helps
offset the time taken in buffering ;-)

svn path=/trunk/kdebase/kwin/; revision=45264
2000-04-01 01:18:12 +00:00
Daniel M. Duley
8e6fb39db3 Much, much faster. This used to be mostly KWM's theme code hacked into a KWin
client, which used matrixes and QPainter drawPixmap stuff. Now all that is
gone and it's almost entirely bitBlts.

Still buggy tho, so I'm keeping it disabled for now - but now it's
fast and buggy so I guess that should count for something ;-)

svn path=/trunk/kdebase/kwin/; revision=45235
2000-03-31 19:10:22 +00:00
Daniel M. Duley
dde9cbced3 Adding Mike's patch. See post on kde-devel for more info.
svn path=/trunk/kdebase/kwin/; revision=45191
2000-03-30 23:05:30 +00:00
Rik Hemsley
15b9b5a736 Removed warnings when not compiling with -Wno-unused
svn path=/trunk/kdebase/kwin/; revision=45186
2000-03-30 22:07:31 +00:00
Rik Hemsley
ae5a4da15b Added note about titlebar mouse bindings
svn path=/trunk/kdebase/kwin/; revision=45179
2000-03-30 20:42:55 +00:00
Daniel M. Duley
ede286ad22 Speling fixe ;-)
svn path=/trunk/kdebase/kwin/; revision=45133
2000-03-30 10:34:16 +00:00
Daniel M. Duley
5aad79903d Figured I better set some guidelines now ;-)
For inclusion in CVS you must:

a) Follow the user color settings. This means no normal pixmaps, which when
used in a dedicated KWin style allow no configuration at all (you can't
override the pixmaps and you can't follow the color scheme). KWM themes
are for that, at least then everything is configurable. It makes no sense to
just make pixmaps then bitblt them, since it is way less functional than KWM
themes.

If you want to draw decorations first you can use kpixmap2bitmap in kdegraphics
to separate the shades and then kColorBitmaps in kdrawutil.h to draw it using
a colorgroup from the options class.

b) You must follow at least the color settings from the user Options class.

svn path=/trunk/kdebase/kwin/; revision=45132
2000-03-30 10:09:26 +00:00
Rik Hemsley
7dd5c805e4 Now the line of the title pixmap fade out and disappear as they
approach and pass under the text. Makes the text much clearer and
looks nice too.

svn path=/trunk/kdebase/kwin/; revision=45113
2000-03-30 01:34:18 +00:00
Rik Hemsley
e81a5b7317 Now active titlebar is black, NeXT-style. Very good contrast ! :)
svn path=/trunk/kdebase/kwin/; revision=45107
2000-03-30 00:43:51 +00:00
Rik Hemsley
53c778c728 These have been renamed for consistency.
svn path=/trunk/kdebase/kwin/; revision=45100
2000-03-29 23:32:37 +00:00
Rik Hemsley
0e4b07d820 Changed titlebar pixmap to something very subtle.
Screenshot at http://www.geoid.clara.net/riscos.png

Next thing to do is to remove the lines of the title pixmap where
they pass under the text, fading them out as they approach the text.
I'd also like higher contrast between active and inactive, so the
active title might turn black (I'm a NeXT addict)

svn path=/trunk/kdebase/kwin/; revision=45099
2000-03-29 23:31:22 +00:00
Rik Hemsley
1a1c3254e5 New, nicer pixmaps for buttons and titlebar.
Use static pointers to QPixmaps to save memory now, as I should have
done before.

svn path=/trunk/kdebase/kwin/; revision=45067
2000-03-29 17:07:43 +00:00
Rik Hemsley
126ef189bd Fixed vertical-only resize
svn path=/trunk/kdebase/kwin/; revision=45009
2000-03-28 23:05:06 +00:00
Rik Hemsley
b91600e944 Redrawn pixmaps to avoid getting sued ;) I like my versions better
anyway, and they use the KDE locolor palette, so that's even better  :)

svn path=/trunk/kdebase/kwin/; revision=45005
2000-03-28 22:29:55 +00:00
Rik Hemsley
40d186a13f Ignore, and compile
svn path=/trunk/kdebase/kwin/; revision=45002
2000-03-28 21:34:51 +00:00
Rik Hemsley
ca8293aa21 This theme emulates the look and feel of the RISC OS 'window manager'.
svn path=/trunk/kdebase/kwin/; revision=45001
2000-03-28 21:34:23 +00:00
Daniel M. Duley
9e709f2784 Frame for the titlebar. I originally left this out to leave more room for
the text when using tiny titlebars but it looks like crap without it ;-)

BTW, is this style working well for laptop people?

svn path=/trunk/kdebase/kwin/; revision=44853
2000-03-27 09:43:24 +00:00
Daniel M. Duley
1079007ceb Thinking about what Cristian said and how it's going to be difficult to
satisfy both laptop users who want large buttons and those who have low
resolution and want small bars. So I made it configurable :)

You can now set the titlebar height anywhere from 14 to 32 pixels, which also
changes the button size:

You currently need to edit ~/.kde/share/config/kwinrc and set:

[Laptop]
TitleHeight=Some number between 14-32.

Then restart KWin (it's not in the options class yet). The default is still
a small titlebar.

Here's the shot I put up before with the default small titlebar:
http://www.mosfet.org/kwinlaptop.gif

Here's one with a larger titlebar (21 pixels):
http://www.mosfet.org/laptop-bigtitlebar.gif

svn path=/trunk/kdebase/kwin/; revision=44755
2000-03-26 13:42:16 +00:00
Daniel M. Duley
954f25c36e Less useless space between buttons.
svn path=/trunk/kdebase/kwin/; revision=44709
2000-03-25 23:14:21 +00:00
Daniel M. Duley
955ff1947a Reduced titlebar size by 2 pixels ;-)
svn path=/trunk/kdebase/kwin/; revision=44705
2000-03-25 22:23:09 +00:00
Daniel M. Duley
35cbd1ea19 No need for mouse tracking.
svn path=/trunk/kdebase/kwin/; revision=44704
2000-03-25 22:19:57 +00:00
Daniel M. Duley
ff6cb2d276 More layout stuff.
svn path=/trunk/kdebase/kwin/; revision=44699
2000-03-25 21:41:18 +00:00
Daniel M. Duley
0c77d7383e Trying to make the titlebar buttons easier to hit on laptops by increasing the
width. The issue here is I want to make the buttons as wide as possible for
laptop mice without having the titlebar be all buttons and no title ;-) My
solution so far is making the common buttons bigger and the uncommon ones
smaller. It's not consistent but let's me make the areas frequently hit
wide as hell, which is good for a laptop :) Close, iconify, and maximize are
larger - sticky and help are smaller.

Another updated shot is at:
http://www.mosfet.org/kwinlaptop.gif

svn path=/trunk/kdebase/kwin/; revision=44698
2000-03-25 21:37:49 +00:00
Daniel M. Duley
8b658a240f Removing the Be style, as it's incomplete and is replaced by B2 now. Was useful
tho as it was the first example of a shaped style :)

svn path=/trunk/kdebase/kwin/; revision=44657
2000-03-25 16:51:32 +00:00
Daniel M. Duley
ef5094b21a New KWin look-and-feel plugin specifically coded for laptops :)
It features a reduced height taskbar with oversized width buttons (I may make
these even wider to make them easier to hit), a minimal frame, and a
oversized shaped resize handle. Uses the system KWin style buttons, not just
because I like them but because they fit in the reduced size bar ;-)

As usual, here's a screenshot:
http://www.mosfet.org/kwinlaptop.gif

On another note, the Be style is going away and is now replaced by B2. Be
needs work so I asked Matthias Ettrich about it (he's the maintainer of that
style), and it turns out he's already using B2 :)

svn path=/trunk/kdebase/kwin/; revision=44656
2000-03-25 16:49:12 +00:00
Daniel M. Duley
8724699214 This I have had sitting on my HD for awhile, an ultra cool KWin style to go with the B2 widget style :)
It uses Be-like shaped titlebars, KDE standard buttons, has a shaped resize
handle, and automatically detects if you are on a highcolor display and if so
uses gradients based off the current color scheme. BTW, the buttons don't
necessarily match the titlebar but use the button foreground setting in KDE's
display settings so you can change them to whatever you like.

If no one objects I'll probably disable the old Be style. Unlike this style it
uses Be-like buttons but the drawing isn't very fancy and Be's two buttons are
a big restriction in KDE.

You can see a screenshot at:
http://www.mosfet.org/b2kwin.gif

svn path=/trunk/kdebase/kwin/; revision=44420
2000-03-24 00:22:35 +00:00
Daniel M. Duley
06a809e7ac Screwing around with the titlebar layout a little. Windows can now be resized
smaller than the sizeHint of the bar.

Repainting is also messed up with all the clients it seems... dunno how that
happened :P

svn path=/trunk/kdebase/kwin/; revision=43873
2000-03-18 12:35:05 +00:00
Stephan Kulow
7a2d237c3c removed some obsolete Qt functions (mostly QString::data())
svn path=/trunk/kdebase/kcontrol/; revision=40032
2000-02-05 22:37:42 +00:00
Daniel M. Duley
133bce84f6 Opps, I had a couple styles in the SUBDIRS like I hadn't committed yet ;-)
svn path=/trunk/kdebase/kwin/; revision=39127
2000-01-23 23:36:07 +00:00
Daniel M. Duley
49aba34b01 My weekly big ass style commit ;-) This implements what I discussed earlier
today.

First: All decoration pixmaps are now regenerated when the palette color scheme
changes. There is no longer any need to apply color schemes *before* switching
styles or reload the plugin. The schemes can change any time and be handled
correctly by styles that generate their pixmaps based on the color scheme.

Second: The color scheme has been extended to allow separate entries for
different visual styles. For example there are now entries for both titlebar
rectangle fills like those used in the standard KDE style and KStep vs.
titlebar grooves like those used in System. The same thing applies to
foreground colors for buttons that follow the button background settings like
KStep and System vs. those that don't like the standard style.

Right now none of the color schemes have the new entries so defaults are
calculated, usually by judging the intensity of what the decoration is
drawn on and contrasted with that. To check things out look at the standard,
KStep, and System styles under color schemes like default, CDE, and Digital
CDE.

The Be style is not updated because I have a cooler one on my HD ;-)

I hope this makes David happier <grin> :)

svn path=/trunk/kdebase/kwin/; revision=39126
2000-01-23 23:33:29 +00:00
Daniel M. Duley
cdbf1668b5 Don't use a bottom gradient, just a top one. There isn't enough space on the
bottom to get a smooth gradient that is noticeable and it doesn't blend
properly.

svn path=/trunk/kdebase/kwin/; revision=39070
2000-01-23 15:13:59 +00:00
Daniel M. Duley
202be83dae Making this style ultra-cool ;-) If you are on a highcolor display the frame
top and bottom automatically gradient bevels according to the color scheme.
Very cool looking, and no configuration required. If you want to see a pic
look at http://www.mosfet.org/system-gr.gif.

To try it out update, set the system color scheme, and the switch to the System
style via the right mouse menu on the kwin titlebar.

svn path=/trunk/kdebase/kwin/; revision=39064
2000-01-23 13:39:20 +00:00
Daniel M. Duley
03f09a8927 KWin plugins require -rdynamic because they need to resolve symbols in KWin.
The other plugins (kicker, widget themes, etc...) don't need this.

svn path=/trunk/kdebase/kwin/; revision=38549
2000-01-17 01:27:32 +00:00
Daniel M. Duley
a6cc2d48ab Opps, forgot to get rid of an annoying warning :P
svn path=/trunk/kdebase/kwin/; revision=37504
2000-01-03 13:16:39 +00:00
Daniel M. Duley
cb69226b40 Use kdrawutil and committing my initial implementation of the kwm theme
compatible style. This isn't done but currently reads most of the entries. It
requires you use kwinrc and kdeglobals so kthememgr will need to be updated if
you don't want to apply things manually ;-) I also have to add custom cursor
positioning and some other small things. Also, KWM used a bitmap to set the
mask and I do for now as well. This needs to change into regions as it is
*really* inefficent with KWin. For now installing the .desktop for the plugin
is disabled. I will provide some screenshots for the curious when I launch
mosfet.org ;-)

svn path=/trunk/kdebase/kwin/; revision=37503
2000-01-03 13:13:57 +00:00
Daniel M. Duley
de782ec37b Implemented plugins :) This was a huge pain in the arse because a) I am stupid
and it kept segfaulting because I wasn't releasing windows, and b) The plugins
didn't want to resolve anything in the kwin executable, only to the other
libs. I finally solved this by using -rdynamic in kwin's LDFLAGS, which I hope
is okay ;-)

svn path=/trunk/kdebase/kwin/; revision=37234
1999-12-24 01:36:47 +00:00