annotate src/slideshow.h @ 516:b7e99bfeadc9

Convert the minority of while() to while ().
author zas_
date Thu, 24 Apr 2008 15:49:57 +0000
parents 48c8e49b571c
children 1646720364cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
196
f6e307c7bad6 rename GQview -> Geeqie over the code
nadvornik
parents: 138
diff changeset
2 * Geeqie
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
475
48c8e49b571c updated copyright in source files
nadvornik
parents: 446
diff changeset
4 * Copyright (C) 2008 The Geeqie Team
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #ifndef SLIDESHOW_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15 #define SLIDESHOW_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
17
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
18 #define SLIDESHOW_SUBSECOND_PRECISION 10
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
19 #define SLIDESHOW_MIN_SECONDS 0.1
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
20 #define SLIDESHOW_MAX_SECONDS 3600.0
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
21
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
22 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
23 * It works like this, it uses path_list, if that does not exist, it uses
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
24 * CollectionData, then finally falls back to the layout listing.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 void slideshow_free(SlideShowData *ss);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29 gint slideshow_should_continue(SlideShowData *ss);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31 void slideshow_next(SlideShowData *ss);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32 void slideshow_prev(SlideShowData *ss);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
34 SlideShowData *slideshow_start_from_filelist(ImageWindow *imd, GList *list,
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36 SlideShowData *slideshow_start_from_collection(ImageWindow *imd, CollectionData *cd,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38 CollectInfo *start_info);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 SlideShowData *slideshow_start(ImageWindow *imd, LayoutWindow *lw, gint start_point,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42 gint slideshow_paused(SlideShowData *ss);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43 void slideshow_pause_set(SlideShowData *ss, gint paused);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
44 gint slideshow_pause_toggle(SlideShowData *ss);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
45
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
46
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
47 #endif