Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-02-06 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 529 All time: 5,094 This week: 1,410Up
Version License PHP version Categories  
xzypopapp 0.1GNU General Public Lice...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
Name: Luis Martinez Ulloa is available for providing paid consulting. Contact Luis Martinez Ulloa .
Classes: 10 packages by
Country: Peru Peru
Age: 42
All time rank: 4771 in Peru Peru
Week rank: 558 Down2 in Peru Peru Down
Innovation award
Innovation award
Nominee: 3x

Screenshots  
  • scr6.png
  • scr4.png
  • scr3.png
  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%Total:529All time:5,094
 This week:0This week:1,410Up