1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
13 typedef struct _JamView JamView
;
14 typedef struct _JamViewClass JamViewClass
;
16 /* these must match ACTION_VIEW_... in menu.c. */
17 /* these must match metas[] in jamview.c. */
26 JAM_VIEW_PREFORMATTED
,
32 #define JAM_VIEW_META_FIRST JAM_VIEW_SECURITY
33 #define JAM_VIEW_META_LAST JAM_VIEW_SCREENING
35 const char *jam_view_meta_to_name(JamViewMeta meta
);
36 gboolean
jam_view_meta_from_name(const char *name
, JamViewMeta
*meta
);
38 #define JAM_TYPE_VIEW (jam_view_get_type())
39 #define JAM_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST((object), JAM_TYPE_VIEW, JamView))
40 #define JAM_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), JAM_TYPE_VIEW, JamViewClass))
42 GType
jam_view_get_type(void);
44 GtkWidget
* jam_view_new();
45 GObject
* jam_view_get_undomgr(JamView
*view
);
46 void jam_view_set_doc(JamView
*view
, JamDoc
*doc
);
48 void jam_view_settings_changed(JamView
*view
);
50 void jam_view_toggle_meta(JamView
*view
, JamViewMeta meta
, gboolean show
);
51 gboolean
jam_view_get_meta_visible(JamView
*view
, JamViewMeta meta
);
53 void jam_view_emit_conf(JamView
*view
);
55 #endif /* _jam_view_ */