Commit Graph

1241 Commits

Author SHA1 Message Date
Marco Martin
1ca970c48e added the method
void invertLayout(bool invert);
it inverts the layout of the icons if the orientation is horizontal,
normally we get icon on the left with left-to-right languages,
this inverts the behaviour

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755562
2008-01-01 20:58:36 +00:00
Aaron J. Seigo
d5c9ab0cf6 style fix and remove the extra assignment.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755558
2008-01-01 20:53:46 +00:00
Aaron J. Seigo
94f0955d99 QGraphicsItem::update isn't virtual, but we have overridden it in Plasma::Widget to provide paint caching; this broke element animations completely so hack around this. this hack can be removed in 4.1 as noted in the FIXME
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755556
2008-01-01 20:52:11 +00:00
Craig Duquette
590e039859 Changes the toolbox tools from buttons to icons.
Changes the toolbox icon from 'configure' to 'plasma'
Changed the toolbox gradient to something "prettier"

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755534
2008-01-01 19:57:40 +00:00
Aaron J. Seigo
f6bc2e893d pager after the tasks... more .. "natural" feeling.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755519
2008-01-01 19:37:05 +00:00
Aaron J. Seigo
627cb88ccf all members belong in the dptr.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755512
2008-01-01 19:21:33 +00:00
Chani Armitage
936078bbfb update the timestamp when data is cleared
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755380
2008-01-01 12:18:26 +00:00
Script Kiddy
f234c662d5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755334
2008-01-01 08:08:37 +00:00
Marco Martin
3b5443a62d restore the ability co create desktop icon with drag and drop
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755067
2007-12-31 11:19:34 +00:00
Script Kiddy
8ac2ca890f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755013
2007-12-31 08:04:48 +00:00
Jason Stubbs
7a202c3382 Holding on to the return value of view() as it's a heavy function call. Hiding
the widget's tooltip when the widget is deleted. Fixed coding style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754986
2007-12-31 01:45:48 +00:00
Richard J. Moore
48a812947b - Better safe than sorry
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754964
2007-12-31 00:38:04 +00:00
Richard J. Moore
eb86939c77 - Ensure we don't popup a tooltip when a context menu or other mouse
grabbing activity is occuring as we can obscure it.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754931
2007-12-30 23:48:25 +00:00
Marco Martin
a87dcb6b19 draws iconSvg correctly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754836
2007-12-30 21:00:38 +00:00
Urs Wolfer
9164322ad6 Update artwork for logout dialog:
New Oxygen design

The sourcecode has no new features. I have only changed coordinates, colors and such things.
Due to render problems in Qt, we use a 'pre'-rendered svg image (exported as png and imported again into the svg).
The real source svg is also included: shutdowndialog.source.svg
I have also moved the button svgs into the main theme svg (with a different object id).

This dialog needs some more love after feature freeze is over:
* do not hardcode fonts and colors
* improve strings
* probably change buttons layout
* ...

For informations of the moon image used, see the CREDITS file (photo released under a Creative Commons license).
I think this file should be enough; if not, please tell me.

Thanks a lot Pinheiro for the great work!

CCMAIL: nuno@oxygen-icons.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754777
2007-12-30 18:45:15 +00:00
Jason Stubbs
b907728254 If a widget doesn't have a size yet, it's bounding rect won't intersect
anything, so also check if its position lies within a view's scene rect.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754627
2007-12-30 11:44:25 +00:00
Jason Stubbs
c268168eab Overrode sceneEvent() rather than hover(Enter|Leave)Event so that subclasses
that use those events (such as Icon) can still have tooltips. Also behaviour
on mouse move, mouse click and mouse wheel events is also managed.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754605
2007-12-30 10:45:21 +00:00
Jason Stubbs
f3e52b76cb Record which tooltip is being shown so that tooltip data updates don't change
which to another widget's tooltip.

BUG: 154719

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754590
2007-12-30 10:17:33 +00:00
Script Kiddy
2e58716f0c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754562
2007-12-30 08:55:36 +00:00
Jason Stubbs
4a1823bff4 Initialize the graphicsview with default properties regardless of which
constructor is called. This is important to the panel because QGraphicsView
has an off-by-one bug when using the default AlignCenter alignment and an
odd height.

CCBUG: 154832

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754550
2007-12-30 07:32:48 +00:00
Alexis Ménard
5326f56dbb setFocus on the textinput by default
Close BUG : 154748

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754471
2007-12-29 21:52:40 +00:00
Alexis Ménard
b7e978d04c Add a method to position the dialog just with the QGV
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754467
2007-12-29 21:38:00 +00:00
Marco Martin
87429288bc removing Icon::setAlignment again
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754369
2007-12-29 17:09:06 +00:00
Jason Stubbs
1fe1bbb5c0 Applets may expect that init() has been run when constraintsUpdated is called
so ensure that it has been run before updating constraints.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754350
2007-12-29 16:26:36 +00:00
Jason Stubbs
900d587280 Notify applets that are added to panels about their new constraints too.
This fixes the system tray not updating when being removed and then readded
to the panel. Tasks still doesn't work though. :(

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754326
2007-12-29 15:44:43 +00:00
Script Kiddy
06b1cff2ce SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754155
2007-12-29 08:21:26 +00:00
Jason Stubbs
cb9747382b startAnimation() needs to be called if the layout geometry() changes as well
otherwise the updated layout doesn't take effect. This means that it really
does need to be called from relayout(). So to prevent a quasi-infinite loop,
don't restart the timeline if it's already running.

This fixes the tasks geometry not updating correctly when applets are added
to the panel.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754148
2007-12-29 07:14:21 +00:00
Jason Stubbs
9cec9edf9c The order that applets are saved is currently important for the panel. If an
applet is removed from the panel and readded elsewhere, its position in the
config file currently doesn't change. To fix this, this patch clears out the
config group before rewriting it out.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754139
2007-12-29 05:24:45 +00:00
Jason Stubbs
cf40a07331 An applets sizeHint() is sometimes based on constraints so make sure that
the applet's constraints are up to date before using its sizeHint()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754125
2007-12-29 05:03:05 +00:00
Jakob Petsovits
9f2e3e276e Icon naming spec compliance (code changes - KDE/):
edit-add -> list-add

You have no idea how hard it was to reduce the number of
"add" icons from two to one. I nearly died in the process :-S
The difficult part, of course, was to find the answer
to the everlasting question "What does each icon mean?"

And these are my findings:

* If you add anything to a list (or something else that is
  some kind of collection of items), you use list-add.
* If you remove something from that list (or collection)
  without destroying the removed object itself (because
  it's only a reference to something outside),
  you use list-remove.
* If you delete something from that list (or collection)
  and the item that you deleted had its home in the list
  and is therefore destroyed on removing,
  then you use edit-delete.

Phew. Who wants to open up a TechBase article on using icons?

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753984
2007-12-28 21:26:03 +00:00
Alexis Ménard
6987d74f32 Un-comment the transform saving wich work perfectly in my case
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753889
2007-12-28 18:04:00 +00:00
Marco Martin
296069a3c1 fixed a typo
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753790
2007-12-28 14:18:52 +00:00
Marco Martin
3893a56543 bring back a dummy setAlignment, otherwise it breaks too many things
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753789
2007-12-28 14:16:59 +00:00
Marco Martin
1743b3d9ef support for text beside icons depending of the layout direction, can be set with
void setOrientation(Qt::Orientation orientation);

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753744
2007-12-28 11:29:56 +00:00
Script Kiddy
cef9b8c77a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753673
2007-12-28 07:58:59 +00:00
Chani Armitage
ca8f72c7bc fix timing bug (only the millisecond part of the timestamp was used)
now the update intervals will actually work.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753663
2007-12-28 05:00:56 +00:00
Jason Stubbs
bc10b9a983 Remove the isContainment() just added as this would mean that non-containment
containments (wtf?) won't have their contextActions() displayed.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753478
2007-12-27 15:21:59 +00:00
Jason Stubbs
95f836fd2e Also change the other direct QGraphicsItem calls to Applet calls in contextMenuEvent()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753476
2007-12-27 15:19:01 +00:00
Jason Stubbs
cf71ae2c36 Don't try and display the containment context menu when isContainment() is
false. Also, call Applet's contextMenuEvent() rather than calling
QGraphicsItem's directly.

CCBUG: 154552

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753472
2007-12-27 15:14:51 +00:00
Jason Stubbs
a5ad6a0675 Switch to a busy cursor while the applet is loading
BUG: 154512

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753469
2007-12-27 15:03:50 +00:00
Aleix Pol Gonzalez
a57e472c8d Reverted invalid change.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753442
2007-12-27 13:22:09 +00:00
Aleix Pol Gonzalez
dd4651d086 Get the biggest item size for recalculating scrollbar size.
This patch was made by ereslibre, I'm commiting it because he is kind of offline.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753426
2007-12-27 12:57:04 +00:00
Script Kiddy
ad63c1f29e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753356
2007-12-27 08:16:48 +00:00
Christopher Blauvelt
06295ace02 Piggyback on mart's patch. Add the ability to set the number of lines in the display, fixes
Icon::Private::elidedText so the display won't be truncated to one line if the whole text doesn't 
fit, and fixes some crashes.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753049
2007-12-26 13:44:57 +00:00
Marco Martin
27ce118c91 removed the following methods:
calculateSize()
Private::displaySizeHint(const QStyleOptionGraphicsItem *option)
setIconSize(QSizeF)

added layoutIcons(), similar to calculateSize() but it resizes the icon instead of the widget around the icon

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=753033
2007-12-26 12:37:54 +00:00
Script Kiddy
45b18abe59 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752973
2007-12-26 08:12:05 +00:00
Jakob Petsovits
52881a5ac1 Icon renaming (code changes - KDE/):
history -> view-history
and other stuff I came across.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752809
2007-12-25 20:17:06 +00:00
Script Kiddy
402f59c6f2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752700
2007-12-25 08:10:15 +00:00
Craig Duquette
ddc888e9c4 moved setToolTip() and toolTip() to match the updated header which moved these functions to
public

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752612
2007-12-25 05:36:31 +00:00
Craig Duquette
cd216b2eb8 make setToolTip() and toolTip() public from protected
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752611
2007-12-25 05:34:43 +00:00