grim/purple-objects-docbook

Parents 3c6fcfa74ae9
Children 2fb5fa149030
created graphs/Makefile and overhauled it, also started the blistnode class
--- a/Makefile Mon Jul 20 00:06:51 2009 -0500
+++ b/Makefile Mon May 06 02:33:14 2013 -0500
@@ -57,14 +57,16 @@
graphs/objects.key \
graphs/relationships.key
-GRAPHS=$(HIERARCHIES:%.hierarchy=%.png) $(CLASSES:%.class=%.png) $(ENUMS:%.enum=%.png) $(KEYS:%.key=%.png)
+#GRAPHS=$(HIERARCHIES:%.hierarchy=%.png) $(CLASSES:%.class=%.png) $(ENUMS:%.enum=%.png) $(KEYS:%.key=%.png)
###############################################################################
# basic rules
###############################################################################
all: xml/xml.stamp graphs/graphs.stamp dir.stamp $(SHEETS) $(BOOK_SOURCES)
+ $(MAKE) -C graphs
clean:
+ $(MAKE) -C graphs clean
rm -rf $(OUTPUT) xml/xml.stamp graphs/graphs.stamp dir.stamp $(BOOK_BUILT_SOURCES)
###############################################################################
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.opts Mon May 06 02:33:14 2013 -0500
@@ -0,0 +1,9 @@
+TRANSFORM := xsltproc
+TRANSFORM_OPTS := --nonet --xinclude
+
+OUTPUT := $(top_srcdir)/html/
+
+SHEETS_DIR := $(top_srcdir)/sheets
+
+$(shell [ ! -d $(OUTPUT) ] && mkdir $(OUTPUT))
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphs/Makefile Mon May 06 02:33:14 2013 -0500
@@ -0,0 +1,56 @@
+top_srcdir := ..
+
+include $(top_srcdir)/Makefile.opts
+
+HIERARCHIES := $(shell ls *.hierarchy)
+CLASSES := $(shell ls *.class)
+ENUMS := $(shell ls *.enum)
+KEYS := $(shell ls *.key)
+
+GRAPH_OUTPUT := $(OUTPUT)/graphs
+$(shell [ ! -d $(GRAPH_OUTPUT) ] && mkdir $(GRAPH_OUTPUT))
+
+
+.PHONY: all clean
+
+.SUFFIXES: .png .fdp .dot .enum .class .hierarchy .key .neato
+ echo "what?! $<"
+
+.fdp.png: dir.stamp
+ @echo " FDP $<"
+ @fdp -Tpng -o $(GRAPH_OUTPUT)/$@ $<
+
+.dot.png: dir.stamp
+ @echo " DOT $<"
+ @dot -Tpng -o $(GRAPH_OUTPUT)/$@ $<
+
+.neato.dot: dir.stamp
+ @echo " NEATO $<"
+ @neato -o $@ $<
+
+.key.dot:
+ @echo " XSLT $<"
+ @$(TRANSFORM) $(TRANSFORM_OPTS) -o $@ $(SHEETS_DIR)/hierarchy.xsl $<
+
+.enum.dot:
+ @echo " XSLT $<"
+ @$(TRANSFORM) $(TRANSFORM_OPTS) -o $@ $(SHEETS_DIR)/enum.xsl $<
+
+.class.dot:
+ @echo " XSLT $<"
+ @$(TRANSFORM) $(TRANSFORM_OPTS) -o $@ $(SHEETS_DIR)/class.xsl $<
+
+.hierarchy.neato:
+ @echo " XSLT $<"
+ @$(TRANSFORM) $(TRANSFORM_OPTS) -o $@ $(SHEETS_DIR)/hierarchy.xsl $<
+
+
+all: $(HIERARCHIES:%.hierarchy=%.png) $(CLASSES:%.class=%.png) $(ENUMS:%.enum=%.png) $(KEYS:%.key=%.png)
+
+clean:
+ @echo " RM dir.stamp"
+ @rm -f dir.stamp
+
+ @echo " RM *.png"
+ @rm -f *.png
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphs/blistnode.class Mon May 06 02:33:14 2013 -0500
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<class name="PurplePluginLoader" type="interface">
+ <properties>
+ <property name="node" type="GNode" scope="private"/>
+ </properties>
+ <methods>
+ <method name="purple_plugin_loader_get_supported_extensions" type="GList *" scope="public">
+ <argument name="loader" type="GfPluginLoader *"/>
+ </method>
+ <method name="purple_plugin_loader_query_plugin" type="PurplePluginInfo *" scope="public">
+ <argument name="loader" type="PurplePluginLoader *"/>
+ <argument name="filename" type="const gchar *"/>
+ <argument name="error" type="GError **"/>
+ </method>
+ <method name="purple_plugin_loader_load_plugin" type="PurplePlugin *" scope="public">
+ <argument name="loader" type="PurplePluginLoader *"/>
+ <argument name="filename" type="const gchar *"/>
+ <argument name="error" type="GError **"/>
+ </method>
+ <method name="purple_plugin_loader_unload_plugin" type="gboolean" scope="public">
+ <argument name="loader" type="PurplePluginLoader *"/>
+ <argument name="plugin" type="PurplePlugin *"/>
+ <argument name="error" type="GError **"/>
+ </method>
+ </methods>
+</class>
+<!--
+ vi: syntax=xml
+-->
--- a/graphs/blistnodes.hierarchy Mon Jul 20 00:06:51 2009 -0500
+++ b/graphs/blistnodes.hierarchy Mon May 06 02:33:14 2013 -0500
@@ -9,6 +9,8 @@
<object name="PurpleChat" type="abstract"/>
<object name="PurpleContact" type="concrete"/>
<object name="PurpleGroup" type="concrete"/>
+ <object name="PurpleXMPPBuddy" type="concrete"/>
+ <object name="PurpleXMPPChat" type="concrete"/>
</objects>
<relations>
<relation start="PurpleObject" end="GObject" type="is-a"/>
@@ -24,6 +26,9 @@
<relation start="PurpleContact" end="PurpleBuddy" type="has-a"/>
<relation start="PurpleGroup" end="PurpleContact" type="has-a"/>
<relation start="PurpleGroup" end="PurpleChat" type="has-a"/>
+
+ <relation start="PurpleXMPPBuddy" end="PurpleBuddy" type="is-a"/>
+ <relation start="PurpleXMPPChat" end="PurpleChat" type="is-a"/>
</relations>
</hierarchy>
<!--
--- a/xml/buddylist.xml Mon Jul 20 00:06:51 2009 -0500
+++ b/xml/buddylist.xml Mon May 06 02:33:14 2013 -0500
@@ -12,5 +12,11 @@
<graphic fileref="graphs/blistnodes.png"/>
</figure>
+
+ <figure id="blistnode-class">
+ <title>Blist Node Class</title>
+
+ <graphic fileref="graphs/blistnode.png"/>
+ </figure>
</chapter>
--- a/xml/purple-objects.xml Mon Jul 20 00:06:51 2009 -0500
+++ b/xml/purple-objects.xml Mon May 06 02:33:14 2013 -0500
@@ -8,6 +8,7 @@
<xi:include href="about.xml"/>
<xi:include href="graphs.xml"/>
+ <xi:include href="buddylist.xml"/>
<xi:include href="plugins.xml"/>
<xi:include href="plugin-loaders.xml"/>
<xi:include href="accounts.xml"/>
@@ -19,7 +20,6 @@
<xi:include href="connections.xml"/>
<xi:include href="filetransfers.xml"/>
<xi:include href="pounces.xml"/>
- <xi:include href="buddylist.xml"/>
<xi:include href="todo.xml"/>
<xi:include href="revhistory.xml"/>