home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
DSDEFINE.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
6KB
|
138 lines
//----------------------------------------------------------------------------
// DSDefine.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: DSDefine.pas
//----------------------------------------------------------------------------
#ifndef DSDefineHPP
#define DSDefineHPP
//----------------------------------------------------------------------------
#include <DsgnIntf.hpp>
#include <DBTables.hpp>
#include <DB.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Dsdefine
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TDefineField;
class __declspec(pascalimplementation) TDefineField : public Forms::TForm
{
typedef Forms::TForm inherited;
__published:
Stdctrls::TButton* OkBtn;
Stdctrls::TButton* CancelBtn;
Stdctrls::TButton* HelpBtn;
Stdctrls::TGroupBox* FieldGroup;
Stdctrls::TLabel* ComponentNameLabel;
Stdctrls::TLabel* FieldNameLabel;
Stdctrls::TEdit* ComponentNameEdit;
Stdctrls::TEdit* FieldNameEdit;
Stdctrls::TComboBox* FieldTypeList;
Stdctrls::TLabel* Label2;
Stdctrls::TEdit* SizeEdit;
Extctrls::TRadioGroup* FieldKind;
Stdctrls::TGroupBox* LookupGroup;
Stdctrls::TComboBox* DatasetList;
Stdctrls::TLabel* DatasetLabel;
Stdctrls::TComboBox* KeyFieldsList;
Stdctrls::TComboBox* LookupKeysList;
Stdctrls::TComboBox* ResultFieldList;
Stdctrls::TLabel* KeyFieldsLabel;
Stdctrls::TLabel* LookupKeysLabel;
Stdctrls::TLabel* ResultFieldLabel;
Stdctrls::TLabel* FieldTypeLabel;
void __fastcall FieldNameEditChange(System::TObject* Sender);
void __fastcall FormCreate(System::TObject* Sender);
void __fastcall OkBtnClick(System::TObject* Sender);
void __fastcall DatasetListDropDown(System::TObject* Sender);
void __fastcall LookupKeysListDropDown(System::TObject* Sender);
void __fastcall KeyFieldsListDropDown(System::TObject* Sender);
void __fastcall ResultFieldListDropDown(System::TObject* Sender);
void __fastcall FieldKindClick(System::TObject* Sender);
void __fastcall DatasetListChange(System::TObject* Sender);
void __fastcall HelpBtnClick(System::TObject* Sender);
private:
Db::TDataSet* FDataset;
Dsgnintf::TFormDesigner* FDesigner;
Db::TDataSetDesigner* FDSDesigner;
Forms::TForm* FForm;
Db::TFieldDescList *FFieldDescs;
int FFieldDescCount;
bool __fastcall GetCalculated(void);
System::AnsiString __fastcall GetComponentName(void);
System::TMetaClass* __fastcall GetFieldClass(void);
System::AnsiString __fastcall GetFieldName(void);
bool __fastcall GetLookup(void);
Db::TDataSet* __fastcall GetLookupDataset(void);
System::AnsiString __fastcall GetKeyFields(void);
System::AnsiString __fastcall GetLookupKeyFields(void);
System::AnsiString __fastcall GetLookupResultField(void);
void __fastcall GetLookupFields(Classes::TStrings* Items);
int __fastcall GetSize(void);
void __fastcall SetCalculated(bool Value);
void __fastcall SetComponentName(const System::AnsiString Value);
void __fastcall SetDataset(Db::TDataSet* Value);
void __fastcall SetFieldClass(System::TMetaClass* Value);
void __fastcall SetFieldName(const System::AnsiString Value);
void __fastcall SetLookup(bool Value);
void __fastcall SetSize(int Value);
void __fastcall UpdateLookupControls(void);
public:
__property bool Calculated = {read=GetCalculated, write=SetCalculated, nodefault};
__property bool Lookup = {read=GetLookup, write=SetLookup, nodefault};
__property System::AnsiString ComponentName = {read=GetComponentName, write=SetComponentName, nodefault
};
__property System::TMetaClass* FieldClass = {read=GetFieldClass, write=SetFieldClass, nodefault};
__property System::AnsiString FieldName = {read=GetFieldName, write=SetFieldName, nodefault};
__property int Size = {read=GetSize, write=SetSize, nodefault};
__property Db::TDataSet* LookupDataset = {read=GetLookupDataset, nodefault};
__property System::AnsiString KeyFields = {read=GetKeyFields, nodefault};
__property System::AnsiString LookupKeyFields = {read=GetLookupKeyFields, nodefault};
__property System::AnsiString LookupResultField = {read=GetLookupResultField, nodefault};
__property Db::TDataSet* Dataset = {read=FDataset, write=SetDataset, nodefault};
__property Dsgnintf::TFormDesigner* Designer = {read=FDesigner, write=FDesigner, nodefault};
__property Db::TDataSetDesigner* DSDesigner = {read=FDSDesigner, write=FDSDesigner, nodefault};
public:
/* TForm.Create */ __fastcall virtual TDefineField(Classes::TComponent* AOwner) : Forms::TForm(AOwner
) { }
/* TForm.CreateNew */ __fastcall TDefineField(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(
AOwner, Dummy) { }
/* TForm.Destroy */ __fastcall virtual ~TDefineField(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TDefineField(HWND ParentWindow) : Forms::TForm(ParentWindow
) { }
};
//-- var, const, procedure ---------------------------------------------------
extern TDefineField* DefineField;
} /* namespace Dsdefine */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Dsdefine;
#endif
//-- end unit ----------------------------------------------------------------
#endif // DSDefine