Re: How to retrieve location from plasmoid
On Tuesday 23 August 2011, Onur-Hayri Bakici wrote: also, exactly why you are making it a dock? I am implementing the currentappcontrol in qml :) nice:) (there isn't a binding for the present window effect tough, may or may not make sense to have those, hmmm) would give a try with a popup window type tough, so would be possible to dismiss the menu clicking anywhere in the screen. I made my release now. Do you think a review request is necessary? ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: How to retrieve location from plasmoid
On Tuesday 23 August 2011, Onur-Hayri Bakici wrote: also, exactly why you are making it a dock? I am implementing the currentappcontrol in qml :) nice:) (there isn't a binding for the present window effect tough, may or may not make sense to have those, hmmm) would give a try with a popup window type tough, so would be possible to dismiss the menu clicking anywhere in the screen. Thats exactly what I am doing. I also integrated some cool animations (thanks to QML) ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
How to retrieve location from plasmoid
Hey guys, is there any way to get the x,y position of plasmoids using javascript? thank you ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: How to retrieve location from plasmoid
On Tuesday, August 23, 2011 10:35:18 Onur-Hayri Bakici wrote: is there any way to get the x,y position of plasmoids using javascript? You mean on the screen? No, by design it's not possible. What do you want to achieve? I want to let a PlasmaCore.Dialog to appear underneath the applet. I use QML. For the right position I need the x,y coordinates. ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: How to retrieve location from plasmoid
On Tuesday 23 August 2011, Onur-Hayri Bakici wrote: On Tuesday, August 23, 2011 10:35:18 Onur-Hayri Bakici wrote: is there any way to get the x,y position of plasmoids using javascript? You mean on the screen? No, by design it's not possible. What do you want to achieve? I want to let a PlasmaCore.Dialog to appear underneath the applet. I use QML. For the right position I need the x,y coordinates. use the popupposition method of PlasmaCore.Dialog never never ever try to calculate this kind of stuff by hand Thanks for the quick response. However I still cannot go any further. Since popupPosition gets a QGraphicsObject but always returns an emty QPoint. A little example of what I did. Item { PlasmaWidgets.PushButton { id: btn text: press me onClicked: { dialog.visible = true; } } PlasmaCore.Dialog { id: dialog Component.onCompleted: { setAttribute(Qt.WA_X11NetWmWindowTypeDock, true); var pos = popupPosition(parent); // or popupPosition(btn)? print(QPoint: + pos.x + , + pos.y); } } } Can you tell me whats wrong with this code? Thanks in advance. ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: How to retrieve location from plasmoid
On Tuesday 23 August 2011, Onur-Hayri Bakici wrote: A little example of what I did. Item { PlasmaWidgets.PushButton { id: btn text: press me onClicked: { dialog.visible = true; } } PlasmaCore.Dialog { id: dialog Component.onCompleted: { setAttribute(Qt.WA_X11NetWmWindowTypeDock, true); var pos = popupPosition(parent); // or popupPosition(btn)? print(QPoint: + pos.x + , + pos.y); } } } better using btn.. anyways, you should position it on every mouse click, before showing it, so in onClicked: { var pos = popupPosition(btn); dialog.x = pos.x dialog.y = pos.y dialog.visible = true; } also, exactly why you are making it a dock? I am implementing the currentappcontrol in qml :) ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Expanding PlasmaCore.Dialog in Qml
On Monday 23 May 2011, Onur-Hayri Bakici wrote: Hey, When i use PlasmaCore.Dialog inside an Item with a fix height and width Item { id: dialogItem height: 200 width: 200 PlasmaCore.Dialog { // some stuff } onEvent: { dialogItem.height += 32 } } and try to change the height and width of the item(since dialog has no height and width property), however the height property change is not visible. Moreover does it change when I output the properties in the terminal. Does anyone know what am I doing wrong? thank you the dialog is a top level widget/window (it's used to have standalone windows), and is not influenced by its parent widget. instead, you put an Item inside the dialog and to control the size you either set the one of the dialog or its internal widget Thank you for the clou, however I came across another limitation. The PlasmaCore.Dialog Component only requires a QGraphicsWidget as the mainItem. When I put a ListView into the QGraphicsWidget, it doesn't get displayed. Is there maybe any other way to bypass this problem? Thank you ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Expanding PlasmaCore.Dialog in Qml
Hey, When i use PlasmaCore.Dialog inside an Item with a fix height and width Item { id: dialogItem height: 200 width: 200 PlasmaCore.Dialog { // some stuff } onEvent: { dialogItem.height += 32 } } and try to change the height and width of the item(since dialog has no height and width property), however the height property change is not visible. Moreover does it change when I output the properties in the terminal. Does anyone know what am I doing wrong? thank you ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
IconWidget and Svg's in QML
Hey guys, I came across a certain problem when arranging a SvgItem in a row. If I have code like Row { anchors.fill: parent PlasmaWidgets.IconWidget { id: iconWidget text: Click me } // i *must* combine these Item { id: closeItem PlasmaCore.Svg { id: iconSvg imagePath: widgets/configuration-icons } PlasmaCore.SvgItem { id: closeWidget height: 32 width: 32 svg: iconSvg elementId: close } } } If you test this code you will see that the svgItem overlaps with the iconWidget. Which shouldn't be. Is there any way I can load a svg in IconWidget (like in C++) in qml? And also is there any way i can fix the code above? thanks ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: IconWidget and Svg's in QML
On Monday 09 May 2011, Onur-Hayri Bakici wrote: Hey guys, I came across a certain problem when arranging a SvgItem in a row. If I have code like Row { anchors.fill: parent PlasmaWidgets.IconWidget { id: iconWidget text: Click me } // i *must* combine these Item { id: closeItem PlasmaCore.Svg { id: iconSvg imagePath: widgets/configuration-icons } PlasmaCore.SvgItem { id: closeWidget height: 32 width: 32 svg: iconSvg elementId: close } } } If you test this code you will see that the svgItem overlaps with the iconWidget. Which shouldn't be. Is there any way I can load a svg in IconWidget (like in C++) in qml? And also is there any way i can fix the code above? just drag the PlasmaCore.Svg out of the row and will work. (nice thing if more svgitem will be neded from the same svg file they can pull out of that single Svg instance) also, i would really rather not use PlasmaWidgets.IconWidget. now we -almost- have some replacements (each one doing only a sub-thing, like only icon or only pixmap or only svg but that's nice) What are the replacements called? Are they any useful yet? ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
PopupApplet in QML
Hey folks, I would like to know how to setup a plasmoid to become a popupapplet. Thanks ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Get the sources from PlasmaCore.DataModel in QML
Hey folks, i kinda do not find a way to access the source name of a DataModel of an DataEngine. I only can access the keys the source has. Is there maybe any way I can make a workaround? Thanks. ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
[plasma-mediacenter]: Configuring the mediaservice
Hey guys, in the last weeks I continued the mediaservice from my last years google summer of code project for plasma mediacenter. At this point I can happily say, that I am pretty satisfied with developing the api. However my recent idea is configuring the service (e.g. only return 25 results of pictures from flickr). With that we should be able to bind such configuration into the main (is there any?) configuration. cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: GSoC proposal: First draft
I think it's pretty good. You pointed out the reasons of your doings, which imo are really important. Last year, I wrote two use cases in my proposal, however I don't know if something like that really fits in yours. cheers On Mon, Mar 14, 2011 at 1:51 PM, Viranch Mehta viranch.me...@gmail.com wrote: On Mon, Mar 14, 2011 at 3:28 PM, Sebastian Kügler se...@kde.org wrote: On Friday, March 11, 2011 19:28:13 todd rme wrote: Might it be good to start with the ones that are already in-progress, that way you can directly compare the the existing plasmoid code and the QML code and thus, hopefully, get a feel for how to do the porting? But the ones which are in progress are possibly the ones which get done, anyway. I don't think it's a good idea to put a GSoC student onto something people are already working on. I think I can look through some on-going work and possibly write some patches for getting familiar. Another question: All the QML plasmoids are currently in playground, right? Viranch ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Plasma mediacenter - is it still alive?
On 10.02.2011 13:59, Marco Martin wrote: On Wednesday 09 February 2011, Onur-Hayri Bakici wrote: On 08.02.2011 23:40, Marco Martin wrote: On Tuesday 08 February 2011, Marco Martin wrote: I've found the techbase-page http://techbase.kde.org/Projects/Plasma/Plasma_Media_Center and a gitorious projecthttp://gitorious.org/plasma-media-center that hasn't been updated for quite sometime. for everybody that wants to do a gsoc: put it in the wiki NOW as lidya just wrote :p http://community.kde.org/GSoC/2011/Ideas#Plasma I added one on mediacenter: if someone has different ideas, please don't hesitate to add a different one or even modify a lot that one To your idea of PMC in GSoC: It would be also cool to integrate the online media provider services into the GUI as well. I am still planning to enhance my GSoC project from last year :) absolutely! this is another thing i would love seeing it get going. it kinda depends the underlying thing being finally a bit working and stable instead of continuously drifting away What do you suggest for expanding? More plugins? cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Plasma mediacenter - is it still alive?
On 24.02.2011 22:07, Marco Martin wrote: On Thursday 24 February 2011, Onur-Hayri Bakici wrote: absolutely! this is another thing i would love seeing it get going. it kinda depends the underlying thing being finally a bit working and stable instead of continuously drifting away What do you suggest for expanding? More plugins? well, to me what matters now is to make work those we have on the data and ui side, to have something demo-able in a good way ;) Cheers, Do you have any specific task I should consider as a reference point? I want to continue on that, however I am not sure where to begin so that I can think about it. cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Featurlets for 4.7
On 11.02.2011 22:58, Marco Martin wrote: Hi all, As i can see the fixing of apply buttons is proceeding very, very well, that's awesome. props to everyone involved :) another idea aamong those lines, could be, think about a little feature you would see in 4.7 could be a new option, could be a very simple plamoid, a service or two in the paste widget, a new feature or two that are missing in the microblog plasmoid in its protocol handling (hint, i would really love to see that) in this thread talk about ideas, anything comes to your mind will do, there is already a wiki page for it http://community.kde.org/Plasma/Tasks with a table in the end to say who is doing what, to better help coordinate efforts Let ideas begin :) Cheers, Marco Martin ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel I started to extend the currenappcontrol plasmoid. Right now, when you click on the button a list of running applications shows up. I started to put a X (close window subtask) on each list entry. Moreover ( I dont know, if it was discussed or not) a rather simple idea: A plasmoid that lets popup the krunner. cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Plasma mediacenter - is it still alive?
On 10.02.2011 13:59, Marco Martin wrote: On Wednesday 09 February 2011, Onur-Hayri Bakici wrote: On 08.02.2011 23:40, Marco Martin wrote: On Tuesday 08 February 2011, Marco Martin wrote: I've found the techbase-page http://techbase.kde.org/Projects/Plasma/Plasma_Media_Center and a gitorious projecthttp://gitorious.org/plasma-media-center that hasn't been updated for quite sometime. for everybody that wants to do a gsoc: put it in the wiki NOW as lidya just wrote :p http://community.kde.org/GSoC/2011/Ideas#Plasma I added one on mediacenter: if someone has different ideas, please don't hesitate to add a different one or even modify a lot that one To your idea of PMC in GSoC: It would be also cool to integrate the online media provider services into the GUI as well. I am still planning to enhance my GSoC project from last year :) absolutely! this is another thing i would love seeing it get going. it kinda depends the underlying thing being finally a bit working and stable instead of continuously drifting away Yeah, you're right. It really has been neglected. I'll try to finish it up until the student starts his/her GSoC project. Cheers, Marco Martin ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Plasma mediacenter - is it still alive?
On 08.02.2011 23:40, Marco Martin wrote: On Tuesday 08 February 2011, Marco Martin wrote: I've found the techbase-page http://techbase.kde.org/Projects/Plasma/Plasma_Media_Center and a gitorious projecthttp://gitorious.org/plasma-media-center that hasn't been updated for quite sometime. for everybody that wants to do a gsoc: put it in the wiki NOW as lidya just wrote :p http://community.kde.org/GSoC/2011/Ideas#Plasma I added one on mediacenter: if someone has different ideas, please don't hesitate to add a different one or even modify a lot that one To your idea of PMC in GSoC: It would be also cool to integrate the online media provider services into the GUI as well. I am still planning to enhance my GSoC project from last year :) Marco Martin ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Plasma mediacenter - is it still alive?
Hey Chris, My TZ is GMT+1, I will try to be on IRC late tomorrow (monday) evening around 23:00/11pm (GMT+1). My nick will be m_abs. It can't be too late during the workdays. Your building blocks looks like a reasonable starting point to me. Personally the picture viewer isn't important to me, but I can see how it's needed. One thing I think would be a good idea is to talk about what other mediacenter-software do well and what they do that is not so good. I've mostly experience with XBMC, which is the system I'm using at the moment. I know most of it will come much later after the basic building blocks are in place, but it might give some directions. - Morten This sounds great. I will be there too, at 11.00 pm on #plasma-mediacenter. My nick is thehayro. cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
tasks engine with currentappcontrol plasmoid
Hi I recently came accross the currentappcontrol plasmoid, where it uses KWindowInfo and KWindowSystem to get all windows that are displayed in taskbar. Moreover is the counting of running applications not quite correct. Anyways i am corious why this does not get the running tasks information from the tasks engine. And would it not make sense to get the window information from there (e. g. when it comes to maximizing the window). I know you could argue against it with never touch a running system, but imo it makes the code cleaner and you could maybe add more features quickly. bests ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Improving the searchbox applet
I recently let the netbook containment on my netbook and i am really heavily impressed. Great job! Moreover i discovered the searchbox applet, which pretty much belongs to my daily use case However i also came accross tiny things that I am not 100%ly happy with. I would like to extend the applet a little bit with this idea: Since all windows disappear when you enter text in the searchbox widget, instead i would like to list the searchresults underneath the textbox widget, due to distractions in the user's workflow. Therefore it is easier for the user to return to his/her recent task. It probably will look like spotlight from apple OS but imo it is important not to disturb the user with maximized searchresults. I integrated the krunnermodel into the applet, but i did not find a reasonable view to display the searchresults. I tried Plasma::TreeView, however do not think that the searchresults should be displayed on a white background with the plasma-themed panel. My question is: What is the best recommondation to display the results that look nice on the plasma panel, without reimplementing a view? cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: [GSoC]: DataEngine queries in JavaScript
okay, that looks like a more generic query. bests ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
[GSoC]: DataEngine queries in JavaScript
Hey guys! I was thinking about the queries that should be used when querying tha addons since we mostly search for web-media i'll suggest the queries like provider:media?constraint1=value1constraint2=value2 so for example flickr:photo?text=birds //for searching photos text birds flickr:album?text=nyc //for searching albums flickr:photo?user=someRandomGuy // for searching photos from the user somerandomGuy analogue youtube:video?text=bad //for searching videos with text bad or youtube:playlist?text=bad and for collaboration: all:photo?text=bla //searches all providers with bla flickr:all?text=something //searches pictures, albums, users and maybe more with text something questions/comments? cheers? ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
GSoC: PMC: JavaScript backends progress
Hey guys! Here is a quick update about the Plasma Media Center backends in writing a dataengine in JS. The DateEngine really runs (thanks to aaron :) ) For now, it can make a flickr.photo.search requests get the response and parse the xml, and display it on the dataEngine. I had to paste the xml to script lib into my dataengine, due to include problems. I know that a JS plasmoid has a command plasmoid.include('libsomething.js'); however it doesn't work with my dataengine (although i used engine.include('libsomething.js'); ) If you are wondering why the dataengine data, such as published date or keywords is empty, then it is because of flickr: there should be a specific getPhotoInfo request when you want to get the information. the next thing is to write the fetch addons function (waiting for aaron ;) ) in this DataEngine and extract my request-response-parseXml code into an Addon. btw. i remember that the addon should have some kind of a main function? how should the addon give its information to the DateEngine? Another thing I was wondering about the MediaData API: since we merged the video and photo API together, there are still attributes that are disjunct. should i just drop them for now? the code can be found here: git://gitorious.org/lilflickr/lilflickr.git cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: GSoC: PMC: JavaScript backends progress
On Mon, Jun 28, 2010 at 1:11 PM, Alessandro Diaferia alediafe...@gmail.comwrote: 2010/6/28 Hayri Bakici theha...@gmail.com Hey guys! Here is a quick update about the Plasma Media Center backends in writing a dataengine in JS. The DateEngine really runs (thanks to aaron :) ) For now, it can make a flickr.photo.search requests get the response and parse the xml, and display it on the dataEngine. I had to paste the xml to script lib into my dataengine, due to include problems. I know that a JS plasmoid has a command plasmoid.include('libsomething.js'); however it doesn't work with my dataengine (although i used engine.include('libsomething.js'); ) If you are wondering why the dataengine data, such as published date or keywords is empty, then it is because of flickr: there should be a specific getPhotoInfo request when you want to get the information. the next thing is to write the fetch addons function (waiting for aaron ;) ) in this DataEngine and extract my request-response-parseXml code into an Addon. btw. i remember that the addon should have some kind of a main function? how should the addon give its information to the DateEngine? Another thing I was wondering about the MediaData API: since we merged the video and photo API together, there are still attributes that are disjunct. should i just drop them for now? Which one of them? We can eventually use an associative array though. it was duration, and embeddedHTML for Video. for Photo there is albumID, but i think we can firstly ignore that. the code can be found here: git://gitorious.org/lilflickr/lilflickr.git cheers ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel I'm really happy with the progresses you reached so far! Keep rocking :) Cheers. -- Alessandro Diaferia KDE Developer KDE e.V. member ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: Fwd: [Bug 207902] launcher support in libtaskmanager
Still, that would be a really really cool feature ! keep it up ;) On Tue, Jun 15, 2010 at 1:16 PM, Emdek emd...@gmail.com wrote: Om 15-06-2010 at 09:58:21 Anton Kreuzkamp akreuzk...@web.de wrote: I think I can have a look at it at the weekend. But I'm a really unexperienced programmer so don't have too much hope (I will report if I'm able to do it) Well, I was working on launchers support for my applet Fancy Tasks that currently uses this library and I can say that I'm not sure if it's good idea to extend current library. Launchers support is rather not small feature that could be added without preparation during one weekend, especially if you need to stuff it to library that wasn't designed to support this concept. And there is also need to add support from applet side. I was working on new library (concept described somewhere on this ML some months ago) that will replace libtaskmanager in my applet (it's easier to write new that fits than adding workarounds to make it work correctly with launchers etc.) but it's suspended currently (lack of time - studies and work). -- Best regards, Michal ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel
Re: [Plasma Media Center] meeting planning
12th 8am - 3pm UTC 13th 8am - 3.30pm UTC 14th 8am - 12pm UTC Onur-Hayri (thehayro) ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel