cvs: pear /PEAR_Frontend_Gtk Gtk.php package.xml /PEAR_Frontend_Gtk/Gtk installer.glade
| From: | Alan Knowles | Date: | Thu, 30 May 2002 09:28:51 +0000 |
| Subject: | cvs: pear /PEAR_Frontend_Gtk Gtk.php package.xml /PEAR_Frontend_Gtk/Gtk installer.glade | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4288@lists.php.net to get a copy of this message | ||
alan_k Thu May 30 05:28:51 2002 EDT
Modified files:
/pear/PEAR_Frontend_Gtk Gtk.php package.xml
/pear/PEAR_Frontend_Gtk/Gtk installer.glade
Log:
Using New API,
configuration interface builder loads config (but doesnt save)
left tabs now flip between configuration and installer
Index: pear/PEAR_Frontend_Gtk/Gtk.php diff -u pear/PEAR_Frontend_Gtk/Gtk.php:1.3 pear/PEAR_Frontend_Gtk/Gtk.php:1.4 --- pear/PEAR_Frontend_Gtk/Gtk.php:1.3 Wed May 29 06:55:07 2002 +++ pear/PEAR_Frontend_Gtk/Gtk.php Thu May 30 05:28:50 2002 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@fast.no> | +----------------------------------------------------------------------+ - $Id: Gtk.php,v 1.3 2002/05/29 10:55:07 alan_k Exp $ + $Id: Gtk.php,v 1.4 2002/05/30 09:28:50 alan_k Exp $ */ require_once "PEAR.php"; @@ -213,7 +213,21 @@ $this->_widget_downloading_logo->put($installer_logo,0,0); $installer_logo->show(); + /* configuration loading */ + + $this->_clearConfig(); + $cmd = PEAR_Command::factory('config-show',$this->config); + $cmd->ui = &$this; + $cmd->run('config-show' ,'', array()); + + $this->_setStyle('config_logo','#000000','#339900',TRUE); + $this->_setStyle('config_logo_text','#FFFFFF','#339900'); + $config_logo = &new GtkPixmap( + $this->_pixmaps['pear.xpm'][0], + $this->_pixmaps['pear.xpm'][1]); + $this->_widget_config_logo->put($config_logo,0,0); + $config_logo->show(); } /* @@ -305,8 +319,141 @@ var $_logo_pixmap; // the base to draw pixmaps onto... + + + - + + + function _buildConfig(&$array) { + if (!$array) return; + foreach ($array as $v) + $this->_buildConfigItem($v[0],$v[1]); + + } + + function _buildConfigItem($k,$v) { + echo "BUIDLING CONF ITME $k $v\n"; + $group = $this->config->getGroup($k); + $gtktable = $this->_getConfigTab($group); + $prompt = $this->config->getPrompt($k); + $gtklabel = &new GtkLabel(); + $gtklabel->set_text($prompt); + $gtklabel->set_justify(GTK_JUSTIFY_LEFT); + $gtklabel->set_alignment(0.0, 0.5); + $gtklabel->show(); + $r = $gtktable->nrows; + $gtktable->attach($gtklabel, 0, 1, $r, $r+1, GTK_FILL,GTK_FILL); + if ($v == '<not set>') + $v = ''; + + $type = $this->config->getType($k); + switch ($type) { + case 'string': + case 'password': + case 'int': // umask: should really be checkboxes.. + $gtkentry = &new GtkEntry(); + $gtkentry->set_text($v); + + $gtkentry->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + if ($type == 'password') + $gtkentry->set_visibility(FALSE); + $gtkentry->show(); + $gtktable->attach($gtkentry, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + break; + case 'directory': + $gtkentry = &new GtkEntry(); + $gtkentry->set_text($v); + $gtkentry->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + $gtkentry->show(); + $gtktable->attach($gtkentry, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + $gtkbutton = &new GtkButton('...'); + $gtkbutton->show(); + $gtktable->attach($gtkbutton, 2, 3, $r, $r+1, GTK_SHRINK,GTK_SHRINK); + break; + case 'set': + $options = $this->config->getSetValues($k); + $gtkmenu = &new GtkMenu(); + $items = array(); + $sel = 0; + foreach($options as $i=>$option) { + $items[$i] = &new GtkMenuItem($option); + //$items[$i]->connect('activate', 'echo_activated', $labels[$i], $pos[$i], + $gtkmenu->append($items[$i]); + if ($option == $v) + $sel = $i; + } + $gtkmenu->set_active($sel); + $gtkmenu->show_all(); + $gtkoptionmenu = &new GtkOptionMenu(); + $gtkoptionmenu->set_menu($gtkmenu); + $gtkoptionmenu->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + $gtkoptionmenu->show(); + $gtktable->attach($gtkoptionmenu, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + break; + // debug: shourd really be + case 'integer': // debug : should really be a set? + $gtkadj = &new GtkAdjustment($v, 1.0, 3.0, 1.0, 1.0, 0.0); + $gtkspinbutton = &new GtkSpinButton($gtkadj); + $gtkspinbutton->show(); + $gtkspinbutton->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + $gtktable->attach($gtkspinbutton, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + break; + default: + echo "$prompt : ". $this->config->getType($k) . "\n"; + } + + } + + function _setConfigHelp($event,$string) { + $this->_widget_config_help->set_text($string); + } + + var $_configTabs = array(); // associative array of configGroup -> GtkTable + + function &_getConfigTab($group) { + if (@$this->_configTabs[$group]) + return $this->_configTabs[$group]; + $this->_configTabs[$group] = &new GtkTable(); + $this->_configTabs[$group]->set_row_spacings(10); + $this->_configTabs[$group]->set_col_spacings(10); + $this->_configTabs[$group]->set_border_width(15); + $this->_configTabs[$group]->show(); + $gtklabel = &new GtkLabel($group); + + $gtklabel->show(); + $this->_widget_config_notebook->append_page($this->_configTabs[$group],$gtklabel); + return $this->_configTabs[$group]; + } + + function _clearConfig() { + if ($this->_configTabs) + foreach (array_keys($this->_configTabs) as $k) { + $page = $this->_widget_config_notebook->page_num($this->_configTabs[$k]); + $this->_widget_config_notebook->remove_page($page); + $this->_configTabs[$k]->destroy(); + } + + // delete any other pages; + if ($widget = $this->_widget_config_notebook->get_nth_page(0)) { + $this->_widget_config_notebook->remove_page(0); + $widget->destroy(); + } + } + function _callbackShowInstaller() { + $this->_widget_pages->set_page(0); + } + function _callbackShowConfig() { + $this->_widget_pages->set_page(2); + } var $_activeDownloadSize =0; var $_downloadTotal=1; @@ -358,9 +505,23 @@ gtk::main_quit(); exit; } - - //-------------------------- BASE Installer methods -------------------------- + + + + //-------------------------- BASE Installer methods -------------------------- + + function outputData($data,$command ){ + switch ($command) { + case 'config-show': + $this->_buildConfig($data['data']); + break; + default: + echo "COMMAND : $command\n"; + echo "DATA: ".serialize($data)."\n"; + } + } + // {{{ displayLine(text) function displayLine($text) Index: pear/PEAR_Frontend_Gtk/package.xml diff -u pear/PEAR_Frontend_Gtk/package.xml:1.1 pear/PEAR_Frontend_Gtk/package.xml:1.2 --- pear/PEAR_Frontend_Gtk/package.xml:1.1 Mon May 27 09:08:48 2002 +++ pear/PEAR_Frontend_Gtk/package.xml Thu May 30 05:28:50 2002 @@ -31,18 +31,21 @@ <dir name="Gtk"> <file role="php">Packages.php</file> <file role="php">Summary.php</file> + <file role="php">Install.php</file> <file role="php">installer.glade</file> <dir name="xpm"> + <file role="php">black_close_icon.xpm</file> <file role="php">check_no.xpm</file> <file role="php">check_yes.xpm</file> - <file role="php">folder_closed.xpm</file> - <file role="php">folder_open.xpm</file> + <file role="php">downloading_image.xpm</file> + <file role="php">folder_closed.xpm</file> + <file role="php">folder_open.xpm</file> <file role="php">info_icon.xpm</file> - <file role="php">installer_logo.xpm</file> - <file role="php">nav_configuration.xpm</file> - <file role="php">nav_documentation.xpm</file> - <file role="php">nav_installer.xpm</file> - <file role="php">package.xpm</file> + <file role="php">nav_configuration.xpm</file> + <file role="php">nav_documentation.xpm</file> + <file role="php">nav_installer.xpm</file> + <file role="php">package.xpm</file> + <file role="php">pear.xpm</file> </dir> </dir> </dir> Index: pear/PEAR_Frontend_Gtk/Gtk/installer.glade diff -u pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.4 pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.5 --- pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.4 Wed May 29 06:55:07 2002 +++ pear/PEAR_Frontend_Gtk/Gtk/installer.glade Thu May 30 05:28:51 2002 @@ -16,7 +16,7 @@ <class>GtkWindow</class> <name>window</name> <width>600</width> - <height>400</height> + <height>460</height> <visible>False</visible> <signal> <name>destroy</name> @@ -371,6 +371,11 @@ <name>pear_installer_button</name> <width>150</width> <height>90</height> + <signal> + <name>clicked</name> + <handler>_callbackShowInstaller</handler> + <last_modification_time>Thu, 30 May 2002 09:23:14 GMT</last_modification_time> + </signal> <label>Pear Installer</label> <relief>GTK_RELIEF_NONE</relief> <child> @@ -400,6 +405,11 @@ <name>config_button</name> <width>150</width> <height>90</height> + <signal> + <name>clicked</name> + <handler>_callbackShowConfig</handler> + <last_modification_time>Thu, 30 May 2002 09:20:57 GMT</last_modification_time> + </signal> <label>Configuration</label> <relief>GTK_RELIEF_NONE</relief> <child> @@ -1071,14 +1081,217 @@ </widget> <widget> - <class>Placeholder</class> + <class>GtkVBox</class> + <name>vbox15</name> + <homogeneous>False</homogeneous> + <spacing>0</spacing> + + <widget> + <class>GtkVBox</class> + <name>vbox16</name> + <height>47</height> + <homogeneous>False</homogeneous> + <spacing>0</spacing> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkScrolledWindow</class> + <name>scrolledwindow14</name> + <hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy> + <vscrollbar_policy>GTK_POLICY_NEVER</vscrollbar_policy> + <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy> + <vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkLayout</class> + <name>config_logo</name> + <area_width>400</area_width> + <area_height>400</area_height> + <hstep>10</hstep> + <vstep>10</vstep> + + <widget> + <class>GtkHBox</class> + <name>hbox9</name> + <x>136</x> + <y>8</y> + <width>570</width> + <height>27</height> + <homogeneous>False</homogeneous> + <spacing>0</spacing> + + <widget> + <class>GtkLabel</class> + <name>config_logo_text</name> + <label>Configure PEAR</label> + <justify>GTK_JUSTIFY_LEFT</justify> + <wrap>False</wrap> + <xalign>0.5</xalign> + <yalign>0.5</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + </widget> + </widget> + </widget> + </widget> + </widget> + + <widget> + <class>GtkHBox</class> + <name>hbox10</name> + <border_width>15</border_width> + <homogeneous>False</homogeneous> + <spacing>13</spacing> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkLabel</class> + <name>label59</name> + <label>What do you want to configure? </label> + <justify>GTK_JUSTIFY_CENTER</justify> + <wrap>False</wrap> + <xalign>0.5</xalign> + <yalign>0.5</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>False</fill> + </child> + </widget> + + <widget> + <class>GtkOptionMenu</class> + <name>optionmenu1</name> + <can_focus>True</can_focus> + <items>PEAR +</items> + <initial_choice>0</initial_choice> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + </widget> + </widget> + + <widget> + <class>GtkVBox</class> + <name>vbox17</name> + <border_width>15</border_width> + <homogeneous>False</homogeneous> + <spacing>10</spacing> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkNotebook</class> + <name>config_notebook</name> + <can_focus>True</can_focus> + <show_tabs>True</show_tabs> + <show_border>True</show_border> + <tab_pos>GTK_POS_TOP</tab_pos> + <scrollable>False</scrollable> + <tab_hborder>2</tab_hborder> + <tab_vborder>2</tab_vborder> + <popup_enable>False</popup_enable> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + + <widget> + <class>Placeholder</class> + </widget> + + <widget> + <class>GtkLabel</class> + <child_name>Notebook:tab</child_name> + <name>label61</name> + <label>File Locations</label> + <justify>GTK_JUSTIFY_CENTER</justify> + <wrap>False</wrap> + <xalign>0.5</xalign> + <yalign>0.5</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + </widget> + </widget> + + <widget> + <class>GtkLabel</class> + <name>config_help</name> + <height>40</height> + <label>Help text</label> + <justify>GTK_JUSTIFY_LEFT</justify> + <wrap>True</wrap> + <xalign>0</xalign> + <yalign>0</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>False</fill> + </child> + </widget> + </widget> + + <widget> + <class>GtkHButtonBox</class> + <name>hbuttonbox2</name> + <layout_style>GTK_BUTTONBOX_END</layout_style> + <spacing>30</spacing> + <child_min_width>85</child_min_width> + <child_min_height>27</child_min_height> + <child_ipad_x>7</child_ipad_x> + <child_ipad_y>0</child_ipad_y> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkButton</class> + <name>button18</name> + <sensitive>False</sensitive> + <can_default>True</can_default> + <can_focus>True</can_focus> + <label>Save</label> + <relief>GTK_RELIEF_NORMAL</relief> + </widget> + </widget> </widget> <widget> <class>GtkLabel</class> <child_name>Notebook:tab</child_name> <name>label40</name> - <label>label40</label> + <label>Config</label> <justify>GTK_JUSTIFY_CENTER</justify> <wrap>False</wrap> <xalign>0.5</xalign>
Index: pear/PEAR_Frontend_Gtk/Gtk.php diff -u pear/PEAR_Frontend_Gtk/Gtk.php:1.3 pear/PEAR_Frontend_Gtk/Gtk.php:1.4 --- pear/PEAR_Frontend_Gtk/Gtk.php:1.3 Wed May 29 06:55:07 2002 +++ pear/PEAR_Frontend_Gtk/Gtk.php Thu May 30 05:28:50 2002 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@fast.no> | +----------------------------------------------------------------------+ - $Id: Gtk.php,v 1.3 2002/05/29 10:55:07 alan_k Exp $ + $Id: Gtk.php,v 1.4 2002/05/30 09:28:50 alan_k Exp $ */ require_once "PEAR.php"; @@ -213,7 +213,21 @@ $this->_widget_downloading_logo->put($installer_logo,0,0); $installer_logo->show(); + /* configuration loading */ + + $this->_clearConfig(); + $cmd = PEAR_Command::factory('config-show',$this->config); + $cmd->ui = &$this; + $cmd->run('config-show' ,'', array()); + + $this->_setStyle('config_logo','#000000','#339900',TRUE); + $this->_setStyle('config_logo_text','#FFFFFF','#339900'); + $config_logo = &new GtkPixmap( + $this->_pixmaps['pear.xpm'][0], + $this->_pixmaps['pear.xpm'][1]); + $this->_widget_config_logo->put($config_logo,0,0); + $config_logo->show(); } /* @@ -305,8 +319,141 @@ var $_logo_pixmap; // the base to draw pixmaps onto... + + + - + + + function _buildConfig(&$array) { + if (!$array) return; + foreach ($array as $v) + $this->_buildConfigItem($v[0],$v[1]); + + } + + function _buildConfigItem($k,$v) { + echo "BUIDLING CONF ITME $k $v\n"; + $group = $this->config->getGroup($k); + $gtktable = $this->_getConfigTab($group); + $prompt = $this->config->getPrompt($k); + $gtklabel = &new GtkLabel(); + $gtklabel->set_text($prompt); + $gtklabel->set_justify(GTK_JUSTIFY_LEFT); + $gtklabel->set_alignment(0.0, 0.5); + $gtklabel->show(); + $r = $gtktable->nrows; + $gtktable->attach($gtklabel, 0, 1, $r, $r+1, GTK_FILL,GTK_FILL); + if ($v == '<not set>') + $v = ''; + + $type = $this->config->getType($k); + switch ($type) { + case 'string': + case 'password': + case 'int': // umask: should really be checkboxes.. + $gtkentry = &new GtkEntry(); + $gtkentry->set_text($v); + + $gtkentry->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + if ($type == 'password') + $gtkentry->set_visibility(FALSE); + $gtkentry->show(); + $gtktable->attach($gtkentry, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + break; + case 'directory': + $gtkentry = &new GtkEntry(); + $gtkentry->set_text($v); + $gtkentry->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + $gtkentry->show(); + $gtktable->attach($gtkentry, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + $gtkbutton = &new GtkButton('...'); + $gtkbutton->show(); + $gtktable->attach($gtkbutton, 2, 3, $r, $r+1, GTK_SHRINK,GTK_SHRINK); + break; + case 'set': + $options = $this->config->getSetValues($k); + $gtkmenu = &new GtkMenu(); + $items = array(); + $sel = 0; + foreach($options as $i=>$option) { + $items[$i] = &new GtkMenuItem($option); + //$items[$i]->connect('activate', 'echo_activated', $labels[$i], $pos[$i], + $gtkmenu->append($items[$i]); + if ($option == $v) + $sel = $i; + } + $gtkmenu->set_active($sel); + $gtkmenu->show_all(); + $gtkoptionmenu = &new GtkOptionMenu(); + $gtkoptionmenu->set_menu($gtkmenu); + $gtkoptionmenu->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + $gtkoptionmenu->show(); + $gtktable->attach($gtkoptionmenu, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + break; + // debug: shourd really be + case 'integer': // debug : should really be a set? + $gtkadj = &new GtkAdjustment($v, 1.0, 3.0, 1.0, 1.0, 0.0); + $gtkspinbutton = &new GtkSpinButton($gtkadj); + $gtkspinbutton->show(); + $gtkspinbutton->connect_object_after('enter_notify_event', + array(&$this,'_setConfigHelp'),$this->config->getDocs($k)); + + $gtktable->attach($gtkspinbutton, 1, 2, $r, $r+1, GTK_FILL|GTK_EXPAND,GTK_FILL); + break; + default: + echo "$prompt : ". $this->config->getType($k) . "\n"; + } + + } + + function _setConfigHelp($event,$string) { + $this->_widget_config_help->set_text($string); + } + + var $_configTabs = array(); // associative array of configGroup -> GtkTable + + function &_getConfigTab($group) { + if (@$this->_configTabs[$group]) + return $this->_configTabs[$group]; + $this->_configTabs[$group] = &new GtkTable(); + $this->_configTabs[$group]->set_row_spacings(10); + $this->_configTabs[$group]->set_col_spacings(10); + $this->_configTabs[$group]->set_border_width(15); + $this->_configTabs[$group]->show(); + $gtklabel = &new GtkLabel($group); + + $gtklabel->show(); + $this->_widget_config_notebook->append_page($this->_configTabs[$group],$gtklabel); + return $this->_configTabs[$group]; + } + + function _clearConfig() { + if ($this->_configTabs) + foreach (array_keys($this->_configTabs) as $k) { + $page = $this->_widget_config_notebook->page_num($this->_configTabs[$k]); + $this->_widget_config_notebook->remove_page($page); + $this->_configTabs[$k]->destroy(); + } + + // delete any other pages; + if ($widget = $this->_widget_config_notebook->get_nth_page(0)) { + $this->_widget_config_notebook->remove_page(0); + $widget->destroy(); + } + } + function _callbackShowInstaller() { + $this->_widget_pages->set_page(0); + } + function _callbackShowConfig() { + $this->_widget_pages->set_page(2); + } var $_activeDownloadSize =0; var $_downloadTotal=1; @@ -358,9 +505,23 @@ gtk::main_quit(); exit; } - - //-------------------------- BASE Installer methods -------------------------- + + + + //-------------------------- BASE Installer methods -------------------------- + + function outputData($data,$command ){ + switch ($command) { + case 'config-show': + $this->_buildConfig($data['data']); + break; + default: + echo "COMMAND : $command\n"; + echo "DATA: ".serialize($data)."\n"; + } + } + // {{{ displayLine(text) function displayLine($text) Index: pear/PEAR_Frontend_Gtk/package.xml diff -u pear/PEAR_Frontend_Gtk/package.xml:1.1 pear/PEAR_Frontend_Gtk/package.xml:1.2 --- pear/PEAR_Frontend_Gtk/package.xml:1.1 Mon May 27 09:08:48 2002 +++ pear/PEAR_Frontend_Gtk/package.xml Thu May 30 05:28:50 2002 @@ -31,18 +31,21 @@ <dir name="Gtk"> <file role="php">Packages.php</file> <file role="php">Summary.php</file> + <file role="php">Install.php</file> <file role="php">installer.glade</file> <dir name="xpm"> + <file role="php">black_close_icon.xpm</file> <file role="php">check_no.xpm</file> <file role="php">check_yes.xpm</file> - <file role="php">folder_closed.xpm</file> - <file role="php">folder_open.xpm</file> + <file role="php">downloading_image.xpm</file> + <file role="php">folder_closed.xpm</file> + <file role="php">folder_open.xpm</file> <file role="php">info_icon.xpm</file> - <file role="php">installer_logo.xpm</file> - <file role="php">nav_configuration.xpm</file> - <file role="php">nav_documentation.xpm</file> - <file role="php">nav_installer.xpm</file> - <file role="php">package.xpm</file> + <file role="php">nav_configuration.xpm</file> + <file role="php">nav_documentation.xpm</file> + <file role="php">nav_installer.xpm</file> + <file role="php">package.xpm</file> + <file role="php">pear.xpm</file> </dir> </dir> </dir> Index: pear/PEAR_Frontend_Gtk/Gtk/installer.glade diff -u pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.4 pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.5 --- pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.4 Wed May 29 06:55:07 2002 +++ pear/PEAR_Frontend_Gtk/Gtk/installer.glade Thu May 30 05:28:51 2002 @@ -16,7 +16,7 @@ <class>GtkWindow</class> <name>window</name> <width>600</width> - <height>400</height> + <height>460</height> <visible>False</visible> <signal> <name>destroy</name> @@ -371,6 +371,11 @@ <name>pear_installer_button</name> <width>150</width> <height>90</height> + <signal> + <name>clicked</name> + <handler>_callbackShowInstaller</handler> + <last_modification_time>Thu, 30 May 2002 09:23:14 GMT</last_modification_time> + </signal> <label>Pear Installer</label> <relief>GTK_RELIEF_NONE</relief> <child> @@ -400,6 +405,11 @@ <name>config_button</name> <width>150</width> <height>90</height> + <signal> + <name>clicked</name> + <handler>_callbackShowConfig</handler> + <last_modification_time>Thu, 30 May 2002 09:20:57 GMT</last_modification_time> + </signal> <label>Configuration</label> <relief>GTK_RELIEF_NONE</relief> <child> @@ -1071,14 +1081,217 @@ </widget> <widget> - <class>Placeholder</class> + <class>GtkVBox</class> + <name>vbox15</name> + <homogeneous>False</homogeneous> + <spacing>0</spacing> + + <widget> + <class>GtkVBox</class> + <name>vbox16</name> + <height>47</height> + <homogeneous>False</homogeneous> + <spacing>0</spacing> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkScrolledWindow</class> + <name>scrolledwindow14</name> + <hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy> + <vscrollbar_policy>GTK_POLICY_NEVER</vscrollbar_policy> + <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy> + <vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkLayout</class> + <name>config_logo</name> + <area_width>400</area_width> + <area_height>400</area_height> + <hstep>10</hstep> + <vstep>10</vstep> + + <widget> + <class>GtkHBox</class> + <name>hbox9</name> + <x>136</x> + <y>8</y> + <width>570</width> + <height>27</height> + <homogeneous>False</homogeneous> + <spacing>0</spacing> + + <widget> + <class>GtkLabel</class> + <name>config_logo_text</name> + <label>Configure PEAR</label> + <justify>GTK_JUSTIFY_LEFT</justify> + <wrap>False</wrap> + <xalign>0.5</xalign> + <yalign>0.5</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + </widget> + </widget> + </widget> + </widget> + </widget> + + <widget> + <class>GtkHBox</class> + <name>hbox10</name> + <border_width>15</border_width> + <homogeneous>False</homogeneous> + <spacing>13</spacing> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkLabel</class> + <name>label59</name> + <label>What do you want to configure? </label> + <justify>GTK_JUSTIFY_CENTER</justify> + <wrap>False</wrap> + <xalign>0.5</xalign> + <yalign>0.5</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>False</fill> + </child> + </widget> + + <widget> + <class>GtkOptionMenu</class> + <name>optionmenu1</name> + <can_focus>True</can_focus> + <items>PEAR +</items> + <initial_choice>0</initial_choice> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + </widget> + </widget> + + <widget> + <class>GtkVBox</class> + <name>vbox17</name> + <border_width>15</border_width> + <homogeneous>False</homogeneous> + <spacing>10</spacing> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkNotebook</class> + <name>config_notebook</name> + <can_focus>True</can_focus> + <show_tabs>True</show_tabs> + <show_border>True</show_border> + <tab_pos>GTK_POS_TOP</tab_pos> + <scrollable>False</scrollable> + <tab_hborder>2</tab_hborder> + <tab_vborder>2</tab_vborder> + <popup_enable>False</popup_enable> + <child> + <padding>0</padding> + <expand>True</expand> + <fill>True</fill> + </child> + + <widget> + <class>Placeholder</class> + </widget> + + <widget> + <class>GtkLabel</class> + <child_name>Notebook:tab</child_name> + <name>label61</name> + <label>File Locations</label> + <justify>GTK_JUSTIFY_CENTER</justify> + <wrap>False</wrap> + <xalign>0.5</xalign> + <yalign>0.5</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + </widget> + </widget> + + <widget> + <class>GtkLabel</class> + <name>config_help</name> + <height>40</height> + <label>Help text</label> + <justify>GTK_JUSTIFY_LEFT</justify> + <wrap>True</wrap> + <xalign>0</xalign> + <yalign>0</yalign> + <xpad>0</xpad> + <ypad>0</ypad> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>False</fill> + </child> + </widget> + </widget> + + <widget> + <class>GtkHButtonBox</class> + <name>hbuttonbox2</name> + <layout_style>GTK_BUTTONBOX_END</layout_style> + <spacing>30</spacing> + <child_min_width>85</child_min_width> + <child_min_height>27</child_min_height> + <child_ipad_x>7</child_ipad_x> + <child_ipad_y>0</child_ipad_y> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>True</fill> + </child> + + <widget> + <class>GtkButton</class> + <name>button18</name> + <sensitive>False</sensitive> + <can_default>True</can_default> + <can_focus>True</can_focus> + <label>Save</label> + <relief>GTK_RELIEF_NORMAL</relief> + </widget> + </widget> </widget> <widget> <class>GtkLabel</class> <child_name>Notebook:tab</child_name> <name>label40</name> - <label>label40</label> + <label>Config</label> <justify>GTK_JUSTIFY_CENTER</justify> <wrap>False</wrap> <xalign>0.5</xalign>