3 * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
5 * This file is part of gLabels.
7 * gLabels is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * gLabels is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
28 #include "ui-property-bar.h"
29 #include "ui-sidebar.h"
31 #include "merge-properties-dialog.h"
35 #define GL_TYPE_WINDOW (gl_window_get_type ())
36 #define GL_WINDOW(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WINDOW, glWindow ))
38 #define GL_WINDOW_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WINDOW, glWindowClass))
40 #define GL_IS_WINDOW(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WINDOW))
42 #define GL_IS_WINDOW_CLASS(klass) \
43 (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WINDOW))
45 typedef struct _glWindow glWindow;
46 typedef struct _glWindowClass glWindowClass;
49 GtkWindow parent_widget;
57 glUIPropertyBar *property_bar;
60 GtkWidget *status_bar;
61 GtkWidget *cursor_info;
62 GtkWidget *cursor_info_frame;
64 GtkWidget *zoom_info_frame;
66 guint menu_tips_context_id;
68 glPrintOpSettings *print_settings;
69 glMergePropertiesDialog *merge_dialog;
70 GtkMenu *context_menu;
71 GtkMenu *empty_selection_context_menu;
74 struct _glWindowClass {
75 GtkWindowClass parent_class;
78 GType gl_window_get_type (void) G_GNUC_CONST;
80 GtkWidget *gl_window_new (void);
82 GtkWidget *gl_window_new_from_file (const gchar *filename);
84 GtkWidget *gl_window_new_from_label (glLabel *label);
86 gboolean gl_window_is_empty (glWindow *window);
88 void gl_window_set_label (glWindow *window,
91 const GList *gl_window_get_window_list (void);
95 #endif /* __WINDOW_H__ */
100 * Local Variables: -- emacs
102 * c-basic-offset: 8 -- emacs
103 * tab-width: 8 -- emacs
104 * indent-tabs-mode: nil -- emacs