Thursday 22 August 2013

Clock with calendar : Gsoc update

Well , I have been working on clock with calendar right after I ported window list and trash can .

And yes , it is "beast" of all the plasmoids .

I managed to implement one ,yes,  a basic one for now .It shows the events of the clicked date's month and those events that touches it .Further , it shows "No events founds" when the clicked date does not conatins any events .I also implemented containsTodoItems apart from other functionalities :) under +Mark Gaiser  and +Marco Martin  guidance  .

At present +Mark Gaiser  's calendar component is  used for it .The current date is shown under the blue border as in c++ plasmoid .

It is a way alike now ;) .

Also I used split function to have only a substring (event,todo or journal ) in EventList from the called string .I used ScrollArea for the EventList .

And I did a few javascript functions to implement the functionalities as well as a few functions in calendar.cpp itself .

It looks a much better after +Marco Martin suggested to have some indentation and follow white space coding .It presently uses QDate as for now .

The toolbar shows current date and week number by default .

There are two models used : setSelectedDay model : which shows the clicked date's events,todo or journal and upcomingDays model : which shows the upcoming events in case no events ,todo or journal is found .


Do check it out ;)


It is available at heenamahour/gsoc branch under kde-workspace and kdepim-runtime


That is all for now :)

And yes , window-list and trashcan are ported to plasma 2 (work is in progress ;) in parallel with calendar plasmoid :D ..)


5 comments:

  1. One thing I disliked in the current plasmoid is that it shows the same event (as an example: holidays) once per day if it spans multiple days.

    So if I had a holiday for two weeks, the plasmoid had 14 entries for it. It would be awesome if this was fixed :)

    ReplyDelete
  2. @Anonymous, you consider that a "bug". Others consider your described behaviour a bug. In all honesty, a simple plain list - which the upcoming events stuff is - just doesn't allow for a neat way to show events that overlap more then one day.

    A view that does allow for a nice visualisation is a sort of timeline view. That alone is difficult to make and not a goal in this project. So yes, your "bug" is going to be in this new calendar. Remember, the goal is to _exactly_ re-create the calendar popup in QML in a visual parity manner. Not to change it, that comes later.

    ReplyDelete
    Replies
    1. Ah well, at least it is easier to modify it to my needs now, as I already do with other QML plasmoids. Yay for less recompiling :)

      Delete
  3. Screeshots would be nice.

    ReplyDelete
    Replies
    1. Sure , I will upload them soon .Anyways you can pull out from my branch heenamahour/gsoc from kde-workspace and kdepim-runtime :) and view it using plasmoidviewer .
      Cheers!

      Delete

Enter your text here .....