network*: cosmetix
[k8lowj.git] / src / jam.h
blobdc138c3ff9adca50df15569bb7bdd2f394e63fa9
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
3 */
4 #ifndef __LOGJAM_JAM_H__
5 #define __LOGJAM_JAM_H__
7 #include "liblj/livejournal.h"
9 #include "jamdoc.h"
10 #include "jamview.h"
11 #include "undo.h"
14 typedef struct {
15 GtkWindow win; /* super class */
17 GtkItemFactory *factory;
19 /* menu items. */
20 GtkWidget *mweb, *msubmitsep, *msubmit, *msaveserver;
21 GtkWidget *mundo, *mredo;
23 GtkWidget *userlabel;
24 GtkWidget *baction; /* "action" button: submit / save changes */
25 GtkWidget *bdelete; /* "delete" button */
27 #if not_yet
28 GtkWidget *nb_entry;/* syncbook master */
29 GtkWidget *nb_meta; /* syncbook slave */
30 #endif
31 JamDoc *doc;
32 GtkWidget *view;
33 JamAccount *account;
35 gpointer preview; /* we only want one preview window per jam_win. */
36 } JamWin;
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);
64 #endif