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

GpgGtkSelectionHandler.h

Go to the documentation of this file.
00001 /*!
00002  * \file GpgGtkSelectionHandler.h
00003  * \brief Defines the object that manage Gtk selection
00004  *
00005  * \author Frederic RUAUDEL <grumz@users.sf.net>
00006  *
00007  * $Revision: 1.1.1.1 $
00008  * $Date: 2003/02/27 12:19:50 $
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_SELECTION_HANDLER_H
00029 #define GPG_GTK_SELECTION_HANDLER_H
00030 
00031 #include <gtk/gtk.h>
00032 #include <string>
00033 
00034 using namespace std;
00035 
00036 /*!
00037  * \brief the object that manage Gtk selection
00038  **/
00039 class GpgGtkSelectionHandler
00040 {
00041         public:
00042                 GpgGtkSelectionHandler (string selection_string);
00043                 ~GpgGtkSelectionHandler ();
00044 
00045                 GtkWidget* getSelectionWidget (void);
00046                 string getSelectionString (void);
00047         
00048                 static void selection_handle_callback (GpgGtkSelectionHandler* selection_handler, GtkSelectionData* selection_data_for_X, guint info, guint time_stamp);
00049                 static gint selection_clear_callback (GpgGtkSelectionHandler* selection_handler, GdkEventSelection* event);
00050 
00051         private:
00052                 GtkWidget* _selection_widget;
00053                 string _selection_string;
00054 };
00055 
00056 #endif /* GPG_GTK_SELECTION_HANDLER_H */

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