1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 #ifndef __LOGJAM_JAM_VIEW_H__
5 #define __LOGJAM_JAM_VIEW_H__
11 typedef struct _JamView JamView
;
12 typedef struct _JamViewClass JamViewClass
;
15 /* these must match ACTION_VIEW_... in menu.c. */
16 /* these must match metas[] in jamview.c. */
25 JAM_VIEW_PREFORMATTED
,
31 #define JAM_VIEW_META_FIRST JAM_VIEW_SECURITY
32 #define JAM_VIEW_META_LAST JAM_VIEW_SCREENING
34 extern const char *jam_view_meta_to_name (JamViewMeta meta
);
35 extern gboolean
jam_view_meta_from_name (const char *name
, JamViewMeta
*meta
);
37 #define JAM_TYPE_VIEW (jam_view_get_type())
38 #define JAM_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST((object), JAM_TYPE_VIEW, JamView))
39 #define JAM_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), JAM_TYPE_VIEW, JamViewClass))
41 extern GType
jam_view_get_type (void);
43 extern GtkWidget
*jam_view_new (JamDoc
*doc
);
44 extern GObject
*jam_view_get_undomgr (JamView
*view
);
45 extern void jam_view_set_doc (JamView
*view
, JamDoc
*doc
);
47 extern void jam_view_settings_changed (JamView
*view
);
49 extern void jam_view_toggle_meta (JamView
*view
, JamViewMeta meta
, gboolean show
);
50 extern gboolean
jam_view_get_meta_visible (JamView
*view
, JamViewMeta meta
);
52 extern void jam_view_emit_conf (JamView
*view
);