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
20
19
/* block means unicode block */
21
#if !defined (__GUCHARMAP_GUCHARMAP_H_INSIDE__) && !defined (GUCHARMAP_COMPILATION)
22
#error "Only <gucharmap/gucharmap.h> can be included directly."
22
25
#ifndef GUCHARMAP_CHAPTERS_VIEW_H
23
26
#define GUCHARMAP_CHAPTERS_VIEW_H
25
#include <gtk/gtktreeview.h>
26
30
#include <gucharmap/gucharmap-chapters-model.h>
30
#define GUCHARMAP_CHAPTERS_VIEW(obj) \
31
(G_TYPE_CHECK_INSTANCE_CAST ((obj), gucharmap_chapters_view_get_type (), GucharmapChaptersView))
33
#define GUCHARMAP_CHAPTERS_VIEW_CLASS(clazz) \
34
(G_TYPE_CHECK_CLASS_CAST ((clazz), gucharmap_chapters_view_get_type (), GucharmapChaptersViewClass))
36
#define IS_GUCHARMAP_CHAPTERS_VIEW(obj) \
37
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), gucharmap_chapters_view_get_type ()))
39
#define GUCHARMAP_CHAPTERS_VIEW_GET_CLASS(obj) \
40
(G_TYPE_INSTANCE_GET_CLASS ((obj), gucharmap_chapters_view_get_type (), GucharmapChaptersViewClass))
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))
41
typedef struct _GucharmapChaptersView GucharmapChaptersView;
42
typedef struct _GucharmapChaptersViewPrivate GucharmapChaptersViewPrivate;
43
typedef struct _GucharmapChaptersViewClass GucharmapChaptersViewClass;
45
45
struct _GucharmapChaptersView
47
47
GtkTreeView parent_instance;
50
GtkTreeViewColumn *column;
51
GucharmapChaptersModel *model;
50
GucharmapChaptersViewPrivate *priv;
54
53
struct _GucharmapChaptersViewClass
66
66
gboolean gucharmap_chapters_view_select_character (GucharmapChaptersView *view,
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);
71
71
void gucharmap_chapters_view_next (GucharmapChaptersView *view);
72
72
void gucharmap_chapters_view_previous (GucharmapChaptersView *view);