From 972658fa2adb8e97199368a8bd734edaad5d9666 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 1 Aug 2010 16:32:57 -0400 Subject: [PATCH] Added note about GUI architecture to doc/hacking.txt + doc/img/gui_flow/. doc/img/gui_flow/ |-- gui_flow.xml XML definition of the information-flow graph. |-- graph.xsl XSLT translating gui_flow.xml -> gui_flow.svg `-- math.sqrt.template.xsl Template for calculating sqrt(x) in XSLT. Periodically I get the hare-brained idea that I want to do something with XSLT. I'm not sure what I was thinking ;). It's done now though, and it seems a shame to waste it. --- doc/hacking.txt | 16 +++++ doc/img/gui_flow/graph.xsl | 81 +++++++++++++++++++++++++ doc/img/gui_flow/gui_flow.xml | 16 +++++ doc/img/gui_flow/math.sqrt.template.xsl | 37 +++++++++++ 4 files changed, 150 insertions(+) create mode 100644 doc/img/gui_flow/graph.xsl create mode 100644 doc/img/gui_flow/gui_flow.xml create mode 100644 doc/img/gui_flow/math.sqrt.template.xsl diff --git a/doc/hacking.txt b/doc/hacking.txt index 70f2f8b..c0e954d 100644 --- a/doc/hacking.txt +++ b/doc/hacking.txt @@ -147,3 +147,19 @@ There are also a number of features who's standard library support changes with different versions of Python. :mod:`~hooke.compat` provides a uniform interface to those tools so that Hooke will work with several Python versions. + +GUI +--- + +:mod:`hooke.ui.gui` contains enough code that you might want a word +about its organization before diving into the code. Information flows +like this: + +.. image:: img/gui_flow/gui_flow.svg + +With the following naming scheme in HookeFrame: + + =================== ================== + callbacks ``_on_*`` + response processors ``_postprocess_*`` + =================== ================== diff --git a/doc/img/gui_flow/graph.xsl b/doc/img/gui_flow/graph.xsl new file mode 100644 index 0000000..4d7d2fc --- /dev/null +++ b/doc/img/gui_flow/graph.xsl @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/img/gui_flow/gui_flow.xml b/doc/img/gui_flow/gui_flow.xml new file mode 100644 index 0000000..2ab957c --- /dev/null +++ b/doc/img/gui_flow/gui_flow.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/doc/img/gui_flow/math.sqrt.template.xsl b/doc/img/gui_flow/math.sqrt.template.xsl new file mode 100644 index 0000000..00196eb --- /dev/null +++ b/doc/img/gui_flow/math.sqrt.template.xsl @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.26.2