1 /*
2  *  simple.h
3  *
4  *  Written by:		Ullrich Hafner
5  *
6  *  Copyright (C) 1999 Ullrich Hafner <hafner@bigfoot.de>
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, USA.
21  */
22 
23 #ifndef _SIMPLE_H
24 #define _SIMPLE_H
25 
26 #include <gtk/gtk.h>
27 #include "proplist_t.h"
28 #include "misc.h"
29 
30 
31 typedef struct omenudata
32 {
33    const char	 **values;
34    GtkOptionMenu *omenu;
35 } omenudata_t;
36 
37 #ifdef HAVE_LIBWMFUN
38 typedef struct text_color
39 {
40    GtkWidget  *option_menu;
41    GtkWidget  *solid_color;
42    GtkWidget  *color_set [3];
43    proplist_t key;
44 } text_color_t;
45 
46 typedef enum {TCOLOR_SIMPLE, TCOLOR_COLORSET, TCOLOR_LAST} tcolor_e;
47 
48 GtkWidget *
49 extended_color_dialog (GtkWidget *page, proplist_t key, proplist_t value,
50 		       GtkTooltips *tooltips, proplist_t info,
51 		       proplist_t title);
52 #endif /* HAVE_LIBWMFUN */
53 
54 void
55 boolean_dialog (GtkWidget *table, proplist_t key, proplist_t value,
56 		proplist_t info);
57 void
58 string_dialog (GtkWidget *table, proplist_t key, proplist_t value,
59 	       proplist_t range, proplist_t rinfo, proplist_t info);
60 void
61 int_dialog (GtkWidget *table, proplist_t key, proplist_t value,
62 	    proplist_t range, proplist_t rinfo, proplist_t info);
63 void
64 text_dialog (GtkWidget *table, proplist_t key, proplist_t value,
65 	     proplist_t info);
66 GtkWidget *
67 font_dialog (GtkWidget *page, proplist_t key, proplist_t value,
68 	     proplist_t info);
69 GtkWidget *
70 color_dialog (GtkWidget *page, proplist_t key, proplist_t value,
71 	      GtkTooltips *tooltips, proplist_t info, proplist_t title);
72 void
73 update_optionmenu (proplist_t key, gpointer ptr, proplist_t value,
74 		   const char *path);
75 bool_t
76 convert_bool (proplist_t p);
77 void
78 iboolean_dialog (GtkWidget *table, proplist_t key, proplist_t value,
79 		 proplist_t info);
80 
81 #endif /* not _SIMPLE_H */
82