1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 #ifndef __LOGJAM_JAM_H__
5 #define __LOGJAM_JAM_H__
7 #include "liblj/livejournal.h"
15 GtkWindow win
; /* super class */
17 GtkItemFactory
*factory
;
20 GtkWidget
*mweb
, *msubmitsep
, *msubmit
, *msaveserver
;
21 GtkWidget
*mundo
, *mredo
;
24 GtkWidget
*baction
; /* "action" button: submit / save changes */
25 GtkWidget
*bdelete
; /* "delete" button */
28 GtkWidget
*nb_entry
;/* syncbook master */
29 GtkWidget
*nb_meta
; /* syncbook slave */
35 gpointer preview
; /* we only want one preview window per jam_win. */
39 extern void jam_font_set (GtkWidget
*w
, gchar
*font_name
);
40 extern void jam_run (JamDoc
*doc
);
41 extern void jam_do_changeuser (JamWin
*jw
);
42 extern gboolean
jam_confirm_lose_entry (JamWin
*jw
);
44 extern void jam_clear_entry (JamWin
*jw
);
45 extern void jam_open_entry (JamWin
*jw
);
46 extern void jam_open_draft (JamWin
*jw
);
48 extern gboolean
jam_save_as_file (JamWin
*jw
);
49 extern gboolean
jam_save_as_draft (JamWin
*jw
);
50 extern gboolean
jam_save (JamWin
*jw
);
52 extern void jam_load_entry (JamWin
*jw
, LJEntry
*entry
);
53 extern void jam_submit_entry (JamWin
*jw
);
54 extern void jam_save_entry_server (JamWin
*jw
);
56 extern void jam_quit (JamWin
*jw
);
57 extern void jam_autosave_init (JamWin
*jw
);
58 extern void jam_autosave_stop (JamWin
*jw
);
60 extern JamDoc
*jam_win_get_cur_doc (JamWin
*jw
);
61 extern JamView
*jam_win_get_cur_view (JamWin
*jw
);