Aaron J. Seigo
7fefcf98c7
fix this indentation nightmare (tabs, many levels deep)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=714178
2007-09-18 21:30:30 +00:00
Aaron J. Seigo
f0cb7e662c
- add Contaiment to the build
...
- put applets in the center of the screen not the top left (i really wish people wouldn't commit obvious regressions like that? the code was ifdef 0'd out!)
- create a Containment per-screen (in the xinerama sense)
- new loading/saving code; not overly comfortable with it yet but it works and maintains the single-pass semantics as well as the option for us to delay calling init() if we decide to do so in the future
- misc fixes here and there
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=714175
2007-09-18 21:25:15 +00:00
Aaron J. Seigo
2c63daad12
- add a way to get at the Containment
...
- fix some apidox
- add a method for state saving, but for the main applet class info as well as subclasses (plasmoids, e.g.)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=714174
2007-09-18 21:22:45 +00:00
Aaron J. Seigo
2b2b7f02e5
make it clearer in the apidox that the engine MUST create a source if it plans to populate it asynchronously, and show engine writers how to do this with setSource
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=714173
2007-09-18 21:21:05 +00:00
Aaron J. Seigo
fc53b1a7f0
SVN_SILENT suppose we don't need dead code already ;)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=714172
2007-09-18 21:20:06 +00:00
Aaron J. Seigo
fe13964089
add a contextMenuEvent to Widget so that we get proper context menu propagation by default
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=714171
2007-09-18 21:19:10 +00:00
Aaron J. Seigo
bf23b56b8a
Containment: an Applet grouping class, also provides for background painting via plugings (well, Applets actually)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=714170
2007-09-18 21:16:17 +00:00
Petri Damstén
7f7a863442
Fixes updating issue for engines that don't get data right away.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713243
2007-09-16 19:34:51 +00:00
Michael Olbrich
3c250783cf
rename minUpdateFreq -> minUpdateInterval
...
it's an interval not a frequency
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713201
2007-09-16 16:28:16 +00:00
Michael Olbrich
038de158d1
cleanups
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713200
2007-09-16 16:25:59 +00:00
Laurent Montel
950d256e5d
Fix mem leak
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713138
2007-09-16 13:18:04 +00:00
Laurent Montel
a49edd72f0
Add includes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713136
2007-09-16 13:14:40 +00:00
Ivan Čukić
63164d2cc0
BorderLayout initial import
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713071
2007-09-16 09:08:08 +00:00
Dirk Mueller
f5d2cac4e7
try installing the header file instead of the .cpp to fix dashboard
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712775
2007-09-15 08:15:07 +00:00
Robert Knight
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.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712674
2007-09-15 04:16:11 +00:00
Aaron J. Seigo
329d912f47
SVN_SILENT: more licensing updates ... all done with this now i think =)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712581
2007-09-14 20:17:11 +00:00
Aaron J. Seigo
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.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712549
2007-09-14 19:06:18 +00:00
Jon de Andres Frias
e726cd04c6
Added to the Plasma widgets library the ProgressBar class. It's included a small program test for the progressbar.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712543
2007-09-14 18:19:42 +00:00
Aaron J. Seigo
c24d23c1f9
add a note about sync'ing timeouts in SignalRelay's to actual data availability
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712191
2007-09-13 20:41:01 +00:00
Aaron J. Seigo
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.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712188
2007-09-13 20:34:17 +00:00
Aaron J. Seigo
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)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712164
2007-09-13 19:47:14 +00:00
Aaron J. Seigo
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.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712158
2007-09-13 19:33:44 +00:00
Aaron J. Seigo
45fe956407
--warnings
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712135
2007-09-13 18:50:15 +00:00
Aaron J. Seigo
e2b9f9df31
SVN_SILENT: style fixes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712122
2007-09-13 17:04:04 +00:00
Aaron J. Seigo
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
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712120
2007-09-13 17:03:13 +00:00
Aaron J. Seigo
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
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712119
2007-09-13 17:00:57 +00:00
Robert Knight
26d4a28aad
Use FreeLayout as the Corona's layout in the Planar form factor (vs. BoxLayout in the Horizontal or Vertical form factors)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712086
2007-09-13 14:59:29 +00:00
Script Kiddy
e5db207cfd
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711906
2007-09-13 05:55:01 +00:00
Aaron J. Seigo
7d533e3472
- missing license header
...
- fix white space issues
- delete the dptr
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711899
2007-09-13 05:40:37 +00:00
Aaron J. Seigo
926d039802
SVN_SILENT: why bother with a coding style.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711898
2007-09-13 05:34:11 +00:00
Robert Knight
465b1d0072
Build the FreeLayout class and install its header.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711889
2007-09-13 04:38:30 +00:00
Aaron J. Seigo
50485408b7
check timing alignment right away
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711756
2007-09-12 18:32:41 +00:00
Aaron J. Seigo
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 =)
...
this is needed by clocks, as the obvious example, since "once a minute" isn't enough: it needs to be once a minute *on* the minute
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711737
2007-09-12 17:53:54 +00:00
Aaron J. Seigo
705e4d9148
- use DataContainer::connectVisualization
...
- add internalUpdateSource so that we can automate the call to checkForUpdates
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711719
2007-09-12 17:04:21 +00:00
Aaron J. Seigo
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
this makes it pretty important to use connectVisualization and disconnectVisualization rather than QObject::connect and QObject::disconnect for the updated signal stuff
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711717
2007-09-12 17:03:06 +00:00
Aaron J. Seigo
32948264d0
the private header for datacontainer
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710852
2007-09-11 00:55:46 +00:00
Aaron J. Seigo
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:
- all methods are implemented
- it compiles ;)
- it does not have any negative impact on existing engines and applets as they currently are written
next will be to put it all through its paces, starting with the time engine and analog clock applet. i may not get to that until tomorrow, hoever.
this commit also fixed a number of buglettes along the way that had creeped in, e.g. not properly connecting all signals in connectAllSources (moved that ccode to the Private class to avoid code dupe and similar bugs in the future)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710849
2007-09-11 00:49:51 +00:00
Andreas Aardal Hanssen
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.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710764
2007-09-10 20:44:24 +00:00
Robert Knight
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.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710761
2007-09-10 20:38:59 +00:00
Andreas Aardal Hanssen
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.
My first KDE submit :-DDD.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710738
2007-09-10 19:06:58 +00:00
Aaron J. Seigo
b42db6a2ea
should be using paintWidget, not paint
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710733
2007-09-10 18:50:36 +00:00
Petri Damstén
2fc4fb59c3
Support for rest of the datatypes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710654
2007-09-10 15:07:29 +00:00
Pino Toscano
8c176c556d
extra ';'
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710427
2007-09-09 22:34:10 +00:00
Richard J. Moore
fad4e891b9
- Build the uiloader class
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710413
2007-09-09 21:40:24 +00:00
Script Kiddy
2db5dcf7c9
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710142
2007-09-09 06:15:09 +00:00
Robert Knight
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.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=709899
2007-09-08 14:01:03 +00:00
Robert Knight
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.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=709495
2007-09-07 16:15:46 +00:00
Ivan Čukić
45f7769d44
Added stretched paint mode for background painting
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=709407
2007-09-07 13:05:28 +00:00
Richard J. Moore
f2cf7e782a
- Since rectangle is disabled elsewhere
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=708888
2007-09-05 22:39:03 +00:00
Richard J. Moore
834a572004
- For now the parent must be a Widget
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=708885
2007-09-05 22:35:54 +00:00