Source for file big_example.php
Documentation is available at big_example.php
* Bigger test application for Gtk_FileDrop class
* Uses different MIME Types and file extensions
* as well as callbacks with objects
* @author Christian Weiske <cweiske@cweiske.de>
dl('php_gtk.' . PHP_SHLIB_SUFFIX );
require_once('Gtk/FileDrop.php');
function tryout ($widget, $arFiles)
echo $this->te . ' test';
$window = &new GtkWindow ();
$window->set_default_size (300 , 300 );
$window->connect_object ('destroy', array ('gtk', 'main_quit'));
$table = & new GtkTable ();
array ('inode/directory'),
array ('.txt', '.htm', '.html'),
foreach ($arTypes as $arTypeList) {
$label = & new GtkLabel (implode( ';', $arTypeList));
$table->attach ($label, 0 , 1 , $nCount, $nCount + 1 , GTK_FILL , GTK_FILL );
$entry = & new GtkButton ('drop on me');
$table->attach ($entry, 1 , 2 , $nCount, $nCount + 1 , GTK_EXPAND | GTK_FILL , GTK_FILL );
$table->attach ($list, 0 , 3 , $nCount, $nCount + 1 , GTK_EXPAND | GTK_FILL , GTK_EXPAND | GTK_FILL );
$fs = & new GtkFileSelection ('select a php file');
$table->attach ($cmb, 0 , 3 , $nCount, $nCount + 1 , GTK_FILL , GTK_FILL );
Documentation generated on Mon, 11 Mar 2019 15:40:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|