~ubuntu-branches/ubuntu/intrepid/gucharmap/intrepid

« back to all changes in this revision

Viewing changes to gucharmap/gucharmap-chapters-view.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-23 16:06:03 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20080723160603-v1bhy95d83nushuz
Tags: 1:2.23.4-0ubuntu1
* New Upstream Release (LP: #251505)
* Added python bindings
* updated 01_lpi.dpatch, and 02_autoconf.patch for
  new upstream version
* updated control file for new soname gucharmap7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: gucharmap-block-chapters.h 919 2005-09-08 13:35:59Z behdad $ */
2
1
/*
3
 
 * Copyright (c) 2004 Noah Levitt
 
2
 * Copyright © 2004 Noah Levitt
4
3
 *
5
4
 * This program is free software; you can redistribute it and/or modify it
6
5
 * under the terms of the GNU General Public License as published by the
14
13
 *
15
14
 * You should have received a copy of the GNU General Public License along
16
15
 * with this program; if not, write to the Free Software Foundation, Inc.,
17
 
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
16
 * 59 Temple Place, Suite 330, Boston, MA 02110-1301  USA
18
17
 */
19
18
 
20
19
/* block means unicode block */
21
20
 
 
21
#if !defined (__GUCHARMAP_GUCHARMAP_H_INSIDE__) && !defined (GUCHARMAP_COMPILATION)
 
22
#error "Only <gucharmap/gucharmap.h> can be included directly."
 
23
#endif
 
24
 
22
25
#ifndef GUCHARMAP_CHAPTERS_VIEW_H
23
26
#define GUCHARMAP_CHAPTERS_VIEW_H
24
27
 
25
 
#include <gtk/gtktreeview.h>
 
28
#include <gtk/gtk.h>
 
29
 
26
30
#include <gucharmap/gucharmap-chapters-model.h>
27
31
 
28
32
G_BEGIN_DECLS
29
33
 
30
 
#define GUCHARMAP_CHAPTERS_VIEW(obj) \
31
 
            (G_TYPE_CHECK_INSTANCE_CAST ((obj), gucharmap_chapters_view_get_type (), GucharmapChaptersView))
32
 
 
33
 
#define GUCHARMAP_CHAPTERS_VIEW_CLASS(clazz) \
34
 
            (G_TYPE_CHECK_CLASS_CAST ((clazz), gucharmap_chapters_view_get_type (), GucharmapChaptersViewClass))
35
 
 
36
 
#define IS_GUCHARMAP_CHAPTERS_VIEW(obj) \
37
 
            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), gucharmap_chapters_view_get_type ()))
38
 
 
39
 
#define GUCHARMAP_CHAPTERS_VIEW_GET_CLASS(obj) \
40
 
            (G_TYPE_INSTANCE_GET_CLASS ((obj), gucharmap_chapters_view_get_type (), GucharmapChaptersViewClass))
41
 
 
42
 
typedef struct _GucharmapChaptersView GucharmapChaptersView;
43
 
typedef struct _GucharmapChaptersViewClass GucharmapChaptersViewClass;
 
34
#define GUCHARMAP_TYPE_CHAPTERS_VIEW             (gucharmap_chapters_view_get_type ())
 
35
#define GUCHARMAP_CHAPTERS_VIEW(o)               (G_TYPE_CHECK_INSTANCE_CAST ((o), GUCHARMAP_TYPE_CHAPTERS_VIEW, GucharmapChaptersView))
 
36
#define GUCHARMAP_CHAPTERS_VIEW_CLASS(k)         (G_TYPE_CHECK_CLASS_CAST((k), GUCHARMAP_TYPE_CHAPTERS_VIEW, GucharmapChaptersViewClass))
 
37
#define GUCHARMAP_IS_CHAPTERS_VIEW(o)            (G_TYPE_CHECK_INSTANCE_TYPE ((o), GUCHARMAP_TYPE_CHAPTERS_VIEW))
 
38
#define GUCHARMAP_IS_CHAPTERS_VIEW_CLASS(k)      (G_TYPE_CHECK_CLASS_TYPE ((k), GUCHARMAP_TYPE_CHAPTERS_VIEW))
 
39
#define GUCHARMAP_CHAPTERS_VIEW_GET_CLASS(o)     (G_TYPE_INSTANCE_GET_CLASS ((o), GUCHARMAP_TYPE_CHAPTERS_VIEW, GucharmapChaptersViewClass))
 
40
 
 
41
typedef struct _GucharmapChaptersView         GucharmapChaptersView;
 
42
typedef struct _GucharmapChaptersViewPrivate  GucharmapChaptersViewPrivate;
 
43
typedef struct _GucharmapChaptersViewClass    GucharmapChaptersViewClass;
44
44
 
45
45
struct _GucharmapChaptersView
46
46
{
47
47
  GtkTreeView parent_instance;
48
48
 
49
49
  /*< private >*/
50
 
  GtkTreeViewColumn *column;
51
 
  GucharmapChaptersModel *model;
 
50
  GucharmapChaptersViewPrivate *priv;
52
51
};
53
52
 
54
53
struct _GucharmapChaptersViewClass
57
56
};
58
57
 
59
58
GType       gucharmap_chapters_view_get_type (void);
 
59
 
60
60
GtkWidget * gucharmap_chapters_view_new      (void);
61
61
 
62
62
void                    gucharmap_chapters_view_set_model (GucharmapChaptersView *view,
65
65
 
66
66
gboolean           gucharmap_chapters_view_select_character (GucharmapChaptersView *view,
67
67
                                                             gunichar           wc);
68
 
GucharmapCodepointList *                gucharmap_chapters_view_get_codepoint_list      (GucharmapChaptersView *view);
69
 
G_CONST_RETURN GucharmapCodepointList * gucharmap_chapters_view_get_book_codepoint_list (GucharmapChaptersView *view);
 
68
GucharmapCodepointList * gucharmap_chapters_view_get_codepoint_list      (GucharmapChaptersView *view);
 
69
GucharmapCodepointList * gucharmap_chapters_view_get_book_codepoint_list (GucharmapChaptersView *view);
70
70
 
71
71
void               gucharmap_chapters_view_next         (GucharmapChaptersView *view);
72
72
void               gucharmap_chapters_view_previous     (GucharmapChaptersView *view);
74
74
gchar *            gucharmap_chapters_view_get_selected  (GucharmapChaptersView *view);
75
75
gboolean           gucharmap_chapters_view_set_selected  (GucharmapChaptersView *view,
76
76
                                                          const gchar       *name);
 
77
 
 
78
gboolean           gucharmap_chapters_view_select_locale (GucharmapChaptersView *view);
 
79
 
77
80
G_END_DECLS
78
81
 
79
82
#endif /* #ifndef GUCHARMAP_CHAPTERS_VIEW_H */