summaryrefslogtreecommitdiff
path: root/test/simple
diff options
context:
space:
mode:
authorscuri <scuri>2009-12-02 20:30:55 +0000
committerscuri <scuri>2009-12-02 20:30:55 +0000
commit0a186150f085c34462b8c6cd5257849c73f80b65 (patch)
treef78781174c5f64d032efa0760a0ac06af8f8447b /test/simple
parent3914ec6505021df1b3edac7a0b2648ace33e4ef4 (diff)
New: driver SVG.
Diffstat (limited to 'test/simple')
-rw-r--r--test/simple/.cvsignore1
-rw-r--r--test/simple/config.mak10
-rw-r--r--test/simple/iupmain.c1
-rw-r--r--test/simple/simple.c7
-rw-r--r--test/simple/simple.h1
-rw-r--r--test/simple/simple.led1
-rw-r--r--test/simple/simple_led.c3
7 files changed, 21 insertions, 3 deletions
diff --git a/test/simple/.cvsignore b/test/simple/.cvsignore
index c29a181..9c20a41 100644
--- a/test/simple/.cvsignore
+++ b/test/simple/.cvsignore
@@ -19,3 +19,4 @@ Makefile
*.ncb
*.opt
*.user
+svg \ No newline at end of file
diff --git a/test/simple/config.mak b/test/simple/config.mak
index fee0960..9598d84 100644
--- a/test/simple/config.mak
+++ b/test/simple/config.mak
@@ -2,12 +2,18 @@ APPNAME = simple
SRC = simple.c simple_led.c iupmain.c
-DBG = Yes
+#DBG = Yes
USE_CD=Yes
USE_IUP3=Yes
+ifeq "$(TEC_SYSNAME)" "Win32"
+ LEDC = $(IUP)/bin/$(TEC_SYSNAME)/ledc
+else
+ LEDC = $(IUP)/bin/$(TEC_UNAME)/ledc
+endif
+
simple_led.c: simple.led
- ledc -f simple_loadled -o simple_led.c simple.led
+ $(LEDC) -f simple_loadled -o simple_led.c simple.led
USE_STATIC = Yes
diff --git a/test/simple/iupmain.c b/test/simple/iupmain.c
index 562d06c..e8af887 100644
--- a/test/simple/iupmain.c
+++ b/test/simple/iupmain.c
@@ -49,6 +49,7 @@ int main(int argc, char** argv)
IupSetFunction("SimpleDrawPDF", (Icallback) SimpleDrawPDF);
IupSetFunction("SimpleDrawPS", (Icallback) SimpleDrawPS);
IupSetFunction("SimpleDrawEPS", (Icallback) SimpleDrawEPS);
+ IupSetFunction("SimpleDrawSVG", (Icallback) SimpleDrawSVG);
IupSetFunction("SimpleDrawWMF", (Icallback) SimpleDrawWMF);
IupSetFunction("SimpleDrawPrint", (Icallback) SimpleDrawPrint);
IupSetFunction("SimpleDrawPrintDialog", (Icallback) SimpleDrawPrintDialog);
diff --git a/test/simple/simple.c b/test/simple/simple.c
index 82eeb9c..586256d 100644
--- a/test/simple/simple.c
+++ b/test/simple/simple.c
@@ -22,6 +22,7 @@
#include "cdprint.h"
#include "cdps.h"
#include "cdpdf.h"
+#include "cdsvg.h"
#include "cdwmf.h"
#include "cdiup.h"
#include "cddbuf.h"
@@ -303,6 +304,12 @@ int SimpleDrawPS(void)
return 0;
}
+int SimpleDrawSVG(void)
+{
+ DrawCanvasDriver(CD_SVG, "simple.svg");
+ return 0;
+}
+
int SimpleDrawPDF(void)
{
DrawCanvasDriver(CD_PDF, "simple.pdf");
diff --git a/test/simple/simple.h b/test/simple/simple.h
index 123b31c..933b714 100644
--- a/test/simple/simple.h
+++ b/test/simple/simple.h
@@ -25,6 +25,7 @@ int SimpleDrawMetafile(void);
int SimpleDrawPDF(void);
int SimpleDrawPS(void);
int SimpleDrawEPS(void);
+int SimpleDrawSVG(void);
int SimpleDrawWMF(void);
int SimpleDrawPrint(void);
int SimpleDrawPrintDialog(void);
diff --git a/test/simple/simple.led b/test/simple/simple.led
index cdf4430..63f3dc2 100644
--- a/test/simple/simple.led
+++ b/test/simple/simple.led
@@ -19,6 +19,7 @@ mnSaveAs = MENU
ITEM("PDF", SimpleDrawPDF),
ITEM("PS", SimpleDrawPS),
ITEM("EPS", SimpleDrawEPS),
+ ITEM("SVG", SimpleDrawSVG),
ITEM("WMF", SimpleDrawWMF)
)
diff --git a/test/simple/simple_led.c b/test/simple/simple_led.c
index 07eebc8..626b849 100644
--- a/test/simple/simple_led.c
+++ b/test/simple/simple_led.c
@@ -1,4 +1,4 @@
-/* Arquivo gerado automaticamente por ledc 2.5 */
+/* Automatically generated by Iup ledc 2.6 */
#include <stdlib.h>
#include <stdarg.h>
@@ -44,6 +44,7 @@ void simple_loadled (void)
IupItem( "PDF", "SimpleDrawPDF" ),
IupItem( "PS", "SimpleDrawPS" ),
IupItem( "EPS", "SimpleDrawEPS" ),
+ IupItem( "SVG", "SimpleDrawSVG" ),
IupItem( "WMF", "SimpleDrawWMF" ),
NULL), NULL );
named[2] = decl( "mnFile", IupMenu(