"Calendar" plugin (1 Viewer)

hakuna

Portal Pro
October 15, 2004
395
1
48
Gothenburg
Home Country
Sweden Sweden
Another obvious thing would be to also show Outlook's calendar objects.
With web sync, this would mean your wife could check your work calendar! Good? I don't know...
 

carreno

Moderateur
  • Premium Supporter
  • July 31, 2005
    251
    25
    36
    France
    Home Country
    France France
    ByteFrenzy said:
    Hello Carreno,

    Probably I am way too early with this - you probably still have a ton of development planned.. But I think this is such a good idea that I want to give some feedback already! This is one of the things that can improve the WAF (wife says: "hey, you mean it can actualy do something USEFUL?')...

    - depending on screen size the columns in the actual calender are out of alignment

    - I did not expect it, but it actually already handles languages very nicely. The only exception are the weekday letters at the top of the calendar. I think you could get the weekday strings just like you do for the months and trim them to the first letter.

    - the user has to be able to change the year. By Christmas I will want to know what January 2006 is going to look like...

    - to be really useful, in addition to displaying the calendar, how about the possibility to add events and highlight them in the calendar? Maybe add little icons for scheduled recordings (from the planner) .

    - how about getting one of those trivia of the day from the internet? "Today, in 1836, Dr. Bellcaire from Paris built the first working computer but it was lost in the mail and everybody eventually forgot all about it"...

    I'm really looking forward to the beta of this plugin!

    Cheers and keep up the good work,

    René

    It is noted. But I begin, thus without assistance, I would arrive at nothing.

    For the moment, I waits until Smirnuff shows me for the buttons.

    :wink:
     

    Smirnuff

    Portal Pro
    December 7, 2004
    630
    3
    United Kingdom
    Sorry carreno, this completely slipped my mind, I do need reminding often!

    I had originally planned to put a bit more time and effort into this as its definately something that will have value in future plugins but there hasn't been enough of it to do so.

    Here's what you can do:


    Code:
    		protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
    		{
    			if(control == jan)
    			{
    				// adjust display for January
    			}
    			else if(control == feb)
    			{
    				// adjust display for February
    			}
    
    				// ...
    				// ...
    				// ...
    
    			else if(control == dec)
    			{
    				// adjust display for December
    			}
    		}

    Tips:

    Using a GridLayout will make it easier to position the components within the calendar (see the sticky post on Skinning Engine Improvements in this forum).

    Consider using something like the following id scheme for the row items:

    Row 1: 101 102 103 104 105 106 107
    Row 2: 201 202 203 204 205 206 207
    Row 3: 301 302 303 304 305 306 307
    Row 4: 401 402 403 404 405 406 407
    Row 5: 501 502 503 504 505 506 507

    There are lots of ways in which you could implement this, feel free to send me the project (smirnuff@gmail.com) and I'll try and take a look but can't promise that its going to be before the end of the weekend.

    Cheers,
    Smirnoff.
     

    devo

    Retired Team Member
  • Premium Supporter
  • September 2, 2004
    215
    0
    Canada
    Looks go so far,

    In the next version of the alarm plugin I will be allowing other plugins such as this one to "hook" into it very easily without touching the alarm plugin code.

    I would also be interested once you get this working so I may display alarms in a calendar type view.

    Perhaps at some point these two plugins will be combined into a scheduling / alarm plugin as well.

    Just some ideas as where this could go.
     

    carreno

    Moderateur
  • Premium Supporter
  • July 31, 2005
    251
    25
    36
    France
    Home Country
    France France
    Code:
    protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
    		{
    			if(control == jan)
    			{
    				// adjust display for January
    			}
    			else if(control == feb)
    			{
    				// adjust display for February
    			}
    			if(control == mar)
    			{
    				// adjust display for March
    			}
    			else if(control == apr)
    			{
    				// adjust display for April
    			}
    			if(control == may)
    			{
    				// adjust display for May
    			}
    			else if(control == jun)
    			{
    				// adjust display for June
    			}
    			if(control == jul)
    			{
    				// adjust display for July
    			}
    			else if(control == aug)
    			{
    				// adjust display for August
    			}
    			if(control == sep)
    			{
    				// adjust display for September
    			}
    			else if(control == nov)
    			{
    				// adjust display for November
    			}
    			if(control == oct)
    			{
    				// adjust display for October
    			}
    			else if(control == dec)
    			{
    				// adjust display for December
    			}

    I already do not manage to make function the buttons.:roll:

    I believe that I will let make the professionals, because I could not satisfy your wishes.
    :wink:
     

    Users who are viewing this thread

    Top Bottom