]> git.sur5r.net Git - glabels/blob - src/window.h
Imported Upstream version 2.2.8
[glabels] / src / window.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2
3 /*
4  *  (GLABELS) Label and Business Card Creation program for GNOME
5  *
6  *  window.h:  a gLabels app window
7  *
8  *  Copyright (C) 2002  Jim Evins <evins@snaught.com>.
9  *
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.
14  *
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.
19  *
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
23  */
24
25 #ifndef __WINDOW_H__
26 #define __WINDOW_H__
27
28 #include <gtk/gtkwindow.h>
29 #include <gtk/gtkuimanager.h>
30 #include <gtk/gtkmenu.h>
31
32 #include "view.h"
33 #include "label.h"
34 #include "ui-property-bar.h"
35 #include "ui-sidebar.h"
36 #include "print-op.h"
37 #include "merge-properties-dialog.h"
38
39 G_BEGIN_DECLS
40
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))
50
51 typedef struct _glWindow      glWindow;
52 typedef struct _glWindowClass glWindowClass;
53
54 struct _glWindow {
55         GtkWindow               parent_widget;
56
57         GtkUIManager            *ui;
58
59         GtkWidget               *view;
60
61         GtkWidget               *hbox;
62
63         glUIPropertyBar         *property_bar;
64         glUISidebar             *sidebar;
65
66         GtkWidget               *status_bar;
67         GtkWidget               *cursor_info;
68         GtkWidget               *cursor_info_frame;
69         GtkWidget               *zoom_info;
70         GtkWidget               *zoom_info_frame;
71
72         guint                    menu_tips_context_id;
73
74         glPrintOpSettings       *print_settings;
75         glMergePropertiesDialog *merge_dialog;
76         GtkMenu                 *context_menu;
77         GtkMenu                 *empty_selection_context_menu;
78 };
79
80 struct _glWindowClass {
81         GtkWindowClass          parent_class;
82 };
83
84 GType        gl_window_get_type          (void) G_GNUC_CONST;
85
86 GtkWidget   *gl_window_new               (void);
87
88 GtkWidget   *gl_window_new_from_file     (const gchar *filename);
89
90 GtkWidget   *gl_window_new_from_label    (glLabel     *label);
91
92 gboolean     gl_window_is_empty          (glWindow    *window);
93
94 void         gl_window_set_label         (glWindow    *window,
95                                           glLabel     *label);
96
97 const GList *gl_window_get_window_list   (void);
98
99 G_END_DECLS
100
101 #endif /* __WINDOW_H__ */