Commit Graph

79 Commits

Author SHA1 Message Date
Aaron J. Seigo
99945e5a99 QSizePolicy, need to make size policy setting possible
svn path=/trunk/KDE/kdebase/runtime/; revision=1107165
2010-03-24 23:56:07 +00:00
Aaron J. Seigo
8df3489f24 allow connecting engine sources to pretty much anything in the script
svn path=/trunk/KDE/kdebase/runtime/; revision=1101799
2010-03-10 23:10:33 +00:00
Aaron J. Seigo
7b3c875217 IntervalAlignment
svn path=/trunk/KDE/kdebase/runtime/; revision=1101332
2010-03-09 22:29:08 +00:00
Aaron J. Seigo
2003e72a37 not needed atm
svn path=/trunk/KDE/kdebase/runtime/; revision=1101326
2010-03-09 22:18:23 +00:00
Aaron J. Seigo
920eef1666 support for Svg* marshalling, used with e.g. Plasma::SvgWidget
svn path=/trunk/KDE/kdebase/runtime/; revision=1101267
2010-03-09 20:01:51 +00:00
Aaron J. Seigo
e0dbf4f1d8 clean up actions
svn path=/trunk/KDE/kdebase/runtime/; revision=1100980
2010-03-09 05:33:40 +00:00
Aaron J. Seigo
826c9ae1d5 * move kstyles from runtime into workspace
* make a proper library out of the oxygen helper lib
* make the oxygen widget and kwin style link against it

svn path=/trunk/KDE/kdebase/runtime/; revision=1097791
2010-03-02 03:40:34 +00:00
Bruno de Oliveira Abinader
1bd327f133 Added support for passing QEasingCurve::Type enumerator literal string as valid argument on type() js binding
svn path=/trunk/KDE/kdebase/runtime/; revision=1097616
2010-03-01 19:11:32 +00:00
Aaron J. Seigo
6722dbdd97 need to return a QIcon otherwise the poor little binding's head gets confused
svn path=/trunk/KDE/kdebase/runtime/; revision=1097598
2010-03-01 18:39:03 +00:00
Aaron J. Seigo
3b16876d4a full popupapplet support
svn path=/trunk/KDE/kdebase/runtime/; revision=1097178
2010-02-28 16:11:48 +00:00
Aaron J. Seigo
b03d2dc7bd most calls don't care if the widget has a layout, so make this behaviour controllable by the caller
svn path=/trunk/KDE/kdebase/runtime/; revision=1097162
2010-02-28 15:32:21 +00:00
Aaron J. Seigo
3ce97e4d1d until there is a better solution (e.g. one that doesn't lead to crashes due to dangling pointers in random QScriptValue objects), don't quietly add layouts to existing QGraphicsWidgets that already have a layout
svn path=/trunk/KDE/kdebase/runtime/; revision=1097160
2010-02-28 15:13:54 +00:00
Aaron J. Seigo
320d5f8f69 misnamed
svn path=/trunk/KDE/kdebase/runtime/; revision=1095395
2010-02-24 08:15:10 +00:00
Aaron J. Seigo
befcae6884 minimal icon bindings, makes Plasma::IconWidget actually useful
svn path=/trunk/KDE/kdebase/runtime/; revision=1095318
2010-02-24 00:35:37 +00:00
Aaron J. Seigo
16cd227083 fix the extraction of the layout items
svn path=/trunk/KDE/kdebase/runtime/; revision=1094811
2010-02-23 09:41:14 +00:00
Aaron J. Seigo
82d8d472b9 rowspan, colspan and alignment
svn path=/trunk/KDE/kdebase/runtime/; revision=1094761
2010-02-23 08:19:13 +00:00
Aaron J. Seigo
5ba47f8c6d these are not getters
svn path=/trunk/KDE/kdebase/runtime/; revision=1091416
2010-02-16 21:18:40 +00:00
Aaron J. Seigo
d0c51018c0 unecessary
svn path=/trunk/KDE/kdebase/runtime/; revision=1090651
2010-02-15 18:03:25 +00:00
Aaron J. Seigo
58c8a6cc0a share the dataengine bindings between applet and dataengine
svn path=/trunk/KDE/kdebase/runtime/; revision=1089372
2010-02-13 00:53:46 +00:00
Aaron J. Seigo
1072174a96 a bit more manual, but it works much better.DataEngine::serviceForSource actually works now, for instance
svn path=/trunk/KDE/kdebase/runtime/; revision=1089368
2010-02-13 00:32:26 +00:00
Aaron J. Seigo
dda89cd693 offer as properties
svn path=/trunk/KDE/kdebase/runtime/; revision=1089246
2010-02-12 19:19:54 +00:00
Aaron J. Seigo
e3e4a580d9 isUserConfiguring
svn path=/trunk/KDE/kdebase/runtime/; revision=1083610
2010-02-01 16:19:32 +00:00
Aaron J. Seigo
52eacdf240 another class of API warts found and fixed thanks to documenting: isFoo -> foo for properties
svn path=/trunk/KDE/kdebase/runtime/; revision=1081161
2010-01-27 21:06:03 +00:00
Aaron J. Seigo
3c299a6678 missing enum
svn path=/trunk/KDE/kdebase/runtime/; revision=1077844
2010-01-20 23:52:32 +00:00
Aaron J. Seigo
1549eb3528 move DummyService to dataengine.h where so it doesn't need to be duplicated elsewhere
svn path=/trunk/KDE/kdebase/runtime/; revision=1077830
2010-01-20 23:25:24 +00:00
Aaron J. Seigo
c1f3d903d8 * much simpler way of registering DataEngine::Data
* register the metatype by name with Qt so it can find it; this allows DataEngine::query() to work properly

svn path=/trunk/KDE/kdebase/runtime/; revision=1077821
2010-01-20 23:13:40 +00:00
Aaron J. Seigo
59ca56a770 extenders
svn path=/trunk/KDE/kdebase/runtime/; revision=1077776
2010-01-20 21:40:55 +00:00
Aaron J. Seigo
95663c101d subs doesn't act on the KLocalizedString itself, but returns a new one. so we need to assign it to our message each time we call subs(..) so that the values are actually captured.
svn path=/trunk/KDE/kdebase/runtime/; revision=1077771
2010-01-20 21:29:57 +00:00
Aaron J. Seigo
a876582696 no longer necessary
svn path=/trunk/KDE/kdebase/runtime/; revision=1073850
2010-01-12 23:40:35 +00:00
Aaron J. Seigo
a44ebee80d easing curve is now necessary due to change in animation API from easingCurveType to easingCurve
svn path=/trunk/KDE/kdebase/runtime/; revision=1073846
2010-01-12 23:32:56 +00:00
André Wöbbeking
d685a5f359 -pedantic
svn path=/trunk/KDE/kdebase/runtime/; revision=1073712
2010-01-12 18:26:56 +00:00
Aaron J. Seigo
1ea98c3161 the object, not its data. (if the trolls themselves can't get this stuff right ... ;)
svn path=/trunk/KDE/kdebase/runtime/; revision=1073565
2010-01-12 11:11:35 +00:00
Aaron J. Seigo
6d466c00c5 easing curve enum
svn path=/trunk/KDE/kdebase/runtime/; revision=1073427
2010-01-12 09:23:17 +00:00
Aaron J. Seigo
a8c5f32de4 animation direction
svn path=/trunk/KDE/kdebase/runtime/; revision=1073407
2010-01-12 08:04:51 +00:00
Aaron J. Seigo
a85e29367a isolate out the common QScriptEngine setup that is sharable between the various ScriptEngines; this will prevent having to reimplement (or more likely copy and paste) the extensions loading, print, debug, etc. from the applet implementation to get that support in dataengines and runners.
svn path=/trunk/KDE/kdebase/runtime/; revision=1070936
2010-01-07 02:04:59 +00:00
Aaron J. Seigo
5946da0f42 implement a specialized findChild; this makes it look like there's the usual findChild, but this one is defanged
svn path=/trunk/KDE/kdebase/runtime/; revision=1070552
2010-01-06 00:23:31 +00:00
Aaron J. Seigo
092bf9d3e6 count/itemAt; plugs some holes that made layouts rather unuseful (though getting reports about these things is nice: people are actually using them! wow! :)
svn path=/trunk/KDE/kdebase/runtime/; revision=1070549
2010-01-05 23:48:56 +00:00
John Layt
3d468dfd5f krazy fixes
svn path=/trunk/KDE/kdebase/runtime/; revision=1067066
2009-12-28 20:50:30 +00:00
Aaron J. Seigo
5e924edc6d need to also register KJob with the runtime otherwise those signals are not very usable from the runtime; found while trying to connect to the finished signal of an http request
svn path=/trunk/KDE/kdebase/runtime/; revision=1063096
2009-12-16 22:46:34 +00:00
Aaron J. Seigo
745dc92f50 --unecessary duplication
svn path=/trunk/KDE/kdebase/runtime/; revision=1063084
2009-12-16 22:29:43 +00:00
Aaron J. Seigo
f26351ef58 typo caught while fixing up isActive
svn path=/trunk/KDE/kdebase/runtime/; revision=1063078
2009-12-16 22:18:02 +00:00
Aaron J. Seigo
f266a263db make isActive a setter as well, more javascriptty
svn path=/trunk/KDE/kdebase/runtime/; revision=1063077
2009-12-16 22:15:54 +00:00
Aaron J. Seigo
47deeea77c huge cleanup with lots of inter-twined changes, but this should be more or less ready for 4.4.0 at this point! changes include:
* discovered QByteArrays were completely opaque to the runtime, obviously not good seeing how many things use them. fortunately, Qt has bindings for them ... in the examples! so just pulled those over (license compatible, thankfully) and now that works
* implement the remaining security hooks so it knows the difference between different kinds of urls
* export KIO::Job into the runtime; i really wish we could have had more time to do something more elegant than just pushing the object wholesale into the runtime as it exposes a LOT of API, but this works, should be safe (security wise) and as we are in feature freeze there's really nothing better that can be done to replace it at this point in time
* move some of the utility bindings (i18n, DataEngine) into simplebindings/ for consistency
* break out the qvariant stuff that is used outside of the DataEngine bindings for clarity
* brea out a bunch of the bookkeeping setup stuff from simplejavascriptapplet.cpp (it was getting messy) and put it into a separate .cpp file

svn path=/trunk/KDE/kdebase/runtime/; revision=1063070
2009-12-16 22:05:46 +00:00
Andreas Hartmetz
18a9f087a4 Thou shalst not commit old cheese which uses experimental API, unless thou hath
tested that it still compilest.

svn path=/trunk/KDE/kdebase/runtime/; revision=1062521
2009-12-15 00:33:01 +00:00
Aaron J. Seigo
5e3c8f51ff missing license headers and emails
svn path=/trunk/KDE/kdebase/runtime/; revision=1062487
2009-12-14 22:04:05 +00:00
Aaron J. Seigo
52aaea24e7 make animation groups work again in javascript by subclassing the Qt classes and making the interesting methods scriptable in the subclasses and calling the parent class implementations.
svn path=/trunk/KDE/kdebase/runtime/; revision=1062484
2009-12-14 21:54:23 +00:00
André Wöbbeking
83d02aaecb -pedantic
svn path=/trunk/KDE/kdebase/runtime/; revision=1056518
2009-11-30 11:44:47 +00:00
Artur Duque de Souza
4f35912332 Fix the GridLayout bindings as we do not have properties
Now I figured it out: the c++ class has no properties because
the setters need to get the row or the column and this is not
a property. So now this commit fixes the problem of exporting
it as properties in the binding.


svn path=/trunk/KDE/kdebase/runtime/; revision=1055931
2009-11-29 04:38:33 +00:00
Artur Duque de Souza
a356b3d452 Create bindings for QGraphicsGridLayout
We should definetely have a common header for the layout bindings
so we avoid duplicating the "layoutItem" function with different
names all around.

I created some macros to help creating the binding for GridLayout
that may be helpful in other scenarious. Maybe put this macros on
this shared header too ?

Anyway, the bindings for this class are ready if I didn't forget
any important functions and the code for layout item was a little
bit simplified trying to qscriptvalue_cast to QGraphicsLayout* instead
of each implementation of it.


svn path=/trunk/KDE/kdebase/runtime/; revision=1055930
2009-11-29 04:17:30 +00:00
Aaron J. Seigo
58a46c3d52 now that we've figured out how the gc() works, don't need this around anymore
svn path=/trunk/KDE/kdebase/runtime/; revision=1055417
2009-11-28 00:11:36 +00:00