Commit Graph

  • fe13964089 add a contextMenuEvent to Widget so that we get proper context menu propagation by default Aaron J. Seigo 2007-09-18 21:19:10 +00:00
  • bf23b56b8a Containment: an Applet grouping class, also provides for background painting via plugings (well, Applets actually) Aaron J. Seigo 2007-09-18 21:16:17 +00:00
  • 8be755fee2 SVN_SILENT made messages (.desktop file) Script Kiddy 2007-09-17 05:47:40 +00:00
  • 7f7a863442 Fixes updating issue for engines that don't get data right away. Petri Damstén 2007-09-16 19:34:51 +00:00
  • 3c250783cf rename minUpdateFreq -> minUpdateInterval it's an interval not a frequency Michael Olbrich 2007-09-16 16:28:16 +00:00
  • 038de158d1 cleanups Michael Olbrich 2007-09-16 16:25:59 +00:00
  • 950d256e5d Fix mem leak Laurent Montel 2007-09-16 13:18:04 +00:00
  • a49edd72f0 Add includes Laurent Montel 2007-09-16 13:14:40 +00:00
  • 63164d2cc0 BorderLayout initial import Ivan Čukić 2007-09-16 09:08:08 +00:00
  • f5d2cac4e7 try installing the header file instead of the .cpp to fix dashboard Dirk Mueller 2007-09-15 08:15:07 +00:00
  • 7b607e92c9 Fix applets jumping around when they resize. Avoid calling setGeometry() on Applets in a FreeLayout that have not changed their size hint since the last update. Robert Knight 2007-09-15 04:16:11 +00:00
  • 329d912f47 SVN_SILENT: more licensing updates ... all done with this now i think =) Aaron J. Seigo 2007-09-14 20:17:11 +00:00
  • e0f831373c SVN_SILENT: add "or later" clause. cleared with copyright holders, except for rich moore's ui loader which i need to ask him for permission for first. Aaron J. Seigo 2007-09-14 19:06:18 +00:00
  • e726cd04c6 Added to the Plasma widgets library the ProgressBar class. It's included a small program test for the progressbar. Jon de Andres Frias 2007-09-14 18:19:42 +00:00
  • c24d23c1f9 add a note about sync'ing timeouts in SignalRelay's to actual data availability Aaron J. Seigo 2007-09-13 20:41:01 +00:00
  • 6ffbc459ad - when an intervalled visualization triggers an update, but the update is async, we queue up to trigger updated when the data _actually_ arrives. - timestamp sources on update so we don't over update them due to multiple visualizations hammering on it. improves our tick situation even more. Aaron J. Seigo 2007-09-13 20:34:17 +00:00
  • 0fc83b6e76 prevent crashing on exit; layout must not be deleted before the applets which are managed by it. this is a brittleness in the layout system that really needs to be addressed (and i added a comment and some debug output about this in LayoutItem) Aaron J. Seigo 2007-09-13 19:47:14 +00:00
  • d20c9a010f growing tired of being asked about how to get at the font used in widgets, here's a cute little accessor that provides the answer for now and gives us a way to support font settings in the future much in the way qwidget itself does. Aaron J. Seigo 2007-09-13 19:33:44 +00:00
  • 45fe956407 --warnings Aaron J. Seigo 2007-09-13 18:50:15 +00:00
  • e2b9f9df31 SVN_SILENT: style fixes Aaron J. Seigo 2007-09-13 17:04:04 +00:00
  • fc4b474f5c call init() on the applets after they are added to the scene ... do it all at once in the case of loading applets en mass Aaron J. Seigo 2007-09-13 17:03:13 +00:00
  • 7d3327c884 add an init() method that will be called only after the applet is completely set up for those applets that care; also allows us to do delayed init in the case of expensive set up Aaron J. Seigo 2007-09-13 17:00:57 +00:00
  • 26d4a28aad Use FreeLayout as the Corona's layout in the Planar form factor (vs. BoxLayout in the Horizontal or Vertical form factors) Robert Knight 2007-09-13 14:59:29 +00:00
  • 168b977e83 SVN_SILENT made messages (.desktop file) Script Kiddy 2007-09-13 05:55:01 +00:00
  • e5db207cfd SVN_SILENT made messages (.desktop file) Script Kiddy 2007-09-13 05:55:01 +00:00
  • 7d533e3472 - missing license header - fix white space issues - delete the dptr Aaron J. Seigo 2007-09-13 05:40:37 +00:00
  • 926d039802 SVN_SILENT: why bother with a coding style. Aaron J. Seigo 2007-09-13 05:34:11 +00:00
  • 465b1d0072 Build the FreeLayout class and install its header. Robert Knight 2007-09-13 04:38:30 +00:00
  • 50485408b7 check timing alignment right away Aaron J. Seigo 2007-09-12 18:32:41 +00:00
  • e15c950bc3 introduce interval alignment, so it is possible to align a time interval to the minute or hour (we can add arbitrary ones to the mix should we choose; e.g. "every 10 mins" or whatever..but there needs to be good use cases =) Aaron J. Seigo 2007-09-12 17:53:54 +00:00
  • 705e4d9148 - use DataContainer::connectVisualization - add internalUpdateSource so that we can automate the call to checkForUpdates Aaron J. Seigo 2007-09-12 17:04:21 +00:00
  • 8415f49e55 - add connectVisualization so now the DataContainer manages all connect/disconnecting - keep track of objects that are connected even at interval == 0 - remove disconnectNotify due to these changes - allow multiple calls to connectVisualization to work properly without resulting in multiple connections to the same object and allowing the update interval to be adjusted for a given source/vis pair Aaron J. Seigo 2007-09-12 17:03:06 +00:00
  • fd2b10be2f SVN_SILENT made messages (.desktop file) Script Kiddy 2007-09-12 06:00:50 +00:00
  • 32948264d0 the private header for datacontainer Aaron J. Seigo 2007-09-11 00:55:46 +00:00
  • fc89eff135 first run at per-visualization timeouts, as per the design worked out on panel-devel. i'm sure there are several bugs at this point (so don't try and use it quite yet ;) but most importantly: Aaron J. Seigo 2007-09-11 00:49:51 +00:00
  • 1cf7d7c0f6 Enable DeviceCoordinateCacheMode by default. Overload update() to give it invalidate-like behavior, and remove invalidate(). Revert last change to analogclock, cached behavior is now enabled for all applets. If you want to disable caching, call setCachePaintMode(NoCacheMode) from your applet's constructor. Andreas Aardal Hanssen 2007-09-10 20:44:24 +00:00
  • 6828d212bb Add FreeLayout layout, which resizes its children to their sizeHint() whenever it is invalidated. Useful for desktop-like workspaces so that widgets can be agnostic of whether they are being used in a panel or a 'constraint free' area. Robert Knight 2007-09-10 20:38:59 +00:00
  • 55e02ca70a Add CachePaintMode, as a temporary local back-port of QGraphicsItem::CacheMode, which will appear in 4.4. I've chosen names that aren't really good, but they're not misleading, and they don't clash with the API in 4.4. Andreas Aardal Hanssen 2007-09-10 19:06:58 +00:00
  • b42db6a2ea should be using paintWidget, not paint Aaron J. Seigo 2007-09-10 18:50:36 +00:00
  • 2fc4fb59c3 Support for rest of the datatypes Petri Damstén 2007-09-10 15:07:29 +00:00
  • 8c176c556d extra ';' Pino Toscano 2007-09-09 22:34:10 +00:00
  • fad4e891b9 - Build the uiloader class Richard J. Moore 2007-09-09 21:40:24 +00:00
  • f3718c04da SVN_SILENT made messages (.desktop file) Script Kiddy 2007-09-09 06:15:09 +00:00
  • 2db5dcf7c9 SVN_SILENT made messages (.desktop file) Script Kiddy 2007-09-09 06:15:09 +00:00
  • 37b4ea6334 managingLayout() is a better way to get the layout managing the widget's geometry than parent()->layout() which doesn't work for top-level Widget instances. Robert Knight 2007-09-08 14:01:03 +00:00
  • 3dc0a4795f Correct the layout invalidation logic. As with Qt, when a layout is invalidated it finds its top-level layout and causes that to be updated. Calling Widget::updageGeometry() causes the parent widget's layout to be invalidated. Robert Knight 2007-09-07 16:15:46 +00:00
  • 45f7769d44 Added stretched paint mode for background painting Ivan Čukić 2007-09-07 13:05:28 +00:00
  • 9ebd9091b6 SVN_SILENT made messages (.desktop file) Script Kiddy 2007-09-07 05:45:38 +00:00
  • f2cf7e782a - Since rectangle is disabled elsewhere Richard J. Moore 2007-09-05 22:39:03 +00:00
  • 834a572004 - For now the parent must be a Widget Richard J. Moore 2007-09-05 22:35:54 +00:00
  • 2e506845e9 - Added a factory class analogous to QUiLoader for plasma widgets. It it not currently compiled, and does not yet support loading of full forms. Note that this shows up that the APIs defined by the widgets are still woefully inconsistent. Richard J. Moore 2007-09-05 21:58:10 +00:00
  • cec28bebac use QtModule/QFoo for public headers Pino Toscano 2007-09-03 17:16:40 +00:00
  • 15fbaba2ac Move duplicated animation starting code into Layout::startAnimation() which layout subclasses can call at the end of their setGeometry() implementation to start the layout animator's timer. Robert Knight 2007-09-03 00:52:29 +00:00
  • ecd23d6e67 Always restart timeline from 0 when setGeometry() is called. QTimeLine::start() is a no-op if already running. Robert Knight 2007-09-03 00:41:57 +00:00
  • 4663b82555 - More Q_PROPERTY additions Richard J. Moore 2007-09-02 17:49:34 +00:00
  • b09f73ac86 - Add support for opacity property of Widget Richard J. Moore 2007-09-02 17:41:05 +00:00
  • 56429d3adc check for unused DataContainers in a way that actually works. Michael Olbrich 2007-09-01 22:23:03 +00:00
  • c27291a3fc slots -> Q_SLOTS Pino Toscano 2007-09-01 15:02:09 +00:00
  • fea627e08d * Add support for an SVG background in the panel. The SVG used is in desktoptheme/widgets/panel-background.svg. Path is currently hard-coded. Added programmer-art edition of panel-background.svg Robert Knight 2007-09-01 12:44:57 +00:00
  • a29ae57a7d This breaks the existing Plasma applet API, see the contentSize() comments below. Robert Knight 2007-09-01 12:34:22 +00:00
  • 04375c4b09 Replace 'INFINITY' with more correct numeric_limits<qreal>::infinity() Robert Knight 2007-08-31 17:46:12 +00:00
  • 536d3749c1 Fix crash when layout argument is null. Robert Knight 2007-08-31 17:24:03 +00:00
  • bb25f62e55 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() Robert Knight 2007-08-31 15:32:10 +00:00
  • f7861353ba 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. Robert Knight 2007-08-31 15:27:32 +00:00
  • af8659fa22 Update the parent of a LayoutItem when calling setLayout Robert Knight 2007-08-31 15:23:09 +00:00
  • d1aba23cd2 Return 0 for the expanding directions of an icon. At present icons have a fixed size. Robert Knight 2007-08-31 15:21:30 +00:00
  • 37b993d8ff 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. Robert Knight 2007-08-31 15:19:02 +00:00
  • b329ddb69a Fix elementSize() , elementRect() always returning 0 in Plasma::Svg if called before resize(). Set the size to the document's default size when the renderer is created. Makes it possible to determine the aspect ratio of the graphic. Robert Knight 2007-08-31 15:15:04 +00:00
  • d5dc5287cb SVN_SILENT made messages (.desktop file) Script Kiddy 2007-08-31 07:59:14 +00:00
  • b3831c1f44 SVN_SILENT made messages (.desktop file) Script Kiddy 2007-08-31 07:59:14 +00:00
  • 615eae37ba Merged HBoxLayout and VBoxLayout into BoxLayout to avoid duplicate code. Percy Leonhardt 2007-08-30 23:44:08 +00:00
  • 432bfaf165 make paintGLInterface non-pure virtual to make it more similar to Applet Aaron J. Seigo 2007-08-30 04:34:09 +00:00
  • 243f835253 a micropatch i had sitting on the laptop Aaron J. Seigo 2007-08-30 04:33:12 +00:00
  • bf30d19c41 improve error reporting when a plugin fails to load Aaron J. Seigo 2007-08-29 03:06:48 +00:00
  • e600dbe4c3 * fix typo in PLASMA_EXPORT_SCRIPTENGINE name; guess nobody is using this yet? ;) * port to new plugin system * forget about taking a QVariantList in the ScriptEngine ctor. it's not going to be used Aaron J. Seigo 2007-08-29 03:00:00 +00:00
  • 1316a45e7e * make connectSource apidox a bit clearer * add DataContainer* containerForSource() for script engine authors to use Aaron J. Seigo 2007-08-29 02:57:04 +00:00
  • b34983f356 remove an unecessary include and a compile warning Aaron J. Seigo 2007-08-29 02:55:49 +00:00
  • 904c1b13f8 move animator to the new plugin system Aaron J. Seigo 2007-08-29 02:45:20 +00:00
  • 559647f5cc make Applet use the newer plugin loading mechanisms Aaron J. Seigo 2007-08-29 02:33:22 +00:00
  • c911115b10 kpluginfactory, it's all the new rage Aaron J. Seigo 2007-08-29 02:17:39 +00:00
  • 7f6821574c make engine loading work again. Aaron J. Seigo 2007-08-29 01:49:44 +00:00
  • 44c1f66714 Make other widgets paint when zoomed out. (These 3 commits are just commenting things out. The code will need to be removed once we are sure we do not need it.) Thomas Georgiou 2007-08-28 19:12:13 +00:00
  • d65ab52dd6 Lineedits should display when zoomed out. Thomas Georgiou 2007-08-28 19:02:38 +00:00
  • 2bd7c794ba Paint applets when zoomed out. Thomas Georgiou 2007-08-28 18:49:44 +00:00
  • 7452d8eeb3 The qatomic include is not used. Removing it makes plasma build with the latest Qt4.4 snapshot. Tim Beaulen 2007-08-28 18:13:07 +00:00
  • 5cecb0229c - Fix for Q_INVOKABLE Richard J. Moore 2007-08-28 14:26:31 +00:00
  • 5227b697c3 Replace expf with std::exp, which does the same thing, and is available on machines that don't have expf, like Solaris. Steve Evans 2007-08-28 12:56:02 +00:00
  • 0ad0b8c21f You don't need QAtomic if you're not thread-safe Thiago Macieira 2007-08-27 17:27:27 +00:00
  • 8bc26d704f includes, include guards and typos fixed Arto Hytönen 2007-08-27 04:31:52 +00:00
  • 79323a4399 GCC 3.3.5: fixed error before '.' Jarosław Staniek 2007-08-24 07:14:24 +00:00
  • 773612ac44 Default implementations of minimumSize() , maximumSize() in Layout and correct implementations of minimumSize() , maximumSize() in Widget to match equivalents in QLayout , QWidget. Robert Knight 2007-08-22 20:13:24 +00:00
  • 8232082478 a lot of i18n tags and other small krazy issues fixed, nothing major Arto Hytönen 2007-08-21 07:02:04 +00:00
  • bba405e390 SVN_SILENT made messages (.desktop file) Script Kiddy 2007-08-21 06:53:29 +00:00
  • eca6dc90c0 Remove use of k_funcinfo Thiago Macieira 2007-08-20 21:33:48 +00:00
  • 02e77eac3f SVN_SILENT made messages (.desktop file) Script Kiddy 2007-08-20 07:37:38 +00:00
  • d26d44d606 SVN_SILENT made messages (.desktop file) Script Kiddy 2007-08-20 07:37:38 +00:00
  • a72f6cdfad SVN_SILENT made messages (.desktop file) Script Kiddy 2007-08-19 06:11:40 +00:00
  • 6b6f7cf54e SVN_SILENT made messages (.desktop file) Script Kiddy 2007-08-19 06:11:40 +00:00
  • 4fbc948d56 That'll teach me not to test the build before committing :) Matt Broadstone 2007-08-17 18:57:28 +00:00
  • 1fb3bef9bb Fix build Matt Broadstone 2007-08-17 18:55:55 +00:00