Archive for the ‘New book’ Category

ebook “PHP-GTK2 Demystified” - now available online!

Tuesday, March 11th, 2008

It’s not Christmas.

But yes, I’ve decided to make my ebook “PHP-GTK2 Demystified” freely available online.

If you’ve not heard about this book, here’s the details.

And here’s the link to the book: PHP-GTK2 Demystified - Master the three Key Concepts of PHP-GTK2

Happy reading!

/kksou

http://www.kksou.com/php-gtk2
The place for php-gtk2 sample codes

Second book on Glade: “Mastering Glade for PHP-GTK2″

Saturday, November 24th, 2007

Have just released my second ebook on Glade:

Mastering Glade for PHP-GTK2

Highlights of the book:

  • Covers all the most commonly used GTK widgets
  • Covers the latest version: Glade v3.4.0
  • Complete sample codes and glade files

More information here:
http://www.kksou.com/php-gtk2/ebooks/ebook04/

/kksou

http://www.kksou.com/php-gtk2
The place for php-gtk2 sample codes

PHP-GTK Explorer v1.03 - Three New Exciting Features Added!

Tuesday, September 18th, 2007

Have just added three new exciting features to PHP-GTK Explorer v1.03:

  • Search for methods
  • For example, type in set_size_request, you will find it belongs to GtkWidget. If you’re not sure of the complete spelling, you can even typing in set_size or just size!

    Search for Method

  • Search for signals
  • For example, type in clicked, all the widgets containing the signal ‘clicked’ will be listed. Do you know there are three widgets all with the signals ‘clicked’?

    Search for Signals

  • Browse history
  • Just press the F8, and you will be able to browse all the widgets that you have explorerd. Click on the history item, and you will be taken directly back to that widget!

    Browse History

Click here to download!

Some Implementation Details

  • For the searching of methods, I actually loop through all the widgets (using the reflection classes). For each widget, I retrieve all the methods and match it against the method you have entered in the search field. The entire process usually takes between 1 to 5 seconds. Just for “fun”, I added a progress bar when searching for the methods so that you won’t feel too bored while waiting for the dialog box to appear.
  • In the popup dialog box that lists all the methods that match the criteria, if you use single click, you will see immediate update of the parent window with the selected widget and method. To close the dialog, use double-click, click the OK button, or press the Return key. Alternatively, you can also use the keyboard arrow key, Home or End to quickly to move the selection bar.
  • To improve the user experience, when you have selected a method e.g. GtkWidget::set_size_request(), the method is listed in the 133th position. You will find that the right pane will automatically scroll to that method, with a yellow highlight.
  • Press F10 to search for widget. F11 to search for methods. And F12 to search for signals.
  • Press F8 to browse the history.


/kksou

http://www.kksou.com/php-gtk2
The place for php-gtk2 sample codes