aboutsummaryrefslogblamecommitdiffstats
path: root/calendar/year-view.h
blob: 0638698fb453655e6ad8fec23ae7df9595d8251c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                              


                                                  

                                                    




                   
                                
                      

                             



                 




                                                                                                 

 

                                            
 

                           
 




                                                                               

  

                                      


  













                                                                         




               
/* Year view display for gncal
 *
 * Copyright (C) 1998 The Free Software Foundation
 *
 * Authors: Arturo Espinosa <arturo@nuclecu.unam.mx>
 *          Federico Mena <federico@nuclecu.unam.mx>
 */

#ifndef YEAR_VIEW_H
#define YEAR_VIEW_H

#include <libgnome/gnome-defs.h>
#include "gnome-cal.h"
#include "gnome-month-item.h"


BEGIN_GNOME_DECLS


#define TYPE_YEAR_VIEW            (year_view_get_type ())
#define YEAR_VIEW(obj)            (GTK_CHECK_CAST ((obj), TYPE_YEAR_VIEW, YearView))
#define YEAR_VIEW_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), TYPE_YEAR_VIEW, YearViewClass))
#define IS_YEAR_VIEW(obj)         (GTK_CHECK_TYPE ((obj), TYPE_YEAR_VIEW))
#define IS_YEAR_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_YEAR_VIEW))


typedef struct _YearView YearView;
typedef struct _YearViewClass YearViewClass;

struct _YearView {
    GnomeCanvas canvas;

    GnomeCalendar *calendar;    /* The calendar we are associated to */

    GnomeCanvasItem *heading;   /* Big heading with year */
    GnomeCanvasItem *titles[12];    /* Titles for months */
    GnomeCanvasItem *mitems[12];    /* Month items */
};

struct _YearViewClass {
    GnomeCanvasClass parent_class;
};


/* Standard Gtk function */
GtkType year_view_get_type (void);

/* Creates a new year view widget associated to the specified calendar */
GtkWidget *year_view_new (GnomeCalendar *calendar, time_t year);

/* Notifies the year view that a calendar object has changed */
void year_view_update (YearView *yv, iCalObject *ico, int flags);

/* Notifies the year view about a change of date */
void year_view_set (YearView *yv, time_t year);

/* Notifies the year view that the time format has changed */
void year_view_time_format_changed (YearView *yv);


END_GNOME_DECLS

#endif