⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rmd_editorldlinks.hpp

📁 这是一个功能强大
💻 HPP
字号:
// CodeGear C++Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rmd_editorldlinks.pas' rev: 11.00

#ifndef Rmd_editorldlinksHPP
#define Rmd_editorldlinksHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Rmd_dbwrap.hpp>	// Pascal unit
#include <Rm_propinsp.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Rmd_editorldlinks
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRMDFieldLinkProperty;
class PASCALIMPLEMENTATION TRMDFieldLinkProperty : public Rm_propinsp::TELStringPropEditor 
{
	typedef Rm_propinsp::TELStringPropEditor inherited;
	
private:
	AnsiString FFullIndexName;
	bool FChanged;
	Rmd_dbwrap::TRMDDataSet* FDataSet;
	AnsiString FIndexName;
	AnsiString FIndexFieldNames;
	
protected:
	Rmd_dbwrap::TRMDDataSet* __fastcall GetDataSet(void);
	virtual void __fastcall GetFieldNamesForIndex(Classes::TStrings* aList);
	virtual bool __fastcall GetIndexBased(void);
	virtual Db::TIndexDefs* __fastcall GetIndexDefs(void);
	virtual AnsiString __fastcall GetIndexFieldNames();
	virtual AnsiString __fastcall GetMasterFields(void) = 0 ;
	virtual void __fastcall SetIndexFieldNames(const AnsiString Value);
	virtual void __fastcall SetIndexName(const AnsiString Value);
	virtual AnsiString __fastcall GetIndexName();
	virtual void __fastcall SetMasterFields(const AnsiString Value) = 0 ;
	
public:
	__fastcall virtual TRMDFieldLinkProperty(Rmd_dbwrap::TRMDDataSet* ADataSet);
	void __fastcall GetIndexNames(Classes::TStrings* List);
	__property bool IndexBased = {read=GetIndexBased, nodefault};
	__property Db::TIndexDefs* IndexDefs = {read=GetIndexDefs};
	__property AnsiString IndexFieldNames = {read=GetIndexFieldNames, write=SetIndexFieldNames};
	__property AnsiString IndexName = {read=GetIndexName, write=SetIndexName};
	__property AnsiString MasterFields = {read=GetMasterFields, write=SetMasterFields};
	__property bool Changed = {read=FChanged, nodefault};
	__property Rmd_dbwrap::TRMDDataSet* DataSet = {read=GetDataSet};
	__property AnsiString FullIndexName = {read=FFullIndexName};
	virtual Rm_propinsp::TELPropAttrs __fastcall GetAttrs(void);
	virtual void __fastcall Edit(void);
public:
	#pragma option push -w-inl
	/* TELPropEditor.Create */ inline __fastcall virtual TRMDFieldLinkProperty(void * ADesigner, int APropCount) : Rm_propinsp::TELStringPropEditor(ADesigner, APropCount) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TELPropEditor.Destroy */ inline __fastcall virtual ~TRMDFieldLinkProperty(void) { }
	#pragma option pop
	
};


class DELPHICLASS TRMDFieldsLinkForm;
class PASCALIMPLEMENTATION TRMDFieldsLinkForm : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
__published:
	Stdctrls::TListBox* MasterList;
	Stdctrls::TListBox* BindList;
	Stdctrls::TLabel* Label30;
	Stdctrls::TLabel* Label31;
	Stdctrls::TComboBox* IndexList;
	Stdctrls::TLabel* IndexLabel;
	Stdctrls::TLabel* Label2;
	Extctrls::TBevel* Bevel1;
	Extctrls::TBevel* Bevel2;
	Stdctrls::TButton* btnAdd;
	Stdctrls::TButton* btnDelete;
	Stdctrls::TButton* btnClear;
	Stdctrls::TButton* btnOK;
	Stdctrls::TButton* btnCancel;
	Stdctrls::TListBox* DetailList;
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall BindingListClick(System::TObject* Sender);
	void __fastcall btnAddClick(System::TObject* Sender);
	void __fastcall btnDeleteClick(System::TObject* Sender);
	void __fastcall BindListClick(System::TObject* Sender);
	void __fastcall btnClearClick(System::TObject* Sender);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall btnOKClick(System::TObject* Sender);
	void __fastcall IndexListChange(System::TObject* Sender);
	
private:
	Rmd_dbwrap::TRMDDataSet* FDetailDataSet;
	Db::TDataSet* FMasterDataSet;
	TRMDFieldLinkProperty* FDataSetProxy;
	AnsiString FFullIndexName;
	AnsiString MasterFieldList;
	AnsiString IndexFieldList;
	Classes::TStringList* OrderedDetailList;
	Classes::TStringList* OrderedMasterList;
	void __fastcall OrderFieldList(Classes::TStrings* OrderedList, Classes::TStrings* List);
	void __fastcall AddToBindList(const AnsiString Str1, const AnsiString Str2);
	void __fastcall Localize(void);
	void __fastcall Initialize(void);
	void __fastcall SetDataSet(Rmd_dbwrap::TRMDDataSet* Value);
	
public:
	bool __fastcall Edit(void);
	__property Rmd_dbwrap::TRMDDataSet* DetailDS = {read=FDetailDataSet, write=SetDataSet};
	__property TRMDFieldLinkProperty* DataSetProxy = {read=FDataSetProxy, write=FDataSetProxy};
	__property AnsiString FullIndexName = {read=FFullIndexName};
public:
	#pragma option push -w-inl
	/* TCustomForm.Create */ inline __fastcall virtual TRMDFieldsLinkForm(Classes::TComponent* AOwner) : Forms::TForm(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TRMDFieldsLinkForm(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TRMDFieldsLinkForm(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TRMDFieldsLinkForm(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
#define SPrimary "Primary"
#define SLinkDesigner "SLinkDesigner"

}	/* namespace Rmd_editorldlinks */
using namespace Rmd_editorldlinks;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Rmd_editorldlinks

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -