Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

vdkxentry.h

00001 /*
00002  * ===========================
00003  * VDK Visual Development Kit
00004  * xdb subsystem
00005  * Version 0.1
00006  * Revision 0.0
00007  * April 2000
00008  * ===========================
00009  *
00010  * Copyright (C) 1998, Mario Motta
00011  * Developed by Mario Motta <mmotta@guest.net>
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Library General Public
00015  * 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 library 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 GNU
00021  * Library General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Library General Public
00024  * License along with this library; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00026  * 02111-1307, USA.
00027  */
00028 
00029 #ifndef _vdkxentry_h
00030 #define _vdkxentry_h
00031 #include <vdkxdb2/vdkxctrl.h>
00032 #include <vdk/entry.h>
00033 #include <vdk/colors.h>
00034 
00035 
00042 class VDKXEntry: public VDKEntry, public VDKXControl
00043 {
00044 
00045  protected:
00046  GdkColor *default_color;
00047  static void RealizeSignal (GtkWidget* wid,  gpointer gp );
00048  static int FocusOut(GtkWidget *, GdkEventFocus*,gpointer wid);
00049  static int FocusIn(GtkWidget *, GdkEventFocus*,gpointer wid);
00050  //
00051  public:
00052 
00059   VDKXEntry(VDKForm* owner, int maxLen = 0, char* def = NULL);
00061   virtual ~VDKXEntry();
00065   virtual xbShort Read();
00069   virtual xbShort Write(); 
00080   virtual bool AssignTableField(VDKXTable* table,char* fname);
00081   bool AssignTableField(VDKXDatabase* xdb,
00082                                 char* tablename,
00083                                 char* fieldname)
00084     { 
00085       return VDKXControl::AssignTableField(xdb,tablename,fieldname);
00086     }
00087 
00088   VDKReadWriteValueProp<VDKXEntry,VDKColor*> FocusColor;
00089   VDKReadWriteValueProp<VDKXEntry,int> DateMode;
00090  
00091 };
00092 #endif

Generated on Sat Sep 3 18:09:52 2005 for vdkxdb 2.4.0 by  doxygen 1.4.4