1 
2 /*
3 gnoclparams.h
4 */
5 
6 /**
7 \brief    Function associated with the widget.
8 \note     These are specific to the gnocl package alone, perhaps these should be put into specific library?
9 */
10 
11 typedef struct
12 {
13 	GtkWidget	*aspectFrame;
14 	Tcl_Interp  *interp;
15 	gchar       *name;
16 	gchar 		*label;
17 	gfloat 		xalign;
18 	gfloat		yalign;
19 	gfloat 		ratio;
20 	gboolean 	obey_child;
21 
22 } AspectFrameParams;
23 
24 typedef struct
25 {
26 	GtkWidget	*iconView;
27 	GtkWidget   *scrolledWindow;
28 	Tcl_Interp  *interp;
29 	gchar       *name;
30 	GtkListStore *list_store;
31 	gint		icon_width;
32 } IconViewParams;
33 
34 typedef struct
35 {
36 	GtkPrintOperation *operation;
37 	GtkPrintSettings  *settings;
38 	Tcl_Interp  *interp;
39 	char        *name;
40 	gchar 		*filename;
41 	gdouble 	font_size;
42 	gint 		lines_per_page;
43 	gchar 		**lines;
44 	gint 		total_lines;
45 	gint 		total_pages;
46 } PrintOperationsParams;
47 
48 
49 typedef struct
50 {
51 	GtkEntry    *entry;
52 	GtkEntryCompletion *completion;
53 	Tcl_Interp  *interp;
54 	char        *name;
55 	char        *variable;
56 	char        *focus;
57 	char        *onChanged;
58 	int         inSetVar;
59 	gboolean	check;
60 } EntryParams;
61 
62 
63 typedef struct
64 {
65 	GtkButton   *button;
66 	Tcl_Interp  *interp;
67 	char        *name;
68 	char        *iconName;
69 	char		*data; /* no longer used */
70 	char		*align;
71 	GtkAlignment *alignment;
72 	char		*baseFont;
73 } ButtonParams;
74 
75 
76 typedef struct
77 {
78 	GtkTextView       *textView;
79 	GtkScrolledWindow *scrolled;
80 	Tcl_Interp        *interp;
81 	char              *name;
82 	char              *textVariable;
83 	char              *onChanged;
84 	int               inSetVar;
85 	gboolean          useMarkup;
86 } TextParams;
87 
88 
89 typedef struct
90 {
91 	GtkLabel    *label;
92 	Tcl_Interp  *interp;
93 	char        *name;
94 	char        *textVariable;
95 	char        *onChanged;
96 	int         inSetVar;
97 } LabelParams;
98 
99 typedef struct
100 {
101 	char       *name;
102 	Tcl_Interp *interp;
103 	GtkScale   *scale;
104 	char       *onValueChanged;
105 	char       *variable;
106 	int        inSetVar;
107 } ScaleParams;
108 
109 typedef struct
110 {
111 	char       *name;
112 	Tcl_Interp *interp;
113 	GtkProgressBar *pbar;
114 	char       *onFractionChanged;
115 	char       *onTextChanged;
116 	char       *variable;
117 	int        inSetVar;
118 	char       *textVariable;
119 	int        inSetText;
120 } ProgressBarParams;
121 
122 typedef struct
123 {
124 	GtkLabel    *label;
125 	Tcl_Interp  *interp;
126 	char        *name;
127 	char        *textVariable;
128 	char        *onChanged;
129 	int         inSetVar;
130 } AccelaratorParams;
131 
132 typedef struct
133 {
134 	char         *name;
135 	Tcl_Interp   *interp;
136 	GtkScrollbar *scroll;
137 	char         *onValueChanged;
138 	char         *variable;
139 	int          inSetVar;
140 } ScrollParams;
141 
142 
143 typedef struct
144 {
145 	char        *name;
146 	Tcl_Interp  *interp;
147 	GtkComboBox *comboBox;
148 	char        *onChanged;
149 	char        *variable;
150 	int         inSetVar;
151 } ComboBoxParams;
152 
153 typedef struct
154 {
155 	Tcl_Interp        *interp;
156 	char              *name;
157 	GtkTreeView       *view;
158 	GtkScrolledWindow *scrollWin;
159 	int               noColumns;
160 	int               isTree;
161 	GtkEntry 		  *searchEntry;
162 	GHashTable        *idToIter;
163 	char			  *data;
164 } TreeListParams;
165 
166 typedef struct
167 {
168 	char       *onResponse;
169 	char       *name;
170 	GtkWidget  *dialog;
171 	Tcl_Interp *interp;
172 	GPtrArray  *butRes;
173 	int        isModal;
174 	int        ret;
175 } DialogParams;
176 
177 typedef struct
178 {
179 	char       *onResponse;
180 	char       *name;
181 	GtkDialog  *dialog;
182 	Tcl_Interp *interp;
183 	GPtrArray  *butRes;
184 	int        isModal;
185 	int        ret;
186 } InputDialogParams;
187 
188 
189 typedef struct
190 {
191 	char             *name;
192 	Tcl_Interp       *interp;
193 	char             *onClicked;
194 	GtkColorSelectionDialog *colorSel;
195 } ColorSelDialogParams;
196 
197 typedef struct
198 {
199 	Tcl_Interp           *interp;
200 	char                 *name;
201 	int                  getURIs;
202 	GtkFileChooserDialog *fileDialog;
203 } FileSelDialogParams;
204 
205 typedef struct
206 {
207 	char             *name;
208 	Tcl_Interp       *interp;
209 	char             *onClicked;
210 	GtkFontSelectionDialog *fontSel;
211 } FontSelDialogParams;
212 
213 typedef struct
214 {
215 	GtkWidget  	*item;
216 	char 		*name;
217 	char 		*onClicked;
218 	Tcl_Interp 	*interp;
219 } ToolButtonParams;
220 
221 
222 typedef struct
223 {
224 	GtkWidget	*item;
225 	GtkWidget	*menu;
226 	char		*name;
227 	char		*onClicked;
228 	Tcl_Interp	*interp;
229 } ToolButtonMenuParams;
230 
231 typedef struct
232 {
233 	GtkPageSetup *setup;
234 	GtkPaperSize *size;
235 	int unit;
236 	char *name;
237 	Tcl_Interp *interp;
238 } PaperSetupParams;
239 
240 
241 typedef struct _CalendarData
242 {
243 	GtkWidget	*calendar_widget;
244 	GtkWidget	*flag_checkboxes[6];
245 	gboolean	settings[6];
246 	GtkWidget	*font_dialog;
247 	GtkWidget	*window;
248 	GtkWidget	*prev2_sig;
249 	GtkWidget	*prev_sig;
250 	GtkWidget	*last_sig;
251 	GtkWidget	*month;
252 	GHashTable	*details_table;
253 	GtkTextBuffer	*details_buffer;
254 	guint		details_changed;
255 } CalendarData;
256 
257 typedef struct
258 {
259 	char			*name;
260 	Tcl_Interp		*interp;
261 	GtkWidget 		*calendar;
262 	GHashTable		*details;
263 	GtkTextBuffer	*buffer;
264 	guint			changed;
265 } CalendarParams;
266 
267 
268 typedef struct
269 {
270 	char *text;
271 	char *font;
272 	char *clr;
273 	char *pos;
274 } splashText;
275 
276 typedef struct
277 {
278 	int  progBar;
279 
280 	float progress;
281 	float range;
282 
283 	int width;
284 	int height;
285 
286 	char appName[32];
287 	char appFont[32];
288 	char appWeight[32];
289 	char appClr[32];
290 	char appPos[32];
291 
292 	char caption[32];
293 	char capFont[32];
294 	char capWeight[32];
295 	char capClr[32];
296 	char capPos[32];
297 
298 	char version[32];
299 	char verFont[32];
300 	char verWeight[32];
301 	char verClr[32];
302 	char verPos[32];
303 
304 	char byLine[32];
305 	char byFont[32];
306 	char byWeight[32];
307 	char byClr[32];
308 	char byPos[32];
309 
310 	char copyright[48];
311 	char crFont[32];
312 	char crWeight[32];
313 	char crClr[32];
314 	char crPos[32];
315 
316 	char *bgImage;
317 	char *maskImage;
318 	char *bgclr;
319 
320 	char *exitCommand;
321 
322 	GtkImage *image;
323 	char message[32];
324 	char *name;
325 
326 	Tcl_Interp *interp;
327 	GtkWidget *window;
328 	GdkPixbuf *pixbuf;
329 	GdkPixbuf *pixbuf2;
330 } SplashScreenParams;
331 
332 typedef struct
333 {
334 	GdkPixbuf *pixbuf;
335 	cairo_t *cr;
336 	Tcl_Interp *interp;
337 	char *fname;
338 } PixbufParams;
339 
340 
341 typedef struct
342 {
343 	GtkAccelGroup *group;
344 	GtkWindow *window;
345 	Tcl_Interp *interp;
346 } AccGrpParams;
347 
348 typedef struct
349 {
350 	GtkToolbar *toolBar;
351 	GtkTextView *textView;
352 	Tcl_Interp *interp;
353 	char *name;
354 	char *fgClr;
355 	char *bgClr;
356 	GtkWidget *fgImg;
357 	GtkWidget *bgImg;
358 	GtkWidget *bg;
359 	GtkWidget *fg;
360 } RichTextToolbarParams;
361