From ce6939b848eb228ec705aac4c8de6cfec16ecd10 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 17 Jul 2003 12:00:40 +0000 Subject: new base class for calendar views. 2003-07-17 Rodrigo Moya * gui/e-cal-view.[ch]: new base class for calendar views. * gui/e-day-view.[ch]: * gui/e-week-view.[ch]: base these classes on ECalView. * gui/Makefile.am: added new files. svn path=/trunk/; revision=21854 --- calendar/gui/e-cal-view.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 calendar/gui/e-cal-view.h (limited to 'calendar/gui/e-cal-view.h') diff --git a/calendar/gui/e-cal-view.h b/calendar/gui/e-cal-view.h new file mode 100644 index 0000000000..bbcfbc8990 --- /dev/null +++ b/calendar/gui/e-cal-view.h @@ -0,0 +1,55 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + +/* + * Author : + * Rodrigo Moya + * + * Copyright 2003, Ximian, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ +#ifndef _E_CAL_VIEW_H_ +#define _E_CAL_VIEW_H_ + +#include + +G_BEGIN_DECLS + +/* + * EView - base widget class for the calendar views. + */ + +#define E_CAL_VIEW(obj) GTK_CHECK_CAST (obj, e_cal_view_get_type (), ECalView) +#define E_CAL_VIEW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, e_cal_view_get_type (), ECalViewClass) +#define E_IS_CAL_VIEW(obj) GTK_CHECK_TYPE (obj, e_cal_view_get_type ()) + +typedef struct _ECalView ECalView; +typedef struct _ECalViewClass ECalViewClass; +typedef struct _ECalViewPrivate ECalViewPrivate; + +struct _ECalView { + GtkTable table; + ECalViewPrivate *priv; +}; + +struct _ECalViewClass { + GtkTableClass parent_class; +}; + +GType e_cal_view_get_type (void); + +G_END_DECLS + +#endif -- cgit