Commit graph

125 commits

Author SHA1 Message Date
Stephan Kulow
7a441e1b7a the easy cases
svn path=/trunk/KDE/kdebase/workspace/; revision=466852
2005-10-03 15:13:54 +00:00
Laurent Montel
a166c8e3d4 QToolTip::add -> setToolTip
svn path=/trunk/KDE/kdebase/workspace/; revision=462520
2005-09-21 09:14:36 +00:00
Laurent Montel
788b983bc5 Remove "KDE_IS_VERSION"
svn path=/trunk/KDE/kdebase/workspace/; revision=459377
2005-09-10 17:09:47 +00:00
Benjamin Meyer
9595a50003 Move kwin into workspace (got maintainer permission first)
svn path=/trunk/KDE/kdebase/workspace/; revision=455859
2005-09-01 15:07:49 +00:00
Matt Broadstone
5da7024486 rid ourselves of the Q3Buttons
svn path=/trunk/KDE/kdebase/kwin/; revision=449967
2005-08-17 09:15:59 +00:00
Luboš Luňák
c6b24fdb13 Make it simpler to also edit special window setting affecting
the whole application.


svn path=/trunk/KDE/kdebase/kwin/; revision=449779
2005-08-16 17:46:42 +00:00
Laurent Montel
a3ea896a57 Warning--
KStyle::defaultStyle() doesn't exist now

svn path=/trunk/KDE/kdebase/kcontrol/; revision=449253
2005-08-14 20:58:48 +00:00
Luboš Luňák
326e9b2b41 Sync with maximizeChange(). If a decoration has only two button states
for the four maximize states, it should show the maximized one only
for the fully maximized state.


svn path=/trunk/KDE/kdebase/kwin/; revision=442352
2005-08-02 12:46:18 +00:00
Stephan Kulow
b464518b3c svn merge svn+ssh://coolo@svn.kde.org/home/kde/trunk/KDE/kdebase@438057
svn+ssh://coolo@svn.kde.org/home/kde/branches/work/kde4/kdebase
          .

I couldn't resolve one kicker conflict that results from different
development directions, so I rely on Aaron to sort it out - the file
is commited with conflicts

svn path=/trunk/KDE/kdebase/kwin/; revision=439627
2005-07-28 14:59:42 +00:00
Adriaan de Groot
630af25d7b Dox fixes: remember to name parameters the same as in superclasses; escape html special chars; add more cross-refs.
svn path=/trunk/KDE/kdebase/kwin/; revision=427022
2005-06-19 08:19:36 +00:00
Luboš Luňák
ced5ab580a Die, window type override, die! Since nobody really knows what this window
type means anyway, let's simply consider it to be a legacy way of saying "noborder"
and nothing more.


svn path=/trunk/KDE/kdebase/kwin/; revision=412372
2005-05-11 14:20:54 +00:00
Luboš Luňák
fc90a04635 Make it possible to do all kinds of strange things when mousewheeling
the titlebar or Alt+mousewheeling the window.
FEATURE:44318
FEATURE:66519
FEATURE:76188


svn path=/trunk/KDE/kdebase/kwin/; revision=410058
2005-05-06 15:20:49 +00:00
Luboš Luňák
cc7ab636af Make the titlebar double-click operation react only the LMB.
BUG: 96079


svn path=/trunk/KDE/kdebase/kwin/; revision=409714
2005-05-05 12:43:19 +00:00
Stephan Kulow
f299853a93 there is no such file
svn path=/trunk/KDE/kdebase/kwin/; revision=409317
2005-05-04 16:02:19 +00:00
Aaron J. Seigo
86594e3fe8 make moving of maximized windows off by default. have had this patch for a
while and talked about it with Seli on March 9th but never got around to
committing it. after being asked about it _again_ i decided to do `cvs ci`
this allows well designed window decorations to allow the user to jam the
mouse into the corner of the screen and close the window.

svn path=/trunk/kdebase/kwin/; revision=405269
2005-04-13 10:59:58 +00:00
Sandro Giessl
bd9c556471 better minimumSize()
svn path=/trunk/kdebase/kwin/; revision=400788
2005-03-26 16:43:48 +00:00
Sandro Giessl
46482b1d0e improved calcHiddenButtons()
svn path=/trunk/kdebase/kwin/; revision=400782
2005-03-26 16:26:31 +00:00
Sandro Giessl
286696268e - add LM_ButtonMarginTop for more control on how to position buttons.
- don't make layoutMetric() abstract, instead implement it with sane defaults
  and let decorations fall back to it in case they can't handle a LayoutMetric
  case...

svn path=/trunk/kdebase/kwin/; revision=400745
2005-03-26 13:09:52 +00:00
Sandro Giessl
9ecf800caf do not cover the menu button with the menu
svn path=/trunk/kdebase/kwin/; revision=400739
2005-03-26 12:40:56 +00:00
Stephan Binner
ca22bd2f4e compile (with builddir!=srcdir)
svn path=/trunk/kdebase/kwin/; revision=399977
2005-03-23 12:42:34 +00:00
Sandro Giessl
8ee563139d um... fix titleRect()
svn path=/trunk/kdebase/kwin/; revision=399602
2005-03-22 00:15:29 +00:00
Sandro Giessl
1b1d7df406 more const-correctness and titleRect() convenience method...
svn path=/trunk/kdebase/kwin/; revision=399599
2005-03-21 23:45:54 +00:00
Sandro Giessl
079ac8c9f9 take the button width into account for the calculation of minBtnHideWidth
svn path=/trunk/kdebase/kwin/; revision=399466
2005-03-21 16:33:59 +00:00
Sandro Giessl
f1ad43864f - Add KCommonDecoration::isLeft() for Quartz.
- Hide buttons one by another when the window size shrinks below a certain
  width. Implemented so that Quartz doesn't use any functionality, but it's
  quite useful in other decos, too -> enabled by default.
  Minimum size calculation still needs some tweaking...

svn path=/trunk/kdebase/kwin/; revision=399463
2005-03-21 15:47:39 +00:00
Sandro Giessl
c77a4202fb inform buttons of state change
svn path=/trunk/kdebase/kwin/; revision=398989
2005-03-19 15:44:10 +00:00
Sandro Giessl
352beb9070 make reset abstract, add forgotten virtual...
svn path=/trunk/kdebase/kwin/; revision=397517
2005-03-14 11:54:49 +00:00
Sandro Giessl
af8ea39ba9 insert catalogue kwin_lib. it seems to me this is the best place for it...
svn path=/trunk/kdebase/kwin/; revision=397488
2005-03-14 09:50:19 +00:00
Sandro Giessl
7f9e658fb3 save reset calls in setSize() etc., inform buttons about what has changed in reset() so they can better optimize for performance
svn path=/trunk/kdebase/kwin/; revision=397485
2005-03-14 09:33:29 +00:00
Sandro Giessl
66ee8c3b4d add KWIN_EXPORT, thanks willem boschman
svn path=/trunk/kdebase/kwin/; revision=397197
2005-03-13 11:54:17 +00:00
Sandro Giessl
cc148f1762 Add message extraction for KCommonDecoration. Could someone who knows Automake/i18n check if this is correct, please?
svn path=/trunk/kdebase/kwin/; revision=396775
2005-03-11 20:20:00 +00:00
Sandro Giessl
37992c3cb1 Import KCommonDecoration/KCommonDecorationButton. They ease development of decorations
by implementing parts of KDecoration which are error prone and common for most decorations.

Plastik will be ported to it. It should be possible to port at least Web, System++, RISC OS,
Quartz, Laptop, KStep, KDE 2, CDE easily - I will have a look at this some time. Perhaps also
Redmond, Modern System, Keramik, IceWM, Glow. I'm sure they will gain maintainability...

I'm open to discussions on the API...
CCMAIL: kwin@kde.org

svn path=/trunk/kdebase/kwin/; revision=396767
2005-03-11 20:10:46 +00:00
Luboš Luňák
65c3b55e05 Revert last revert, dynamic keybidings are back in.
svn path=/trunk/kdebase/kwin/; revision=377118
2005-01-10 09:56:21 +00:00
Luboš Luňák
c7d0776f01 Revert last changes because of temporary freeze.
svn path=/trunk/kdebase/kwin/; revision=375467
2005-01-04 14:57:42 +00:00
Luboš Luňák
d04ce83410 Custom shortcuts for windows (#44268). It still needs some testing, window
rules for them to be assigned automatically, and some way to indicate
every window's shortcut, but it more or less works.

svn path=/trunk/kdebase/kwin/; revision=375458
2005-01-04 14:24:55 +00:00
Luboš Luňák
aa28465df5 I think I got persuaded that having a direct access to the decorated
window might be useful in very very very rare cases.

svn path=/trunk/kdebase/kwin/; revision=368911
2004-12-06 15:46:27 +00:00
Luboš Luňák
9a5a1c5d95 Fix shading: isShade() returns the actual state of the window, and isSetShade()
returns the state set by the user - these two may differ e.g. while hover-unshaded.
Therefore titlebar buttons should use isSetShade(), otherwise they become
a bit useless with hover-unshading.
Also fix updating the button state - the styles duplicate way too much code,
and if one of them has a bug, most of them definitely have it as well. Some
of the code should probably move to the decoration lib :-/ .

svn path=/trunk/kdebase/kwin/; revision=366147
2004-11-25 16:08:46 +00:00
Dirk Mueller
42c0e144c1 fix export's
svn path=/trunk/kdebase/ksysguard/; revision=363751
2004-11-17 17:56:22 +00:00
Sandro Giessl
5ffb107a01 Let decorations announce which buttons are supported via KDecorationFactory::supports().
CCBUG: 83499

svn path=/trunk/kdebase/kwin/; revision=360718
2004-11-05 14:57:32 +00:00
Sandro Giessl
9ff5419637 doxygen update: there is also a resize button
svn path=/trunk/kdebase/kwin/; revision=360105
2004-11-03 14:48:41 +00:00
Luboš Luňák
4e52fbebdc With transparent moving/resizing, make sure the outline is not larger
than the window (#88567).

svn path=/trunk/kdebase/kwin/; revision=348501
2004-09-22 15:09:42 +00:00
Nicolas Goutte
7aba5a0721 Unify the translation of KWin's clients
(The user visible strings inkdebase/kwin/clients are extracted to
kwin_client.pot)
CCMAIL:kde-i18n-doc@kde.org

svn path=/trunk/kdebase/kwin/; revision=347824
2004-09-20 11:20:12 +00:00
Luboš Luňák
43f9553004 Adding yet another option, this time for what happens when clicking
the maximize button.

svn path=/trunk/kdebase/kwin/; revision=342186
2004-08-28 15:27:22 +00:00
Luboš Luňák
a8b7cc3f24 Fix example.
svn path=/trunk/kdebase/kwin/; revision=333563
2004-07-28 16:55:42 +00:00
Nicolas Goutte
e8332d6f24 The clients in kdeartwork have all mini-pot files, so the previous commit
needs to be partially reverted.

svn path=/trunk/kdebase/kwin/; revision=332110
2004-07-23 18:34:15 +00:00
Nicolas Goutte
92949ab569 I18N: untranslatable strings
Add a central user message extraction for all KWin client.
(The config programs have already their own .pot files)
CCMAIL:kde-i18n-doc@kde.org

(Note: there is currently not much of a choice to add a new .pot file,
as KWin has already many of them and we are in message freeze.
But at least this new .pot file can be shared between all clients, which
share most of the user visible strings.)

svn path=/trunk/kdebase/kwin/; revision=332022
2004-07-23 13:09:13 +00:00
Luboš Luňák
12f4763033 Oops. KWin decoration plugins had no messages although they contain
few i18n strings.

svn path=/trunk/kdebase/kwin/; revision=331733
2004-07-22 11:48:03 +00:00
Luboš Luňák
a35e5cad28 Inform decoration about keepabove/below changes.
CCMAIL: 84841-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=331722
2004-07-22 11:19:08 +00:00
Luboš Luňák
f5668e9dff Explain in docs how to do maximize + convenience function.
svn path=/trunk/kdebase/kwin/; revision=331721
2004-07-22 11:17:16 +00:00
Luboš Luňák
de1ddb988a Add some docs.
svn path=/trunk/kdebase/kwin/; revision=331720
2004-07-22 11:16:12 +00:00
Luciano Montanaro
7240bff8f1 Added a new variant of showWindowMenu() that takes an originating rect instead
of a point. This method should be preferred to bring up the actions menu  from
the menu button, since it makes it a bit harder to select a menu item
involuntaryily in some corner case.

svn path=/trunk/kdebase/kwin/; revision=317016
2004-06-02 09:47:36 +00:00
Luboš Luňák
8e09a9bc22 I guess I could finally find some time to work on things for 3.3.
Initial work on kwin rules, i.e. #36377 , per window specific settings.
So far only desktop/above/below work, no GUI, and settings from the old
'Save window settings' are ignored for now.

svn path=/trunk/kdebase/kwin/; revision=315446
2004-05-28 13:51:11 +00:00
Andrew Coles
75db450e8b Finished correcting typos in kdebase, phew!
Andrew

svn path=/trunk/kdebase/ksysguard/; revision=312639
2004-05-19 14:32:18 +00:00
Sandro Giessl
8d0eda13db Add support for three additional titlebar buttons (#60369):
Shade, Keep Above Others, Keep Below Others.

CCMAIL: kwin@kde.org
Slowly but surely, button indexes are going out. :) In case anyone has
objections with the following ones for the API, just tell. Now.
 F (Above others ~ foreground)
 B (Below others ~ background)
 L (Shade ~ less/lock??)

svn path=/trunk/kdebase/kwin/; revision=311518
2004-05-14 22:23:29 +00:00
Luboš Luňák
dd81cc4c6e Use the actual border sizes instead of hardcoded 4 for mousePosition(),
so that this is more flexible and decorations don't have to reimplement
it completely.

svn path=/trunk/kdebase/kwin/; revision=296910
2004-03-18 16:56:11 +00:00
Luboš Luňák
d445cb905e Avoid warning.
svn path=/trunk/kdebase/kwin/; revision=279594
2004-01-14 12:01:09 +00:00
Luboš Luňák
ffc2d039c5 Fix docs.
svn path=/trunk/kdebase/kwin/; revision=277236
2004-01-06 12:37:46 +00:00
Benjamin Meyer
2635bda927 Added ifdef around the x11 includes when building --without-x
svn path=/trunk/kdebase/kwin/; revision=273871
2003-12-19 14:01:43 +00:00
Luboš Luňák
2197c646eb Reserve one virtual function in the interface that I plan to use after 3.2.
svn path=/trunk/kdebase/kwin/; revision=273149
2003-12-15 15:18:10 +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
c26c55787f Remove some obsolete comments.
svn path=/trunk/kdebase/kwin/; revision=273143
2003-12-15 14:44: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
4ee178b277 Fix #69005 - make it possible to differentiate between a window really
being shaded and being set to be shaded (which may differ with hover unshade).

svn path=/trunk/kdebase/kwin/; revision=269526
2003-11-25 15:26:50 +00:00
Luboš Luňák
87f8a85083 Added KDecorationFactory::checkRequirements(), which allows the decoration
plugin to check what the core supports, i.e. the opposite of supports().
Not used yet, but apparently will be needed e.g. for the new tranparency.

svn path=/trunk/kdebase/kwin/; revision=269291
2003-11-24 14:22:04 +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
Daniel Molkentin
fffdc0d01a Required for the exploit-new-kwin-colors patch
svn path=/trunk/kdebase/kwin/; revision=261201
2003-10-23 05:26:53 +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
Luboš Luňák
fa2f71549f Patch from Frerich to use KGlobalSetting instead of hardcoding helvetica.
Looks like he's too shy to commit it himself ;).

svn path=/trunk/kdebase/kwin/; revision=258819
2003-10-14 12:49:24 +00:00
Luboš Luňák
81e475c523 Make it possible to find out window type also in createDecoration().
svn path=/trunk/kdebase/kwin/; revision=254816
2003-09-29 11:21:46 +00:00
Luboš Luňák
cefae8f1e4 Allows the decorations to specify which border sizes they support.
Also added GUI for the border size, not perfect, but it's there.

svn path=/trunk/kdebase/kwin/; revision=253572
2003-09-24 12:41:56 +00:00
Gunnar Schmidt
2e416ecfd5 Added two extra huge border sizes (BorderVeryHuge and BorderOversized) that are needed for accessibility reasons.
Together with these two sizes it is possible to provide both average sized borders (e.g., 4, 8 or 12 pixels) and wide borders (e.g., 18, 27, 40 pixels) without gaps in between.

svn path=/trunk/kdebase/kwin/; revision=253347
2003-09-23 14:31:11 +00:00
Luboš Luňák
9fac9d2a43 Fixes for mousePosition().
Since Qt propagates mouse events up the widget hierarchy, it's better
to filter out Qt events rather than X events for the decoration.

svn path=/trunk/kdebase/kwin/; revision=252346
2003-09-19 11:11:07 +00:00
Stephan Kulow
0391b7bfaf need this to compile the clients
svn path=/trunk/kdebase/kwin/; revision=252298
2003-09-19 05:25:18 +00:00
Luboš Luňák
87fa54326f As kdelibs/NAMING says, using lib<appname>.la as name for a library is bad.
Library name changed to libkdecorations.la .

svn path=/trunk/kdebase/kwin/; revision=251859
2003-09-17 14:23:53 +00:00
Luboš Luňák
586b2c8fd2 Fix --enable-final.
svn path=/trunk/kdebase/kwin/; revision=251775
2003-09-17 08:38:14 +00:00
Luboš Luňák
613d583174 Merging decoration library from kwin_iii back to HEAD.
svn path=/trunk/kdebase/kwin/; revision=251611
2003-09-16 19:29:21 +00:00