]> git.sur5r.net Git - glabels/blob - src/window.h
Removed non-existent filenames from po/POTFILES.in
[glabels] / src / window.h
1 /*
2  *  window.h
3  *  Copyright (C) 2002-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
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.
11  *
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.
16  *
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/>.
19  */
20
21 #ifndef __WINDOW_H__
22 #define __WINDOW_H__
23
24 #include <gtk/gtk.h>
25
26 #include "view.h"
27 #include "label.h"
28 #include "ui-property-bar.h"
29 #include "ui-sidebar.h"
30 #include "print-op.h"
31 #include "merge-properties-dialog.h"
32
33 G_BEGIN_DECLS
34
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))
44
45 typedef struct _glWindow      glWindow;
46 typedef struct _glWindowClass glWindowClass;
47
48 struct _glWindow {
49         GtkWindow               parent_widget;
50
51         GtkUIManager            *ui;
52
53         GtkWidget               *view;
54
55         GtkWidget               *hbox;
56
57         glUIPropertyBar         *property_bar;
58         glUISidebar             *sidebar;
59
60         GtkWidget               *status_bar;
61         GtkWidget               *cursor_info;
62         GtkWidget               *cursor_info_frame;
63         GtkWidget               *zoom_info;
64         GtkWidget               *zoom_info_frame;
65
66         guint                    menu_tips_context_id;
67
68         glPrintOpSettings       *print_settings;
69         glMergePropertiesDialog *merge_dialog;
70         GtkMenu                 *context_menu;
71         GtkMenu                 *empty_selection_context_menu;
72 };
73
74 struct _glWindowClass {
75         GtkWindowClass          parent_class;
76 };
77
78 GType        gl_window_get_type          (void) G_GNUC_CONST;
79
80 GtkWidget   *gl_window_new               (void);
81
82 GtkWidget   *gl_window_new_from_file     (const gchar *filename);
83
84 GtkWidget   *gl_window_new_from_label    (glLabel     *label);
85
86 gboolean     gl_window_is_empty          (glWindow    *window);
87
88 void         gl_window_set_label         (glWindow    *window,
89                                           glLabel     *label);
90
91 const GList *gl_window_get_window_list   (void);
92
93 G_END_DECLS
94
95 #endif /* __WINDOW_H__ */
96
97
98
99 /*
100  * Local Variables:       -- emacs
101  * mode: C                -- emacs
102  * c-basic-offset: 8      -- emacs
103  * tab-width: 8           -- emacs
104  * indent-tabs-mode: nil  -- emacs
105  * End:                   -- emacs
106  */