summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2013-08-17 13:32:12 +0200
committerBertrand Jacquin <beber@meleeweb.net>2013-08-17 13:32:12 +0200
commit34b60c54329fdd1ff79f8035fd03a70696eaa028 (patch)
tree05f511ae4bfdd910521901b01e7a84ae1056d73c
parent71dd09129221f39b3bde974c6d7be5b7dc721531 (diff)
edje_list and edje_smart_thumb now have dedicated repositories
-rw-r--r--edje_list/AUTHORS1
-rw-r--r--edje_list/COPYING20
-rw-r--r--edje_list/ChangeLog0
-rw-r--r--edje_list/Makefile.am7
-rw-r--r--edje_list/NEWS0
-rw-r--r--edje_list/README0
-rwxr-xr-xedje_list/autogen.sh16
-rw-r--r--edje_list/configure.in27
-rw-r--r--edje_list/src/Makefile.am4
-rw-r--r--edje_list/src/bin/Makefile.am16
-rw-r--r--edje_list/src/bin/main.c31
-rw-r--r--edje_list/src/bin/main.h29
-rw-r--r--edje_smart_thumb/AUTHORS2
-rw-r--r--edje_smart_thumb/COPYING20
-rw-r--r--edje_smart_thumb/ChangeLog0
-rw-r--r--edje_smart_thumb/Makefile.am7
-rw-r--r--edje_smart_thumb/NEWS0
-rw-r--r--edje_smart_thumb/README2
-rwxr-xr-xedje_smart_thumb/autogen.sh16
-rw-r--r--edje_smart_thumb/configure.in33
-rw-r--r--edje_smart_thumb/src/Makefile.am4
-rw-r--r--edje_smart_thumb/src/bin/Makefile.am16
-rw-r--r--edje_smart_thumb/src/bin/main.c407
-rw-r--r--edje_smart_thumb/src/bin/main.h31
24 files changed, 0 insertions, 689 deletions
diff --git a/edje_list/AUTHORS b/edje_list/AUTHORS
deleted file mode 100644
index 569e63f..0000000
--- a/edje_list/AUTHORS
+++ /dev/null
@@ -1 +0,0 @@
1Sthithaprajna Garapaty (iamsthitha) \ No newline at end of file
diff --git a/edje_list/COPYING b/edje_list/COPYING
deleted file mode 100644
index 25562c5..0000000
--- a/edje_list/COPYING
+++ /dev/null
@@ -1,20 +0,0 @@
1Copyright (C) 2008 Sthithaprajna Garapaty
2
3Permission is hereby granted, free of charge, to any person obtaining a copy
4of this software and associated documentation files (the "Software"), to
5deal in the Software without restriction, including without limitation the
6rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7sell copies of the Software, and to permit persons to whom the Software is
8furnished to do so, subject to the following conditions:
9
10The above copyright notice and this permission notice shall be included in
11all copies of the Software, its documentation and marketing & publicity
12materials, and acknowledgment shall be given in the documentation, materials
13and software packages that this Software was used.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/edje_list/ChangeLog b/edje_list/ChangeLog
deleted file mode 100644
index e69de29..0000000
--- a/edje_list/ChangeLog
+++ /dev/null
diff --git a/edje_list/Makefile.am b/edje_list/Makefile.am
deleted file mode 100644
index bc44e24..0000000
--- a/edje_list/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
1
2SUBDIRS = src
3
4MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
5 config.h.in config.sub configure install-sh \
6 ltconfig ltmain.sh missing mkinstalldirs \
7 stamp-h.in depcomp
diff --git a/edje_list/NEWS b/edje_list/NEWS
deleted file mode 100644
index e69de29..0000000
--- a/edje_list/NEWS
+++ /dev/null
diff --git a/edje_list/README b/edje_list/README
deleted file mode 100644
index e69de29..0000000
--- a/edje_list/README
+++ /dev/null
diff --git a/edje_list/autogen.sh b/edje_list/autogen.sh
deleted file mode 100755
index 0846992..0000000
--- a/edje_list/autogen.sh
+++ /dev/null
@@ -1,16 +0,0 @@
1#!/bin/sh
2
3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh
5
6touch README
7
8echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
9echo "Running autoheader..." ; autoheader || exit 1
10echo "Running autoconf..." ; autoconf || exit 1
11echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
12echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
13
14if [ -z "$NOCONFIGURE" ]; then
15 ./configure "$@"
16fi
diff --git a/edje_list/configure.in b/edje_list/configure.in
deleted file mode 100644
index e731bb9..0000000
--- a/edje_list/configure.in
+++ /dev/null
@@ -1,27 +0,0 @@
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(edje_list, 0.0.1, enlightenment-devel@lists.sourceforge.net)
4AC_PREREQ(2.52)
5AC_CONFIG_SRCDIR(configure.in)
6
7AM_INIT_AUTOMAKE
8AM_CONFIG_HEADER(config.h)
9
10AC_PROG_CC
11AM_PROG_CC_STDC
12AC_HEADER_STDC
13AC_C_CONST
14
15define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
16define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
17AC_PROG_LIBTOOL
18
19PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9])
20
21PKG_CHECK_MODULES(EDJE, [edje >= 0.5.0])
22
23AC_OUTPUT([
24Makefile
25src/Makefile
26src/bin/Makefile
27])
diff --git a/edje_list/src/Makefile.am b/edje_list/src/Makefile.am
deleted file mode 100644
index c296d8c..0000000
--- a/edje_list/src/Makefile.am
+++ /dev/null
@@ -1,4 +0,0 @@
1
2SUBDIRS = bin
3
4MAINTAINERCLEANFILES = Makefile.in
diff --git a/edje_list/src/bin/Makefile.am b/edje_list/src/bin/Makefile.am
deleted file mode 100644
index 6206f7a..0000000
--- a/edje_list/src/bin/Makefile.am
+++ /dev/null
@@ -1,16 +0,0 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I$(top_builddir) \
6-I$(top_srcdir) \
7-I$(top_srcdir)/src/bin \
8@EDJE_CFLAGS@ @EVAS_CFLAGS@
9
10bin_PROGRAMS = edje_list
11
12edje_list_SOURCES = \
13main.c \
14main.h
15
16edje_list_LDADD = @EDJE_LIBS@ @EVAS_LIBS@
diff --git a/edje_list/src/bin/main.c b/edje_list/src/bin/main.c
deleted file mode 100644
index 0658ed4..0000000
--- a/edje_list/src/bin/main.c
+++ /dev/null
@@ -1,31 +0,0 @@
1#include "main.h"
2
3int
4main(int argc, char **argv)
5{
6 Eina_List *l;
7 char *string;
8
9 edje_init();
10 string = edje_file_data_get(argv[argc - 1], "theme/name");
11 if (!string)
12 string = "";
13 printf("Name: %s\n", string);
14 string = edje_file_data_get(argv[argc - 1], "theme/author");
15 if (!string)
16 string = "";
17 printf("Author: %s\n", string);
18 string = edje_file_data_get(argv[argc - 1], "theme/license");
19 if (!string)
20 string = "";
21 printf("License: %s\n", string);
22 string = edje_file_data_get(argv[argc - 1], "theme/version");
23 if (!string)
24 string = "";
25 printf("Version: %s\n", string);
26
27 EINA_LIST_FOREACH(edje_file_collection_list(argv[argc -1]), l, string)
28 printf("%s\n", string);
29 edje_shutdown();
30 return 0;
31}
diff --git a/edje_list/src/bin/main.h b/edje_list/src/bin/main.h
deleted file mode 100644
index 592fe38..0000000
--- a/edje_list/src/bin/main.h
+++ /dev/null
@@ -1,29 +0,0 @@
1#include "config.h"
2
3#include <stdio.h>
4#include <string.h>
5#include <Evas.h>
6#include <Edje.h>
7
8#ifdef EAPI
9#undef EAPI
10#endif
11#ifdef WIN32
12# ifdef BUILDING_DLL
13# define EAPI __declspec(dllexport)
14# else
15# define EAPI __declspec(dllimport)
16# endif
17#else
18# ifdef __GNUC__
19# if __GNUC__ >= 4
20// BROKEN in gcc 4 on amd64
21//# pragma GCC visibility push(hidden)
22# define EAPI __attribute__ ((visibility("default")))
23# else
24# define EAPI
25# endif
26# else
27# define EAPI
28# endif
29#endif
diff --git a/edje_smart_thumb/AUTHORS b/edje_smart_thumb/AUTHORS
deleted file mode 100644
index 5c674e7..0000000
--- a/edje_smart_thumb/AUTHORS
+++ /dev/null
@@ -1,2 +0,0 @@
1Sthithaprajna Garapaty (iamsthitha)
2and whoever wrote edje_thumb \ No newline at end of file
diff --git a/edje_smart_thumb/COPYING b/edje_smart_thumb/COPYING
deleted file mode 100644
index 25562c5..0000000
--- a/edje_smart_thumb/COPYING
+++ /dev/null
@@ -1,20 +0,0 @@
1Copyright (C) 2008 Sthithaprajna Garapaty
2
3Permission is hereby granted, free of charge, to any person obtaining a copy
4of this software and associated documentation files (the "Software"), to
5deal in the Software without restriction, including without limitation the
6rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7sell copies of the Software, and to permit persons to whom the Software is
8furnished to do so, subject to the following conditions:
9
10The above copyright notice and this permission notice shall be included in
11all copies of the Software, its documentation and marketing & publicity
12materials, and acknowledgment shall be given in the documentation, materials
13and software packages that this Software was used.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/edje_smart_thumb/ChangeLog b/edje_smart_thumb/ChangeLog
deleted file mode 100644
index e69de29..0000000
--- a/edje_smart_thumb/ChangeLog
+++ /dev/null
diff --git a/edje_smart_thumb/Makefile.am b/edje_smart_thumb/Makefile.am
deleted file mode 100644
index bc44e24..0000000
--- a/edje_smart_thumb/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
1
2SUBDIRS = src
3
4MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
5 config.h.in config.sub configure install-sh \
6 ltconfig ltmain.sh missing mkinstalldirs \
7 stamp-h.in depcomp
diff --git a/edje_smart_thumb/NEWS b/edje_smart_thumb/NEWS
deleted file mode 100644
index e69de29..0000000
--- a/edje_smart_thumb/NEWS
+++ /dev/null
diff --git a/edje_smart_thumb/README b/edje_smart_thumb/README
deleted file mode 100644
index d38fa0b..0000000
--- a/edje_smart_thumb/README
+++ /dev/null
@@ -1,2 +0,0 @@
1This is a thumbnailing app written specifically for themes for the enlightenment WM.
2Lots of code taken from edje_thumb. \ No newline at end of file
diff --git a/edje_smart_thumb/autogen.sh b/edje_smart_thumb/autogen.sh
deleted file mode 100755
index 0846992..0000000
--- a/edje_smart_thumb/autogen.sh
+++ /dev/null
@@ -1,16 +0,0 @@
1#!/bin/sh
2
3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh
5
6touch README
7
8echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
9echo "Running autoheader..." ; autoheader || exit 1
10echo "Running autoconf..." ; autoconf || exit 1
11echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
12echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
13
14if [ -z "$NOCONFIGURE" ]; then
15 ./configure "$@"
16fi
diff --git a/edje_smart_thumb/configure.in b/edje_smart_thumb/configure.in
deleted file mode 100644
index 5cefd82..0000000
--- a/edje_smart_thumb/configure.in
+++ /dev/null
@@ -1,33 +0,0 @@
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(edje_smart_thumb, 0.0.1, enlightenment-devel@lists.sourceforge.net)
4AC_PREREQ(2.52)
5AC_CONFIG_SRCDIR(configure.in)
6
7AM_INIT_AUTOMAKE
8AM_CONFIG_HEADER(config.h)
9
10AC_PROG_CC
11AM_PROG_CC_STDC
12AC_HEADER_STDC
13AC_C_CONST
14
15define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
16define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
17AC_PROG_LIBTOOL
18
19PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9])
20
21PKG_CHECK_MODULES(EDJE, [edje >= 0.5.0])
22
23
24PKG_CHECK_MODULES(ECORE, [
25 ecore
26 ecore-evas
27])
28
29AC_OUTPUT([
30Makefile
31src/Makefile
32src/bin/Makefile
33])
diff --git a/edje_smart_thumb/src/Makefile.am b/edje_smart_thumb/src/Makefile.am
deleted file mode 100644
index c296d8c..0000000
--- a/edje_smart_thumb/src/Makefile.am
+++ /dev/null
@@ -1,4 +0,0 @@
1
2SUBDIRS = bin
3
4MAINTAINERCLEANFILES = Makefile.in
diff --git a/edje_smart_thumb/src/bin/Makefile.am b/edje_smart_thumb/src/bin/Makefile.am
deleted file mode 100644
index 596639c..0000000
--- a/edje_smart_thumb/src/bin/Makefile.am
+++ /dev/null
@@ -1,16 +0,0 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I$(top_builddir) \
6-I$(top_srcdir) \
7-I$(top_srcdir)/src/bin \
8@EDJE_CFLAGS@ @EVAS_CFLAGS@ @ECORE_CFLAGS@
9
10bin_PROGRAMS = edje_smart_thumb
11
12edje_smart_thumb_SOURCES = \
13main.c \
14main.h
15
16edje_smart_thumb_LDADD = @EDJE_LIBS@ @EVAS_LIBS@ @ECORE_LIBS@
diff --git a/edje_smart_thumb/src/bin/main.c b/edje_smart_thumb/src/bin/main.c
deleted file mode 100644
index a875028..0000000
--- a/edje_smart_thumb/src/bin/main.c
+++ /dev/null
@@ -1,407 +0,0 @@
1#include "main.h"
2
3static void args_parse(void);
4static void help_show(void);
5static Eina_Bool signal_exit(void *data, int ev_type, void *ev);
6static Eina_Bool thumb_grab(void *data);
7static void setup_scene(void);
8
9Ecore_Evas *ee = NULL, *ee_im = NULL, *ee_im2 = NULL;
10Evas *evas = NULL, *evas_im = NULL, *evas_im2 = NULL;
11Evas_Object *edje = NULL, *im = NULL, *im2 = NULL;
12char *file = NULL;
13char *group = NULL;
14char *outfile = NULL;
15int w = 640;
16int h = 480;
17int outw = 160;
18int outh = 120;
19
20int
21main(int argc, char **argv)
22{
23 if (!ecore_init()) return -1;
24 ecore_app_args_set(argc, (const char **)argv);
25 ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, signal_exit, NULL);
26 if (!ecore_evas_init()) return -1;
27 if (!edje_init()) return -1;
28
29 args_parse();
30
31 ee = ecore_evas_buffer_new(outw, outh);
32 if (!ee)
33 {
34 fprintf(stderr, "Error. cannot create buffer engine canvas for image save.\n");
35 exit(-1);
36 }
37 evas = ecore_evas_get(ee);
38
39 im = ecore_evas_object_image_new(ee);
40 if (!im)
41 {
42 fprintf(stderr, "Error. cannot create buffer canvas image object for scaling.\n");
43 exit(-1);
44 }
45 evas_object_move(im, 0, 0);
46 evas_object_resize(im, outw, outh);
47 evas_object_image_fill_set(im, 0, 0, outw, outh);
48 evas_object_show(im);
49 evas_object_image_size_set(im, outw, outh);
50 ee_im = evas_object_data_get(im, "Ecore_Evas");
51 evas_im = ecore_evas_get(ee_im);
52
53 im2 = ecore_evas_object_image_new(ee_im);
54 if (!im2)
55 {
56 fprintf(stderr, "Error. cannot create buffer canvas image for scaling.\n");
57 exit(-1);
58 }
59 evas_object_move(im2, 0, 0);
60 evas_object_resize(im2, outw, outh);
61 evas_object_image_fill_set(im2, 0, 0, outw, outh);
62 evas_object_show(im2);
63 evas_object_image_size_set(im2, w, h);
64 ee_im2 = evas_object_data_get(im2, "Ecore_Evas");
65 evas_im2 = ecore_evas_get(ee_im2);
66
67 setup_scene();
68
69 edje_message_signal_process();
70
71 ecore_timer_add(2.0, thumb_grab, NULL);
72 ecore_main_loop_begin();
73
74 evas_object_del(edje);
75 ecore_evas_free(ee);
76 edje_shutdown();
77 ecore_evas_shutdown();
78 ecore_shutdown();
79 return 0;
80}
81
82static void
83setup_scene(void)
84{
85 if (!strcmp(group, "e/desktop/background"))
86 {
87 edje = edje_object_add(evas_im2);
88 if (!edje_object_file_set(edje, file, group))
89 {
90 fprintf(stderr, "Error. cannot load file %s, group %s\n", file, group);
91 exit(-1);
92 }
93 evas_object_move(edje, 0, 0);
94 evas_object_resize(edje, w, h);
95 evas_object_show(edje);
96 }
97 else if (!strcmp(group, "e/fileman"))
98 {
99
100 }
101 else if (!strcmp(group, "e/gadman"))
102 {
103
104 }
105 else if (!strcmp(group, "e/icons"))
106 {
107
108 }
109 else if (!strcmp(group, "e/modules/battery"))
110 {
111
112 }
113 else if (!strcmp(group, "e/modules/clock"))
114 {
115
116 }
117 else if (!strcmp(group, "e/modules/cpufreq"))
118 {
119
120 }
121 else if (!strcmp(group, "e/modules/ibar"))
122 {
123
124 }
125 else if (!strcmp(group, "e/modules/ibox"))
126 {
127
128 }
129 else if (!strcmp(group, "e/modules/pager"))
130 {
131
132 }
133 else if (!strcmp(group, "e/modules/start"))
134 {
135
136 }
137 else if (!strcmp(group, "e/modules/temperature"))
138 {
139
140 }
141 else if (!strcmp(group, "e/modules/winlist"))
142 {
143
144 }
145 else if (!strcmp(group, "e/pointer"))
146 {
147
148 }
149 else if (!strcmp(group, "e/shelf"))
150 {
151
152 }
153 else if (!strcmp(group, "e/theme/about"))
154 {
155
156 }
157 else if (!strcmp(group, "e/widgets/border"))
158 {
159
160 }
161 else if (!strcmp(group, "e/widgets/border/default"))
162 {
163
164 }
165 else if (!strcmp(group, "e/widgets/border/dialog"))
166 {
167
168 }
169 else if (!strcmp(group, "e/widgets/border/noresize"))
170 {
171
172 }
173 else if (!strcmp(group, "e/widgets/border/noresize_dialog"))
174 {
175
176 }
177 else if (!strcmp(group, "e/widgets/border/pixel"))
178 {
179
180 }
181 else if (!strcmp(group, "e/widgets/border/shaped"))
182 {
183
184 }
185 else if (!strcmp(group, "e/widgets/about"))
186 {
187
188 }
189 else if (!strcmp(group, "e/widgets/button"))
190 {
191
192 }
193 else if (!strcmp(group, "e/widgets/check"))
194 {
195
196 }
197 else if (!strcmp(group, "e/widgets/color_well"))
198 {
199
200 }
201 else if (!strcmp(group, "e/widgets/configure"))
202 {
203
204 }
205 else if (!strcmp(group, "e/widgets/cslider"))
206 {
207
208 }
209 else if (!strcmp(group, "e/widgets/deskpreview"))
210 {
211
212 }
213 else if (!strcmp(group, "e/widgets/dialog"))
214 {
215
216 }
217 else if (!strcmp(group, "e/widgets/entry"))
218 {
219
220 }
221 else if (!strcmp(group, "e/widgets/exebuf"))
222 {
223
224 }
225 else if (!strcmp(group, "e/widgets/fileselector"))
226 {
227
228 }
229 else if (!strcmp(group, "e/widgets/fontpreview"))
230 {
231
232 }
233 else if (!strcmp(group, "e/widgets/frame"))
234 {
235
236 }
237 else if (!strcmp(group, "e/widgets/gradpreview"))
238 {
239
240 }
241 else if (!strcmp(group, "e/widgets/ilist"))
242 {
243
244 }
245 else if (!strcmp(group, "e/widgets/label"))
246 {
247
248 }
249 else if (!strcmp(group, "e/widgets/menu"))
250 {
251
252 }
253 else if (!strcmp(group, "e/widgets/pager"))
254 {
255
256 }
257 else if (!strcmp(group, "e/widgets/preview"))
258 {
259
260 }
261 else if (!strcmp(group, "e/widgets/radio"))
262 {
263
264 }
265 else if (!strcmp(group, "e/widgets/scrollframe"))
266 {
267
268 }
269 else if (!strcmp(group, "e/widgets/slider"))
270 {
271
272 }
273 else if (!strcmp(group, "e/widgets/spectrum"))
274 {
275
276 }
277 else if (!strcmp(group, "e/widgets/textblock"))
278 {
279
280 }
281 else if (!strcmp(group, "e/widgets/tlist"))
282 {
283
284 }
285 else if (!strcmp(group, "e/widgets/winlist"))
286 {
287
288 }
289 else
290 {
291 edje = edje_object_add(evas_im2);
292 if (!edje_object_file_set(edje, file, group))
293 {
294 fprintf(stderr, "Error. cannot load file %s, group %s\n", file, group);
295 exit(-1);
296 }
297 evas_object_move(edje, 0, 0);
298 evas_object_resize(edje, w, h);
299 evas_object_show(edje);
300 }
301}
302
303static void
304args_parse(void)
305{
306 int argc;
307 char **argv;
308 int i;
309
310 ecore_app_args_get(&argc, &argv);
311 for (i = 1; i < argc; i++)
312 {
313 if ((!strcmp(argv[i], "-h")) ||
314 (!strcmp(argv[i], "-help")) ||
315 (!strcmp(argv[i], "--help")))
316 {
317 help_show();
318 exit(-1);
319 }
320 else if (((!strcmp(argv[i], "-g")) ||
321 (!strcmp(argv[i], "-geometry")) ||
322 (!strcmp(argv[i], "--geometry"))) && (i < (argc - 1)))
323 {
324 int n;
325 char buf[16], buf2[16];
326
327 n = sscanf(argv[i +1], "%10[^x]x%10s", buf, buf2);
328 if (n == 2)
329 {
330 w = atoi(buf);
331 h = atoi(buf2);
332 }
333 i++;
334 }
335 else if (((!strcmp(argv[i], "-og")) ||
336 (!strcmp(argv[i], "-out-geometry")) ||
337 (!strcmp(argv[i], "--out-geometry"))) && (i < (argc - 1)))
338 {
339 int n;
340 char buf[16], buf2[16];
341
342 n = sscanf(argv[i +1], "%10[^x]x%10s", buf, buf2);
343 if (n == 2)
344 {
345 outw = atoi(buf);
346 outh = atoi(buf2);
347 }
348 i++;
349 }
350 else if (!file)
351 {
352 file = argv[i];
353 }
354 else if (!group)
355 {
356 group = argv[i];
357 }
358 else if (!outfile)
359 {
360 outfile = argv[i];
361 }
362 }
363 if ((!file) || (!group) || (!outfile))
364 {
365 help_show();
366 exit(-1);
367 }
368}
369
370static void
371help_show(void)
372{
373 printf("Usage: edje_thumb INPUT_EDJE GROUP_TO_LOAD OUT_FILE [OPTIONS]\n"
374 "\n"
375 "Where required parameters are:\n"
376 " INPUT_EDJE the edje file to look at\n"
377 " GROUP_TO_LOAD the group name in the edge\n"
378 " OUT_FILE the output file or format\n"
379 "\n"
380 "Where optional OPTIONS are:\n"
381 " -h this help\n" " -g WxH rendering geometry\n"
382 " -og WxH output file geometry\n"
383 );
384}
385
386static Eina_Bool
387signal_exit(void *data, int ev_type, void *ev)
388{
389 ecore_main_loop_quit();
390 return EINA_TRUE;
391}
392
393static Eina_Bool
394thumb_grab(void *data)
395{
396 char buf[4096];
397
398 snprintf(buf, sizeof(buf), outfile);
399 ecore_evas_buffer_pixels_get(ee);
400 if (!evas_object_image_save(im, buf, NULL, "quality=100 compress=9"))
401 {
402 fprintf(stderr, "Error. cannot load file \"%s\". Missing saver module for Evas or literally cannot write the file (permissions or directory doesnt exist).\n", buf);
403 exit(-1);
404 }
405 ecore_main_loop_quit();
406 return EINA_FALSE;
407}
diff --git a/edje_smart_thumb/src/bin/main.h b/edje_smart_thumb/src/bin/main.h
deleted file mode 100644
index 99fd087..0000000
--- a/edje_smart_thumb/src/bin/main.h
+++ /dev/null
@@ -1,31 +0,0 @@
1#include "config.h"
2
3#include <stdio.h>
4#include <string.h>
5#include <Evas.h>
6#include <Ecore.h>
7#include <Ecore_Evas.h>
8#include <Edje.h>
9
10#ifdef EAPI
11#undef EAPI
12#endif
13#ifdef WIN32
14# ifdef BUILDING_DLL
15# define EAPI __declspec(dllexport)
16# else
17# define EAPI __declspec(dllimport)
18# endif
19#else
20# ifdef __GNUC__
21# if __GNUC__ >= 4
22// BROKEN in gcc 4 on amd64
23//# pragma GCC visibility push(hidden)
24# define EAPI __attribute__ ((visibility("default")))
25# else
26# define EAPI
27# endif
28# else
29# define EAPI
30# endif
31#endif