Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto
Dir : e17/proto/edvi/src/lib
Modified Files:
edvi_enum.h edvi_property.c edvi_property.h esmart_dvi.c
etk_dvi.c ewl_dvi.c
Log Message:
add micro version number, clean the exit of app tests, use generic dvi property
management instead of specific ones
===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/lib/edvi_enum.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- edvi_enum.h 16 Jul 2006 20:51:17 -0000 1.1
+++ edvi_enum.h 22 Feb 2007 17:26:50 -0000 1.2
@@ -35,5 +35,22 @@
EDVI_PAGE_SIZE_LEGAL
}Edvi_Page_Size;
+typedef enum
+{
+ EDVI_PROPERTY_PRINT_FONTS,
+ EDVI_PROPERTY_PRINT_MISSING_FONTS,
+ EDVI_PROPERTY_ASCII_JTEX,
+ EDVI_PROPERTY_SCALE_FONT_IF_NOT_EXIST,
+ EDVI_PROPERTY_LATEX2E_GRAPHICS_STY,
+ EDVI_PROPERTY_LATEX209_EPSF_STY,
+ EDVI_PROPERTY_SKIP_RENDERING,
+ EDVI_PROPERTY_SKIP_SPECIALS,
+ EDVI_PROPERTY_LIST_FONTS,
+ EDVI_PROPERTY_LIST_MISSING_FONTS,
+ EDVI_PROPERTY_DELAYED_FONT_OPEN,
+ EDVI_PROPERTY_ASYNC_GS_INVOCATION,
+ EDVI_PROPERTY_INCREMENTAL_EPS_DISPLAY
+}Edvi_Property_Id;
+
#endif /* __EDVI_ENUM_H__ */
===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/lib/edvi_property.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- edvi_property.c 11 Sep 2006 07:22:08 -0000 1.2
+++ edvi_property.c 22 Feb 2007 17:26:50 -0000 1.3
@@ -28,8 +28,6 @@
return 0;
}
- DVI_PROPERTY_SET(property->dvi_property, DVI_PROP_ASYNC_GS_INVOCATION);
-
return property;
}
@@ -45,25 +43,31 @@
}
void
-edvi_property_delayed_font_open_set (Edvi_Property *property,
- int delayed_font_open)
+edvi_property_property_set (Edvi_Property *property,
+ Edvi_Property_Id id)
+{
+ if (!property)
+ return;
+
+ DVI_PROPERTY_SET(property->dvi_property, id);
+}
+
+void
+edvi_property_property_unset (Edvi_Property *property,
+ Edvi_Property_Id id)
{
if (!property)
return;
- if (delayed_font_open)
- DVI_PROPERTY_SET(property->dvi_property,
- DVI_PROP_DELAYED_FONT_OPEN);
- else
- DVI_PROPERTY_UNSET(property->dvi_property,
- DVI_PROP_DELAYED_FONT_OPEN);
+ DVI_PROPERTY_UNSET(property->dvi_property, id);
}
int
-edvi_property_delayed_font_open_get (Edvi_Property *property)
+edvi_property_property_isset (Edvi_Property *property,
+ Edvi_Property_Id id)
{
if (!property)
return 0;
- return DVI_PROPERTY_TEST (property->dvi_property,
DVI_PROP_DELAYED_FONT_OPEN);
+ return DVI_PROPERTY_TEST (property->dvi_property, id);
}
===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/lib/edvi_property.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- edvi_property.h 17 Jul 2006 00:54:21 -0000 1.1
+++ edvi_property.h 22 Feb 2007 17:26:50 -0000 1.2
@@ -9,9 +9,14 @@
void edvi_property_delete (Edvi_Property *property);
-void edvi_property_delayed_font_open_set (Edvi_Property *property,
- int
delayed_font_open);
+void edvi_property_property_set (Edvi_Property *property,
+ Edvi_Property_Id id);
+
+void edvi_property_property_unset (Edvi_Property *property,
+ Edvi_Property_Id id);
+
+int edvi_property_property_isset (Edvi_Property *property,
+ Edvi_Property_Id id);
-int edvi_property_delayed_font_open_get (Edvi_Property *property);
#endif /* __EDVI_PROPERTY_H__ */
===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/lib/esmart_dvi.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- esmart_dvi.c 16 Jul 2006 20:51:17 -0000 1.1
+++ esmart_dvi.c 22 Feb 2007 17:26:50 -0000 1.2
@@ -108,7 +108,7 @@
sp->dvi_device = edvi_device_new (edvi_dpi_get(), edvi_dpi_get());
sp->dvi_property = edvi_property_new();
- edvi_property_delayed_font_open_set(sp->dvi_property, 1);
+ edvi_property_property_set (sp->dvi_property,
EDVI_PROPERTY_DELAYED_FONT_OPEN);
sp->dvi_document = NULL;
sp->dvi_page = NULL;
===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/lib/etk_dvi.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- etk_dvi.c 1 Oct 2006 06:12:30 -0000 1.3
+++ etk_dvi.c 22 Feb 2007 17:26:50 -0000 1.4
@@ -61,7 +61,7 @@
}
/**
- * @brief Creates a new dvi
+ * @brief Creates a new dvi with the property EDVI_PROPERTY_DELAYED_FONT_OPEN
set by default.
* @return Returns the new dvi widget
*/
Etk_Widget *etk_dvi_new()
@@ -330,7 +330,7 @@
dvi->dvi_device = edvi_device_new (edvi_dpi_get(), edvi_dpi_get());
dvi->dvi_property = edvi_property_new();
- edvi_property_delayed_font_open_set(dvi->dvi_property, 1);
+ edvi_property_property_set (dvi->dvi_property,
EDVI_PROPERTY_DELAYED_FONT_OPEN);
dvi->dvi_document = NULL;
dvi->dvi_page = NULL;
===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/lib/ewl_dvi.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_dvi.c 12 Feb 2007 14:38:32 -0000 1.5
+++ ewl_dvi.c 22 Feb 2007 17:26:50 -0000 1.6
@@ -45,7 +45,9 @@
* @return Returns no value.
* @brief Initialize an dvi widget to default values and callbacks
*
- * Sets the fields and callbacks of @a dvi to their default values.
+ * Sets the fields and callbacks of @a dvi to their default
+ * values. The property EDVI_PROPERTY_DELAYED_FONT_OPEN is set by
+ * default.
*/
int
ewl_dvi_init(Ewl_Dvi *dvi)
@@ -81,7 +83,7 @@
dvi->dvi_device = edvi_device_new (edvi_dpi_get(), edvi_dpi_get());
dvi->dvi_property = edvi_property_new();
- edvi_property_delayed_font_open_set(dvi->dvi_property, 1);
+ edvi_property_property_set (dvi->dvi_property,
EDVI_PROPERTY_DELAYED_FONT_OPEN);
dvi->dvi_document = NULL;
dvi->dvi_page = NULL;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs