Re: [Kde-bindings] Ruby applet dataEngine service operation call

2010-07-07 Thread Richard Dale
is a smoke-subclass or just the 'original' class. I still don't have a solution for this, so suggestions are welcome :) On Monday 14 December 2009 14:43:18 Richard Dale wrote: On Sat, Dec 12, 2009 at 3:58 PM, Cédric k...@xfou.com wrote: Hi richard, Do you think this is corrected now

Re: [PATCH] Support for PopupApplets in Python

2010-03-01 Thread Richard Dale
On Sun, Feb 28, 2010 at 8:26 PM, Simon Edwards si...@simonzone.com wrote: Richard Dale wrote: On Sat, Feb 27, 2010 at 4:42 PM, Luca Beltrame ei...@heavensinferno.net wrote: In data sabato 27 febbraio 2010 15:13:23, Petri Damstén ha scritto: Python popup applet with extenders: http

Re: Plasma/PopupApplet and Plasma::PackageStructure

2010-02-27 Thread Richard Dale
On Sat, Feb 27, 2010 at 2:52 PM, Yuen Hoe Lim yuenho...@gmail.com wrote: While implementing support for PopupApplets in Plasmate (Bug 228498) , I discovered that Plasma/PopupApplet is not recognized as a package format by Plasma::PackageStructure:

Re: [PATCH] Support for PopupApplets in Python

2010-02-27 Thread Richard Dale
On Sat, Feb 27, 2010 at 4:42 PM, Luca Beltrame ei...@heavensinferno.net wrote: In data sabato 27 febbraio 2010 15:13:23, Petri Damstén ha scritto: Python popup applet with extenders: http://websvn.kde.org/trunk/KDE/kdeexamples/plasma/python/applets/pyhello/ Thanks, then my patch is completely

Re: Plasma/PopupApplet and Plasma::PackageStructure

2010-02-27 Thread Richard Dale
On Sat, Feb 27, 2010 at 5:29 PM, Aaron J. Seigo ase...@kde.org wrote: On February 27, 2010, Yuen Hoe Lim wrote: Is this a bug or is this intentional? If the latter, then is it acceptable to simply do looking at your last commit to plasmate, i see why you asked this. all plasmoids should have

Re: Review Request: add Applet::init() in Containment::init()

2010-02-23 Thread Richard Dale
On 2010-02-23 15:12:20, Aaron Seigo wrote: /trunk/KDE/kdelibs/plasma/containment.cpp, lines 150-153 http://reviewboard.kde.org/r/3041/diff/1/?file=19854#file19854line150 Applet::init() should definitely be called in the if (!isContainment()) block, but Applet::init() does various

Starting script engine based applets that are Plasma::Containments

2010-02-19 Thread Richard Dale
I not sure whether we actually want Plasma::Containments to be written using scripting languages or not. However, there is some support there in that the Plasma runtime searches for Plasma/Containment service types and creates a Plasma::Containment if it finds one. After that the applet doesn't

Re: Subject: Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-12 Thread Richard Dale
On Thu, Feb 11, 2010 at 11:34 PM, Diego Casella ([Po]lentino) polentino...@gmail.com wrote: -- Messaggio inoltrato -- From: Richard Dale richard.j.d...@gmail.com To: plasma-de...@kde.org Date: Thu, 11 Feb 2010 18:37:55 + Subject: Re: [PATCH] Support for arbitrary main

Re: Subject: Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-12 Thread Richard Dale
On Fri, Feb 12, 2010 at 10:17 AM, Richard Dale richard.j.d...@gmail.com wrote: On Thu, Feb 11, 2010 at 11:34 PM, Diego Casella ([Po]lentino) polentino...@gmail.com wrote: -- Messaggio inoltrato -- From: Richard Dale richard.j.d...@gmail.com To: plasma-de...@kde.org Date: Thu

Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Richard Dale
On Thu, Feb 11, 2010 at 6:02 PM, Luca Beltrame ei...@heavensinferno.net wrote: Hello, currently if you use Python plasmoids the main script *must* be named main.py because it is hardcoded into pyappletscripts.py. When using a different mainscript in the .desktop file (like Plasmate does) this

Re: Ruby applet dataEngine service operation call

2009-12-14 Thread Richard Dale
, at the same time as allowing dynamic despatch for virtual methods on unknown classes. I'll cc this mail to kde-bindi...@kde.org and maybe we can discuss it there. -- Richard On Tue, Aug 18, 2009 at 2:59 PM, Richard Dale richard.j.d...@gmail.com wrote: On Tue, Aug 18, 2009 at 1:45 PM, Cédrick

Re: can qtscript plasmoids load C++ qtscript plugins

2009-11-13 Thread Richard Dale
On Fri, Nov 13, 2009 at 7:32 AM, Pekka Reijula reij...@gmail.com wrote: On Monday 09 November 2009, Ian Monroe wrote: I suspect the answer to the subject is no since I haven't found a mention of a method to do it. But I also haven't found comprehensive QtScript API docs. :) QtScript apidocs

Re: can qtscript plasmoids load C++ qtscript plugins

2009-11-13 Thread Richard Dale
On Fri, Nov 13, 2009 at 12:16 PM, Artur Souza (MoRpHeUz) morph...@openbossa.org wrote: Hey Richard! On Friday 13 November 2009, 07:44 Richard Dale wrote: The QtScript bindings based on the language indpendent Smoke libraries are going well, and I'm not far short of being able to wrap

Re: Initial size and aspect ratio

2009-10-02 Thread Richard Dale
On Fri, Oct 2, 2009 at 7:13 PM, Aaron J. Seigo ase...@kde.org wrote: On October 2, 2009, Thomas Olsen wrote:  - After having created the UI and layout in init() I need to resize the Plasmoid the a reasonable size as it is too small without specifying it  [1]. I don't want to use a fixed pixel

Re: Python Containment tutorial?

2009-09-01 Thread Richard Dale
You can write Containment applets in Ruby (implemented but not tested) and possibly in JavaScript too. But I don't think they've been implemented in Python yet. -- Richrd On Tue, Sep 1, 2009 at 5:31 AM, alan moorem...@alandmoore.com wrote: Hi, In the api documentation for PyKDE on the plasma

Re: Ruby applet dataEngine service operation call

2009-08-18 Thread Richard Dale
On Tue, Aug 18, 2009 at 9:24 AM, Cédrick...@xfou.com wrote: Well, Thanks for your answer Aaron. I think your first suggestion is the write one. I tried to implement this code with the Javascript binding and in the tutorial page

Re: Ruby applet dataEngine service operation call

2009-08-18 Thread Richard Dale
On Tue, Aug 18, 2009 at 12:45 PM, Richard Dalerichard.j.d...@gmail.com wrote: On Tue, Aug 18, 2009 at 9:24 AM, Cédrick...@xfou.com wrote: Well, Thanks for your answer Aaron. I think your first suggestion is the write one. I tried to implement this code with the Javascript binding and in the

Re: Ruby applet dataEngine service operation call

2009-08-18 Thread Richard Dale
On Tue, Aug 18, 2009 at 1:45 PM, Cédrick...@xfou.com wrote: Thanks Richard, That seems to be the problem. What I was telling in my earlier mail is that the javascript binding seems to have a similar problem with plasmoid.dataEngine(engine name).serviceForSource(source name) and maybe they

Re: plasma application policies

2009-08-05 Thread Richard Dale
On Tue, Jul 28, 2009 at 10:07 PM, Aaron J. Seigoase...@kde.org wrote: On Tuesday 28 July 2009, Richard Dale wrote: On Tue, Jul 28, 2009 at 2:32 AM, Aaron J. Seigoase...@kde.org wrote: the script engine situation is probably the easiest of the bunch: just add a method to the script engine

Re: plasma application policies

2009-07-28 Thread Richard Dale
On Tue, Jul 28, 2009 at 2:32 AM, Aaron J. Seigoase...@kde.org wrote: the script engine situation is probably the easiest of the bunch: just add a method to the script engine that states what it does with configuration (e.g. setProvidesCustomizedConfiguration(bool)) and query that when deciding

Re: Pager config not working with vertical Panel

2009-07-28 Thread Richard Dale
On Mon, Jul 27, 2009 at 8:47 PM, Aaron J. Seigoase...@kde.org wrote: On Monday 27 July 2009, Richard Dale wrote: The Pager applet in the kde 4.3 branch doesn't work with a Panel aligned vertically. The attached patch fixes the bug. does the patch on reviewboard fix this for you as well? see

Re: Pager config not working with vertical Panel

2009-07-28 Thread Richard Dale
On Tue, Jul 28, 2009 at 5:58 PM, Anthony Bryantantjbry...@gmail.com wrote: On Tue, Jul 28, 2009 at 4:00 PM, Richard Dalerichard.j.d...@gmail.com wrote: I have four virtual desktops and a vertical panel on the right. If I use the configure dialog to set the number of columns to two, it works

Pager config not working with vertical Panel

2009-07-27 Thread Richard Dale
The Pager applet in the kde 4.3 branch doesn't work with a Panel aligned vertically. The attached patch fixes the bug. The code before the fix was trying to have only one calculation for setting either the row or the column in the config dialog and then deriving the other dimension, and

Re: containing plasmoid crashes

2009-07-27 Thread Richard Dale
On Sun, Jul 26, 2009 at 8:26 PM, Aaron J. Seigoase...@kde.org wrote: On Sunday 26 July 2009, David Baron wrote: Do not the various interperators or VMs need be loaded in memory to service their plasmoids so we need to: * have full ecma script bindings available * promote use of ecma script

Re: containing plasmoid crashes

2009-07-27 Thread Richard Dale
On Mon, Jul 27, 2009 at 12:36 PM, David Barond_ba...@012.net.il wrote: and pardon my ignorance: What is ecma script? Another word for JavaScript or QtScript -- Richard ___ Plasma-devel mailing list Plasma-devel@kde.org

Re: need help on my javascript plasmoid

2009-07-24 Thread Richard Dale
On Thu, Jul 23, 2009 at 6:37 PM, Aaron J. Seigoase...@kde.org wrote: On Thursday 23 July 2009, Richard Dale wrote: Not specifically, but Arno Rehn is doing a GSOC project working on a bindings generator that uses one of Roberto Raggi's parsers. He said that the parser used for the QtScript

Re: need help on my javascript plasmoid

2009-07-23 Thread Richard Dale
On Thu, Jul 23, 2009 at 5:24 AM, Aaron J. Seigoase...@kde.org wrote: * a full set should hopefully appear in qt 4.4 (richard, did you ever find time to fiddle with that while at GCDS?) Not specifically, but Arno Rehn is doing a GSOC project working on a bindings generator that uses one of

Re: Getting plain text from Plasma::TextEdit

2009-07-21 Thread Richard Dale
On Tue, Jul 21, 2009 at 1:46 PM, HBmszub...@gmail.com wrote: Hello, Is there any way to get plain text from Plasma::TextEdit? Plasma::TextEdit is child of KTextEdit, which is child of QTextEdit (right?) So, Plasma::TextEdit should have method toPlainText() I'm writing in Ruby, but in

Re: Getting plain text from Plasma::TextEdit

2009-07-21 Thread Richard Dale
On Tue, Jul 21, 2009 at 3:55 PM, HBmszub...@gmail.com wrote: Thank you Richard. I wonder whether there is a possibility to get plain text from Plasma::TextEdit? As I see Plasma::TextEdit and Plasma::LineEdit are only 'text input' widgets. LineEdit isn't multiline, so is not suitable.

Re: Plasmate status

2009-07-15 Thread Richard Dale
On Wed, Jul 15, 2009 at 1:52 PM, Artur Souza (MoRpHeUz)morph...@openbossa.org wrote: On Wednesday 15 July 2009, 04:11 Shantanu Tushar Jha wrote: option 1: Use a KMenu when the previewer is small, and an Overlay when the previewer's size is sufficient. I would go with option 1. We really want

Review Request: Patch to support Plasma::PopupApplets in scriptengines

2009-07-14 Thread Richard Dale
--- This is an automatically generated e-mail. To reply, visit: http://reviewboard.kde.org/r/964/ --- Review request for Plasma. Summary --- Add getters and setters for

Re: Initial size of scripted plasmoids

2009-06-11 Thread Richard Dale
On Thu, Jun 11, 2009 at 4:54 PM, Aaron J. Seigoase...@kde.org wrote: On Thursday 11 June 2009, Chani wrote: On June 11, 2009 02:18:05 Petri Damstén wrote: On Wednesday 10 June 2009 19:03:35 Aaron J. Seigo wrote: On Wednesday 10 June 2009, Petri Damstén wrote: But isn't this too late

Re: Qt Kinetic + Plasma Call For Ideas / Project Plan

2009-05-29 Thread Richard Dale
On Thu, May 28, 2009 at 10:14 PM, Akmanalp, Mehmet A makman...@wpi.edu wrote: On Thu, May 28, 2009 at 9:38 PM, Aaron J. Seigo ase...@kde.org wrote: Animation *a = Animator::fadeIn(item); Animation *b = Animator::add(a, Animator::bounce(item, timesToBounce)); a = Animator::while(b,

Re: JS Scriptengine in libplasma

2009-05-07 Thread Richard Dale
On Wed, May 6, 2009 at 8:59 PM, Leonardo Franchi lfran...@kde.org wrote: hola folks, so i'm (finally) looking into adding scripted applet/dataengine support to amarok. it's really easy and transparent and all of that (yay plasma!) but we have a minor issue. we depend only on kdelibs, and the

Re: JS Scriptengine in libplasma

2009-05-07 Thread Richard Dale
On Thu, May 7, 2009 at 12:26 PM, Marco Martin notm...@gmail.com wrote: On Thursday 07 May 2009, Leonardo Franchi wrote: On Thursday 07 May 2009 11:48:48 Richard Dale wrote: On Wed, May 6, 2009 at 8:59 PM, Leonardo Franchi lfran...@kde.org wrote: hola folks, so i'm (finally) looking

Re: JS Scriptengine in libplasma

2009-05-07 Thread Richard Dale
On Thu, May 7, 2009 at 4:56 PM, Aaron J. Seigo ase...@kde.org wrote: On Thursday 07 May 2009, Richard Dale wrote: Can you create Plasma widgets though? yes, several of the examples in scriptengines/javascript/tests/ do just that. Ah yes, sorry I've found the code now in uiloader.cpp - I had

Using PopupApplets with script engines without subclassing them

2009-05-01 Thread Richard Dale
I recently added a PopupApplet service that allows applet scripting engines to use Plasma::PopupApplets. However, the C++ api assumes that the applet can be sub-classed, and that isn't possible with the scripting engine api. To use an ExtenderItem with an Applet you need to be able to override

Re: Python bindings for PopupApplet

2009-04-29 Thread Richard Dale
On Wed, Apr 29, 2009 at 2:31 PM, Tim Bocek tim.bo...@gmail.com wrote: Hello, I am trying to write a plasma applet in Python that pops up (like the battery monitor) when placed in the toolbar.  I gathered that using the PopupApplet instead of Applet base class is the right way to do this,

Re: Social Desktop in 4.3?

2009-04-28 Thread Richard Dale
On Tue, Apr 28, 2009 at 2:12 PM, Sebastian Kügler se...@kde.org wrote: Hi, As some of you know, I've spent some intense cycles on the social desktop support in KDE and specifically in Plasma. This functionality integrates a social network, in this case openDesktop.org which powers sites such

Re: Creating Plasma::Containments or Plasma::PopupApplets via the scripting api

2009-04-23 Thread Richard Dale
On Thu, Apr 23, 2009 at 5:07 PM, Aaron J. Seigo ase...@kde.org wrote: On Thursday 23 April 2009, Richard Dale wrote: On Wed, Apr 22, 2009 at 4:30 PM, Richard Dale richard.j.d...@gmail.com wrote: On Wed, Apr 22, 2009 at 3:59 PM, Aaron J. Seigo ase...@kde.org wrote: On Wednesday 22 April 2009

Creating Plasma::Containments or Plasma::PopupApplets via the scripting api

2009-04-22 Thread Richard Dale
We've just been discussing scripting applets on #plasma irc channel, and I said that I didn't think it was possible to create types of applets other than Plasma::Applet. Then I went and had a look at the code in plasma/applet.cpp to confirm, and found this: if

Re: Creating Plasma::Containments or Plasma::PopupApplets via the scripting api

2009-04-22 Thread Richard Dale
On Wed, Apr 22, 2009 at 3:59 PM, Aaron J. Seigo ase...@kde.org wrote: On Wednesday 22 April 2009, Richard Dale wrote: then a Plasma::Containment is created for the scripting applet. yes; not a well documented feature. We were actually discussing Plasma::PopupApplet, and I wondered

Re: discrepancy in python bindings for plasma

2009-02-20 Thread Richard Dale
2009/2/19 Aaron J. Seigo ase...@kde.org On Thursday 19 February 2009, Benjamin Kleiner wrote: On Thursday, 19. February 2009 16:55:38 Thomas Coopman wrote: I have been running in the same problem and have looked a bit at the code and it looks like createConfigurationInterface is not in

Re: Another 4.2 applet inovation

2009-01-28 Thread Richard Dale
2009/1/28 David Baron d_ba...@012.net.il Now, whether or not one setHasConfiguationInterface( true), there is always a configuration context menu entry. This will, if nothing else is created for it, have the keyboard shortcut option. Whether or not it is needed or relevant to the applet.

Re: Ruby Bindings Animator problem

2009-01-19 Thread Richard Dale
On Wed, Jan 7, 2009 at 10:02 AM, 0xDeadC0de roguestar...@comcast.netwrote: hmm All I know that makes it special is the animator is a singleton class, the self() function returns the instance and probably allocates a new one Yes, it turned out that the bindings code generation in the Smoke

Re: ruby bindings

2009-01-19 Thread Richard Dale
On Fri, Jan 9, 2009 at 6:28 AM, 0xDeadC0de roguestar...@comcast.net wrote: I think there's a coincidence between the animator and the tooltipmanager singletons not working. If I uncomment everything in the snippet below it crashes on me. at ToolTipManager::self().setContent(icon, data). (I

Applet::flushPendingConstraintsEvents() calls setHasConfigurationInterface(true)

2009-01-19 Thread Richard Dale
Niels Slot and myself were looking at a problem with the Ruby tutorial applet, in that it was ignoring setHasConfigurationInterface(false) calls in its init() method. When I looked at the Plasma::Applet applet.cpp code there is a call to see it to true in flushPendingConstraintsEvents(). void

Re: Welcome plasmoid pre-1-ruby

2009-01-06 Thread Richard Dale
On Tue, Jan 6, 2009 at 1:31 AM, 0xDeadC0de roguestar...@comcast.net wrote: Note, the version I sent to the mailing list... had problems. The version I have still does, I can't get any zorder's to be respected and randomly(near it's a computer I know nothing is really random in them) the

Re: Q: Installing python DataEngine?

2008-12-23 Thread Richard Dale
On Tue, Dec 23, 2008 at 2:05 AM, Sebastian Kügler se...@kde.org wrote: On Thursday 18 December 2008 23:09:48 D. R. Evans wrote: Aaron J. Seigo said the following at 12/17/2008 10:29 PM : On Wednesday 17 December 2008, D. R. Evans wrote: I have a .desktop file and main.py file for a

Re: Q: Installing python DataEngine?

2008-12-19 Thread Richard Dale
2008/12/18 D. R. Evans doc.ev...@gmail.com Richard Dale said the following at 12/18/2008 04:20 AM : 2008/12/18 Aaron J. Seigo ase...@kde.org On Wednesday 17 December 2008, D. R. Evans wrote: I have a .desktop file and main.py file for a simple DataEngine. How do I go about actually

Naming conventions for scripting applets and data engines

2008-11-14 Thread Richard Dale
I was wondering if it would be a good idea to have a common naming convention for the python and ruby scriptengine examples in kdebase, and put the in the same directory structure. At the moment for Ruby we have: examples applets plasma_applet_ruby_clock dataengines

Re: Naming conventions for scripting applets and data engines

2008-11-14 Thread Richard Dale
2008/11/14 Aaron J. Seigo [EMAIL PROTECTED] On Friday 14 November 2008, Richard Dale wrote: I think 'examples' is a better place than 'test', and that we are better off dividing them into 'applets' and 'dataengine' directories like the ruby ones. agreed ... it also follows other places

Re: last call for alcohol .. er .. BIC API changes

2008-11-03 Thread Richard Dale
2008/11/3 Aaron J. Seigo [EMAIL PROTECTED] On Monday 03 November 2008, Simon Edwards wrote: Hell, Aaron J. Seigo wrote: i'd like to move libplasma over to kdelibs on Nov 3rd. it'll be a fair amount of work, and i'll announce here when i've started so other people don't get

KDE/kdebase/workspace/plasma/scriptengines

2008-10-30 Thread Richard Dale
SVN commit 877958 by rdale: * Separated the script engine plugins from the plasma ruby extension and moved the script engine code to kdebase with the other script engines CCMAIL: [EMAIL PROTECTED] CCMAIL: plasma-devel@kde.org M +1 -0 CMakeLists.txt A ruby (directory)

Re: AppletScript configAccepted

2008-09-11 Thread Richard Dale
2008/9/11 Petri Damstén [EMAIL PROTECTED] Hi, I have been playing with webkit AppletScript. There is a small example (webkit/code/test.html) using plasma dataengines so I have added more functions (init(), engine.connectSource(), etc.) and plasma package support so it looks more like a

Re: AppletScript configAccepted

2008-09-11 Thread Richard Dale
2008/9/11 Aaron J. Seigo [EMAIL PROTECTED] On Thursday 11 September 2008, Richard Dale wrote: Then those wouldn't have any configXml object and this part of the logic would never be entered. I'm afraid I still don't see what the early exit code is doing. that branch is only entered

Re: Question about C++ vs. Python/Ruby/JS plasmoids

2008-09-01 Thread Richard Dale
2008/9/1 Arne Babenhauserheide [EMAIL PROTECTED] Am Mittwoch 27 August 2008 18:38:05 schrieb Aaron J. Seigo: this is a feature also provided by ECMA Script. the question is why $LANG instead of just stickign to ECMA Script. the reasons i see are: * you know $LANG, or the project

Re: [nepomuk-kde] Some clarifications with nepomuk integration

2008-08-21 Thread Richard Dale
2008/8/21 Aaron J. Seigo [EMAIL PROTECTED] On Wednesday 20 August 2008, you wrote: On Thu, Aug 21, 2008 at 8:45 AM, Aaron J. Seigo [EMAIL PROTECTED] wrote: And, Location awareness be implemented in a separate library ( ? ) and plasma::Context will also be one of the consumers of it.