~ubuntu-branches/ubuntu/oneiric/cairo-dock/oneiric-201106091216

« back to all changes in this revision

Viewing changes to src/cairo-dock-dialogs.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe), Matthieu Baerts (matttbe), Didier Roche
  • Date: 2010-03-01 21:24:00 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100301212400-3a3csog6eonse3in
Tags: 2.1.3-6-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New Upstream Version. (LP: #521534)
* Updated debian/watch and debian/copyright with LP account.
* Removed debian/patches/02-merge-changelog.patch'
 - data/ChangeLog.txt has to respect a syntax and is used by CD.
* debian/cairo-dock.1:
 - Updated with the latest release.
 - The domain name 'cairo-dock.org' has changed to 'glx-dock.org'
* debian/control:
 - Changed the homepage and other links (glx-dock.org)
 - Updated cairo-dock-dev architecture to 'all' (it no longer contains compiled files)
* debian/cairo-dock-dev.install
 - libcairo-dock.a and libcairo-dock.so no longer exist
* debian/rules
 - removed uneeded changelog file
* Updated debian/patches/01-desktop-file-category.patch

[ Didier Roche ]
* Fix debian/watch
* Fix some issue in versionning
* debian/control: clean the packaging and add right -plugins depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
 
1
/*
2
2
* This file is a part of the Cairo-Dock project
3
3
*
4
4
* Copyright : (C) see the 'copyright' file.
109
109
        gint iTimeLength;
110
110
        /// name of a decorator, or NULL to use the default one.
111
111
        gchar *cDecoratorName;
 
112
        
 
113
        /// whether the dialog should be transparent to mouse input.
 
114
        gboolean bNoInput;
112
115
};
113
116
 
114
117
struct _CairoDialogButton {
151
154
        GtkWidget *pButtonsWidget;
152
155
        /// le widget de remplissage ou l'on dessine la pointe.
153
156
        GtkWidget *pTipWidget;
 
157
        /// le widget de remplissage de la marge du haut.
 
158
        GtkWidget *pTopWidget;
154
159
        
155
160
        //\_____________________ surfaces
156
161
        /// surface representant the message to display.
198
203
        CairoDialogButton *pButtons;
199
204
        /// textures.
200
205
        GLuint iIconTexture, iTextTexture;
201
 
        gboolean bFinalized;
 
206
        /// whether the dialog is transparent to mouse input.
 
207
        gboolean bNoInput;
202
208
        /// TRUE to allow the dialog to be minimized once. The flag is reseted to FALSE after the desklet has minimized.
203
209
        gboolean bAllowMinimize;
 
210
        GdkBitmap* pShapeBitmap;
 
211
        GTimer *pUnmapTimer;
204
212
};
205
213
 
206
214
 
236
244
*/
237
245
void cairo_dock_free_dialog (CairoDialog *pDialog);
238
246
 
 
247
/** Unreference the dialogs pointed by an icon.
 
248
*@param icon the icon you want to delete all dialogs from.
 
249
*@param bAll whether all dialogs should be removed or only the one that don't have interaction with the user.
 
250
*@returns TRUE if at least one dialog has been unreferenced.
 
251
*/
 
252
gboolean cairo_dock_remove_dialog_if_any_full (Icon *icon, gboolean bAll);
 
253
 
239
254
/** Unreference all the dialogs pointed by an icon.
240
255
*@param icon the icon you want to delete all dialogs from.
241
256
*@returns TRUE if at least one dialog has been unreferenced.
242
257
*/
243
 
gboolean cairo_dock_remove_dialog_if_any (Icon *icon);
 
258
#define cairo_dock_remove_dialog_if_any(icon) cairo_dock_remove_dialog_if_any_full (icon, TRUE)
 
259
 
244
260
 
245
261
GtkWidget *cairo_dock_add_dialog_internal_box (CairoDialog *pDialog, int iWidth, int iHeight, gboolean bCanResize);
246
262
 
285
301
*@param ... arguments to insert in the message, in a printf way.
286
302
*@return the newly created dialog, visible, with a reference of 1.
287
303
*/
288
 
CairoDialog *cairo_dock_show_temporary_dialog_with_icon (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, double fTimeLength, const gchar *cIconPath, ...);
 
304
CairoDialog *cairo_dock_show_temporary_dialog_with_icon_printf (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, double fTimeLength, const gchar *cIconPath, ...);
 
305
 
 
306
/** Pop up a dialog with a message, and a limited duration, and an icon in the margin.
 
307
*@param cText the message to display.
 
308
*@param pIcon the icon that will hold the dialog.
 
309
*@param pContainer the container of the icon.
 
310
*@param fTimeLength the duration of the dialog (in ms), or 0 for an unlimited dialog.
 
311
*@param cIconPath path to an icon.
 
312
*@return the newly created dialog, visible, with a reference of 1.
 
313
*/
 
314
CairoDialog *cairo_dock_show_temporary_dialog_with_icon (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, double fTimeLength, const gchar *cIconPath);
289
315
 
290
316
/** Pop up a dialog with a message, and a limited duration, with no icon.
291
317
*@param cText the message to display.
292
318
*@param pIcon the icon that will hold the dialog.
293
319
*@param pContainer the container of the icon.
294
320
*@param fTimeLength the duration of the dialog (in ms), or 0 for an unlimited dialog.
295
 
*@param ... arguments to insert in the message, in a printf way.
296
321
*@return the newly created dialog, visible, with a reference of 1 et visible, avec une reference a 1.
297
322
*/
298
 
CairoDialog *cairo_dock_show_temporary_dialog (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, double fTimeLength, ...);
 
323
CairoDialog *cairo_dock_show_temporary_dialog (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, double fTimeLength);
299
324
 
300
325
/** Pop up a dialog with a message, and a limited duration, and a default icon.
301
326
*@param cText the format of the message to display.
302
327
*@param pIcon the icon that will hold the dialog.
303
328
*@param pContainer the container of the icon.
304
329
*@param fTimeLength the duration of the dialog (in ms), or 0 for an unlimited dialog.
305
 
*@param ... arguments to insert in the message, in a printf way.
306
330
*@return the newly created dialog, visible, with a reference of 1 et visible, avec une reference a 1.
307
331
*/
308
 
CairoDialog *cairo_dock_show_temporary_dialog_with_default_icon (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, double fTimeLength, ...);
 
332
CairoDialog *cairo_dock_show_temporary_dialog_with_default_icon (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, double fTimeLength);
309
333
 
310
334
/** Pop up a dialog with a question and 2 buttons ok/cancel.
311
335
* When the user make its choice, the callback is called with the value "yes" if he clicked on "ok", and with "no" if he clicked on "cancel".
344
368
*@param pContainer the container of the icon.
345
369
*@param cIconPath path to an icon to display in the margin.
346
370
*@param fValue initial value of the scale.
 
371
*@param fMaxValue maximum value of the scale.
347
372
*@param pActionFunc the callback.
348
373
*@param data data passed as a parameter of the callback.
349
374
*@param pFreeDataFunc function used to free the data.
350
375
*@return the newly created dialog, visible, with a reference of 1.
351
376
*/
352
 
CairoDialog *cairo_dock_show_dialog_with_value (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, const gchar *cIconPath, double fValue, CairoDockActionOnAnswerFunc pActionFunc, gpointer data, GFreeFunc pFreeDataFunc);
 
377
CairoDialog *cairo_dock_show_dialog_with_value (const gchar *cText, Icon *pIcon, CairoContainer *pContainer, const gchar *cIconPath, double fValue, double fMaxValue, CairoDockActionOnAnswerFunc pActionFunc, gpointer data, GFreeFunc pFreeDataFunc);
353
378
 
354
379
 
355
380
 
432
457
void cairo_dock_toggle_dialog_visibility (CairoDialog *pDialog);
433
458
 
434
459
GtkWidget *cairo_dock_steal_widget_from_its_container (GtkWidget *pWidget);
435
 
 
 
460
/** Detach the interactive widget from a dialog. The widget can then be placed anywhere after that. You have to unref it after you placed it into a container, or to destroy it.
 
461
*@param pDialog the desklet with an interactive widget.
 
462
*@return the widget.
 
463
*/
 
464
GtkWidget *cairo_dock_steal_interactive_widget_from_dialog (CairoDialog *pDialog);
436
465
 
437
466
void cairo_dock_set_new_dialog_text_surface (CairoDialog *pDialog, cairo_surface_t *pNewTextSurface, int iNewTextWidth, int iNewTextHeight);
438
467
void cairo_dock_set_new_dialog_icon_surface (CairoDialog *pDialog, cairo_surface_t *pNewIconSurface, int iNewIconSize);