aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-05 00:55:37 +1000
committerDavid Walter Seikel2014-05-05 00:55:37 +1000
commitd5d869e9ec2c54db9e3ff25c518d0b57ee362c1e (patch)
treec86a3c2b51216270a447652174b7c1b54a59d6b4
parentMinor clean up. (diff)
downloadSledjHamr-d5d869e9ec2c54db9e3ff25c518d0b57ee362c1e.zip
SledjHamr-d5d869e9ec2c54db9e3ff25c518d0b57ee362c1e.tar.gz
SledjHamr-d5d869e9ec2c54db9e3ff25c518d0b57ee362c1e.tar.bz2
SledjHamr-d5d869e9ec2c54db9e3ff25c518d0b57ee362c1e.tar.xz
fangWin -> winFang and related changes.
-rwxr-xr-xsrc/extantz/build.lua7
-rw-r--r--src/extantz/chat.c10
-rw-r--r--src/extantz/extantz.c61
-rw-r--r--src/extantz/extantz.h39
-rw-r--r--src/extantz/files.c14
-rw-r--r--src/extantz/winFang.c (renamed from src/extantz/fangWin.c)54
-rw-r--r--src/extantz/winFang.h32
-rw-r--r--src/extantz/woMan.c8
8 files changed, 124 insertions, 101 deletions
diff --git a/src/extantz/build.lua b/src/extantz/build.lua
index 8a02b55..2b6d615 100755
--- a/src/extantz/build.lua
+++ b/src/extantz/build.lua
@@ -17,10 +17,13 @@ CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/inc
17LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux' 17LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux'
18libs = libs .. ' -lIrrlicht -lGL -lbz2' 18libs = libs .. ' -lIrrlicht -lGL -lbz2'
19 19
20removeFiles(dir, {'../../extantz', 'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'gears.o', 'ephysics_demo.o', 'camera.o', 'Evas_3D_demo.o', 'fangWin.o', 'chat.o', 'files.o', 'woMan.o', '../../media/extantz.edj'}) 20removeFiles(dir, {'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'gears.o', 'ephysics_demo.o', 'Evas_3D_demo.o', '../../media/extantz.edj'})
21removeFiles(dir, {'../../extantz', 'camera.o', 'winFang.o', 'chat.o', 'files.o', 'woMan.o'})
21 22
22runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../media/extantz.edj') 23runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../media/extantz.edj')
23runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) 24runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS)
24runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) 25runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS)
25runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) 26runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS)
26compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'Evas_3D_demo', 'fangWin', 'chat', 'files', 'woMan', 'extantz'}, 'crappisspuke.o CDemo.o extantzCamera.o') 27runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c winFang.c')
28runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libwinFang.so -o ' .. lib_d .. '/libwinFang.so winFang.o')
29compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'Evas_3D_demo', 'chat', 'files', 'woMan', 'extantz'}, 'crappisspuke.o CDemo.o extantzCamera.o -lwinFang')
diff --git a/src/extantz/chat.c b/src/extantz/chat.c
index e814842..2155541 100644
--- a/src/extantz/chat.c
+++ b/src/extantz/chat.c
@@ -5,18 +5,18 @@
5// The bug is that editable entry widgets cause the app to hang on exit. 5// The bug is that editable entry widgets cause the app to hang on exit.
6void _on_entry_del(void *data, Evas_Object *obj, void *event_info) 6void _on_entry_del(void *data, Evas_Object *obj, void *event_info)
7{ 7{
8// fangWin *me = data; 8// winFang *me = data;
9 9
10 elm_entry_editable_set(obj, EINA_FALSE); 10 elm_entry_editable_set(obj, EINA_FALSE);
11} 11}
12 12
13fangWin *chat_add(globals *ourGlobals) 13winFang *chat_add(globals *ourGlobals)
14{ 14{
15 fangWin *me; 15 winFang *me;
16 Widget *wid; 16 Widget *wid;
17 Evas_Object *bx, *en; 17 Evas_Object *bx, *en;
18 18
19 me = fang_win_add(ourGlobals); 19 me = winFangAdd(ourGlobals);
20 20
21 bx = eo_add(ELM_OBJ_BOX_CLASS, me->win, 21 bx = eo_add(ELM_OBJ_BOX_CLASS, me->win,
22 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 22 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
@@ -46,6 +46,6 @@ fangWin *chat_add(globals *ourGlobals)
46 evas_object_show(bx); 46 evas_object_show(bx);
47 eo_unref(bx); 47 eo_unref(bx);
48 48
49 fang_win_complete(ourGlobals, me, 30, 500, ourGlobals->win_w / 3, ourGlobals->win_h / 3); 49 winFangComplete(ourGlobals, me, 30, 500, ourGlobals->win_w / 3, ourGlobals->win_h / 3);
50 return me; 50 return me;
51} 51}
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index ef493b8..679a47e 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -328,12 +328,65 @@ static void makeMainMenu(globals *ourGlobals)
328 evas_object_show(tb); 328 evas_object_show(tb);
329} 329}
330 330
331// Elm inlined image windows needs this to change focus on mouse click.
332// Evas style event callback.
333static void _cb_mouse_down_elm(void *data, Evas *evas, Evas_Object *obj, void *event_info)
334{
335 Evas_Event_Mouse_Down *ev = event_info;
336
337 if (1 == ev->button)
338 elm_object_focus_set(obj, EINA_TRUE);
339}
340
341void overlay_add(globals *ourGlobals)
342{
343 GLData *gld = &ourGlobals->gld;
344 Evas_Object *bg;
345
346 // There are many reasons for this window.
347 // The first is to cover the GL and provide something to click on to change focus.
348 // The second is to provide something to click on for all the GL type clicking stuff that needs to be done. In other words, no click through, we catch the clicks here.
349 // So we can probably avoid the following issue -
350 // How to do click through? evas_object_pass_events_set(rectangle, EINA_TRUE), and maybe need to do that to the underlaying window to?
351 // Though if the rectangle is entirely transparent, or even hidden, events might pass through anyway.
352 // Gotta have click through on the parts where there's no other window.
353 // The third is to have the other windows live here.
354 // This idea doesn't work, as it breaks the damn focus again.
355 // Don't think it's needed anyway.
356 // While on the subject of layers, need a HUD layer of some sort, but Irrlicht might support that itself.
357
358 gld->winwin = elm_win_add(ourGlobals->win, "inlined", ELM_WIN_INLINED_IMAGE);
359 // On mouse down we try to shift focus to the backing image, this seems to be the correct thing to force focus onto it's widgets.
360 // According to the Elm inlined image window example, this is what's needed to.
361 evas_object_event_callback_add(elm_win_inlined_image_object_get(gld->winwin), EVAS_CALLBACK_MOUSE_DOWN, _cb_mouse_down_elm, NULL);
362 // In this code, we are making our own camera, so grab it's input when we are focused.
363 cameraAdd(ourGlobals, gld->winwin);
364
365 elm_win_alpha_set(gld->winwin, EINA_TRUE);
366 // Apparently transparent is not good enough for ELM backgrounds, so make it a rectangle.
367 // Apparently coz ELM prefers stuff to have edjes. A bit over the top if all I want is a transparent rectangle.
368 bg = evas_object_rectangle_add(evas_object_evas_get(gld->winwin));
369 evas_object_color_set(bg, 0, 0, 0, 0);
370 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
371 elm_win_resize_object_add(gld->winwin, bg);
372 evas_object_show(bg);
373
374 // image object for win is unlinked to its pos/size - so manual control
375 // this allows also for using map and other things with it.
376 evas_object_move(elm_win_inlined_image_object_get(gld->winwin), 0, 0);
377 // Odd, it needs to be resized twice. WTF?
378 evas_object_resize(gld->winwin, ourGlobals->win_w, ourGlobals->win_h);
379 evas_object_resize(elm_win_inlined_image_object_get(gld->winwin), ourGlobals->win_w, ourGlobals->win_h);
380 evas_object_show(gld->winwin);
381}
382
383
331EAPI_MAIN int elm_main(int argc, char **argv) 384EAPI_MAIN int elm_main(int argc, char **argv)
332{ 385{
333 Evas_Object *obj; 386 Evas_Object *obj;
334 EPhysics_World *world; 387 EPhysics_World *world;
335 GLData *gld = NULL; 388 GLData *gld = NULL;
336 fangWin *chat = NULL, *woMan = NULL; 389 winFang *chat = NULL, *woMan = NULL;
337 char buf[PATH_MAX]; 390 char buf[PATH_MAX];
338// Eina_Bool gotWebKit = elm_need_web(); // Initialise ewebkit if it exists, or return EINA_FALSE if it don't. 391// Eina_Bool gotWebKit = elm_need_web(); // Initialise ewebkit if it exists, or return EINA_FALSE if it don't.
339 392
@@ -452,9 +505,9 @@ EAPI_MAIN int elm_main(int argc, char **argv)
452 { 505 {
453 Evas_3D_Demo_fini(&ourGlobals); 506 Evas_3D_Demo_fini(&ourGlobals);
454 eo_unref(ourGlobals.tb); 507 eo_unref(ourGlobals.tb);
455 fang_win_del(&ourGlobals, ourGlobals.files); 508 winFangDel(&ourGlobals, ourGlobals.files);
456 fang_win_del(&ourGlobals, chat); 509 winFangDel(&ourGlobals, chat);
457 fang_win_del(&ourGlobals, woMan); 510 winFangDel(&ourGlobals, woMan);
458 eo_unref(ourGlobals.bx); 511 eo_unref(ourGlobals.bx);
459 evas_object_del(ourGlobals.win); 512 evas_object_del(ourGlobals.win);
460 } 513 }
diff --git a/src/extantz/extantz.h b/src/extantz/extantz.h
index a4001c7..046f099 100644
--- a/src/extantz/extantz.h
+++ b/src/extantz/extantz.h
@@ -10,6 +10,7 @@
10#include <Evas_GL.h> 10#include <Evas_GL.h>
11#include <EPhysics.h> 11#include <EPhysics.h>
12#include "extantzCamera.h" 12#include "extantzCamera.h"
13#include "winFang.h"
13 14
14 15
15#ifdef GL_GLES 16#ifdef GL_GLES
@@ -123,27 +124,7 @@ typedef struct
123 short x, y, z; 124 short x, y, z;
124} ezLandmark; 125} ezLandmark;
125 126
126typedef struct _fangWin
127{
128 Evas_Object *win;
129 Eina_Clist widgets;
130 void *data;
131 Evas_Smart_Cb on_del;
132} fangWin;
133 127
134typedef struct _Widget
135{
136 char magic[8];
137 Evas_Object *obj;
138 Eina_Clist node;
139 char *label, *look, *action, *help;
140 // foreground / background colour
141 // thing
142 // types {}
143 // skangCoord x, y, w, h
144 void *data;
145 Evas_Smart_Cb on_del;
146} Widget;
147 128
148typedef struct _Scene_Data 129typedef struct _Scene_Data
149{ 130{
@@ -244,7 +225,7 @@ typedef struct _globals
244 225
245 Eina_Clist windows; 226 Eina_Clist windows;
246 227
247 fangWin *files; 228 winFang *files;
248} globals; 229} globals;
249 230
250extern globals ourGlobals; 231extern globals ourGlobals;
@@ -265,22 +246,18 @@ EAPI void drawIrr_end(globals *ourGlobals);
265EAPI void finishIrr(globals *ourGlobals); 246EAPI void finishIrr(globals *ourGlobals);
266#endif 247#endif
267 248
249void overlay_add(globals *ourGlobals);
250
268EAPI void Evas_3D_Demo_add(globals *ourGlobals); 251EAPI void Evas_3D_Demo_add(globals *ourGlobals);
269Eina_Bool _animate_scene(globals *ourGlobals); 252Eina_Bool _animate_scene(globals *ourGlobals);
270void Evas_3D_Demo_fini(globals *ourGlobals); 253void Evas_3D_Demo_fini(globals *ourGlobals);
271 254
272void cameraAdd(globals *ourGlobals, Evas_Object *win); 255void cameraAdd(globals *ourGlobals, Evas_Object *win);
273 256
274fangWin *fang_win_add(globals *ourGlobals); 257winFang *chat_add(globals *ourGlobals);
275void fang_win_complete(globals *ourGlobals, fangWin *win, int x, int y, int w, int h); 258winFang *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool save);
276void fang_win_del(globals *ourGlobals, fangWin *win); 259void filesShow(winFang *me, Evas_Smart_Cb func, void *data);
277void overlay_add(globals *ourGlobals); 260winFang *woMan_add(globals *ourGlobals);
278Widget *widgetAdd(fangWin *win, const Eo_Class *klass, Evas_Object *parent, char *title);
279
280fangWin *chat_add(globals *ourGlobals);
281fangWin *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool save);
282void filesShow(fangWin *me, Evas_Smart_Cb func, void *data);
283fangWin *woMan_add(globals *ourGlobals);
284 261
285 262
286#ifdef __cplusplus 263#ifdef __cplusplus
diff --git a/src/extantz/files.c b/src/extantz/files.c
index 816894f..ff76dff 100644
--- a/src/extantz/files.c
+++ b/src/extantz/files.c
@@ -60,7 +60,7 @@ static void _big_icon_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *ev
60 60
61static void my_fileselector_activated(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 61static void my_fileselector_activated(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
62{ 62{
63 fangWin *me = data; 63 winFang *me = data;
64 Evas_Object *fs = me->data; 64 Evas_Object *fs = me->data;
65 65
66 if (elm_fileselector_multi_select_get(fs)) 66 if (elm_fileselector_multi_select_get(fs))
@@ -85,7 +85,7 @@ static void my_fileselector_activated(void *data, Evas_Object *obj EINA_UNUSED,
85 85
86static void _CANCEL_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 86static void _CANCEL_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
87{ 87{
88 fangWin *me = data; 88 winFang *me = data;
89 89
90 evas_object_hide(me->win); 90 evas_object_hide(me->win);
91} 91}
@@ -140,13 +140,13 @@ void _on_fs_del(void *data, Evas_Object *obj, void *event_info)
140 elm_entry_editable_set(obj, EINA_FALSE); 140 elm_entry_editable_set(obj, EINA_FALSE);
141} 141}
142 142
143fangWin *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool save) 143winFang *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool save)
144{ 144{
145 fangWin *me; 145 winFang *me;
146 Widget *wid; 146 Widget *wid;
147 Evas_Object *bx, *vbox, *fs, *bt, *rd = NULL, *rdg = NULL, *hoversel; 147 Evas_Object *bx, *vbox, *fs, *bt, *rd = NULL, *rdg = NULL, *hoversel;
148 148
149 me = fang_win_add(ourGlobals); 149 me = winFangAdd(ourGlobals);
150 150
151 bx = eo_add(ELM_OBJ_BOX_CLASS, me->win, 151 bx = eo_add(ELM_OBJ_BOX_CLASS, me->win,
152 elm_obj_box_homogeneous_set(EINA_FALSE), 152 elm_obj_box_homogeneous_set(EINA_FALSE),
@@ -277,12 +277,12 @@ fangWin *filesAdd(globals *ourGlobals, char *path, Eina_Bool multi, Eina_Bool sa
277 eo_unref(vbox); 277 eo_unref(vbox);
278 eo_unref(bx); 278 eo_unref(bx);
279 279
280 fang_win_complete(ourGlobals, me, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500); 280 winFangComplete(ourGlobals, me, ourGlobals->win_w - 380, ourGlobals->win_w - 530, 350, 500);
281 evas_object_hide(me->win); 281 evas_object_hide(me->win);
282 return me; 282 return me;
283} 283}
284 284
285void filesShow(fangWin *me, Evas_Smart_Cb func, void *data) 285void filesShow(winFang *me, Evas_Smart_Cb func, void *data)
286{ 286{
287 Evas_Object *fs = me->data; 287 Evas_Object *fs = me->data;
288 288
diff --git a/src/extantz/fangWin.c b/src/extantz/winFang.c
index 88a5c00..0f0328f 100644
--- a/src/extantz/fangWin.c
+++ b/src/extantz/winFang.c
@@ -76,12 +76,12 @@ static void create_handles(Evas_Object *obj)
76 } 76 }
77} 77}
78 78
79fangWin *fang_win_add(globals *ourGlobals) 79winFang *winFangAdd(globals *ourGlobals)
80{ 80{
81 fangWin *result; 81 winFang *result;
82 Evas_Object *bg; 82 Evas_Object *bg;
83 83
84 result = calloc(1, sizeof(fangWin)); 84 result = calloc(1, sizeof(winFang));
85 eina_clist_init(&result->widgets); 85 eina_clist_init(&result->widgets);
86 86
87 // In theory this should create an EWS window, in practice, I'm not seeing any difference. 87 // In theory this should create an EWS window, in practice, I'm not seeing any difference.
@@ -104,7 +104,7 @@ fangWin *fang_win_add(globals *ourGlobals)
104 return result; 104 return result;
105} 105}
106 106
107void fang_win_complete(globals *ourGlobals, fangWin *win, int x, int y, int w, int h) 107void winFangComplete(globals *ourGlobals, winFang *win, int x, int y, int w, int h)
108{ 108{
109 // image object for win is unlinked to its pos/size - so manual control 109 // image object for win is unlinked to its pos/size - so manual control
110 // this allows also for using map and other things with it. 110 // this allows also for using map and other things with it.
@@ -116,7 +116,7 @@ void fang_win_complete(globals *ourGlobals, fangWin *win, int x, int y, int w, i
116 create_handles(elm_win_inlined_image_object_get(win->win)); 116 create_handles(elm_win_inlined_image_object_get(win->win));
117} 117}
118 118
119void fang_win_del(globals *ourGlobals, fangWin *win) 119void winFangDel(globals *ourGlobals, winFang *win)
120{ 120{
121 Widget *wid; 121 Widget *wid;
122 122
@@ -132,49 +132,7 @@ void fang_win_del(globals *ourGlobals, fangWin *win)
132 evas_object_del(win->win); 132 evas_object_del(win->win);
133} 133}
134 134
135void overlay_add(globals *ourGlobals) 135Widget *widgetAdd(winFang *win, const Eo_Class *klass, Evas_Object *parent, char *title)
136{
137 GLData *gld = &ourGlobals->gld;
138 Evas_Object *bg;
139
140 // There are many reasons for this window.
141 // The first is to cover the GL and provide something to click on to change focus.
142 // The second is to provide something to click on for all the GL type clicking stuff that needs to be done. In other words, no click through, we catch the clicks here.
143 // So we can probably avoid the following issue -
144 // How to do click through? evas_object_pass_events_set(rectangle, EINA_TRUE), and maybe need to do that to the underlaying window to?
145 // Though if the rectangle is entirely transparent, or even hidden, events might pass through anyway.
146 // Gotta have click through on the parts where there's no other window.
147 // The third is to have the other windows live here.
148 // This idea doesn't work, as it breaks the damn focus again.
149 // Don't think it's needed anyway.
150 // While on the subject of layers, need a HUD layer of some sort, but Irrlicht might support that itself.
151
152 gld->winwin = elm_win_add(ourGlobals->win, "inlined", ELM_WIN_INLINED_IMAGE);
153 // On mouse down we try to shift focus to the backing image, this seems to be the correct thing to force focus onto it's widgets.
154 // According to the Elm inlined image window example, this is what's needed to.
155 evas_object_event_callback_add(elm_win_inlined_image_object_get(gld->winwin), EVAS_CALLBACK_MOUSE_DOWN, _cb_mouse_down_elm, NULL);
156 // In this code, we are making our own camera, so grab it's input when we are focused.
157 cameraAdd(ourGlobals, gld->winwin);
158
159 elm_win_alpha_set(gld->winwin, EINA_TRUE);
160 // Apparently transparent is not good enough for ELM backgrounds, so make it a rectangle.
161 // Apparently coz ELM prefers stuff to have edjes. A bit over the top if all I want is a transparent rectangle.
162 bg = evas_object_rectangle_add(evas_object_evas_get(gld->winwin));
163 evas_object_color_set(bg, 0, 0, 0, 0);
164 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
165 elm_win_resize_object_add(gld->winwin, bg);
166 evas_object_show(bg);
167
168 // image object for win is unlinked to its pos/size - so manual control
169 // this allows also for using map and other things with it.
170 evas_object_move(elm_win_inlined_image_object_get(gld->winwin), 0, 0);
171 // Odd, it needs to be resized twice. WTF?
172 evas_object_resize(gld->winwin, ourGlobals->win_w, ourGlobals->win_h);
173 evas_object_resize(elm_win_inlined_image_object_get(gld->winwin), ourGlobals->win_w, ourGlobals->win_h);
174 evas_object_show(gld->winwin);
175}
176
177Widget *widgetAdd(fangWin *win, const Eo_Class *klass, Evas_Object *parent, char *title)
178{ 136{
179 Widget *result; 137 Widget *result;
180 138
diff --git a/src/extantz/winFang.h b/src/extantz/winFang.h
new file mode 100644
index 0000000..8749be5
--- /dev/null
+++ b/src/extantz/winFang.h
@@ -0,0 +1,32 @@
1#include <Elementary.h>
2
3
4// Forward references.
5typedef struct _globals globals;
6
7typedef struct _winFang
8{
9 Evas_Object *win;
10 Eina_Clist widgets;
11 void *data;
12 Evas_Smart_Cb on_del;
13} winFang;
14
15typedef struct _Widget
16{
17 char magic[8];
18 Evas_Object *obj;
19 Eina_Clist node;
20 char *label, *look, *action, *help;
21 // foreground / background colour
22 // thing
23 // types {}
24 // skangCoord x, y, w, h
25 void *data;
26 Evas_Smart_Cb on_del;
27} Widget;
28
29winFang *winFangAdd(globals *ourGlobals);
30void winFangComplete(globals *ourGlobals, winFang *win, int x, int y, int w, int h);
31void winFangDel(globals *ourGlobals, winFang *win);
32Widget *widgetAdd(winFang *win, const Eo_Class *klass, Evas_Object *parent, char *title);
diff --git a/src/extantz/woMan.c b/src/extantz/woMan.c
index 0a3456b..fe2e3f2 100644
--- a/src/extantz/woMan.c
+++ b/src/extantz/woMan.c
@@ -151,15 +151,15 @@ static void _grid_sel_cb(void *data, Evas_Object *obj, void *event_info)
151} 151}
152 152
153 153
154fangWin *woMan_add(globals *ourGlobals) 154winFang *woMan_add(globals *ourGlobals)
155{ 155{
156 fangWin *me; 156 winFang *me;
157 Evas_Object *bx, *bt, *nf, *tab, *tb, *gridList, *viewerList, *menu; 157 Evas_Object *bx, *bt, *nf, *tab, *tb, *gridList, *viewerList, *menu;
158 Elm_Object_Item *tb_it, *menu_it, *tab_it; 158 Elm_Object_Item *tb_it, *menu_it, *tab_it;
159 char buf[PATH_MAX]; 159 char buf[PATH_MAX];
160 int i; 160 int i;
161 161
162 me = fang_win_add(ourGlobals); 162 me = winFangAdd(ourGlobals);
163 163
164 bx = elm_box_add(me->win); 164 bx = elm_box_add(me->win);
165 elm_win_resize_object_add(me->win, bx); 165 elm_win_resize_object_add(me->win, bx);
@@ -286,6 +286,6 @@ fangWin *woMan_add(globals *ourGlobals)
286 eo_unref(bt); 286 eo_unref(bt);
287 evas_object_show(bx); 287 evas_object_show(bx);
288 288
289 fang_win_complete(ourGlobals, me, 30, 30, ourGlobals->win_w / 3, ourGlobals->win_h / 3); 289 winFangComplete(ourGlobals, me, 30, 30, ourGlobals->win_w / 3, ourGlobals->win_h / 3);
290 return me; 290 return me;
291} 291}