cvs: phpdoc /en/reference/newt book.xml constants.xml examples.xml reference.xml setup.xml

From: Date: Wed, 26 Dec 2007 14:29:48 +0000
Subject: cvs: phpdoc /en/reference/newt book.xml constants.xml examples.xml reference.xml setup.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-836@lists.php.net to get a copy of this message
bjori Wed Dec 26 14:29:48 2007 UTC Modified files: /phpdoc/en/reference/newt book.xml examples.xml setup.xml constants.xml reference.xml Log: MFB: Upgrade to the new-reference-structure - (Created missing setup sections in setup.xml, if any) - Moved the intro to book.xml - Changed the intro ID from <extname>.intro to intro.<extname> - Moved the constants entity to book.xml - Changed constants.xml to be an appendix - Moved newt.examles to its own chapter (examples.xml) NOTE: The chapter uses the newt.examples Id, the orginal newt.examples section is now called newt.examples-usage - Moved the requirements & resources sections to setup.xml - Moved the configure entity setup.xml

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/newt/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/newt/book.xml diff -u /dev/null phpdoc/en/reference/newt/book.xml:1.2 --- /dev/null Wed Dec 26 14:29:48 2007 +++ phpdoc/en/reference/newt/book.xml Wed Dec 26 14:29:48 2007 @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.cmdline --> +<!-- Membership: pecl, external --> +<!-- State: experimental --> + +<book xml:id="book.newt" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Newt</title> + + <!-- {{{ preface --> + <preface xml:id="intro.newt"> + &reftitle.intro; + <para> + This is a PHP language extension for RedHat Newt library, a terminal-based + window and widget library for writing applications with user friendly interface. + Once this extension is enabled in PHP it will provide the use of Newt + widgets, such as windows, buttons, checkboxes, radiobuttons, labels, + editboxes, scrolls, textareas, scales, etc. Use of this extension if very + similar to the original Newt API of C programming language. + </para> + </preface> + <!-- }}} --> + + &reference.newt.setup; + &reference.newt.constants; + &reference.newt.examples; + &reference.newt.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/newt/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/newt/examples.xml diff -u /dev/null phpdoc/en/reference/newt/examples.xml:1.2 --- /dev/null Wed Dec 26 14:29:48 2007 +++ phpdoc/en/reference/newt/examples.xml Wed Dec 26 14:29:48 2007 @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="newt.examples" xmlns="http://docbook.org/ns/docbook"> +&reftitle.examples; + <section xml:id="newt.examples-usage"> + <title>Basic usage</title> + <para> + This example is a PHP port of RedHat 'setup' utility dialog, executed in text + mode. + </para> + <example> + <title>Newt Usage Example</title> + <programlisting role="php"> +<![CDATA[ +<?php +newt_init (); +newt_cls (); + +newt_draw_root_text (0, 0, "Test Mode Setup Utility 1.12"); +newt_push_help_line (null); +newt_draw_root_text (-30, 0, "(c) 1999-2002 RedHat, Inc"); + +newt_get_screen_size (&$rows, &$cols); + +newt_open_window ($rows/2-17, $cols/2-10, 34, 17, "Choose a Tool"); + +$form = newt_form (); + +$list = newt_listbox (3, 2, 10); + +foreach (array ( + "Authentication configuration", + "Firewall configuration", + "Mouse configuration", + "Network configuration", + "Printer configuration", + "System services") as $l_item) +{ + newt_listbox_add_entry ($list, $l_item, $l_item); +} + +$b1 = newt_button (5, 12, "Run Tool"); +$b2 = newt_button (21, 12, "Quit"); + +newt_form_add_component ($form, $list); +newt_form_add_components ($form, array($b1, $b2)); + +newt_refresh (); +newt_run_form ($form); + +newt_pop_window (); +newt_pop_help_line (); +newt_finished (); +newt_form_destroy ($form); +?> +]]> + </programlisting> + </example> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/newt/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/newt/setup.xml diff -u /dev/null phpdoc/en/reference/newt/setup.xml:1.2 --- /dev/null Wed Dec 26 14:29:48 2007 +++ phpdoc/en/reference/newt/setup.xml Wed Dec 26 14:29:48 2007 @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="newt.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="newt.requirements"> + &reftitle.required; + <para> + This module uses the functions of the RedHat Newt library. + You need libnewt version &gt;= 0.51.0. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.newt.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="newt.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="newt.resources"> + &reftitle.resources; + <para> + This extension uses two resource types: "newt component" and "newt grid". + </para> + <para> + Resource type "newt component" is returned by functions, which create + common newt widgets (for example: <function>newt_button</function>) + </para> + <para> + Resource type "newt grid" is a special link identifier for components, + returned by newt grid factory functions (for example: <function>newt_create_grid</function>) + </para> + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/newt/constants.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/newt/constants.xml diff -u phpdoc/en/reference/newt/constants.xml:1.4 phpdoc/en/reference/newt/constants.xml:1.5 --- phpdoc/en/reference/newt/constants.xml:1.4 Wed Jun 20 22:25:05 2007 +++ phpdoc/en/reference/newt/constants.xml Wed Dec 26 14:29:48 2007 @@ -1,7 +1,7 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. --> -<section xml:id="newt.constants" xmlns="http://docbook.org/ns/docbook"> +<appendix xml:id="newt.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; @@ -654,7 +654,7 @@ </table> </section> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/newt/reference.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/newt/reference.xml diff -u phpdoc/en/reference/newt/reference.xml:1.5 phpdoc/en/reference/newt/reference.xml:1.6 --- phpdoc/en/reference/newt/reference.xml:1.5 Mon Dec 10 17:06:06 2007 +++ phpdoc/en/reference/newt/reference.xml Wed Dec 26 14:29:48 2007 @@ -1,108 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- Purpose: utilspec.cmdline --> -<!-- Membership: pecl, external --> -<!-- State: experimental --> +<!-- $Revision: 1.6 $ --> + <reference xml:id="ref.newt" xmlns="http://docbook.org/ns/docbook"> - <title>Newt Functions</title> + <title>Newt &Functions;</title> <titleabbrev>Newt</titleabbrev> - <partintro> - <section xml:id="newt.intro"> - &reftitle.intro; - <para> - This is a PHP language extension for RedHat Newt library, a terminal-based - window and widget library for writing applications with user friendly interface. - Once this extension is enabled in PHP it will provide the use of Newt - widgets, such as windows, buttons, checkboxes, radiobuttons, labels, - editboxes, scrolls, textareas, scales, etc. Use of this extension if very - similar to the original Newt API of C programming language. - </para> - </section> - <section xml:id="newt.requirements"> - &reftitle.required; - <para> - This module uses the functions of the RedHat Newt library. - You need libnewt version &gt;= 0.51.0. - </para> - </section> - - <!-- Information found in configure.xml --> - &reference.newt.configure; - - <section xml:id="newt.resources"> - &reftitle.resources; - <para> - This extension uses two resource types: "newt component" and "newt grid". - - Resource type "newt component" is returned by functions, which create - common newt widgets (for example: <function>newt_button</function>) - - Resource type "newt grid" is a special link identifier for components, - returned by newt grid factory functions (for example: <function>newt_create_grid</function>) - </para> - </section> - - <!-- Information found in constants.xml --> - &reference.newt.constants; - - <section xml:id="newt.examples"> - &reftitle.examples; - <para> - This example is a PHP port of RedHat 'setup' utility dialog, executed in text - mode. - </para> - <example> - <title>Newt Usage Example</title> - <programlisting role="php"> -<![CDATA[ -<?php - newt_init (); - newt_cls (); - - newt_draw_root_text (0, 0, "Test Mode Setup Utility 1.12"); - newt_push_help_line (null); - newt_draw_root_text (-30, 0, "(c) 1999-2002 RedHat, Inc"); - - newt_get_screen_size (&$rows, &$cols); - - newt_open_window ($rows/2-17, $cols/2-10, 34, 17, "Choose a Tool"); - - $form = newt_form (); - - $list = newt_listbox (3, 2, 10); - - foreach (array ( - "Authentication configuration", - "Firewall configuration", - "Mouse configuration", - "Network configuration", - "Printer configuration", - "System services") as $l_item) - { - newt_listbox_add_entry ($list, $l_item, $l_item); - } - - $b1 = newt_button (5, 12, "Run Tool"); - $b2 = newt_button (21, 12, "Quit"); - - newt_form_add_component ($form, $list); - newt_form_add_components ($form, array($b1, $b2)); - - newt_refresh (); - newt_run_form ($form); - - newt_pop_window (); - newt_pop_help_line (); - newt_finished (); - newt_form_destroy ($form); -?> -]]> - </programlisting> - </example> - </section> - </partintro> - &reference.newt.entities.functions; </reference>
« previous php.doc.cvs (#836) next »