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

« back to all changes in this revision

Viewing changes to Scooby-Do/src/applet-struct.h

Tags: upstream-2.1.3-6
ImportĀ upstreamĀ versionĀ 2.1.3-6

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        gint iNbResultMax;
57
57
        CairoDockLabelDescription infoDescription;
58
58
        gint iNbLinesInListing;
 
59
        gchar **cPreferredApplis;
 
60
        gboolean bUseFiles;
 
61
        gboolean bUseFirefox;
 
62
        gboolean bUseRecent;
 
63
        gboolean bUseWeb;
 
64
        gboolean bUseCommand;
59
65
        };
60
66
 
61
67
typedef struct _CDEntry CDEntry;
 
68
typedef struct _CDBackend CDBackend;
 
69
typedef struct _CDListing CDListing;
 
70
typedef struct _CDListingBackup CDListingBackup;
 
71
typedef struct _CDChar CDChar;
 
72
 
62
73
typedef gboolean (*CDFillEntryFunc) (CDEntry *pEntry);
63
74
typedef void (*CDExecuteEntryFunc) (CDEntry *pEntry);
64
75
typedef GList* (*CDListSubEntryFunc) (CDEntry *pEntry, int *iNbSubEntries);
66
77
struct _CDEntry {
67
78
        gchar *cPath;
68
79
        gchar *cName;
69
 
        gchar *cCaseDownName;
 
80
        gchar *cLowerCaseName;
70
81
        gchar *cIconName;
71
82
        cairo_surface_t *pIconSurface;
 
83
        gpointer data;
72
84
        gboolean bHidden;
 
85
        gboolean bMainEntry;
 
86
        CDBackend *pBackend;
73
87
        CDFillEntryFunc fill;
74
88
        CDExecuteEntryFunc execute;
75
89
        CDListSubEntryFunc list;
76
90
        } ;
77
91
 
78
 
typedef struct _CDListing {
 
92
struct _CDListing {
79
93
        CairoContainer container;
80
94
        GList *pEntries;
81
95
        gint iNbEntries;
92
106
        guint iSidFillEntries;
93
107
        GList *pEntryToFill;
94
108
        gint iNbVisibleEntries;
95
 
        } CDListing;
 
109
        } ;
96
110
 
97
 
typedef struct _CDListingBackup {
 
111
struct _CDListingBackup {
98
112
        GList *pEntries;
99
113
        gint iNbEntries;
100
114
        GList *pCurrentEntry;
101
 
        } CDListingBackup;
 
115
        } ;
102
116
 
103
 
typedef struct _CDChar {
 
117
struct _CDChar {
104
118
        gchar c;
105
119
        cairo_surface_t *pSurface;
106
120
        GLuint iTexture;
110
124
        gint iFinalX, iFinalY;
111
125
        gint iCurrentX, iCurrentY;
112
126
        gdouble fRotationAngle;
113
 
        } CDChar;
 
127
        } ;
114
128
 
115
129
typedef enum _CDFilter {
116
130
        DO_FILTER_NONE  =0,
123
137
        DO_TYPE_SOURCE  =1<<6
124
138
        } CDFilter;
125
139
 
126
 
typedef gboolean (*CDBackendInitFunc) (gpointer *pData);
127
 
typedef GList * (*CDBackendSearchFunc) (const gchar *cText, gint iFilter, gpointer pData, int *iNbEntries);
 
140
typedef gboolean (*CDBackendInitFunc) (void);
 
141
typedef GList * (*CDBackendSearchFunc) (const gchar *cText, gint iFilter, gboolean bSearchAll, int *iNbEntries);
 
142
typedef void (*CDBackendStopFunc) (void);
128
143
 
129
 
typedef struct _CDBackend {
 
144
struct _CDBackend {
130
145
        // interface
131
146
        const gchar *cName;
132
147
        gboolean bIsThreaded;
133
148
        gboolean bStaticResults;
134
149
        CDBackendInitFunc init;
135
150
        CDBackendSearchFunc search;
 
151
        CDBackendStopFunc stop;
136
152
        // private data
 
153
        gboolean bIsActive;
137
154
        gint iState;  // 0:uninitialized; 1:ok; -1:broken
138
155
        CairoDockTask *pTask;
139
156
        gboolean bTooManyResults;
141
158
        GList *pLastShownResults;
142
159
        gint iNbLastShownResults;
143
160
        // shared memory
144
 
        gpointer pData;  // lecture/ecriture.
145
161
        gchar *cCurrentLocateText;  // lecture seule dans le thread
146
162
        gint iLocateFilter;  // lecture seule dans le thread
147
163
        GList *pSearchResults;  // ecriture seule dans le thread
148
164
        gint iNbSearchResults;  // ecriture seule dans le thread
149
165
        // end of shared memory
150
 
        } CDBackend;
 
166
        } ;
151
167
 
152
168
//\___________ structure containing the applet's data, like surfaces, dialogs, results of calculation, etc.
153
169
struct _AppletData {