vdkxdb 2.4.0
vdkxentry.h
1 /*
2  * ===========================
3  * VDK Visual Development Kit
4  * xdb subsystem
5  * Version 0.1
6  * Revision 0.0
7  * April 2000
8  * ===========================
9  *
10  * Copyright (C) 1998, Mario Motta
11  * Developed by Mario Motta <mmotta@guest.net>
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26  * 02111-1307, USA.
27  */
28 
29 #ifndef _vdkxentry_h
30 #define _vdkxentry_h
31 #include <vdkxdb2/vdkxctrl.h>
32 #include <vdk/entry.h>
33 #include <vdk/colors.h>
34 
35 
42 class VDKXEntry: public VDKEntry, public VDKXControl
43 {
44 
45  protected:
46  GdkColor *default_color;
47  static void RealizeSignal (GtkWidget* wid, gpointer gp );
48  static int FocusOut(GtkWidget *, GdkEventFocus*,gpointer wid);
49  static int FocusIn(GtkWidget *, GdkEventFocus*,gpointer wid);
50  //
51  public:
52 
59  VDKXEntry(VDKForm* owner, int maxLen = 0, char* def = NULL);
61  virtual ~VDKXEntry();
65  virtual xbShort Read();
69  virtual xbShort Write();
80  virtual bool AssignTableField(VDKXTable* table,char* fname);
82  char* tablename,
83  char* fieldname)
84  {
85  return VDKXControl::AssignTableField(xdb,tablename,fieldname);
86  }
87 
88  VDKReadWriteValueProp<VDKXEntry,VDKColor*> FocusColor;
89  VDKReadWriteValueProp<VDKXEntry,int> DateMode;
90 
91 };
92 #endif