PEAR_Frontend_Gtk2
[ class tree: PEAR_Frontend_Gtk2 ] [ index: PEAR_Frontend_Gtk2 ] [ all elements ]

Source for file About.php

Documentation is available at About.php

  1. <?php
  2. /**
  3. *   About dialog for the PEAR Gtk2 frontend
  4. *
  5. *   @author Christian Weiske <cweiske@php.net>
  6. */
  7. class PEAR_Frontend_Gtk2_About extends GtkAboutDialog
  8. {
  9.     /**
  10.     *   Creates the About dialog and fills it with
  11.     *   the right values (name, version, programmer, ...)
  12.     */
  13.     public function __construct()
  14.     {
  15.         parent::__construct();
  16.         $this->connect_simple('response'array($this'destroy'));
  17.  
  18.         $this->set_title('About PEAR package installer');
  19.         $this->set_version('@VERSION_PEAR_Frontend_Gtk2@');
  20.         $this->set_name('PEAR package installer');
  21.  
  22.         $this->set_license("This program is licensed under the LGPL v2.1");
  23.         $this->set_comments('Programmed by Christian Weiske <cweiske@php.net>'
  24.             . "\r\n" 'Sponsored by Ralf Schwoebel, www.tradebit.com');
  25.  
  26.         $this->set_website('http://gnope.org');
  27.  
  28. //        $this->set_authors(array('Christian Weiske <cweiske@cweiske.de>', 'Ralf Schwöbel'));
  29.     }//public function __construct()
  30.  
  31.  
  32.  
  33.     /**
  34.     *   Static function that just creates an instance of the
  35.     *   About dialog, and run()s it afterwards.
  36.     */
  37.     public static function showMe()
  38.     {
  39.         $dlg = new PEAR_Frontend_Gtk2_About();
  40.         $dlg->run();
  41.     }//public static function showMe()
  42.  
  43. }//class PEAR_Frontend_Gtk2_About extends GtkAboutDialog
  44. ?>

Documentation generated on Mon, 11 Mar 2019 15:46:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.