respect https prefix
[k8lowj.git] / src / jamview.h
blob893e4b4d4db18446915e99db0c7bf36deb0ea204
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
3 */
4 #ifndef __LOGJAM_JAM_VIEW_H__
5 #define __LOGJAM_JAM_VIEW_H__
7 #include "gtk-all.h"
9 #include "jamdoc.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. */
17 typedef enum {
18 JAM_VIEW_SUBJECT,
19 JAM_VIEW_SECURITY,
20 JAM_VIEW_MOOD,
21 JAM_VIEW_PIC,
22 JAM_VIEW_MUSIC,
23 JAM_VIEW_LOCATION,
24 JAM_VIEW_TAGS,
25 JAM_VIEW_PREFORMATTED,
26 JAM_VIEW_DATESEL,
27 JAM_VIEW_COMMENTS,
28 JAM_VIEW_SCREENING,
29 JAM_VIEW_META_COUNT
30 } JamViewMeta;
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);
55 #endif