vdkxdb 2.4.0
vdkxcheckbutton.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 _vdkxcbutton_h
30 #define _vdkxcbutton_h
31 #include <vdkxdb2/vdkxctrl.h>
32 #include <vdk/checkbutton.h>
33 
34 
41 class VDKXCheckButton: public VDKCheckButton, public VDKXControl
42 {
43 
44  protected:
45 
46  public:
47 
54  VDKXCheckButton(VDKForm* owner,
55  char* label = (char*) NULL,
56  char* tip = (char*) NULL);
58  virtual ~VDKXCheckButton() {}
62  virtual xbShort Read();
66  virtual xbShort Write();
76  virtual bool AssignTableField(VDKXTable* table,char* fname);
88  char* tablename,
89  char* fieldname)
90  {
91  return VDKXControl::AssignTableField(xdb,tablename,fieldname);
92  }
93 };
94 #endif
virtual bool AssignTableField(VDKXTable *table, char *fname)
Definition: vdkxcheckbutton.cc:38
virtual xbShort Write()
Definition: vdkxcheckbutton.cc:69
VDKXTable * table
table that owns field
Definition: vdkxctrl.h:53
data-aware VDKCheckButton widget.
Definition: vdkxcheckbutton.h:41
VDK data-aware widgets base class.
Definition: vdkxctrl.h:49
virtual ~VDKXCheckButton()
Destructor.
Definition: vdkxcheckbutton.h:58
VDKXCheckButton(VDKForm *owner, char *label=(char *) NULL, char *tip=(char *) NULL)
Definition: vdkxcheckbutton.cc:32
virtual bool AssignTableField(VDKXTable *table, char *fieldname)
Definition: vdkxctrl.cc:41
virtual xbShort Read()
Definition: vdkxcheckbutton.cc:56
Provides a xbXBase wrapper.
Definition: vdkxdb.h:41
bool AssignTableField(VDKXDatabase *xdb, char *tablename, char *fieldname)
Definition: vdkxcheckbutton.h:87
Provides a xbDbf wrapper.
Definition: vdkxtable.h:55