aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-view-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-view-factory.c')
-rw-r--r--calendar/gui/calendar-view-factory.c222
1 files changed, 0 insertions, 222 deletions
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c
deleted file mode 100644
index f8d2d92ce3..0000000000
--- a/calendar/gui/calendar-view-factory.c
+++ /dev/null
@@ -1,222 +0,0 @@
-/* Evolution calendar - Generic view factory for calendar views
- *
- * Copyright (C) 2001 Ximian, Inc.
- *
- * Author: Federico Mena-Quintero <federico@ximian.com>
- *
- * 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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <glib.h>
-#include <libgnome/gnome-i18n.h>
-#include "calendar-view-factory.h"
-#include "calendar-view.h"
-
-
-
-/* Private part of the CalendarViewFactory structure */
-struct _CalendarViewFactoryPrivate {
- /* Type of views created by this factory */
- GnomeCalendarViewType view_type;
-};
-
-
-
-static void calendar_view_factory_class_init (CalendarViewFactoryClass *class);
-static void calendar_view_factory_init (CalendarViewFactory *cal_view_factory);
-static void calendar_view_factory_finalize (GObject *object);
-
-static const char *calendar_view_factory_get_title (GalViewFactory *factory);
-static const char *calendar_view_factory_get_type_code (GalViewFactory *factory);
-static GalView *calendar_view_factory_new_view (GalViewFactory *factory, const char *name);
-
-static GalViewFactoryClass *parent_class = NULL;
-
-
-
-E_MAKE_TYPE (calendar_view_factory, "CalendarViewFactory", CalendarViewFactory,
- calendar_view_factory_class_init, calendar_view_factory_init, GAL_VIEW_FACTORY_TYPE);
-
-/* Class initialization function for the calendar view factory */
-static void
-calendar_view_factory_class_init (CalendarViewFactoryClass *class)
-{
- GalViewFactoryClass *gal_view_factory_class;
- GObjectClass *gobject_class;
-
- parent_class = g_type_class_peek_parent (class);
-
- gal_view_factory_class = (GalViewFactoryClass *) class;
- gobject_class = (GObjectClass *) class;
-
- gal_view_factory_class->get_title = calendar_view_factory_get_title;
- gal_view_factory_class->get_type_code = calendar_view_factory_get_type_code;
- gal_view_factory_class->new_view = calendar_view_factory_new_view;
-
- gobject_class->finalize = calendar_view_factory_finalize;
-}
-
-/* Object initialization class for the calendar view factory */
-static void
-calendar_view_factory_init (CalendarViewFactory *cal_view_factory)
-{
- CalendarViewFactoryPrivate *priv;
-
- priv = g_new0 (CalendarViewFactoryPrivate, 1);
- cal_view_factory->priv = priv;
-}
-
-/* Finalize method for the calendar view factory */
-static void
-calendar_view_factory_finalize (GObject *object)
-{
- CalendarViewFactory *cal_view_factory;
- CalendarViewFactoryPrivate *priv;
-
- g_return_if_fail (object != NULL);
- g_return_if_fail (IS_CALENDAR_VIEW_FACTORY (object));
-
- cal_view_factory = CALENDAR_VIEW_FACTORY (object);
- priv = cal_view_factory->priv;
-
- g_free (priv);
- cal_view_factory->priv = NULL;
-
- if (G_OBJECT_CLASS (parent_class)->finalize)
- (* G_OBJECT_CLASS (parent_class)->finalize) (object);
-}
-
-
-
-/* get_title method for the calendar view factory */
-static const char *
-calendar_view_factory_get_title (GalViewFactory *factory)
-{
- CalendarViewFactory *cal_view_factory;
- CalendarViewFactoryPrivate *priv;
-
- cal_view_factory = CALENDAR_VIEW_FACTORY (factory);
- priv = cal_view_factory->priv;
-
- switch (priv->view_type) {
- case GNOME_CAL_DAY_VIEW:
- return _("Day View");
-
- case GNOME_CAL_WORK_WEEK_VIEW:
- return _("Work Week View");
-
- case GNOME_CAL_WEEK_VIEW:
- return _("Week View");
-
- case GNOME_CAL_MONTH_VIEW:
- return _("Month View");
-
- default:
- g_assert_not_reached ();
- return NULL;
- }
-}
-
-/* get_type_code method for the calendar view factory */
-static const char *
-calendar_view_factory_get_type_code (GalViewFactory *factory)
-{
- CalendarViewFactory *cal_view_factory;
- CalendarViewFactoryPrivate *priv;
-
- cal_view_factory = CALENDAR_VIEW_FACTORY (factory);
- priv = cal_view_factory->priv;
-
- switch (priv->view_type) {
- case GNOME_CAL_DAY_VIEW:
- return "day_view";
-
- case GNOME_CAL_WORK_WEEK_VIEW:
- return "work_week_view";
-
- case GNOME_CAL_WEEK_VIEW:
- return "week_view";
-
- case GNOME_CAL_MONTH_VIEW:
- return "month_view";
-
- default:
- g_assert_not_reached ();
- return NULL;
- }
-}
-
-/* new_view method for the calendar view factory */
-static GalView *
-calendar_view_factory_new_view (GalViewFactory *factory, const char *name)
-{
- CalendarViewFactory *cal_view_factory;
- CalendarViewFactoryPrivate *priv;
- CalendarView *cal_view;
-
- cal_view_factory = CALENDAR_VIEW_FACTORY (factory);
- priv = cal_view_factory->priv;
-
- cal_view = calendar_view_new (priv->view_type, name);
- return GAL_VIEW (cal_view);
-}
-
-
-
-/**
- * calendar_view_factory_construct:
- * @cal_view_factory: A calendar view factory.
- * @view_type: Type of calendar views that the factory will create.
- *
- * Constructs a calendar view factory by setting the type of views it will
- * create.
- *
- * Return value: The same value as @cal_view_factory.
- **/
-CalendarViewFactory *
-calendar_view_factory_construct (CalendarViewFactory *cal_view_factory,
- GnomeCalendarViewType view_type)
-{
- CalendarViewFactoryPrivate *priv;
-
- g_return_val_if_fail (cal_view_factory != NULL, NULL);
- g_return_val_if_fail (IS_CALENDAR_VIEW_FACTORY (cal_view_factory), NULL);
-
- priv = cal_view_factory->priv;
-
- priv->view_type = view_type;
-
- return cal_view_factory;
-}
-
-/**
- * calendar_view_factory_new:
- * @view_type: Type of calendar views that the factory will create.
- *
- * Creates a new factory for calendar views.
- *
- * Return value: A newly-created calendar view factory.
- **/
-CalendarViewFactory *
-calendar_view_factory_new (GnomeCalendarViewType view_type)
-{
- CalendarViewFactory *cal_view_factory;
-
- cal_view_factory = g_object_new (TYPE_CALENDAR_VIEW_FACTORY, NULL);
- return calendar_view_factory_construct (cal_view_factory, view_type);
-}
onts?id=363c43dded982e29cdd554a60aa5cb7193373389'>Add SIZE data.olgeni2004-03-196-0/+6 * Update to 4.7, patch 1. Notable changes in this release:naddy2004-03-195-43/+36 * Add size data, approved by maintainers.trevor2004-03-192-0/+2 * - Add SIZE to GNOME portspav2004-03-181-0/+1 * SIZEify.trevor2004-03-183-0/+3 * Add libXft after a repo-copy from Xft and update to 2.1.5. libXft is simplymarcus2004-03-173-6/+6 * Remove Xft. This port has been renamed libXft.marcus2004-03-176-106/+0 * "Update" to 2.2.2, the latest stable release with a PORTEPOCH bump.marcus2004-03-176-678/+19 * o Bump $LIB_DEPENDS line to chase expat's shlib version.kuriyama2004-03-141-2/+2 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * Avoid "size unknown" error by setting DISABLE_SIZE.trevor2004-03-131-0/+1 * - Style: s/@freebsd.org/@FreeBSD.org/pav2004-03-041-1/+1 * - Fix MASTER_SITESclement2004-02-231-1/+1 * Apply studly caps to "FreeBSD".trevor2004-02-071-1/+1 * Use PLIST_FILES (bento-tested, marcus-reviewed).trevor2004-02-0614-7/+7 * Use PLIST_FILES.trevor2004-02-068-5/+5 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-0410-6/+10 * patch fromtrevor2004-02-014-12/+4 * Make fetchable, add some mirrors from gimp-devel.olgeni2004-01-301-1/+5 * SIZEify.trevor2004-01-308-0/+9 * Add size data.trevor2004-01-281-0/+1 * Add size data.trevor2004-01-281-0/+1 * Update to 1.4.1anholt2004-01-253-16/+5 * No member of the kde@ team has touched anything related to Qt2 in ages, sowill2004-01-241-1/+1 * Use the CPIO macro defined in bsd.port.mk.trevor2004-01-221-1/+1 * New port: Prerelease version of libXfont from freedesktop.org:anholt2003-12-225-0/+60 * - Use canonical form (ports@FreeBSD.org) in MAINTAINER linesergei2003-12-211-1/+1 * s/rpm2cpio/rpm2cpio.pl/ after the recent update of archivers/rpm2cpio (thenetchild2003-12-125-10/+10 * Add Code2000, a shareware Unicode reference font. It contains over 34000 glyphs!pav2003-12-096-0/+158 * - On many systems, ttmkfdir was the only reason to install freetype1.pav2003-12-096-103/+59 * Fix packing list.trevor2003-11-213-3/+6 * Define USE_PERL5_BUILD, not erroneous USE_PERL.trevor2003-11-201-1/+1 * Define USE_PERL to make Perl available for (mostly deprecated)trevor2003-11-201-0/+1 * new port providing Truetype fonts to use with Linux programstrevor2003-11-204-0/+57 * Decrease PORTREVISION from 2 to 0. I hope no one has installedtrevor2003-11-193-0/+3 * new Linux/i386 binary port of Fontconfigtrevor2003-11-1910-0/+163 * USE_REINPLACE need be defined only when REINPLACE_CMD is used.trevor2003-11-173-3/+0 * Move these ports to the new arabic category after the repocopies. Fixwill2003-11-1620-368/+0 * Switch MAINTAINER to x11@FreeBSD.org for group maintaining of these ports.anholt2003-11-126-6/+6 * utilize SITE_PERLijliao2003-10-243-87/+86 * Make fetchable.trevor2003-10-211-1/+2 * New Port: x11-fonts/ppantsfontsedwin2003-10-037-0/+62 * New arabic port: khototedwin2003-10-035-0/+84 * New arabic port: kacst_fontsedwin2003-10-036-0/+68 * New arabic port: ae_fonts_ttfedwin2003-10-036-0/+154 * New arabic port: ae_fonts_monoedwin2003-10-036-0/+62 * Update vertion to 1.2.1taoka2003-09-303-4/+4 * Fix typo in MASTER_SITES, add MASTER_SITE_SUBDIR.olgeni2003-09-283-3/+6 * Cease FreeBSD port maintainershipsedwin2003-09-241-1/+1 * Add a new MASTER_SITE since the Fontconfig site went away.marcus2003-09-183-4/+3 * Remove fontilus. It has been rolled into gnomecontrolcenter2.marcus2003-09-186-79/+0 * Bump PORTREVISION for previous commit.kris2003-08-171-1/+1 * Switch to tcl/tk 8.4 and add tcl84 virtual categorykris2003-08-171-3/+3 * 1) Move install code to Makefile rather than in patch.olgeni2003-08-034-48/+13 * RESTRICTED implies NO_CDROM and NO_PACKAGEkris2003-07-311-2/+0 * a) Fix some additional undetected fonts,maho2003-07-282-11/+18 * Updated the foundries. Especially for print/gsfont (See also PR #54647)maho2003-07-271-0/+107 * Fix dependence on rpm2cpio.trevor2003-07-201-2/+2 * This is a first for me. Correct a typo in the patch _name_ so the patchmarcus2003-07-192-1/+1 * Revert some of the FreeType code in fontconfig to fix some font renderingmarcus2003-07-192-1/+644 * Fix a problem with certain languages not having any fonts in Mozilla andmarcus2003-07-192-0/+16 * Update to 2.2.90.marcus2003-07-183-2/+4 * Correct misplaced spacesarved2003-07-101-2/+2 * Remove WWW tag: the referenced page does not say anything about the fontsolgeni2003-07-032-4/+0 * Unbreak fetch: use MASTER_SITES_SOURCEFORGE.olgeni2003-06-301-1/+1 * Use MASTER_SITES_SOURCEFORGE.olgeni2003-06-301-1/+1 * Unbreak fetch using MASTER_SITES_SOURCEFORGE.olgeni2003-06-301-1/+1 * update maintainer's email address.leeym2003-06-241-2/+2 * Update to 2.2.1.marcus2003-06-182-2/+2 * Utilize USE_GNOME= pkgconfig.adamw2003-06-171-3/+1 * Change to my FreeBSD.org addresserwin2003-06-131-1/+1 * Fix master siteache2003-06-021-1/+1 * imaintainer-update x11-fonts/p5-Font-TTF to 0.34edwin2003-05-222-2/+2 * Update to 2.1.2. This wraps up a lot of our patches, and fixes some othermarcus2003-05-1522-992/+120 * Reset Maintainer addressarved2003-04-301-1/+1 * Always use "/etc/X11/XF86Config" as the default file for fontolgeni2003-04-276-8/+6 * Add a patch to fix PCF glyph problems.marcus2003-04-254-2/+74 * Convert to new GNOME infrastructure, and sign over to gnome@.marcus2003-04-221-5/+2 * Update to 2.2.0, the fontastic-everything-finally-works release.marcus2003-04-224-71/+2 * Remove USE_GNOMENG.marcus2003-04-212-2/+0 * Add patch to avoid dereferencing a NULL pointer in freetype2. This fixesmarcus2003-04-192-0/+47 * Add a missing '\'.marcus2003-04-181-1/+1 * At least one person had problems fetching 2.1.94. Add another dist site.marcus2003-04-181-1/+2 * Update to the release version, 1.10.marcus2003-04-176-78/+77 * Update to 2.1.94.marcus2003-04-172-2/+2 * Make the fonts.dir more detailed, i.e. qualify the font names with fulladamw2003-04-162-14/+15 * Chase home page.trevor2003-04-161-1/+1 * Update to 2.1.93.marcus2003-04-137-104/+13 * Do not install the included mozilla fonts: x11-fonts/mozilla-fontsolgeni2003-04-133-106/+13 * Fix a segfault that can occur when mixing RENDER and non-RENDER fonts.marcus2003-04-074-2/+42 * * Allow these ports to build in a read-only ${PORTSDIR} [1]marcus2003-04-051-2/+1 * fontconfig-config is no longer installed. Therefore, Xft wasn't beingmarcus2003-04-052-2/+4 * Revert previous commit since it caused an infinite recursion loopmarcus2003-04-054-40/+2 * Borrow a little from kdelibs3, and add a dependency on the scalable fonts.marcus2003-04-044-8/+42 * Update to 2.1.92. This is a hacked development version that should solvemarcus2003-04-0416-326/+420 * Add -f to fc-cache to force a font cache build. This fixes GNOMEmarcus2003-03-292-6/+2 * Make sure the include directory exists before trying to copy files intomarcus2003-03-292-0/+6 * Set proper dependency.shige2003-03-251-2/+4 * Unbreak by merging changes from ports/49029 (patch-aa).olgeni2003-03-241-279/+319 * Move cabextract dependency from BUILD_DEPENDS to EXTRACT_DEPENDS todemon2003-03-191-2/+2 * Fix a bug in fontconfig's configure script that was causing fonts.confmarcus2003-03-142-2/+13 * Update XFree86 ports, including linux_dri, to 4.3.0. Set IGNORE= in dri-develanholt2003-03-1215-50/+97 * Update portkeichii2003-03-113-66/+98 * Home page and MASTER_SITE moved.olgeni2003-03-092-2/+2 * Clear moonlight beckons.ade2003-03-0732-16/+16 * Force ldconfig to run before pkg-install to fix a problem where the usermarcus2003-03-061-0/+1 * Sync with XFree86 4.3.0 release.marcus2003-03-034-2/+554 * Sync fontconfig with the XFree86 4.3.0 release.marcus2003-03-032-1/+213 * Retire comment file.trevor2003-03-012-1/+1 * * Set LC_ALL to C in MAKE_ENV to avoid creating non-well-formed XMLmarcus2003-03-012-1/+13 * * Install fc-cache and fc-list manpages [1]marcus2003-02-283-3/+9 * De-pkg-comment.marcus2003-02-262-1/+1 * Remove duplicate patch.sobomax2003-02-251-23/+0 * Suppress command echo.olgeni2003-02-234-10/+10 * De-pkg-comment my ports + some more.olgeni2003-02-2312-6/+6 * * Install the Xft manpagemarcus2003-02-234-4/+14 * De-pkg-comment.nork2003-02-232-1/+1 * Distfile was re-rolled again (only HTML and punctuation changes to themarcus2003-02-221-1/+1 * De-pkg-comment.knu2003-02-2122-11/+11 * Add a RUN_DEPENDS on fontconfig as well.marcus2003-02-211-0/+1 * Looks like we do need fc-cache since the cache files seem to vary slightlymarcus2003-02-213-13/+7 * De-pkg-comment.knu2003-02-2110-5/+5 * Unbreak on -current: use INT_MAX instead of MAXINT.sobomax2003-02-211-0/+23 * * Don't depend on fontconfig (instead, package fonts.cache-1 with the port)marcus2003-02-203-21/+22 * * The distfile was rerolled (only HTML formatting changes) so correctmarcus2003-02-203-22/+55 * Add urwfonts-ttf 1.0.7b18, unicode TrueType fonts from URW extendedsobomax2003-02-195-0/+74 * Remove redundant -p from ${MKDIR}.marcus2003-02-191-1/+1 * Add bitstream-vera, a collection of 10 high-quality TrueType fonts thatmarcus2003-02-196-0/+139 * Remove the Xft.h -> Xft2.h hack.marcus2003-02-181-4/+0 * Remove the renaming of Xft headers and library from the Xft (Xft2) port.anholt2003-02-1810-88/+178 * Add fontilus, a font viewer and thumbnailer for Nautilus.marcus2003-02-167-0/+87 * Make and install gzip-ed .pcf files -- save over 1.5Mb...mi2003-02-012-135/+135 * The port installs into X11BASE -- spell that fact as USE_X_PREFIX, toomi2003-02-012-6/+9 * Use the full path to /sbin/sysctlkris2003-01-301-1/+1 * Cyrillic X11 bitmap fonts from CYR-RFX projectmi2003-01-268-0/+220 * Noone cares about having ports that actually build and then don't crash,green2003-01-254-24/+0 * Make the xft-config script use -lXft2, not the old -lXft. This willgreen2003-01-254-0/+24 * Install fontconfig's manpage.marcus2003-01-241-1/+5 * Make this port PREFIX?=${X11BASE} rather than USE_X_PREFIX, because it doesn'tanholt2003-01-241-2/+9 * Make sure fc-cache is run after installation for both the port andmarcus2003-01-222-0/+18 * Add pcf2bdf(1.04), a converter X font from Portable Compilednork2003-01-207-0/+67 * Update to 2.1. According to the release notes, more symbols have beenmarcus2003-01-204-8/+6 * Update to 2.1.marcus2003-01-202-4/+3 * USE_PERL_BUILD=yesmi2003-01-071-0/+1 * Make Xft conditional on having XFree86 4.x installed. Also add a notemarcus2003-01-072-2/+18 * Find bdftopcf in x11/XFree86-4-clients instead of the (almost) obsoletemi2003-01-061-1/+1 * fix master siteijliao2003-01-031-1/+1 * add another master siteijliao2002-12-301-1/+2 * Fix buildpat2002-12-151-0/+9 * Fix build on -CURRENT.naddy2002-11-304-14/+38 * Maintainer update to version 3.96_2edwin2002-11-174-1/+353 * The Terminus Font is designed for long (8 and more hours per day) workvanilla2002-11-146-0/+110 * The MASTER_SITE's DNS has changed. Make this port fetchable once more.marcus2002-11-131-1/+1 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-11