]> git.sur5r.net Git - glabels/blob - src/ui.h
Imported Upstream version 3.0.0
[glabels] / src / ui.h
1 /*
2  *  ui.h
3  *  Copyright (C) 2001-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 __GL_UI_H__
22 #define __GL_UI_H__
23
24 #include <gtk/gtk.h>
25
26 #include "window.h"
27 #include "view.h"
28
29 G_BEGIN_DECLS
30
31
32 GtkUIManager *gl_ui_new                    (glWindow          *window);
33
34 void          gl_ui_unref                  (GtkUIManager      *ui);
35
36 void          gl_ui_update_all             (GtkUIManager      *ui,
37                                             glView            *view);
38
39 void          gl_ui_update_modified_verbs  (GtkUIManager      *ui,
40                                             glLabel           *label);
41
42 void          gl_ui_update_selection_verbs (GtkUIManager      *ui,
43                                             glView            *view,
44                                             gboolean           has_focus);
45
46 void          gl_ui_update_zoom_verbs      (GtkUIManager      *ui,
47                                             glView            *view);
48
49 void          gl_ui_update_paste_verbs     (GtkUIManager      *ui,
50                                             gboolean           can_paste);
51
52 void          gl_ui_update_undo_redo_verbs (GtkUIManager      *ui,
53                                             glLabel           *label);
54
55 G_END_DECLS
56
57 #endif /* __GL_UI_H__ */
58
59
60
61 /*
62  * Local Variables:       -- emacs
63  * mode: C                -- emacs
64  * c-basic-offset: 8      -- emacs
65  * tab-width: 8           -- emacs
66  * indent-tabs-mode: nil  -- emacs
67  * End:                   -- emacs
68  */