1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2005 Imendio AB
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* 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 __PLANNER_VIEW_H__
#define __PLANNER_VIEW_H__
#include <gtk/gtk.h>
#include "planner-window.h"
#include "planner-print-job.h"
#define PLANNER_TYPE_VIEW (planner_view_get_type ())
#define PLANNER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLANNER_TYPE_VIEW, PlannerView))
#define PLANNER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLANNER_TYPE_VIEW, PlannerViewClass))
#define PLANNER_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLANNER_TYPE_VIEW))
#define PLANNER_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLANNER_TYPE_VIEW))
#define PLANNER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLANNER_TYPE_VIEW, PlannerViewClass))
typedef struct _PlannerView PlannerView;
typedef struct _PlannerViewClass PlannerViewClass;
struct _PlannerView {
GObject parent;
PlannerWindow *main_window;
gboolean activated;
};
struct _PlannerViewClass {
GObjectClass parent_class;
/* Methods */
const gchar *(*get_label) (PlannerView *view);
const gchar *(*get_menu_label) (PlannerView *view);
const gchar *(*get_icon) (PlannerView *view);
const gchar *(*get_name) (PlannerView *view);
GtkWidget *(*get_widget) (PlannerView *view);
void (*setup) (PlannerView *view,
PlannerWindow *window);
void (*activate) (PlannerView *view);
void (*deactivate) (PlannerView *view);
void (*print_init) (PlannerView *view,
PlannerPrintJob *job);
gint (*print_get_n_pages) (PlannerView *view);
void (*print) (PlannerView *view,
gint page_nr);
void (*print_cleanup) (PlannerView *view);
};
GType planner_view_get_type (void) G_GNUC_CONST;
const gchar *planner_view_get_label (PlannerView *view);
const gchar *planner_view_get_menu_label (PlannerView *view);
const gchar *planner_view_get_icon (PlannerView *view);
const gchar *planner_view_get_name (PlannerView *view);
GtkWidget *planner_view_get_widget (PlannerView *view);
void planner_view_setup (PlannerView *view,
PlannerWindow *window);
void planner_view_activate_helper (PlannerView *view,
const gchar *ui_filename,
const gchar *name);
void planner_view_deactivate_helper (PlannerView *view);
void planner_view_activate (PlannerView *view);
void planner_view_deactivate (PlannerView *view);
void planner_view_print_init (PlannerView *view,
PlannerPrintJob *job);
gint planner_view_print_get_n_pages (PlannerView *view);
void planner_view_print (PlannerView *view,
gint page_nr);
void planner_view_print_cleanup (PlannerView *view);
void planner_view_column_load_helper (PlannerView *view,
GtkTreeView *tree,
const gchar *set);
void planner_view_column_save_helper (PlannerView *view,
GtkTreeView *tree,
const gchar *set);
#endif /* __PLANNER_VIEW_H__ */
|