home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / imagemap / imap_default_dialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-01  |  2.2 KB  |  62 lines

  1. /*
  2.  * This is a plug-in for the GIMP.
  3.  *
  4.  * Generates clickable image maps.
  5.  *
  6.  * Copyright (C) 1998-2000 Maurits Rijk  lpeek.mrijk@consunet.nl
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21.  *
  22.  */
  23.  
  24. #ifndef _IMAP_DEFAULT_DIALOG_H
  25. #define _IMAP_DEFAULT_DIALOG_H
  26.  
  27. #include "gtk/gtk.h"
  28.  
  29. typedef struct {
  30.    GtkWidget    *dialog;
  31.    GtkWidget    *ok;
  32.    GtkWidget    *apply;
  33.    GtkWidget    *cancel;
  34.    GtkWidget    *help;
  35.    void        (*ok_cb)(gpointer);
  36.    gpointer    ok_cb_data;
  37.    void        (*apply_cb)(gpointer);
  38.    gpointer    apply_cb_data;
  39.    void        (*cancel_cb)(gpointer);
  40.    gpointer    cancel_cb_data;
  41. } DefaultDialog_t;
  42.  
  43. DefaultDialog_t *make_default_dialog(const gchar *title);
  44. void default_dialog_set_ok_cb(DefaultDialog_t *dialog, void (*ok_cb)(gpointer),
  45.                   gpointer ok_cb_data);
  46. void default_dialog_set_apply_cb(DefaultDialog_t *dialog, 
  47.                  void (*apply_cb)(gpointer),
  48.                  gpointer apply_cb_data);
  49. void default_dialog_set_cancel_cb(DefaultDialog_t *dialog, 
  50.                   void (*ok_cb)(gpointer),
  51.                   gpointer ok_cb_data);
  52. void default_dialog_show(DefaultDialog_t *dialog);
  53. void default_dialog_hide_cancel_button(DefaultDialog_t *dialog);
  54. void default_dialog_hide_apply_button(DefaultDialog_t *dialog);
  55. void default_dialog_hide_help_button(DefaultDialog_t *dialog);
  56. void default_dialog_set_title(DefaultDialog_t *dialog, const gchar *title);
  57. void default_dialog_set_ok_sensitivity(DefaultDialog_t *dialog, 
  58.                        gint sensitive);
  59. void default_dialog_set_label(DefaultDialog_t *dialog, gchar *text);
  60.  
  61. #endif /* _IMAP_DEFAULT_DIALOG_H */
  62.