PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

GladeXML | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

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.

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「GladeXML」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | GladeXML」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: