PHP Classes

GTK Popup Menu App: Create GTK popup menus bound to class functions

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 626 All time: 5,052 This week: 33Up
Version License PHP version Categories
xzypopapp 0.1GNU General Publi...5.0PHP 5, GUI
Description 

Author

This class can be used to create GTK popup menus bound to class functions.

It can retrieve the list of functions of the class and create a popup menu with entries that are handled by the class functions with names which do not start by _ nor are named run.

The menu entry titles are taken from the respective class names after replacing _ characters by spaces.

Applications should extend this class to define their own popup menus from their class function names.

Innovation Award
PHP Programming Innovation award nominee
February 2011
Number 4


Prize: One copy of RadPHP XE
Implementing GUI application menus requires defining the menu labels and the callback functions that will handle the menu actions.

This class implements an approach that makes it simpler. It can take a class with menu action callback functions and uses the name of the respective function names as labels.

Manuel Lemos
Picture of Luis Martinez Ulloa
  Performance   Level  
Name: Luis Martinez Ulloa is available for providing paid consulting. Contact Luis Martinez Ulloa .
Classes: 12 packages by
Country: Peru Peru
Age: 52
All time rank: 3991 in Peru Peru
Week rank: 164 Up1 in Peru Peru Equal
Innovation award
Innovation award
Nominee: 5x

Screenshots (3)  
  • scr3.png
  • scr4.png
  • scr6.png
  Files folder image Files (6)  
File Role Description
Accessible without login Plain text file popup.php Example example script - don't forget to mark as executable (x flag in unices)
Plain text file xzydialogs.php Class auxiliary class
Plain text file xzypopapp.php Class base class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:626
This week:0
All time:5,052
This week:33Up