Commit Graph

382 Commits

Author SHA1 Message Date
Aaron J. Seigo
3f2e92b6ae add the start of an icon button. the stupid number of svg's needs to be wrapped into two with svg elements for them, geometry isn't managed right (e.g. we ignore text width) etc.. but the basics exist. should be usable by hacking's end tomorrow, and then we can play with using them to pop menus and expanders. i'll get to Phase yet ;)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669394
2007-05-29 07:59:50 +00:00
Aaron J. Seigo
0df727c4d0 this seems to make it works a wee bit better ;) still not perfect
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669392
2007-05-29 07:58:05 +00:00
Aaron J. Seigo
324d7a4be9 better API docs so there is a bit less confusion over this
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669391
2007-05-29 07:56:58 +00:00
Aaron J. Seigo
498ce9d548 attempt to share renderers. this should make quite a difference, one would hope. needs more testing.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669390
2007-05-29 07:56:21 +00:00
Aaron J. Seigo
c7b7b5b8ca proper export
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669388
2007-05-29 07:54:41 +00:00
Script Kiddy
cb9218e89d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/kcontrol/crypto/; revision=669344
2007-05-29 05:15:16 +00:00
Matt Williams
f6849f9d23 Make the SVG render at the size specified by Svg::size() instead of ignoring it.
Here you go ruphy, you can now implement applet resizing to your heart's content :)

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669300
2007-05-28 23:47:41 +00:00
Matt Williams
c2b3db02e8 Fix the pixmap drawing of the SVG so that it always draws the whole element. The size it draws it at is given by the QRectF still.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669225
2007-05-28 20:09:50 +00:00
Aaron J. Seigo
6393ddd3ad make lineedit a LayoutItem. seems to basically work, though i don't think it is quite perfect yet =)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668932
2007-05-28 05:52:56 +00:00
Aaron J. Seigo
3c690fea84 * add API docu to the methods i added
* add a resetLayout() so layouts can release LayoutItems on deletion, avoiding dangling pointers and possible crashes

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668931
2007-05-28 05:52:05 +00:00
Aaron J. Seigo
c300ff48bc keep track of what layout we belong to so that we can remove ourselves from the layout when we exit; prevents crashes when items are added then deleted later. since we aren't guaranteed a QObject, we can't do the obvious thing (e.g. listen for the destroyed() signal)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668928
2007-05-28 05:46:24 +00:00
Aaron J. Seigo
10dd76c794 * when connecting sources, invoke the updated method so they get the current values immediately
* add the ability to limit the number of data sources in an engine; least used items drop off. the algorithm for this is pretty simplistic and not overly scalable, but that's something that can be fixed when we run into problems (e.g. setLimit(1000) or something silly =)

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668927
2007-05-28 05:43:54 +00:00
Aaron J. Seigo
3d51733018 * more api documentation
* changes to reflect api movement

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668671
2007-05-27 08:01:31 +00:00
Aaron J. Seigo
3a07e8570a * api docu
* remove the name methods which just wrapped the setObjectName stuff anyways

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668670
2007-05-27 08:00:46 +00:00
Aaron J. Seigo
ae5c3a8c8c take Interface out of the build
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668669
2007-05-27 07:59:56 +00:00
Aaron J. Seigo
1835680cf3 * get rid of Interface hack now that DataEngineManager is in libplasma
* provide a singleton accessor to DataEngineManager
* port code to API changes

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668668
2007-05-27 07:59:17 +00:00
Riccardo Iaconelli
4090084e34 Plasmoids are now configurable! =)
Also cleaned out a bit the code, and improved the painting algorithm. Removed the harcoded values for adjusting the hands, now they're calculated runtime. Still have to make it more flexible, permitting to the artist to specify his center for the hand.

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668557
2007-05-26 19:01:32 +00:00
Aaron J. Seigo
87c431393a * AppletConstraint -> FormFactor, since it may not only be applicable to applets and form factor is simply more common verbology
* add a FormFactor for MediaCenter
* ScreenEdge -> Location, as it isn't always an edge
* document enum values

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668310
2007-05-25 22:51:23 +00:00
Aaron J. Seigo
a62bd49c9a only expose a KConfigGroup to applet subclasses to encourage correctness and allow for future flexibility.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668085
2007-05-25 02:36:22 +00:00
Aaron J. Seigo
8288d58356 DataVisualization remained anemic: it was only offering a single SLOT, and it was pure virtual at that. to keep the inheritance tree sane, it has been removed.
Widget remains problematic as it uses QGraphicsItem API, but it needs to be subclassed by items that are already QGraphicsItems. ugh.

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668083
2007-05-25 02:27:33 +00:00
Matias Valdenegro Toro
449a7e6d13 Add some basic apidox
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668074
2007-05-25 01:27:27 +00:00
Matt Williams
e809f22cfd Make this new function actually do something :)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668037
2007-05-24 21:17:55 +00:00
Aaron J. Seigo
4d4f9e0140 convenience method for loading applets via a KPluginInfo
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668033
2007-05-24 20:51:59 +00:00
Aaron J. Seigo
1f797b162f * applet loading
* make the library names appear in descending order of specificity (plasma_kind_instance)

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668019
2007-05-24 20:01:12 +00:00
Aaron J. Seigo
14a1013a16 * we don't need our own Dict typedef here
* errorCode is no longer used
* get the debug output in line with similar msgs in plasma


svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668017
2007-05-24 19:57:31 +00:00
Matt Williams
5d1eb7f460 Add missing d-pointers
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668014
2007-05-24 19:36:05 +00:00
Aaron J. Seigo
022f7f671b let's make this a bit more obvious. not that anyone reads this stuff apparently.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667993
2007-05-24 18:14:54 +00:00
Matt Williams
199833129b Mmm, gotta love those APPLEYLAYOUTs :P
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667779
2007-05-23 22:45:21 +00:00
Andreas Hartmetz
308b2bb907 a strange compile++
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667709
2007-05-23 17:25:30 +00:00
Matias Valdenegro Toro
c24e5b36d4 Krazy fix
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667704
2007-05-23 17:18:43 +00:00
Riccardo Iaconelli
62dbab141d The clock is now a Plasma::Applet.
Thanks a lot to millams for helping with the porting.
Enjoy the clock! Configurability is coming!

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667677
2007-05-23 15:47:27 +00:00
Aaron J. Seigo
dacd91f859 constification.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667619
2007-05-23 08:27:09 +00:00
Aaron J. Seigo
19169e84ea * move DataEngineManager into libplasma and the Plasma namespace
* add CamelCaseIncludes for DataSource and DataEngineManager

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667603
2007-05-23 07:51:28 +00:00
Aaron J. Seigo
22015aa3c9 add icons to data engines. a bit superfluous, but can be nice when showing engines to the user as we do in the engine explorer
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667592
2007-05-23 07:13:00 +00:00
Aaron J. Seigo
479a977830 * api documentation
* void addSource(DataSource* source): allows adding of DataSources directly; useful for more complex engines where setData would be inneficient and clumsy or just not powerful enough

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667584
2007-05-23 06:38:44 +00:00
Aaron J. Seigo
121699f37d re-add the missing qobject stuff so that the slot works again
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667526
2007-05-23 03:08:47 +00:00
Matt Williams
a6c0d7a952 DataVisualisation isn't actually used in here
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667493
2007-05-22 23:11:21 +00:00
Pino Toscano
f5230fcd1e extra ';'
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667451
2007-05-22 21:05:42 +00:00
Laurent Montel
09a03bdc95 Return something
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667445
2007-05-22 20:49:43 +00:00
David Faure
22998455f1 fix compiling
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667422
2007-05-22 19:23:22 +00:00
Matt Williams
4f6c36f3af Add some vaguely useful entries on the desktop menu
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667407
2007-05-22 18:29:12 +00:00
Matias Valdenegro Toro
90cf45ff02 Add the files to the build system.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667385
2007-05-22 17:07:00 +00:00
Matias Valdenegro Toro
4bde70b077 Make it compile
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667380
2007-05-22 16:59:33 +00:00
Matias Valdenegro Toro
edaecc53af First commit of my work, added classes :
- LayoutItem
- Layout
- VBoxLayout


svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667376
2007-05-22 16:48:34 +00:00
Script Kiddy
bd932be569 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667189
2007-05-22 05:15:39 +00:00
Aaron J. Seigo
879e215a43 * make DataSource emit the name of the source along with the data; this makes it possible widgets connected to multiple DataSources to have a chance of doing the right thing
* make DataEngine take a QObject in the connect, making DataVisualization somewhere superfluous. unless it ends up doing something useful soon, DataVisualization as a class will be going away.

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667167
2007-05-22 02:49:54 +00:00
Matt Williams
ad5351fa3f A few apidocs updates
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667159
2007-05-22 01:30:03 +00:00
Aaron J. Seigo
29bc7ed49e i'll take the red pill.
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667153
2007-05-22 00:20:52 +00:00
Aaron J. Seigo
97c22c59d2 add a CamelCaseHeader for DataVisualization
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667149
2007-05-21 23:44:15 +00:00
Matt Williams
18a8791a43 More Mainpage.dox changes
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667061
2007-05-21 18:48:13 +00:00