summaryrefslogtreecommitdiffstats
path: root/extensions/nsplugin/examples/grapher/grapher.doc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-08 12:31:36 -0600
committerTimothy Pearson <[email protected]>2011-11-08 12:31:36 -0600
commitd796c9dd933ab96ec83b9a634feedd5d32e1ba3f (patch)
tree6e3dcca4f77e20ec8966c666aac7c35bd4704053 /extensions/nsplugin/examples/grapher/grapher.doc
downloadtqt3-d796c9dd933ab96ec83b9a634feedd5d32e1ba3f.tar.gz
tqt3-d796c9dd933ab96ec83b9a634feedd5d32e1ba3f.zip
Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731
Diffstat (limited to 'extensions/nsplugin/examples/grapher/grapher.doc')
-rw-r--r--extensions/nsplugin/examples/grapher/grapher.doc64
1 files changed, 64 insertions, 0 deletions
diff --git a/extensions/nsplugin/examples/grapher/grapher.doc b/extensions/nsplugin/examples/grapher/grapher.doc
new file mode 100644
index 000000000..4ef87786a
--- /dev/null
+++ b/extensions/nsplugin/examples/grapher/grapher.doc
@@ -0,0 +1,64 @@
+/*! \page grapher-nsplugin-example.html
+ \ingroup nsplugin-examples
+
+ \title Grapher Plugin
+
+ This example graphs data from a simple text file. It
+ demonstrates the use of the QNPInstance::writeReady()
+ and QNPInstance::write() functions.
+
+ To build the example, you must first build the
+ <a href=nsplugin.html>Qt Netscape Plugin Extension</a> library.
+ Then type <tt>make</tt> in <tt>extensions/nsplugin/examples/grapher/</tt>
+ and copy the resulting <tt>grapher.so</tt> or <tt>npgrapher.dll</tt>
+ to the Plugins directory of your WWW browser.
+
+ <EMBED ALIGN=LEFT WIDTH=49% HEIGHT=300 SRC=graph.g1n
+ graphstyle=pie fontfamily=times fontsize=18>
+
+ The text file it accepts as input has a title line, then
+ a sequence of lines with a number, then a string. The
+ plugin displays a pie chart of the numbers, each segment
+ labelled by the associated string. The user can select
+ a bar chart view of the same data by selecting from the
+ menu that appears when they point at the plugin.
+
+ The HTML tag used to embed the graph is:
+<small>
+<pre>
+ &lt;EMBED
+ SRC=graph.g1n
+ ALIGN=LEFT
+ WIDTH=49% HEIGHT=300
+ graphstyle=pie fontfamily=times
+ fontsize=18&gt;
+</pre>
+</small>
+ Note that some HTML arguments (which we have capitalized here)
+ are interpreted by the browser, while others are used by the
+ plugin.
+
+<br clear>
+With the simplicity and cross-platform nature of Qt-based plugins,
+pages like <a href="http://www.netcraft.com/survey/">Netcraft's
+Server Graphs</a> can be provided much more efficiently for both
+the service provider and consumer. Data need not be converted
+to an image at the server.
+
+<br clear>
+ <hr>
+ Implementation:
+
+ \include grapher/grapher.cpp
+*/
+
+/*! \plainpage graph.g1n
+num label
+10 A
+24 B
+12 C
+7 D
+34 E
+15 F
+19 G
+*/