OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
GladeXML

GladeXML

Loading XML GUI definition files on the fly

Object Hierarchy

GtkObject
`-- GtkData
       `-- GladeXML

Direct subclasses

None.

Description

Glade is a user interface builder for Gtk. With it you can create your the surface of your applications in a WYSIWYG manner withouth having to worry about commands like add() , pack_start() and pack_end() .

Glade has the ability to generate source code which creates the whole interface - but only for C, C++ and Ada95. Another way of using the interfaces created with glade is to load the .glade files dynamically from the application with the GladeXML class, and PHP-Gtk supports this.

When using glade in your PHP-Gtk applications, you have at least 2 files:

When starting the program, the glade class is used to load the full contents (if you designed the full UI in glade) or only a part of the user interface (if you e.g. created just the menus with glade) from the .glade file. After loading, the widgets behave the same as if they were created the "normal" way.

Single widgets can be accessed with the get_widget() functions. Signals which can be assigned directly in Glade can be connected automatically with signal_autoconnect() .

The original glade application can be found at glade.gnome.org and a windows port at wingtk.sourceforge.net. There is also a tool called AppWizard which creates the php framework from .glade files so that you can concentrate on implementing the real application functions.

PHP-Gtk 1.x supports glade 1 files only. This means you can not use Glade2 for user interface creation but Glade1.

Constructor

GladeXML (string fname, [string root = NULL, [string domain = NULL]]);
-- Creates a new GladeXML instance.

Methods

get_widget()
  Returns the widget with the given name.
get_widget_by_long_name()
  Returns the widget specified by the given path.
signal_connect()
  Connects all signals with the given handler to a callback function.
signal_connect_object()
  Connects all signals with the given handler to a callback function.
signal_autoconnect()
  Connects all signal handlers to functions.
signal_autoconnect_object()
  Connects all signal handlers to functions.
relative_file()
  Creates an absolute filename from a relative one.

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting


Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS Free Templates

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005