This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Get Hot New Stuff 1

Tags: ghns, course ghns, course ghns, course
(comma "," separated)
Dynamite
Registered Member
Posts
3
Karma
0
OS

Re: Get Hot New Stuff 1

Fri Feb 19, 2010 4:39 pm
Still alive!

I have changed KDM to KNewStuff3 in both dialogs (Wallpaper and Theme).

Diff: http://www.pastebin.org/94085

Updated KCM Style.

Diff: http://www.pastebin.org/94107
briank
Registered Member
Posts
7
Karma
0
OS

Re: Get Hot New Stuff 1

Sat Feb 20, 2010 1:20 am
frederik wrote:Both makes me happy :) Let's talk on IRC about this idea.


Haven't been able to catch you on IRC yet, but I have done a bit of work on getting something compiling...
Nothing actually works yet but I do have a nice database backed empty window. :)

source is here :http://gitorious.org/book-manager/book-manager if anyones interested.
_eti_
Registered Member
Posts
8
Karma
0
OS

Re: Get Hot New Stuff 1

Sat Feb 20, 2010 1:26 pm
frederik wrote:
_eti_ wrote:By the way, tanks for the intruduction it alredy gave some usfull tip's. Kde-edu ist compiling...

Hi _eti_, does that mean you have KAnagram working now? Please let me know what more help you need :)


Yes, it's working (Well, almost). I just have a little problem: The downloaded words don't show up in the list. And when i want to deinstall them, i get a dublicate entry in the KNS3 dialog.

I also tried to put the KNS3 dialog directly in the configdialog (as a page). It works, but dosn't realy fit in (close Button and the duble title).

Kanagram:
http://www.pastebin.com/m56865765

KWordQuiz:
http://www.pastebin.com/m390c2a25

Last edited by _eti_ on Mon Feb 22, 2010 8:39 pm, edited 1 time in total.
deltaecho
Registered Member
Posts
18
Karma
0
OS

Re: Get Hot New Stuff 1

Sat Feb 20, 2010 3:52 pm
Cool! Here are two more:

Ksirk: http://pastebin.com/f15b1ee8a
Kigo: http://pastebin.com/f163a5df5


"Many of life's failures are people who did not realize how close they were to success when they gave up."
Thomas Edison
User avatar
Dario_Andres
Mentor
Posts
67
Karma
3
OS

Re: Get Hot New Stuff 1

Sun Feb 21, 2010 6:46 pm
Small bug-fixing related note (for frederik and students):

There are a few bug reports related to KCMs using GetHotNewStuff2 (the prior version of the framework). Those bugs are going to be fixed with the port to the new version 3.

Splash Theme Installer KCM: Bug #223004
Plasma Theme Installer (Style) KCM: Bug #222060
Icon Theme Installer KCM: Bug #212251, Bug #208299.

Remember to close the bug reports (or ping any person allowed to close them) once these KCMs are ported to GetHotNewStuff3

Thanks in advance
Darío A. (bugs.kde.org)
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Mon Feb 22, 2010 10:54 am
Daniel84 wrote:Does the same provider-url work? Or are there server-side changes needed?


I had skipped this question I just noticed. So this is a good time to write a short explanation about the feeds.

KNewStuff3 is backwards compatible, so it can deal with the xml from kns2 just fine. The problem with using the old xml is that it is statically generated, that means that it doesn't support the fancy stuff like searching on the server side. So yes, the old feeds work, but it is desirable to change to the new api where available. For the application itself, no change is needed. The only change is the url. The type of feed is detected from the file. You can manually check these files.

The problem is that not all servers support the "Open Collaboration Services" API. In practice, only things hosted on openDesktop.org (or any of it's sister sites such as kde-look.org etc) supports the new API.

The files hosted by data.kstuff.org and the main kde sites cannot benefit from this. But if the ProvidersUrl is http://download.kde.org/khotnewstuff/feedname.xml, it points to openDesktop and should be changed.

So if the file is hosted there, you should change:
Code: Select all
[KNewStuff2]
ProvidersUrl=http://download.kde.org/khotnewstuff/aurorae-providers.xml

would become:
Code: Select all
[KNewStuff3]
ProvidersUrl=http://download.kde.org/ocs/providers.xml
Categories=Window Decoration native KDE 4


KConfig is used to read the .knsrc files.
http://techbase.kde.org/Development/Tutorials#Managing_Configuration_Data_With_KConfig

Note that the Categories can actually be more than one. KConfig uses commas (,) to separate strings.
Parley for example also reads KWordQuiz files:
Code: Select all
Categories=Parley,KWordQuiz
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: Get Hot New Stuff 1

Mon Feb 22, 2010 11:59 pm
Here are my two patches before I go to bed:

And some comments/questions:

1. General
a) Uninstalling doesn't seem to work - is there anything special I need to do?
b) Now the dialogs became modular, is this desirable?

2. Kopete
a) Kopete doesn't appear to have a .knsrc file (or I've somehow failed to find it) - should I create one instead of using KConfigGroup?
b) I couldn't get
Code: Select all
ProvidersUrl=http://download.kde.org/ocs/providers.xml

to work. What's the category for Kopete Styles 0.12+? I tried to use
Code: Select all
Categories=Window Decoration native KDE 4

but that didn't work either.

3. Step
a) Should I create a KNS3::Entry::List entries variable even if it's not used?

For the remaining time I would like to iron out these issues, and if possible, implement Sharing (uploading) Experiments in Step.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 11:03 am
_eti_ wrote:Is there an easy way to just compile one small application, i.e kanagram?


If you have already run cmake, you can go into a sub directory (e.g. build/kanagram) of the build dir and just run make (install) from there.
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 11:26 am
deltaecho: I applied the patch to kalzium, it's in svn now.
Dynamite: I have looked at your patches and they look good. Currently my systemsettings are a bit borked, so I can't run them as root (in order to test the patch). Also I spoke with the polkit maintainer, and in the long term this kcm should be using polkit to allow users to install the kdm stuff system wide.
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 11:26 am
_eti_ wrote:Kanagram:
http://www.pastebin.com/m56865765

I would rename the "New Stuff" to "Download Languages" or something similar.
The languages in the configuration dialog are not updated any more when a new language pack has been downloaded, do you think you can make that work again?
I am currently thinking about creating a new stuff widget without the title and close button. It will just require some thought, but enable you to embed it without showing the extra title and button.
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 11:34 am
KWordQuiz:
it would be nice to add the Categories=KWordQuiz,Parley line to this one, in order to make it future prove. I will change the feed on the edu.kde.org website to include kde-files.org then.

In kwordquiz.h the class forward declaration is not needed.

kwordquiz.cpp:
there is a KNS3::standardAction, no need to create the KAction on your own.
http://api.kde.org/4.x-api/kdelibs-apidocs/knewstuff/html/namespaceKNS3.html#af739902e82cda7d2e2886c517e5ef05b

It would be nice if you posted that patch on reviewboard.kde.org.
Thanks!
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 2:30 pm
Ok, kigo and ksirk are committed :)
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 2:47 pm
Hans wrote:1. General
a) Uninstalling doesn't seem to work - is there anything special I need to do?
b) Now the dialogs became modular, is this desirable?

For me uninstalling works in Step. I have not looked at kopete yet.

Modal dialogs: if a dialog is modular, it blocks the application as long as it is active. In the case of Step, I find this acceptable. For plasma this would not be ok, since then the user cannot use the panel for example. It is your choice whether a dialog is modal or not. You can show the dialog with dialog.exec() or dialog.open().
The Qt documentation explains this in detail:
http://doc.trolltech.com/4.6/qdialog.html
If you use the modeless dialog.open(), you need to connect to at least one of the accepted/rejected/finished signals to get notified when the dialog is closed.
User avatar
frederik
Moderator
Posts
37
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 2:49 pm
For Step, I think that upload should be implemented - anyone up for grabbing this one? It needs a little more work and since upload only works for openDesktop.org, it needs a new category there (I can ask Frank to create that).
Hans will work on this.
(updated, to make it understandable)
_eti_
Registered Member
Posts
8
Karma
0
OS

Re: Get Hot New Stuff 1

Wed Feb 24, 2010 8:51 pm
thanks for the feedback:D

Hans wrote:Uninstalling doesn't seem to work - is there anything special I need to do?

Had the same problem myself. Strange, but somehow it works now for me...

frederik wrote:The languages in the configuration dialog are not updated any more when a new language pack has been downloaded, do you think you can make that work again?

Yes, i thought there is somthing wrong;) At the moment kAnagram won't start at all (It says: "The file reader failed."). Will try to fix it in the next Days.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Sogou [Bot], Yahoo [Bot]