Commit graph

589 commits

Author SHA1 Message Date
Luciano Montanaro
22f4d1dced Added an option to disable the grab handle (The checkmark actually asks if the
handle has to be drawn, and it's on by default).
Added support for a new titlebar button "R" for Resize.
I have a patch pending for the kwin kcm to add that too.

svn path=/trunk/kdebase/kwin/; revision=322119
2004-06-20 10:03:04 +00:00
Albert Astals Cid
45bdac8953 CVS_SILENT Removing not needed accelerators (<property name="accel">) from ui files. That is good because:
- Makes .ui files smaller
 - Removes not necessary setAccel( QKeySequence( ) ); from the generated *.cpp
 - Translations teams don't get the accelerator to translate as a separate entry making it unpossible to generate errors because the & is placed in a letter and the accelator entry is translated to another letter. (Examples about that in http://www.iespana.es/tsdgeos/accelerators.html)

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=319212
2004-06-09 21:49:15 +00:00
Luciano Montanaro
3989a49457 Use the new showWindowMenu() variant.
svn path=/trunk/kdebase/kwin/; revision=317634
2004-06-04 13:09:47 +00:00
Luciano Montanaro
0d986b6d48 constify graphics bits.
svn path=/trunk/kdebase/kwin/; revision=317602
2004-06-04 11:28:54 +00:00
Sandro Giessl
32580f2f51 use Luciano's showWindowMenu
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=317138
2004-06-02 18:49:47 +00:00
Luciano Montanaro
6dde923eff Cleanup whitespace
svn path=/trunk/kdebase/kwin/; revision=317073
2004-06-02 13:46:54 +00:00
Luciano Montanaro
e36514f2b3 Use the new showWindowMenu() method.
svn path=/trunk/kdebase/kwin/; revision=317047
2004-06-02 11:41:14 +00:00
Luciano Montanaro
ba446edb4b Use new showWindowMenu() method
svn path=/trunk/kdebase/kwin/; revision=317024
2004-06-02 10:12:26 +00:00
Luciano Montanaro
e034d686fd Use the new showWindowMenu() variant.
svn path=/trunk/kdebase/kwin/; revision=317018
2004-06-02 09:53:24 +00:00
Luciano Montanaro
8b9735cfd1 Fix cursor shape over titlebar buttons.
svn path=/trunk/kdebase/kwin/; revision=316901
2004-06-01 23:32:28 +00:00
Script Kiddy
b461777ef1 CVS_SILENT made messages
svn path=/trunk/kdebase/ksysguard/; revision=314992
2004-05-27 06:44:41 +00:00
Sandro Giessl
8602173bd4 someone wanted to be able to set a custom titlebar height
as it was possible in the kde-look version. Can be done via
MinTitleHeight and MinTitleHeightTool config file keys...

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=314472
2004-05-25 13:28:04 +00:00
Luciano Montanaro
49b2179ed4 Implemented 'hover' effect for titlebar buttons.
svn path=/trunk/kdebase/kwin/; revision=313969
2004-05-23 22:59:13 +00:00
Luciano Montanaro
51894257c9 Added support for a custom action associated with the menu button.
svn path=/trunk/kdebase/kwin/; revision=313377
2004-05-22 00:31:07 +00:00
Luciano Montanaro
ef20b9749d Updated my mail address
svn path=/trunk/kdebase/kwin/; revision=313177
2004-05-21 10:37:36 +00:00
Luciano Montanaro
3665879171 Reindentation urge.
svn path=/trunk/kdebase/kwin/; revision=311876
2004-05-16 18:27:26 +00:00
Luciano Montanaro
5eef563549 Made the "Shade" tooltip dynamic. Now it says "Unshade" when the window is
shaded. Maybe "Roll up" and "Roll down" are better? I'm not sure, since English
is not my mothertongue.
CCMAIL: kwin@kde.org

svn path=/trunk/kdebase/kwin/; revision=311798
2004-05-16 13:21:51 +00:00
Luciano Montanaro
3330d7c0f6 Added support for the new shade button. I'd implement the foreground/background
buttons too, but I can't figure yet what kind of graphics could be used to
represent the action.
Removed some old commented out code too.

svn path=/trunk/kdebase/kwin/; revision=311718
2004-05-15 23:15:01 +00:00
Sandro Giessl
6b27d7484b Implement "Shade", "Keep Above Others", "Keep Below Others" buttons (#60369).
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=311527
2004-05-14 22:50:53 +00:00
Laurent Montel
568b06087b if (bla) delete bla; => delete bla;
svn path=/trunk/kdebase/kwin/; revision=309793
2004-05-09 16:45:04 +00:00
Sandro Giessl
4b22ed1d20 Again, a patch by Wilfried Huss:
Make the menu button fade out like the other buttons.

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=308892
2004-05-05 18:24:39 +00:00
Luciano Montanaro
b20cf8bf18 Fix for bug #78739
cc:kwin@kde.org

svn path=/trunk/kdebase/kwin/; revision=308583
2004-05-04 13:59:48 +00:00
Luboš Luňák
b50995f3cf Middle-click on the maximize button also put the window into background,
because QButton::mousePressEvent() ignores mouse non-LBM clicks.

svn path=/trunk/kdebase/kwin/; revision=308562
2004-05-04 12:39:01 +00:00
Luboš Luňák
0eeaa25674 No NET::NET::Utility.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=297865
2004-03-22 17:06:49 +00:00
Luboš Luňák
42b0d187ca Oops.
CCMAIL: 78231-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=297863
2004-03-22 17:06:12 +00:00
Waldo Bastian
0992665bb4 Handle shape correctly if mask is missing.
svn path=/trunk/kdebase/kwin/; revision=296847
2004-03-18 13:17:18 +00:00
Luciano Montanaro
4b28eb82db Fixed double-click on the window border behaviour.
It incorrectly triggered the titlebar double-click action.

svn path=/trunk/kdebase/kwin/; revision=293942
2004-03-06 15:21:14 +00:00
Luboš Luňák
be8387b70e sticky -> on all desktops
svn path=/trunk/kdebase/kwin/; revision=293605
2004-03-04 16:52:37 +00:00
Luboš Luňák
307ee66123 Use "Modern System" in all visible strings as the name of this
modsystem^H^H^Hmodernsys^H^H^Hmodernsystem decoration.
CCMAIL: 74346-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=290891
2004-02-24 12:34:58 +00:00
Frans Englich
4b522c51cb Remove all CVS Id tags from kdebase, if I haven't missed one.
Of course, this will multifold break compile as well as a dozen of people
will now object that they actually wanted the Id tags.

svn path=/trunk/kdebase/ksysguard/; revision=290873
2004-02-24 11:30:21 +00:00
Luciano Montanaro
c452b659d4 Removed Id line, as per KDE CVS policy.
svn path=/trunk/kdebase/kwin/; revision=289953
2004-02-21 11:49:01 +00:00
Luboš Luňák
d216898373 Really smart to say in the cvs log that kwmtheme is disabled, and
accidentally enable it by the commit.

svn path=/trunk/kdebase/kwin/; revision=289366
2004-02-19 12:35:03 +00:00
Luboš Luňák
df2f09f18e List decorations that still need porting to the new API (any volunteer
for finishing kwmtheme?).
CCMAIL: kwin@kde.org

svn path=/trunk/kdebase/kwin/; revision=289317
2004-02-19 09:52:11 +00:00
Sandro Giessl
9e9a93fe62 Corrected some typos.
svn path=/trunk/kdebase/kwin/; revision=286581
2004-02-09 19:50:09 +00:00
Andy Goossens
0d346bcebf CVS_SILENT
static const char *description   ->   static const char description[]

svn path=/trunk/kdebase/ksysguard/; revision=285713
2004-02-06 23:46:21 +00:00
Sandro Giessl
e9206bca9a Someone forgot to update the decoration after color changes, that's all.
CCMAIL: 73157-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=281630
2004-01-21 19:09:56 +00:00
Script Kiddy
6056e22fe6 CVS_SILENT made messages
svn path=/trunk/kdebase/kcontrol/; revision=279832
2004-01-15 08:20:08 +00:00
Sandro Giessl
0ae6966cf3 ugh, fix another small error of my last commit.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=279100
2004-01-12 17:17:02 +00:00
Grzegorz Jaskiewicz
b96ad47cd6 Small error corrected, doesn't segfault anymore.
Sandro approved change.

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=279081
2004-01-12 15:01:51 +00:00
Luboš Luňák
a43fea2434 Add a note about avoiding #71531.
svn path=/trunk/kdebase/kwin/; revision=279071
2004-01-12 14:01:39 +00:00
Script Kiddy
5562570c1d CVS_SILENT made messages
svn path=/trunk/kdebase/kcontrol/; revision=278628
2004-01-11 08:09:52 +00:00
Script Kiddy
9fbfe0a925 CVS_SILENT made messages
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=278357
2004-01-10 07:36:15 +00:00
Sandro Giessl
9268d2acdb Set the current window state when initializing OnAllDesktop buttons. (#71531)
svn path=/trunk/kdebase/kwin/; revision=278218
2004-01-09 18:20:29 +00:00
Sandro Giessl
dac6116169 Set the current window state when initializing OnAllDesktop buttons. (#71531)
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=278185
2004-01-09 16:38:08 +00:00
Sandro Giessl
ee078866de "Sticky" -> "On All Desktops" (string is already present)
svn path=/trunk/kdebase/kwin/; revision=277570
2004-01-07 14:45:09 +00:00
Luboš Luňák
574104729d KWMTheme decoration ported to the new API as a check of the PORTING
document ... with two small things to do missing.
As this wasn't enabled in KDE3.1 anyway, it won't be in 3.2 either *shrug*.

svn path=/trunk/kdebase/kwin/; revision=277290
2004-01-06 15:52:50 +00:00
Luboš Luňák
d5da80faca Updated the document for porting KWin decorations to 3.2.
svn path=/trunk/kdebase/kwin/; revision=277289
2004-01-06 15:48:46 +00:00
Luboš Luňák
8b20fbbd13 windowType() is supposed to take all types the code knows, not only
all types it wants to handle.

svn path=/trunk/kdebase/kwin/; revision=277203
2004-01-06 10:13:20 +00:00
Script Kiddy
7017ec8502 CVS_SILENT made messages
svn path=/trunk/kdebase/kcontrol/; revision=276551
2004-01-04 07:14:05 +00:00
Dirk Mueller
8d5faa18fc and the winner 2003 of the most obvious, most blatant xserver ressource leak
goes to ... tamtam... redmond!

svn path=/trunk/kdebase/kwin/; revision=275837
2004-01-01 10:52:45 +00:00
Luboš Luňák
7224e77a6b MousePosition renaming updates.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=273146
2003-12-15 15:14:45 +00:00
Luboš Luňák
569224d117 Replace the temporary MousePosition enum naming with something that
doesn't look so silly and doesn't conflict with Qt.

svn path=/trunk/kdebase/kwin/; revision=273144
2003-12-15 15:10:17 +00:00
Luboš Luňák
0ba12a0837 Perform whole new window managing with X server grab, in order to prevent
"smart" apps from doing stupid things before they get MapNotify.
This avoids the recent Java+OracleInstaller strange problem too.
The patch may look huge, but it's only adding two KWin wrappers
for X(Un)GrabServer() and uncommenting the calls in Client::manage().

svn path=/trunk/kdebase/kwin/; revision=271152
2003-12-04 13:54:10 +00:00
Luboš Luňák
d1cd1a1b18 Check for deletion while handling mouse release on the close button.
Fixes #67267.

svn path=/trunk/kdebase/kwin/; revision=268388
2003-11-20 13:31:19 +00:00
Luboš Luňák
d6721e0b7a No warnings.
svn path=/trunk/kdebase/kwin/; revision=268334
2003-11-20 09:05:00 +00:00
Laurent Montel
468633c0f7 Fix reverseLayout
Fix colors.
But title bar pixmap must be reversed

svn path=/trunk/kdebase/kwin/; revision=266089
2003-11-10 13:57:21 +00:00
Laurent Montel
7669c1296d if(bla) delete bla; -> delete bla
svn path=/trunk/kdebase/kwin/; revision=266087
2003-11-10 13:44:08 +00:00
Laurent Montel
a79264cc46 Fix reverselayout
svn path=/trunk/kdebase/kwin/; revision=266083
2003-11-10 13:21:53 +00:00
Sandro Giessl
60254757fe Fix #67681: "Plastik style often displays incorrect maximize button"
CCMAIL: 67681-done@bugs.kde.org

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=265849
2003-11-09 18:47:08 +00:00
Luciano Montanaro
9582208fca Fixed rendering glitch in the "normalize" icon.
svn path=/trunk/kdebase/kwin/; revision=265667
2003-11-09 00:41:10 +00:00
Luciano Montanaro
6714a92f92 The border size seemed wrong in latest CVS
svn path=/trunk/kdebase/kwin/; revision=263981
2003-11-02 16:35:59 +00:00
Sandro Giessl
fd896cc84d Get rid of the titlebar height slider.
- It's not really necessary for usability reasons since the titlebar grows
with bigger font sizes.
- Confusing as it overlaps with the font size setting.
- The space for the configuration dialog is quite limited. :)
I guess removing strings doesn't violate the string freeze...

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=263881
2003-11-02 11:34:32 +00:00
Sandro Giessl
69f858427e Make titlebar buttons only react on left-click, if they have one function
only.

CCMAIL: 58220-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=263874
2003-11-02 11:03:41 +00:00
Sandro Giessl
7008c02051 Make titlebar buttons only react on left-click, if they have one function
only. (Bug #58220)

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=263816
2003-11-01 23:58:05 +00:00
Sandro Giessl
3726cc23fd IMHO there is something strange going on with largeTitlebar, largeCaption
etc. but the border calculation should be correct now (part 2 of Bug #65969).

svn path=/trunk/kdebase/kwin/; revision=263736
2003-11-01 16:46:18 +00:00
Sandro Giessl
50a9e9aa2e Enabled the bottom border for shaded windows like it was the case for
Keramik in KDE 3.1. Hope that's ok with everyone.
(sorry for the ugly diff - seems like kate wasn't able to handle the
characters in the empty lines...)

svn path=/trunk/kdebase/kwin/; revision=263476
2003-10-31 17:05:21 +00:00
Albert Astals Cid
f7a59dfd24 Removing accelerators (<property name="accel">) from ui files. That is good because:
- Makes .ui files smaller
 - Removes not necessary setAccel( QKeySequence( ) ); from the generated *.cpp
 - Translations teams don't get the accelerator to translate making it unpossible to generate errors because the & is placed in a letter and the accel is another letter.

If you don't like that blame Stephan Binner, he suggested i could do it.

svn path=/trunk/kdebase/kcontrol/; revision=263265
2003-10-30 19:01:10 +00:00
Luboš Luňák
76c19742f4 Here as well - don't flicker.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=263257
2003-10-30 18:25:43 +00:00
Luboš Luňák
abdfd596b2 And one more case of flickering ... how comes nobody complained?
svn path=/trunk/kdebase/kwin/; revision=263250
2003-10-30 18:01:43 +00:00
Luboš Luňák
b884178c99 KDecoration::unobscuredRegion(), for B2 titlebar unhiding.
svn path=/trunk/kdebase/kwin/; revision=262494
2003-10-27 16:28:53 +00:00
Sandro Giessl
a21351b5a8 - Don't forget to update buttons on color changes...
- Replaced repaint()s with update().

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=261864
2003-10-25 13:57:28 +00:00
Malcolm Hunter
5698d10846 CVS_SILENT Typographical corrections and changes
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=261566
2003-10-24 11:24:15 +00:00
Luciano Montanaro
e510e8dd73 Forgot to make the variable static
svn path=/trunk/kdebase/kwin/; revision=261057
2003-10-22 13:52:51 +00:00
Luboš Luňák
546d2ce58c Check for being deleted ( KDecorationFactory::exists() ).
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=260991
2003-10-22 08:47:32 +00:00
Luboš Luňák
43c71a8c72 No delayed deleting of decorations. They'll have to check themselves
instead, using KDecorationFactory::exists(). Fixes #66205, and it wasn't
really that good idea anyway.

svn path=/trunk/kdebase/kwin/; revision=260988
2003-10-22 08:26:09 +00:00
Luciano Montanaro
c47d64a4cc I committed too hastily. This patche is the good one!
svn path=/trunk/kdebase/kwin/; revision=260080
2003-10-19 09:26:34 +00:00
Luciano Montanaro
eaeb27fd13 Enabled titlebar dragging by shift-clicking it.
Still missing is the automatic titlebar unhiding.

svn path=/trunk/kdebase/kwin/; revision=260075
2003-10-19 09:16:11 +00:00
Luciano Montanaro
c2eacac63f Oops I didn't notice the typo.
svn path=/trunk/kdebase/kwin/; revision=259993
2003-10-18 21:03:29 +00:00
Luciano Montanaro
9ebccb978e Scale up maximize and close button if there is enough room.
Beginning to add code to try to not reset decoraton if configuration changes
are small enough.

svn path=/trunk/kdebase/kwin/; revision=259978
2003-10-18 20:37:49 +00:00
Luciano Montanaro
40b7e4a8ad Implemented Titlebar resizing based on the font height.
svn path=/trunk/kdebase/kwin/; revision=259214
2003-10-15 16:50:29 +00:00
Luciano Montanaro
fc334ef5c1 Renamed class LaptopClientButton to LaptopButton
svn path=/trunk/kdebase/kwin/; revision=257972
2003-10-11 12:34:09 +00:00
Luciano Montanaro
4f0bc08749 Cleaned up spaces, reordered classes
svn path=/trunk/kdebase/kwin/; revision=257969
2003-10-11 12:24:51 +00:00
Nadeem Hasan
bf4fc6b898 Fix margin.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=257799
2003-10-10 16:18:41 +00:00
Dirk Mueller
b8db522f64 fix messages target
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=257734
2003-10-10 13:08:14 +00:00
Luciano Montanaro
e07db73f38 Removed superfluous Q_OBJECT
svn path=/trunk/kdebase/kwin/; revision=256725
2003-10-06 13:02:49 +00:00
Luciano Montanaro
13037237fc CCMAIL: Gunnar Schmi Dt <gunnar@schmi-dt.de>
Applied Gunnar's patch, tweaked minimumSize()

svn path=/trunk/kdebase/kwin/; revision=256483
2003-10-05 14:23:10 +00:00
Luciano Montanaro
7f6a69be67 Fixed bottom border rendering, made titlebar at least as large as the resize
handle, like the other decorations do.

svn path=/trunk/kdebase/kwin/; revision=256350
2003-10-04 23:55:55 +00:00
George Staikos
a98beeee30 KWhatsBroken tells me that redmond is broken. This appears to be what the
other clients do

svn path=/trunk/kdebase/kwin/; revision=256310
2003-10-04 21:27:23 +00:00
Luciano Montanaro
9ccad80cc4 Added support for variable border sizes.
Currently only BorderTiny, BorderNormal, BorderLarge and BorderVeryLarge are
supported.  I'll add the other sizes after making the titlebar height
adjustable too.

svn path=/trunk/kdebase/kwin/; revision=256260
2003-10-04 18:53:44 +00:00
Luciano Montanaro
4dca82efb1 A little eyecandy:
support titlebar color gradients

svn path=/trunk/kdebase/kwin/; revision=256082
2003-10-04 02:02:07 +00:00
Luciano Montanaro
78f1c3ab0e CCMAIL: rcliff@panix.com
Fixed maximization. Thanks to Robert Clifford for noticing the bug.

svn path=/trunk/kdebase/kwin/; revision=256063
2003-10-04 00:15:34 +00:00
Gunnar Schmidt
bde8e27f21 fixed a problem in KeramikClient::mousePosition
svn path=/trunk/kdebase/kwin/; revision=255907
2003-10-03 13:51:02 +00:00
Luciano Montanaro
5e32acc176 CCMAIL: l.lunak@kde.org
Make middle and right click on window buttons work again.
The solution looks a bit like a workaround for some kwin problem, though.
Why do I have to always fake a LeftButton press?

svn path=/trunk/kdebase/kwin/; revision=255894
2003-10-03 12:03:16 +00:00
Luciano Montanaro
47f5381fca Constified bitmap data
svn path=/trunk/kdebase/kwin/; revision=255846
2003-10-03 08:09:15 +00:00
Luciano Montanaro
2e42c39a74 CVS_SILENT
Fixed typo in a comment, reworded one of my notes

svn path=/trunk/kdebase/kwin/; revision=255712
2003-10-02 16:52:20 +00:00
Luciano Montanaro
ea9742f367 Implemented basics of accessibility support. I'll tweak it a bit more later on.
svn path=/trunk/kdebase/kwin/; revision=255711
2003-10-02 16:46:13 +00:00
Luciano Montanaro
017a08e98b CCMAIL: kwin@kde.org
The fix wasn't complete. A doShape() is also needed.

svn path=/trunk/kdebase/kwin/; revision=255366
2003-10-01 13:01:50 +00:00
Luciano Montanaro
4f8f89cf46 CCMAIL: kwin@kde.org
Fixed the misrendered shaded border.
For me, the problem was fixed by redoing the layout in the shapeChange()
function. Maybe the other styles have to modified in a similar way.

I'd like to reduce the width of the window border to the titlebar width only,
instead of the full window border. In the BeeToo, I obtain a similar effect by
painting the titlebar only, but the trick is revealed by the window snap zones,
and the transparent border. Is there a way to do this cleanly with current kwin?

svn path=/trunk/kdebase/kwin/; revision=255364
2003-10-01 12:55:55 +00:00
Luciano Montanaro
ba06d6afbf Fixed bug #46966 using the first of the suggested methods.
The second part of the bug report does not seem to apply to any other
decoration in CVS.

Removed redundant copies of MouseEvents, since I were at it.

svn path=/trunk/kdebase/kwin/; revision=255165
2003-09-30 18:13:18 +00:00
Gunnar Schmidt
59e880217f Added the wide-borders feature to the Quartz decoration
svn path=/trunk/kdebase/kwin/; revision=254896
2003-09-29 16:35:12 +00:00