00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
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
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