Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

GtkUtils.hh

Go to the documentation of this file.
00001 /*
00002 
00003     Gtk+ utility class
00004     Copyright (C) 1999-2002 Jussi Laako
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 */
00021 
00022 
00023 #include <gtk/gtk.h>
00024 
00025 
00026 #ifndef GTKUTILS_HH
00027     #define GTKUTILS_HH
00028 
00029 
00030     #define GU_TXTBUFSIZE           1024
00031     #if (GTK_MAJOR_VERSION == 1)
00032     #define EVENT_METHOD(i,x) GTK_WIDGET_CLASS(GTK_OBJECT(i)->klass)->x
00033     #else
00034     #define EVENT_METHOD(i,x) GTK_WIDGET_GET_CLASS(GTK_OBJECT(i))->x
00035     #endif
00036 
00037 
00041     class clGtkUtils
00042     {
00043             void RemoveNewLine (char *);
00044         public:
00045             clGtkUtils () {}
00046             ~clGtkUtils () {}
00057             void BuildOptionMenu (const GtkWidget *, GtkWidget **, 
00058                 GtkWidget **, const char **, int);
00067             int OptionMenuGetActive (const GtkWidget *, GtkWidget **, int);
00077             void ConnectMotionEvent (const GtkWidget *, const GtkWidget *);
00083             void EnableBackingStore (const GtkWidget *);
00093             void ComboListFromFile (const GtkWidget *, GList **, const char *);
00094     };
00095 
00096 #endif

Generated on Sun Oct 26 19:11:20 2003 for HASAS by doxygen 1.3.3