OAF attributes patch
- From: Maciej Stachowiak <mjs eazel com>
- To: gnome-components-list gnome org
- Subject: OAF attributes patch
- Date: 27 Apr 2000 03:09:28 -0700
This patch provides the interesting OAF attributes for the Bonobo
objects that come with Bonobo and adds a pointer to the relevant docs
in the oaf module.
I am checking it in now since it ought not affect anything not using
OAF.
2000-04-27 Maciej Stachowiak <mjs@eazel.com>
* doc/standard-attributes.txt: Added a pointer to the attributes
document in the oaf module.
* bonobo/item.oafinfo, bonobo/sample.oafinfo,
components/audio-ulaw/audio-ulaw.oafinfo
components/application-x-gnomine/application-x-mines.oafinfo,
components/image-x-png/image-x-png.oafinfo,
components/text-plain/text-plain.oafinfo,
samples/bonobo-class/echo.oafinfo,
samples/compound-doc/paint-component-simple.oafinfo,
samples/controls/bonobo-calculator-control.oafinfo,
samples/controls/bonobo-clock-control.oafinfo: Added all standard
attributes that make sense.
Index: bonobo/item.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/item.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 item.oafinfo
--- bonobo/item.oafinfo 2000/04/18 20:24:40 1.1
+++ bonobo/item.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Test canvas item factory"/>
<oaf_attribute name="description" type="string" value="Test object canvas item server factory"/>
</oaf_server>
@@ -12,6 +13,7 @@
<item value="IDL:Bonobo/Unknown:1.0"/>
<item value="IDL:Bonobo/Embeddable:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Test canvas item"/>
<oaf_attribute name="description" type="string" value="Test server canvas item component"/>
</oaf_server>
Index: bonobo/sample.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/sample.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 sample.oafinfo
--- bonobo/sample.oafinfo 2000/04/18 20:24:40 1.1
+++ bonobo/sample.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Test embeddable factory"/>
<oaf_attribute name="description" type="string" value="Test object server factory"/>
</oaf_server>
@@ -12,6 +13,7 @@
<item value="IDL:Bonobo/Unknown:1.0"/>
<item value="IDL:Bonobo/Embeddable:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Test embeddable"/>
<oaf_attribute name="description" type="string" value="Test server component"/>
</oaf_server>
Index: components/application-x-gnomine/application-x-mines.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/components/application-x-gnomine/application-x-mines.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 application-x-mines.oafinfo
--- components/application-x-gnomine/application-x-mines.oafinfo 2000/04/18 20:24:41 1.1
+++ components/application-x-gnomine/application-x-mines.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Bonobo/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="GnoMines control factory"/>
<oaf_attribute name="description" type="string" value="bonobo GnoMines object factory"/>
</oaf_server>
@@ -12,6 +13,7 @@
<item value="IDL:Bonobo/Embeddable:1.0"/>
<item value="IDL:Bonobo/Unknown:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="GnoMines control"/>
<oaf_attribute name="description" type="string" value="bonobo GnoMines object"/>
</oaf_server>
Index: components/audio-ulaw/audio-ulaw.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/components/audio-ulaw/audio-ulaw.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 audio-ulaw.oafinfo
--- components/audio-ulaw/audio-ulaw.oafinfo 2000/04/18 20:24:42 1.1
+++ components/audio-ulaw/audio-ulaw.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Bonobo/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Waveform component factory"/>
<oaf_attribute name="description" type="string" value="audio/ulaw bonobo object factory"/>
</oaf_server>
@@ -15,7 +16,14 @@
<item value="IDL:Bonobo/ProgressiveDataSink:1.0"/>
<item value="IDL:Bonobo/Persist:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Waveform component"/>
<oaf_attribute name="description" type="string" value="audio/ulaw bonobo object"/>
+<oaf_attribute name="bonobo:editable" type="boolean" value="false"/>
+<oaf_attribute name="bonobo:supported_mime_types" type="stringv">
+<item value="audio/ulaw"/>
+</oaf_attribute>
+<oaf_attribute name="nautilus:view_as_name" type="string" value="Waveform"/>
</oaf_server>
</oaf_info>
+
Index: components/image-x-png/image-x-png.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/components/image-x-png/image-x-png.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 image-x-png.oafinfo
--- components/image-x-png/image-x-png.oafinfo 2000/04/18 20:24:42 1.1
+++ components/image-x-png/image-x-png.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Bonobo/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="PNG viewer factory"/>
<oaf_attribute name="description" type="string" value="image/x-png embeddable factory"/>
</oaf_server>
@@ -14,7 +15,12 @@
<item value="IDL:Bonobo/PersistStream:1.0"/>
<item value="IDL:Bonobo/Persist:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="PNG viewer"/>
<oaf_attribute name="description" type="string" value="image/x-png bonobo object"/>
+<oaf_attribute name="bonobo:editable" type="boolean" value="true"/>
+<oaf_attribute name="bonobo:supported_mime_types" type="stringv">
+<item value="image/x-png"/>
+</oaf_attribute>
</oaf_server>
</oaf_info>
Index: components/text-plain/text-plain.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/components/text-plain/text-plain.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 text-plain.oafinfo
--- components/text-plain/text-plain.oafinfo 2000/04/18 20:24:43 1.1
+++ components/text-plain/text-plain.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Bonobo/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Text component factory"/>
<oaf_attribute name="description" type="string" value="text/plain embeddable factory"/>
</oaf_server>
@@ -15,7 +16,16 @@
<item value="IDL:Bonobo/PersistStream:1.0"/>
<item value="IDL:Bonobo/Persist:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Text component"/>
<oaf_attribute name="description" type="string" value="text/plain component"/>
+<oaf_attribute name="bonobo:editable" type="boolean" value="true"/>
+<oaf_attribute name="bonobo:supported_mime_types" type="stringv">
+<item value="text/plain"/>
+<item value="text/html"/>
+<item value="special/webdav-directory"/>
+</oaf_attribute>
+<oaf_attribute name="nautilus:view_as_name" type="string" value="Text"/>
+
</oaf_server>
</oaf_info>
Index: doc/standard-attributes.txt
===================================================================
RCS file: standard-attributes.txt
diff -N standard-attributes.txt
--- /dev/null Tue May 5 16:32:27 1998
+++ standard-attributes.txt Thu Apr 27 05:07:19 2000
@@ -0,0 +1,2 @@
+See standard-attributes.txt in the doc directory of the oaf module to see
+the standard attributes that should be defined in the oafinfo file.
Index: samples/bonobo-class/echo.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/samples/bonobo-class/echo.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 echo.oafinfo
--- samples/bonobo-class/echo.oafinfo 2000/04/18 20:24:44 1.1
+++ samples/bonobo-class/echo.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Echo component factory"/>
<oaf_attribute name="description" type="string" value="Bonobo Echo server factory"/>
</oaf_server>
@@ -11,6 +12,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Empty:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Echo component"/>
<oaf_attribute name="description" type="string" value="Bonobo Echo server sample program"/>
</oaf_server>
Index: samples/compound-doc/paint-component-simple.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/samples/compound-doc/paint-component-simple.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 paint-component-simple.oafinfo
--- samples/compound-doc/paint-component-simple.oafinfo 2000/04/18 20:24:44 1.1
+++ samples/compound-doc/paint-component-simple.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Simple Paint component factory"/>
<oaf_attribute name="description" type="string" value="simple paint embeddable factory"/>
</oaf_server>
@@ -13,6 +14,7 @@
<item value="IDL:Bonobo/Embeddable:1.0"/>
<item value="IDL:Bonobo/Print:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Simple Paint component"/>
<oaf_attribute name="description" type="string" value="A simple paint component"/>
</oaf_server>
Index: samples/controls/bonobo-calculator-control.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/samples/controls/bonobo-calculator-control.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 bonobo-calculator-control.oafinfo
--- samples/controls/bonobo-calculator-control.oafinfo 2000/04/18 20:24:46 1.1
+++ samples/controls/bonobo-calculator-control.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Calculator control factory"/>
<oaf_attribute name="description" type="string" value="Factory for the sample BonoboCalculator control"/>
</oaf_server>
@@ -12,6 +13,7 @@
<item value="IDL:Bonobo/Unknown:1.0"/>
<item value="IDL:Bonobo/Control:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Calculator control"/>
<oaf_attribute name="description" type="string" value="A sample Bonobo control which displays a calculator."/>
</oaf_server>
Index: samples/controls/bonobo-clock-control.oafinfo
===================================================================
RCS file: /cvs/gnome/bonobo/samples/controls/bonobo-clock-control.oafinfo,v
retrieving revision 1.1
diff -u -r1.1 bonobo-clock-control.oafinfo
--- samples/controls/bonobo-clock-control.oafinfo 2000/04/18 20:24:47 1.1
+++ samples/controls/bonobo-clock-control.oafinfo 2000/04/27 09:07:19
@@ -4,6 +4,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Clock control factory"/>
<oaf_attribute name="description" type="string" value="Factory for the sample BonoboClock control"/>
</oaf_server>
@@ -12,6 +13,7 @@
<item value="IDL:Bonobo/Unknown:1.0"/>
<item value="IDL:Bonobo/Control:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Clock control"/>
<oaf_attribute name="description" type="string" value="A sample Bonobo control which displays a clock."/>
</oaf_server>
@@ -19,6 +21,7 @@
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/GenericFactory:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Entry control factory"/>
<oaf_attribute name="description" type="string" value="Factory for the sample GtkEntry control"/>
</oaf_server>
@@ -27,7 +30,9 @@
<item value="IDL:Bonobo/Unknown:1.0"/>
<item value="IDL:Bonobo/Control:1.0"/>
</oaf_attribute>
+<oaf_attribute name="name" type="string" value="Entry control"/>
<oaf_attribute name="description" type="string" value="A sample Bonbobo control wrapping a Gtk Entry widget."/>
</oaf_server>
</oaf_info>
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]