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

GpgGtkMainAppWindow.h

Go to the documentation of this file.
00001 /*!
00002  * \file GpgGtkMainAppWindow.h
00003  * \brief Defines the main window with an image and a popup menu
00004  *
00005  * \author Frederic RUAUDEL <grumz@users.sf.net>
00006  *
00007  * $Revision: 1.2 $
00008  * $Date: 2003/03/03 10:02:08 $
00009  *
00010  * \b GPassGuard
00011  * Copyleft (c) 2003 Frederic RUAUDEL, all rights reversed
00012  *
00013  * This program is free software which I release under the GNU General Public
00014  * License. You may redistribute and/or modify this program under the terms
00015  * of that license as published by the Free Software Foundation; either
00016  * version 2 of the License, or (at your option) any later version.
00017  *
00018  * This program is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.  Version 2 is in the
00022  * COPYING file in the top level directory of this distribution.
00023  *
00024  * To get a copy of the GNU General Public License, write to the Free Software
00025  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  **/
00027 
00028 #ifndef GPG_GTK_MAIN_APP_WINDOW_H
00029 #define GPG_GTK_MAIN_APP_WINDOW_H
00030 
00031 #ifndef PASSGUARD_PREFIX
00032 #       define PASSGUARD_PREFIX "/usr/local"
00033 #endif
00034 
00035 #define PIXMAP_PATH PASSGUARD_PREFIX"/share/pixmaps/passguard"
00036 #define APP_PIXMAP PIXMAP_PATH"/gpassguard_app_icon.png"
00037 
00038 #include <gtk/gtk.h>
00039 #include <iostream>
00040 #include <stdio.h>
00041 
00042 using namespace std;
00043 
00044 /*!
00045  * \brief the main window with an image and a popup menu
00046  **/
00047 class GpgGtkMainAppWindow
00048 {
00049         public:
00050                 GpgGtkMainAppWindow ();
00051                 ~GpgGtkMainAppWindow ();
00052 
00053                 void addPasswordFileMenu (GtkWidget* menu_item);
00054         
00055                 static int button_pressed_callback (GtkWidget* widget, GdkEventButton* event, GtkWidget* menu);
00056                 static int button_moved_callback (GtkWidget* main_window, GdkEventMotion* event);
00057                 static int button_released_callback (GtkWidget* main_window, GdkEventButton* event);
00058 
00059         private:
00060                 GtkWidget* _main_window;
00061                 GtkWidget* _popup_menu;
00062                 GtkTooltips* _tool_tips;
00063 };
00064 
00065 #endif /* GPG_GTK_MAIN_APP_WINDOW_H */

Generated on Sun Mar 9 15:36:56 2003 for GPassGuard by doxygen1.2.15