changed long timer interval and changelog
[livewp] / applet / src / livewp-common.h
1 /* vim: set sw=4 ts=4 et: */
2 /*
3  * This file is part of Live Wallpaper (livewp)
4  * 
5  * Copyright (C) 2010 Vlad Vasiliev
6  * Copyright (C) 2010 Tanya Makova
7  *       for the code
8  * 
9  * This software is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; either version 2.1 of
12  * the License, or (at your option) any later version.
13  * 
14  * This software is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  * 
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this software; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22  * 02110-1301 USA
23 */
24 /*******************************************************************************/
25 #include <gtk/gtk.h>
26 #include <hildon/hildon.h>
27 #include <locale.h>
28 #include <libhildondesktop/libhildondesktop.h>
29
30 #define GETTEXT_PACKAGE "livewp"
31 #include <glib/gi18n-lib.h>
32
33 #define THEME_PATH "/usr/share/livewp/theme"
34 #define SHORT_TIMER 50 /* 100 milisecond */
35 //#define LONG_TIMER 5*60*1000 /* 10 minutes */
36 #define LONG_TIMER  20*1000 /* 10 minutes */
37 enum { SHORT_TIMER_TYPE, LONG_TIMER_TYPE };
38 #define SKY_LEVEL 0 
39 #define SUN_LEVEL 0 
40 #define TOWN_LEVEL 0 
41 #define TRAM_LEVEL 20 
42
43
44 typedef struct _AWallpaperPlugin AWallpaperPlugin;
45 typedef struct _AWallpaperPluginClass AWallpaperPluginClass;
46 typedef struct _Animation_WallpaperPrivate Animation_WallpaperPrivate;
47
48 struct _Animation_WallpaperPrivate
49 {
50     gint long_timer;
51     gint short_timer;
52     gchar *theme;
53     gboolean visible;
54     gboolean rich_animation;
55     GtkWidget *main_widget;
56     GtkWidget *right_corner;
57     AWallpaperPlugin *desktop_plugin;
58 };
59
60 struct _AWallpaperPlugin
61 {
62     HDHomePluginItem parent;
63     Animation_WallpaperPrivate *priv;
64 };
65
66 struct _AWallpaperPluginClass
67 {
68     HDHomePluginItemClass parent_class;
69
70 };
71
72 typedef struct {
73     GtkWidget * widget;
74     gchar  *name;
75     gchar *filename;
76     gint x;
77     gint y;
78     gint z;
79     gint width;
80     gint height;
81     gint scale;
82     gint opacity; 
83     gboolean visible;
84     void (*func_change)(gpointer, gpointer);
85     time_t time_start_animation;
86     gint duration_animation;
87     void (*func_probability)(gpointer);
88
89 } Actor;