Commit Graph

1719 Commits

Author SHA1 Message Date
Aaron J. Seigo
abd8d94daa while getting the size wrong is bad, flickering like crazy is even worse =)
resize after the contents have been set to get a rational size out of the widget.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770966
2008-02-04 20:59:39 +00:00
Aaron J. Seigo
e3c3b847f6 provide a bigLock() for runners to use whenever accessing common but non-reentrant api (e.g. most everything in kdelibs ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770952
2008-02-04 20:28:09 +00:00
Aaron J. Seigo
92304b6d2c * fix contentSizeHint for square applets when the maximum size is smaller than the resulting size of the widget (resulting in non-square applets)
* move the (broken) size constraining commit to flushUpdatedConstraints, not why it is broken and add a comment into constraintsUpdated() noting why code should never be added to that method directly (and what to do instead)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770949
2008-02-04 20:09:45 +00:00
Anne-Marie Mahfouf
782bcbce51 a few typos
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770891
2008-02-04 16:26:49 +00:00
Petri Damstén
8a15088888 Scripting update.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770587
2008-02-04 04:41:40 +00:00
Marco Martin
dfb3854a10 Sets on Applet::constraintsUpdated() the maximum content width for horizontal panels and the maximum content height for vertical panels as IconSize(KIconLoader::Panel)
this makes vertical larger panels actually usable. 

Some notes:
-it works only for applets that aren't forced to square 
-in horizontal panels only for applets that don't have expandingDirections()=Qt::Horizontal  
-in vertical panels only for applets that don't have expandingDirections()=Qt::Vertical

On other news the kickoff applets are modified to use this new feature

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770423
2008-02-03 18:21:01 +00:00
Riccardo Iaconelli
2434a31f69 Reset tooltip's size when changing text.
BUG: 157059

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770405
2008-02-03 16:57:00 +00:00
Riccardo Iaconelli
08771bb763 Align to grid, and slightly smaller frame
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770404
2008-02-03 16:56:53 +00:00
Chani Armitage
be64c5939d enable dragging from desktop to panel
note: there's no visual feedback before you release the mouse button, and there's no way to drag back to the desktop.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770333
2008-02-03 13:09:21 +00:00
Bill Egert
29215641ef Reveiwed from http://matt.rogers.name/r/42/
Set windowSize only from readWindowSize()  
It looks like that function has some logic to determine what windowSize should really be.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770330
2008-02-03 13:06:34 +00:00
Aaron J. Seigo
a6b4d53d83 fix applet detection, don't mistake a containment for an applet in the context menu code path
BUG:156596

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770208
2008-02-03 00:51:15 +00:00
Aaron J. Seigo
7ea2da7eeb proper offsets (krunnerdialog should really be Plasma::Dialog, but that means making Plasma::Dialog an actual .. well .. dialog =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768976
2008-01-31 03:26:39 +00:00
Aaron J. Seigo
fc8079a99e ++apidox;
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768975
2008-01-31 03:25:19 +00:00
Aaron J. Seigo
55eb91140b some improvements as suggested by mattr via review-board. boy, what a neat tool
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768467
2008-01-30 06:17:13 +00:00
Aaron J. Seigo
099785fbdc let's see if serializing (via a mutex) access to kservicetypetrader helps with those kservicetypetrader related crashes i'm seeing constantly go away
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768454
2008-01-30 03:41:36 +00:00
Aaron J. Seigo
9df86adbd2 * hide items that are disabled while they are shown
* enforce a 100ms delay between showing/hiding which helps reduce the jitters

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=768453
2008-01-30 03:40:17 +00:00
Marco Martin
c395cc03bb added the function setExpandingBoth(bool) that makes the layout to expand in both directions, useful for instance if you put an horizontal layout into a vertical layout
oh, and fixed a typo in a comment

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=767568
2008-01-28 11:55:56 +00:00
Script Kiddy
e3bddd25de SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766695
2008-01-26 13:10:45 +00:00
Marco Martin
fb5ad56937 some tweaks in popupPosition()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766629
2008-01-26 12:37:17 +00:00
Marco Martin
6b649e560c operator precedence issue
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766361
2008-01-25 17:16:38 +00:00
Benjamin Reed
e2369b2e68 allow building libplasma by itself
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766358
2008-01-25 17:10:58 +00:00
Benjamin Reed
e94de707ee do x11 stuff only on x11
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766344
2008-01-25 16:24:40 +00:00
Riccardo Iaconelli
c99bda9dde Remove useless variable
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766292
2008-01-25 14:53:12 +00:00
Aaron J. Seigo
67aae7bf6e don't produce errors if our content is empty
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766098
2008-01-25 08:31:32 +00:00
Aaron J. Seigo
74a5773d79 use the Theme::*Color methods. another place we really need Plasma::ThemeColor, apparently.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766075
2008-01-25 07:36:33 +00:00
Aaron J. Seigo
dd87a4e936 find the colors file properly. yay for being able to read the taskbar again.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766067
2008-01-25 06:10:44 +00:00
Aaron J. Seigo
06011ef27e put the applet's menu items first, put remove at the end.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766021
2008-01-25 01:41:16 +00:00
Aaron J. Seigo
2fc01c712e add X-Plasma-ComponentTypes so ScriptEngine libs can define which components they support
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765981
2008-01-25 00:11:52 +00:00
Aaron J. Seigo
68acc75d20 ComponentType enumeration
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765979
2008-01-25 00:11:11 +00:00
Aaron J. Seigo
f2674c9a51 * setRemainSquare(bool) to allow applets to say "yes, keep my width == height, thank you"
* use AppletScript

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765975
2008-01-25 00:08:25 +00:00
Aaron J. Seigo
0e0d1122ca BINARY INCOMPATIBLE CHANGE
* create a subdir for our scripting classes
* break ScriptEngine into two: a base class and AppletScript
* add stub classes for RunnerScript and DataEngineScript
* provide generic loading methods for all three

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765971
2008-01-25 00:04:03 +00:00
Marco Martin
b39fa0c7db white semitransparent border of icon background for better contrast
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765805
2008-01-24 18:35:22 +00:00
Marco Martin
92ecb186df in popupPosition() calculating if we are out of screen with the actual screen size instead of graphicsview size
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765724
2008-01-24 15:44:11 +00:00
Chani Armitage
a083df39d5 clean up after a mouse release even if we had passed over some other window
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765268
2008-01-23 18:07:42 +00:00
Chani Armitage
9580b6a463 improve code readability and fix a tiny misalignment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765189
2008-01-23 12:12:57 +00:00
Script Kiddy
75f7be985e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765161
2008-01-23 11:37:15 +00:00
Chani Armitage
593a6c8103 prettify code spacing
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765102
2008-01-23 07:01:03 +00:00
Aaron J. Seigo
11f9ad3064 BINARY INCOMPATIBLE CHANGE
make it possible to use the context menu event hack with non-Plasma::Widgets.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765005
2008-01-22 23:39:15 +00:00
Aaron J. Seigo
0dfb81a617 BINARY INCOMPATIBLE CHANGES
* const correctness in Animator
* remove the vestiges of the FrameAppear stuff in Phase we never used
* introduce FastSlide[In|Out]
* put the duration in the hands of the Animator with duration methods

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765004
2008-01-22 23:37:48 +00:00
Aaron J. Seigo
76747db2d9 --compiler.warningsCount();
--compiler.warningsCount();

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765001
2008-01-22 23:31:57 +00:00
Chani Armitage
17ddc75c3a fix bug where one signalrelay requests an update right after another and gets nothing
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764821
2008-01-22 17:03:34 +00:00
Marco Martin
e8b62a6ceb move popupleft when there is not enough room (it looks like the windowmanager doesn't always do it automatically)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764755
2008-01-22 14:06:37 +00:00
Script Kiddy
ec2f627333 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764649
2008-01-22 10:05:53 +00:00
Aaron J. Seigo
2f479c7084 * require a SearchContext in exec since the context may have shifted during matching due to multithreading
* differentiate between resetSearchTerm and just setSearchTerm (to be used with the above)
* remove the SearchContext ptr from SearchMatch's dptr as it isn't used; don't want to mislead people or waste memory
* more const correctness

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764593
2008-01-22 04:38:03 +00:00
Aaron J. Seigo
ddadcc6765 SVN_SILENT: whitespace fix; committing to get it off my hd
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764592
2008-01-22 04:34:49 +00:00
İsmail Dönmez
251dd87666 avoid division by zero
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764517
2008-01-21 23:55:28 +00:00
İsmail Dönmez
730266dc65 if m_toolBacker would be true this line would crash, thanks to Christoph Bartoschek for reporting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764515
2008-01-21 23:52:42 +00:00
Aaron J. Seigo
08812eeb00 setFont is not on the agenda; Plasma::Theme is there for that now
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764402
2008-01-21 17:35:01 +00:00
Stephan Binner
404b0b74d1 open toolbox when the dashboard view starts (to show the
user a way how to "Hide Dashboard" again)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764361
2008-01-21 15:10:19 +00:00
Marco Martin
6d362861e0 SVN_SILENT: micro cosmetic style fix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764302
2008-01-21 11:51:04 +00:00