1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4 * (GLABELS) Label and Business Card Creation program for GNOME
6 * window.h: a gLabels app window
8 * Copyright (C) 2002 Jim Evins <evins@snaught.com>.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #include <gtk/gtkwindow.h>
29 #include <gtk/gtkuimanager.h>
30 #include <gtk/gtkmenu.h>
34 #include "ui-property-bar.h"
35 #include "ui-sidebar.h"
36 #include "print-dialog.h"
37 #include "merge-properties-dialog.h"
41 #define GL_TYPE_WINDOW (gl_window_get_type ())
42 #define GL_WINDOW(obj) \
43 (GTK_CHECK_CAST((obj), GL_TYPE_WINDOW, glWindow ))
44 #define GL_WINDOW_CLASS(klass) \
45 (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WINDOW, glWindowClass))
46 #define GL_IS_WINDOW(obj) \
47 (GTK_CHECK_TYPE ((obj), GL_TYPE_WINDOW))
48 #define GL_IS_WINDOW_CLASS(klass) \
49 (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WINDOW))
51 typedef struct _glWindow glWindow;
52 typedef struct _glWindowClass glWindowClass;
55 GtkWindow parent_widget;
63 glUIPropertyBar *property_bar;
66 GtkWidget *status_bar;
67 GtkWidget *cursor_info;
68 GtkWidget *cursor_info_frame;
70 GtkWidget *zoom_info_frame;
72 guint menu_tips_context_id;
74 glPrintDialog *print_dialog;
75 glMergePropertiesDialog *merge_dialog;
76 GtkMenu *context_menu;
77 GtkMenu *empty_selection_context_menu;
80 struct _glWindowClass {
81 GtkWindowClass parent_class;
84 GType gl_window_get_type (void) G_GNUC_CONST;
86 GtkWidget *gl_window_new (void);
88 GtkWidget *gl_window_new_from_file (const gchar *filename);
90 GtkWidget *gl_window_new_from_label (glLabel *label);
92 gboolean gl_window_is_empty (glWindow *window);
94 void gl_window_set_label (glWindow *window,
97 const GList *gl_window_get_window_list (void);
101 #endif /* __WINDOW_H__ */