Re: dictionary widget QML

2012-02-05 Thread Shaun Reich
bit of a snag...how can i create a model/listview from plasmasource.data["list-dictionaries"] ? there's 1 source which has many keys and values, as you'll see by requesting that source from plasmaengineexplorer. thought of a model of a model, but that's not possible ;-p got to be an easy way...

Review Request: Plasma HDD Activity/IO system monitor applet creation

2012-02-05 Thread Shaun Reich
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/103878/ --- Review request for Plasma, Aaron J. Seigo and Marco Martin. Description --

Re: Review Request: Less repainting on mousePressEvent(), moseReleaseEvent() and mouseDoubleClickEvent() in FolderView::IconView

2012-02-05 Thread Ignat Semenov
> On Feb. 5, 2012, 6:46 p.m., Fredrik Höglund wrote: > > Aside from some minor nitpicks, it looks good. I forgot to add that I couldn't optimize the right click path in mousePressEvent(). The problem is that in order to get the containment context menu, the RMB press event is propagated to the

Fwd: GSOC Mentor

2012-02-05 Thread heathmatlock
-- Forwarded message -- From: heathmatlock Date: Sat, Feb 4, 2012 at 12:08 PM Subject: GSOC Mentor To: kde-...@kde.org Eike Hein has been mentoring me through the process of becoming a KDE developer, and I'm working on a project dubbed Qanda which adds natural language processing

Re: QML global plasmoid callback problem

2012-02-05 Thread uomonero
2012/2/5 uomonero : > 2012/2/5 Marco Martin : >> On Sun, Feb 5, 2012 at 3:39 PM, uomonero wrote: >>> Hi, >>> I'm new to plasmoid development. I'm trying to learn how to write a >>> QML plasmoid, but I encountered a little difficulty with the use of >>> global plasmoid object. >>> >>> This is my si

Re: Review Request: Less repainting on mousePressEvent(), moseReleaseEvent() and mouseDoubleClickEvent() in FolderView::IconView

2012-02-05 Thread Fredrik Höglund
--- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/103822/#review10360 --- Ship it! Aside from some minor nitpicks, it looks good. plas

Re: Python plasmoid and configChanged()

2012-02-05 Thread Simone Gaiarin
Connecting configChanged() explicitly was the cause of the problem apparently (I need to test it a little bit more). In many forum I've found that the people suggest to do this connection, maybe it's old stuff. Another strange thing I noticed is that when I click OK in the config dialog it does no

Re: Python plasmoid and configChanged()

2012-02-05 Thread Aaron J. Seigo
On Sunday, February 5, 2012 15:16:03 Simone Gaiarin wrote: > I call configChanged() once in the init function and then I connect it > to the configChanged() signal. you don't need to connect it to any signal. i'm not sure if that's the cause of your problem, but it is unecessary in any case. and

Re: dictionary widget QML

2012-02-05 Thread Marco Martin
On Sun, Feb 5, 2012 at 4:47 PM, Shaun Reich wrote: >> anyways having 100% of the default applets in pure qml is a very long >> term plan, since on the desktop plasma2 would continue to use a legacy >> compatible version with qgraphicsview for a (probably) long time > > sure, but i'm trying to chan

Re: QML global plasmoid callback problem

2012-02-05 Thread uomonero
2012/2/5 Marco Martin : > On Sun, Feb 5, 2012 at 3:39 PM, uomonero wrote: >> Hi, >> I'm new to plasmoid development. I'm trying to learn how to write a >> QML plasmoid, but I encountered a little difficulty with the use of >> global plasmoid object. >> >> This is my simple test code: >> >> import

Re: dictionary widget QML

2012-02-05 Thread Shaun Reich
> anyways having 100% of the default applets in pure qml is a very long > term plan, since on the desktop plasma2 would continue to use a legacy > compatible version with qgraphicsview for a (probably) long time sure, but i'm trying to change that 1% at a time ;-) -- Shaun Reich, KDE Software D

Re: dictionary widget QML

2012-02-05 Thread Marco Martin
On Sun, Feb 5, 2012 at 3:49 PM, Shaun Reich wrote: > On Sun, Feb 5, 2012 at 8:58 AM, Marco Martin wrote: >> On Sun, Feb 5, 2012 at 2:46 PM, Aaron J. Seigo wrote: if you want to make this choseable by the kcm it would have to become a (partly) c++ plasmoid >>> >>> assuming that it is un

Re: QML global plasmoid callback problem

2012-02-05 Thread Marco Martin
On Sun, Feb 5, 2012 at 3:39 PM, uomonero wrote: > Hi, > I'm new to plasmoid development. I'm trying to learn how to write a > QML plasmoid, but I encountered a little difficulty with the use of > global plasmoid object. > > This is my simple test code: > > import QtQuick 1.0 > import org.kde.plasm

Re: dictionary widget QML

2012-02-05 Thread Shaun Reich
On Sun, Feb 5, 2012 at 8:58 AM, Marco Martin wrote: > On Sun, Feb 5, 2012 at 2:46 PM, Aaron J. Seigo wrote: >>> if you want to make this choseable by the kcm it would have to become >>> a (partly) c++ plasmoid >> >> assuming that it is unnecessary, even unwanted (different instances of the >> pla

Re: KConfigXT default value code evaluation

2012-02-05 Thread Simone Gaiarin
I've solved in this way: I set as default value latitude=0 and longitude=0 in main.xml , then in init I call configChanged and after it I check if lat and lon are both zero. In this case I get their default values in init and write these values to the rc file. In this way when the dialog in opened

QML global plasmoid callback problem

2012-02-05 Thread uomonero
Hi, I'm new to plasmoid development. I'm trying to learn how to write a QML plasmoid, but I encountered a little difficulty with the use of global plasmoid object. This is my simple test code: import QtQuick 1.0 import org.kde.plasma.core 0.1 as PlasmaCore import org.kde.plasma.components 0.1 as

Re: KConfigXT default value code evaluation

2012-02-05 Thread Simone Gaiarin
So there is no way to compute the default value in the init function and set it to the configuration dialog? Or I have to write the default value to the rc file so that when the configuration dialog is showed it reads this value? 2012/2/5 Aaron J. Seigo : > On Sunday, February 5, 2012 00:44:47 Sim

Re: Python plasmoid and configChanged()

2012-02-05 Thread Simone Gaiarin
I call configChanged() once in the init function and then I connect it to the configChanged() signal. Here you can find the code: https://github.com/simgunz/redshift-plasmoid/blob/master/contents/code/main.py 2012/2/5 Aaron J. Seigo : > On Sunday, February 5, 2012 11:44:02 Simone Gaiarin wrote:

Re: dictionary widget QML

2012-02-05 Thread Marco Martin
On Sun, Feb 5, 2012 at 2:46 PM, Aaron J. Seigo wrote: >> if you want to make this choseable by the kcm it would have to become >> a (partly) c++ plasmoid > > assuming that it is unnecessary, even unwanted (different instances of the > plasmoid -> different dicts?), this could in theory be done str

Re: dictionary widget QML

2012-02-05 Thread Marco Martin
On Sun, Feb 5, 2012 at 2:46 PM, Aaron J. Seigo wrote: > > can we do better in libplasma2? i hope so :) > apart from the fact that it requires either config forms using plasma widgets or complete and functional desktop qtcomponents, i think the solution is quite easy ;) (and makes easy also writin

Re: dictionary widget QML

2012-02-05 Thread Aaron J. Seigo
On Sunday, February 5, 2012 14:29:13 Marco Martin wrote: > On Sun, Feb 5, 2012 at 2:55 AM, Shaun Reich wrote: > > is the dict widget supposed to have a kcm? > > > > i could have sworn it had one, and on my 4.8 system it has one but the > > populated list view is...unpopulated. > > > > so should

Re: Python plasmoid and configChanged()

2012-02-05 Thread Aaron J. Seigo
On Sunday, February 5, 2012 11:44:02 Simone Gaiarin wrote: > Hi, > I wrote a python plasmoid that needs to restart a program (redshift) > everytime that the configuration is changed by the user (the plasmoid > configChanged() function reacts to the signal). When the program is > restarted the user

Re: dictionary widget QML

2012-02-05 Thread Marco Martin
On Sun, Feb 5, 2012 at 2:55 AM, Shaun Reich wrote: > is the dict widget supposed to have a kcm? > > i could have sworn it had one, and on my 4.8 system it has one but the > populated list view is...unpopulated. > > so should the qml one have a populated listview that enables you to > select which

Re: dictionary widget QML

2012-02-05 Thread Aaron J. Seigo
On Saturday, February 4, 2012 20:55:24 Shaun Reich wrote: > so should the qml one have a populated listview that enables you to > select which dicts you can have? if there is any value to that, sure. i suppose the primary purpose would be to allow one to define different dict servers? -- Aaron

Re: KConfigXT default value code evaluation

2012-02-05 Thread Aaron J. Seigo
On Sunday, February 5, 2012 00:44:47 Simone Gaiarin wrote: > I'm writing a python plasmoid and I want to initialize a field with a > default value from this function KSystemTimeZones::local().latitude() > but it doesn't work. > If I put a number in the default value it is taken correctly. I've > al

Python plasmoid and configChanged()

2012-02-05 Thread Simone Gaiarin
Hi, I wrote a python plasmoid that needs to restart a program (redshift) everytime that the configuration is changed by the user (the plasmoid configChanged() function reacts to the signal). When the program is restarted the user is aware of it, because the screen color become white and than red ag