SourceForge Logo
Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GpgGtkMenuElement Class Reference

a GtkMenu element for the password composite. More...

#include <GpgGtkMenuElement.h>

Inheritance diagram for GpgGtkMenuElement:

PasswordGroupGtkMenuElement PasswordManagerGtkMenuElement PasswordRootGtkMenuElement List of all members.

Public Methods

 GpgGtkMenuElement (string label, bool with_submenu)
 Constructor of the GtkMenu element for the password composite. More...

virtual ~GpgGtkMenuElement ()
 Destructor of the GtkMenu element for the password composite. More...

virtual bool addSubMenu (GpgGtkMenuElement *element)
 add the element as a submenu of this menu. More...

virtual bool addCommand (PassguardAbstractCommand *command)
 add a command to this menu element that will be executed when the menu will be activated. More...

virtual GtkWidget * getMenuItem (void)
 return the GtkMenuItem of this object. More...


Static Public Methods

void command_callback (GtkWidget *menu_item, gpointer data)
 the callback to the GTK signal "activate" of the menu element. More...


Detailed Description

a GtkMenu element for the password composite.


Constructor & Destructor Documentation

GpgGtkMenuElement::GpgGtkMenuElement string    label,
bool    with_submenu
 

Constructor of the GtkMenu element for the password composite.

Parameters:
label  the label of the menu
with_submenu  true if this element has a submenu, false if not
Returns:
none

GpgGtkMenuElement::~GpgGtkMenuElement   [virtual]
 

Destructor of the GtkMenu element for the password composite.

Returns:
none


Member Function Documentation

bool GpgGtkMenuElement::addCommand PassguardAbstractCommand   command [virtual]
 

add a command to this menu element that will be executed when the menu will be activated.

Parameters:
command  the command object
Returns:
true if the element hasn't a submenu, false otherwise
Note:
this function has an effect only when the object hasn't a submenu

bool GpgGtkMenuElement::addSubMenu GpgGtkMenuElement *    element [virtual]
 

add the element as a submenu of this menu.

Parameters:
element  the menu to add as a submenu
Returns:
true if the element has a submenu, false otherwise
Note:
this function has an effect only when the object has a submenu

void GpgGtkMenuElement::command_callback GtkWidget *    menu_item,
gpointer    data
[static]
 

the callback to the GTK signal "activate" of the menu element.

Parameters:
menu_item  the GtkMenuItem activated
data  the command object of the menu item
Returns:
none

GtkWidget * GpgGtkMenuElement::getMenuItem void    [virtual]
 

return the GtkMenuItem of this object.

Returns:
the menu in GtkWidget form


The documentation for this class was generated from the following files:
Generated on Sun Mar 9 15:36:57 2003 for GPassGuard by doxygen1.2.15