Saturday, 14 September 2013

Plasma 2 plasmoids this summer



      
  Window list plasmoid 










The main thing to be taken care of in this plasmoid is "data engine" .


I used tasksSouce in window list .And also to highlight the selected menu item I 





used PlasmaCore.FrameSvgItem .The text displaying the menu items become italics in case that window is minimised .

Further I have made it a PopUpApplet .

It shows the list of active windows on full view and collapses to icon on desktop panel .So,I managed to do it . 

I made new service for these actions since they require an empty source . Ofcourse ,these actions can be done by a source(by using the Ids on connectSources() also but then there is always a case when there is no window that is active at the moment) .

Therefore , empty source is required.Further , I added cascade and unclutter actions in tasks data engine by using asynch call to kwin interface using QDBusInterface .

 Also , the active window is enclosed withing PlasmaComponents.Highlight just like Actions and Desktop titles while highlight is shown by FrameSvg .






                               
     Digital Clock   




I made a basic component independent of akonadi,kdepimlibs and kdepim-runtime for now as kdepim-runtime is not yet ported to kf5 .It works fine with all the functionalities using a plugin calendar used for this purpose . 




The screenshot is self explanatory .

The bottom row toolbar shows current week and day by default with the calendar icon pointing to the current month.
 The upper toolbar helps to go to next month , previous month , next year , previous year and shows a context menu on clicking the month .
The current day is shown by a blue border .
On entering mouse event is shown by light grey color and on clicked mouse event is shown by black border .




TrashCan



This was pretty simple after I tried out calendar and window list .
But the kio trash was not yet ported fully so with the help of +Marco Martin it is working now .
It displays query dialog too just like the plasma1 plasmoid I made and the original trashcan . :)

That was a summary of my final evaluation work , and yes a digital clock in plasma 1 is too ported as in my previous blog .
I hope you will try it out !
Cheers !




6 comments:

  1. Can somebody please fix how plasma widgets are resized. It always bothered me that I cannot use the borders as it is the case for normal windows?
    If Plasma 2 is coming, someone should take care of it. And please remove the rotate button. This was a stupid idea anyways. Has ever anyone found it useful to rotate a widget by 20 degrees?

    ReplyDelete
    Replies
    1. Rotate button seems fine to me , dont think it is a stupid idea as it can help you to rotate widgets in case you need it . :)
      Anyways you can further discuss about it in mailing list :)
      Regards

      Delete
  2. Small correction: whether or not kdepim-runtime has been ported to KF5 is of no impact to the calendar applet.

    The kdepim-runtime module contains, among other things, KDE's implementation of background Akonadi clients.
    By their nature they are independent of any UI client of Akonadi and vice versa.

    The only thing an UI clients needs is a protocol implementation for accessing Akonadi server, one of which is part of kdepimlibs.
    So the missing part is kdepimlibs not being ported to Qt5/KF5 yet.

    ReplyDelete
  3. Please, please, PLEASE make it easier to differentiate the difference between a holiday and today on the calendar. The current Date/time widget just makes everything different colors but you have to guess which one is for today...

    ReplyDelete
    Replies
    1. Hey :)
      Sure , would keep that in mind , but actually right now a basic one is ported to plasma2 but will then discuss about it with the plasma developers as soon as kdepimlibs and akonadi are ported against kf5 .
      Thanks for your suggestions :)
      Cheers!

      Delete

Enter your text here .....