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

GpgGtkMainAppWindow Class Reference

the main window with an image and a popup menu. More...

#include <GpgGtkMainAppWindow.h>

List of all members.

Public Methods

 GpgGtkMainAppWindow ()
 Constructor of the main window. More...

 ~GpgGtkMainAppWindow ()
 Destructor of the main window. More...

void addPasswordFileMenu (GtkWidget *menu_item)
 Add a password list submenu to the popup menu of the main window. More...


Static Public Methods

int button_pressed_callback (GtkWidget *widget, GdkEventButton *event, GtkWidget *menu)
 the callback to the GTK event "button_press_event" of the main window. More...

int button_moved_callback (GtkWidget *main_window, GdkEventMotion *event)
 the callback to the GTK event "motion_notify_event" of the main window. More...

int button_released_callback (GtkWidget *main_window, GdkEventButton *event)
 the callback to the GTK event "button_release_event" of the main window. More...


Detailed Description

the main window with an image and a popup menu.


Constructor & Destructor Documentation

GpgGtkMainAppWindow::GpgGtkMainAppWindow  
 

Constructor of the main window.

Returns:
none

GpgGtkMainAppWindow::~GpgGtkMainAppWindow  
 

Destructor of the main window.

Returns:
none


Member Function Documentation

void GpgGtkMainAppWindow::addPasswordFileMenu GtkWidget *    menu_item
 

Add a password list submenu to the popup menu of the main window.

Parameters:
menu_item  the submenu item to add
Returns:
none

int GpgGtkMainAppWindow::button_moved_callback GtkWidget *    main_window,
GdkEventMotion *    event
[static]
 

the callback to the GTK event "motion_notify_event" of the main window.

Move the window to the new pointer position

Parameters:
main_window  the main window
event  the description of the event
Returns:
TRUE if the event is handle, FALSE otherwise

int GpgGtkMainAppWindow::button_pressed_callback GtkWidget *    widget,
GdkEventButton *    event,
GtkWidget *    menu
[static]
 

the callback to the GTK event "button_press_event" of the main window.

Check which button have been pressed. If it's the left one, prepare to move the window interactively. If it is the right one, popup the menu.

Parameters:
widget  the event box of the main window
event  the description of the event
menu  the popup menu
Returns:
TRUE if the event is handle, FALSE otherwise

int GpgGtkMainAppWindow::button_released_callback GtkWidget *    main_window,
GdkEventButton *    event
[static]
 

the callback to the GTK event "button_release_event" of the main window.

Stop the interactiv move of the main window

Parameters:
main_window  the main window
event  the description of the event
Returns:
TRUE if the event is handle, FALSE otherwise


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