// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Iddsnpropedbinding.pas' rev: 10.00

#ifndef IddsnpropedbindingHPP
#define IddsnpropedbindingHPP

#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 <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Actnlist.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit

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

namespace Iddsnpropedbinding
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TIdPropEdBindingEntry;
class PASCALIMPLEMENTATION TIdPropEdBindingEntry : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
protected:
	Stdctrls::TButton* btnOk;
	Stdctrls::TButton* btnCancel;
	Stdctrls::TLabel* lblBindings;
	Stdctrls::TLabel* lblHostname;
	Stdctrls::TLabel* lblPort;
	Stdctrls::TListBox* lstBindings;
	Stdctrls::TButton* btnAdd;
	Stdctrls::TButton* btnRemove;
	Stdctrls::TComboBox* cmbPort;
	Stdctrls::TComboBox* cmbHostname;
	Actnlist::TActionList* actBndEditor;
	Actnlist::TAction* actAdd;
	Actnlist::TAction* actRemove;
	bool fCreatedStack;
	void __fastcall lstBindingsClick(System::TObject* Sender);
	void __fastcall actAddExecute(System::TObject* Sender);
	void __fastcall actAddUpdate(System::TObject* Sender);
	void __fastcall actRemoveExecute(System::TObject* Sender);
	void __fastcall actRemoveUpdate(System::TObject* Sender);
	void __fastcall cmbPortKeyPress(System::TObject* Sender, char &Key);
	void __fastcall cmbHostnameKeyPress(System::TObject* Sender, char &Key);
	void __fastcall ValidateAddBinding(void);
	void __fastcall SetHostname(const AnsiString Value);
	void __fastcall SetPort(const int Value);
	AnsiString __fastcall PortDescription(const int PortNumber);
	AnsiString __fastcall GetHostname();
	int __fastcall GetPort(void);
	void __fastcall SetBinding(const AnsiString Binding);
	AnsiString __fastcall GetBinding();
	
public:
	__fastcall virtual TIdPropEdBindingEntry(Classes::TComponent* AOwner);
	__fastcall virtual ~TIdPropEdBindingEntry(void);
	void __fastcall SetList(const AnsiString Arg);
	AnsiString __fastcall GetList();
	__property AnsiString Binding = {read=GetBinding, write=SetBinding};
	__property AnsiString Hostname = {read=GetHostname, write=SetHostname};
	__property int Port = {read=GetPort, write=SetPort, nodefault};
public:
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TIdPropEdBindingEntry(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TIdPropEdBindingEntry(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE AnsiString __fastcall MakeBindingStr(AnsiString AIP, unsigned APort);

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

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