plasma-framework/widgets
Robert Knight a29ae57a7d This breaks the existing Plasma applet API, see the contentSize()
comments below.

* New Flow Layout.  This provides simple icon view-esque layout of items.
  Useful for icons for documents , applications or other tasks on the desktop
  for example.  Supports non-equally sized items.

  Works well when used with the LayoutAnimator class to animate insertions
  and removals.

* Re-wrote BoxLayout and removed old HBoxLayout,VBoxLayout classes which had
  a lot of code duplication.  BoxLayout class now takes a direction argument
  in the constructor, ala. QBoxLayout.  New BoxLayout class actually takes
  minimumSize() , maximumSize() of items into account.  The Qt layout code
  for box and grid layouts is surprisingly sophisticated, so the results
  from BoxLayout probably will not be as good in certain situations but
  it should do for the panel.  New BoxLayout also has support for LayoutAnimator

* Fix Plasma::HBoxLayout and Plasma::VBoxLayout to use margin() 
  rather than spacing() for the distance from the top and left
  margins respectively.

* Fix Plasma::Applet::contentSize() to return the actual content size
  rather than a size hint.  Added a new method contentSizeHint() which
  applets use to provide a hint about suitable content size.  

  Existing implementations of contentSize() in applets need to be renamed
  to contentSizeHint().  The arguments and return type are the same as before.

* Install the LayoutAnimator header so that applets can use it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=707275
2007-09-01 12:34:22 +00:00
..
tests This breaks the existing Plasma applet API, see the contentSize() 2007-09-01 12:34:22 +00:00
boxlayout.cpp This breaks the existing Plasma applet API, see the contentSize() 2007-09-01 12:34:22 +00:00
boxlayout.h This breaks the existing Plasma applet API, see the contentSize() 2007-09-01 12:34:22 +00:00
checkbox.cpp copyright cleanups: 2007-08-06 11:20:02 +00:00
checkbox.h copyright cleanups: 2007-08-06 11:20:02 +00:00
CMakeLists.txt Add layout test 2007-08-05 23:05:57 +00:00
flash.cpp copyright cleanups: 2007-08-06 11:20:02 +00:00
flash.h copyright cleanups: 2007-08-06 11:20:02 +00:00
flowlayout.cpp This breaks the existing Plasma applet API, see the contentSize() 2007-09-01 12:34:22 +00:00
flowlayout.h This breaks the existing Plasma applet API, see the contentSize() 2007-09-01 12:34:22 +00:00
hboxlayout.h This breaks the existing Plasma applet API, see the contentSize() 2007-09-01 12:34:22 +00:00
icon_p.h use QIcon in the public API 2007-08-10 22:24:49 +00:00
icon.cpp Return 0 for the expanding directions of an icon. At present icons have a fixed size. 2007-08-31 15:21:30 +00:00
icon.h Return 0 for the expanding directions of an icon. At present icons have a fixed size. 2007-08-31 15:21:30 +00:00
label.cpp That'll teach me not to test the build before committing :) 2007-08-17 18:57:28 +00:00
label.h copyright cleanups: 2007-08-06 11:20:02 +00:00
layout.cpp Add a method to change the parent of a layout. Make isEmpty() non-virtual, and instead always equal to (count()==0). Add invalidate() method which is used like the method of the same name in QLayout to invalidate cached information in the layout. 2007-08-31 15:27:32 +00:00
layout.h Add a method to change the parent of a layout. Make isEmpty() non-virtual, and instead always equal to (count()==0). Add invalidate() method which is used like the method of the same name in QLayout to invalidate cached information in the layout. 2007-08-31 15:27:32 +00:00
layoutanimator.cpp Add auto-deletion functionality into LayoutAnimator which can be used to delete the item when its removal animation finishes. Emit a signal when the state of an item in the animator changes. Avoid repeatedly setting an item's geometry with the NoEffect effect. Added a DeadState into which items transition after their removal animation finishes or if they have not been added to the animator. When inserting an item with a fade in effect set the opacity to 0 if the item is a widget. 2007-08-31 15:19:02 +00:00
layoutanimator.h Add auto-deletion functionality into LayoutAnimator which can be used to delete the item when its removal animation finishes. Emit a signal when the state of an item in the animator changes. Avoid repeatedly setting an item's geometry with the NoEffect effect. Added a DeadState into which items transition after their removal animation finishes or if they have not been added to the animator. When inserting an item with a fade in effect set the opacity to 0 if the item is a widget. 2007-08-31 15:19:02 +00:00
layoutitem.cpp Fix crash when layout argument is null. 2007-08-31 17:24:03 +00:00
layoutitem.h Optimization. Avoid calling prepareGeometryChange() if the new and old geometry have the same size. Added a graphicsItem() method to LayoutItem which returns the associated graphics item (if any). Needed for effects during layouting. 2007-08-13 09:01:00 +00:00
lineedit.cpp Lineedits should display when zoomed out. 2007-08-28 19:02:38 +00:00
lineedit.h copyright cleanups: 2007-08-06 11:20:02 +00:00
pushbutton.cpp Fix the push button size hint. Make PushButton::boundingRect() side-effect free. 2007-08-13 06:32:31 +00:00
pushbutton.h Fix the push button size hint. Make PushButton::boundingRect() side-effect free. 2007-08-13 06:32:31 +00:00
radiobutton.cpp copyright cleanups: 2007-08-06 11:20:02 +00:00
radiobutton.h copyright cleanups: 2007-08-06 11:20:02 +00:00
rectangle.cpp copyright cleanups: 2007-08-06 11:20:02 +00:00
rectangle.h fixed dpointer 2007-08-15 19:53:46 +00:00
signalplotter.cpp Added a signalplotter to plasma. 2007-08-13 15:15:19 +00:00
signalplotter.h Added a signalplotter to plasma. 2007-08-13 15:15:19 +00:00
vboxlayout.h This breaks the existing Plasma applet API, see the contentSize() 2007-09-01 12:34:22 +00:00
widget.cpp Replace 'INFINITY' with more correct numeric_limits<qreal>::infinity() 2007-08-31 17:46:12 +00:00
widget.h Remove Widget::invalidate(), that is a feature which is part of the layouts. Better attempt at Widget::updateGeometry() which widget subclasses can call when their size hint or min/max size changes. Ultimately should behave like the QWidget methods of the same name. Make Widget return Qt::Horizontal | Qt::Vertical in its default implementation of expandingDirections() 2007-08-31 15:32:10 +00:00