~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

« back to all changes in this revision

Viewing changes to rhythmbox/src/rhythmbox-struct.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-08-26 21:07:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090826210739-gyjuuqezrzuluao4
Tags: upstream-2.0.8.1
ImportĀ upstreamĀ versionĀ 2.0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
* This file is a part of the Cairo-Dock project
 
3
*
 
4
* Copyright : (C) see the 'copyright' file.
 
5
* E-mail    : see the 'copyright' file.
 
6
*
 
7
* This program is free software; you can redistribute it and/or
 
8
* modify it under the terms of the GNU General Public License
 
9
* as published by the Free Software Foundation; either version 3
 
10
* of the License, or (at your option) any later version.
 
11
*
 
12
* This program is distributed in the hope that it will be useful,
 
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
* GNU General Public License for more details.
 
16
* You should have received a copy of the GNU General Public License
 
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
#ifndef __RYTHMBOX_STRUCT__
 
21
#define  __RYTHMBOX_STRUCT__
 
22
 
 
23
#include <cairo-dock.h>
 
24
 
 
25
typedef enum {
 
26
        MY_APPLET_NOTHING = 0,
 
27
        MY_APPLET_TIME_ELAPSED,
 
28
        MY_APPLET_TIME_LEFT,
 
29
        MY_APPLET_PERCENTAGE,
 
30
        MY_APPLET_TRACK,
 
31
        MY_APPLET_NB_QUICK_INFO_TYPE
 
32
        } MyAppletQuickInfoType;
 
33
 
 
34
typedef enum {
 
35
        PLAYER_NONE = 0,
 
36
        PLAYER_PLAYING,
 
37
        PLAYER_PAUSED,
 
38
        PLAYER_STOPPED,
 
39
        PLAYER_BROKEN,
 
40
        PLAYER_NB_STATUS
 
41
} MyAppletPlayerStatus;
 
42
 
 
43
typedef enum {
 
44
        MY_APPLET_PERSONNAL = 0,
 
45
        MY_APPLET_EXTENDED,
 
46
        MY_APPLET_CD_BOX,
 
47
        MY_APPLET_FRAME_REFLECTS,
 
48
        MY_APPLET_SCOTCH,
 
49
        MY_APPLET_FRAME_SCOTCH,
 
50
        MY_APPLET_NB_DECORATIONS
 
51
} MyAppletDecoration;
 
52
 
 
53
#define NB_TRANSITION_STEP 8.
 
54
 
 
55
 
 
56
struct _AppletConfig {
 
57
        gboolean enableDialogs;
 
58
        gboolean enableCover;
 
59
        gdouble timeDialogs;
 
60
        gchar *changeAnimation;
 
61
        MyAppletQuickInfoType quickInfoType;
 
62
        gchar *defaultTitle;
 
63
        gchar *cUserImage[PLAYER_NB_STATUS];
 
64
        gboolean bStealTaskBarIcon;
 
65
        //gboolean extendedDesklet;
 
66
        
 
67
        gboolean bOpenglThemes;
 
68
        gchar *cThemePath;
 
69
        } ;
 
70
 
 
71
struct _AppletData {
 
72
        cairo_surface_t *pSurfaces[PLAYER_NB_STATUS];
 
73
        cairo_surface_t *pCover;
 
74
        
 
75
        // etat du lecteur.
 
76
        gboolean dbus_enable;
 
77
        gboolean bIsRunning;
 
78
        gboolean playing;
 
79
        gboolean cover_exist;
 
80
        gboolean b3dThemesDebugMode;
 
81
        int playing_duration;
 
82
        int playing_track;
 
83
        gchar *playing_uri;
 
84
        gchar *playing_artist;
 
85
        gchar *playing_album;
 
86
        gchar *playing_title;
 
87
        gchar *playing_cover;
 
88
        gchar *previous_cover;
 
89
        
 
90
        gint iSidGetDistantCover;
 
91
        gboolean bCoverNeedsTest;
 
92
        gint iCurrentFileSize;
 
93
        guint iSidCheckCover;
 
94
        gint iCoverTransition;
 
95
        GLuint iPrevTextureCover;
 
96
        
 
97
        // pochette 3D
 
98
        GLuint TextureFrame;
 
99
        GLuint TextureCover;
 
100
        GLuint TextureReflect;
 
101
        
 
102
        gdouble itopleftX;
 
103
        gdouble itopleftY;
 
104
        gdouble ibottomleftX;
 
105
        gdouble ibottomleftY;
 
106
        gdouble ibottomrightX;
 
107
        gdouble ibottomrightY;
 
108
        gdouble itoprightX;
 
109
        gdouble itoprightY;
 
110
        GLuint draw_cover;  // calllist
 
111
        
 
112
        gint numberButtons;
 
113
        gboolean osd;
 
114
        /// A passer en structure...
 
115
        gboolean mouseOnButton1;
 
116
        GLuint TextureButton1;
 
117
        gdouble button1coordX, button1coordY;
 
118
        gdouble button1sizeX, button1sizeY;
 
119
        gint iButton1Count;
 
120
        GLuint TextureOsdPlay;
 
121
        gdouble osdPlaycoordX, osdPlaycoordY;
 
122
        gdouble osdPlaysizeX, osdPlaysizeY;
 
123
        GLuint TextureOsdPause;
 
124
        gdouble osdPausecoordX, osdPausecoordY;
 
125
        gdouble osdPausesizeX, osdPausesizeY;
 
126
        
 
127
        gboolean mouseOnButton2;
 
128
        GLuint TextureButton2;
 
129
        gdouble button2coordX, button2coordY;
 
130
        gdouble button2sizeX, button2sizeY;
 
131
        gint iButton2Count;
 
132
        GLuint TextureOsdPrev;
 
133
        gdouble osdPrevcoordX, osdPrevcoordY;
 
134
        gdouble osdPrevsizeX, osdPrevsizeY;
 
135
        
 
136
        gboolean mouseOnButton3;
 
137
        GLuint TextureButton3;
 
138
        gdouble button3coordX, button3coordY;
 
139
        gdouble button3sizeX, button3sizeY;
 
140
        gint iButton3Count;
 
141
        GLuint TextureOsdNext;
 
142
        gdouble osdNextcoordX, osdNextcoordY;
 
143
        gdouble osdNextsizeX, osdNextsizeY;
 
144
        
 
145
        gboolean mouseOnButton4;
 
146
        GLuint TextureButton4;
 
147
        gdouble button4coordX, button4coordY;
 
148
        gdouble button4sizeX, button4sizeY;
 
149
        gint iButton4Count;
 
150
        GLuint TextureOsdHome;
 
151
        gdouble osdHomecoordX, osdHomecoordY;
 
152
        gdouble osdHomesizeX, osdHomesizeY;
 
153
        
 
154
        gint iMouseX;
 
155
        gint iMouseY;
 
156
        gint iState;  // combinaison des etats des differents boutons.
 
157
        /*gboolean CoverWasDistant;  // a degager en testant sur la taille ...
 
158
        gint iCurrentFileSize;
 
159
    gint iLastFileSize;
 
160
    gboolean bSizeIsConstant;
 
161
        guint iSidLoopForMagnatune;
 
162
        gboolean bLoopForMagnatune;
 
163
        gboolean bLoopForMagnatuneDone;*/
 
164
        } ;
 
165
 
 
166
 
 
167
#endif