// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'SMREdit.pas' rev: 37.00 (Windows)

#ifndef SMREditHPP
#define SMREditHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <Winapi.Messages.hpp>
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <Vcl.Graphics.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Dialogs.hpp>
#include <SMRBase.hpp>

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

namespace Smredit
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TSMRBaseEditor;
class DELPHICLASS TSMRBaseExternalEditor;
struct TSMRRegisterEditor;
//-- type declarations -------------------------------------------------------
class PASCALIMPLEMENTATION TSMRBaseEditor : public Vcl::Forms::TForm
{
	typedef Vcl::Forms::TForm inherited;
	
protected:
	Smrbase::TSMRControl* FSMRControl;
	virtual bool __fastcall IsBandEditor();
	virtual void __fastcall FillStringsFromRes();
	
public:
	System::LongInt LangShift;
	virtual void __fastcall BeforeEditProperties();
	virtual void __fastcall AfterEditProperties();
	bool __fastcall Execute(bool ShowPrevForm, Smrbase::TSMRControl* AControl);
public:
	/* TCustomForm.Create */ inline __fastcall virtual TSMRBaseEditor(System::Classes::TComponent* AOwner) : Vcl::Forms::TForm(AOwner) { }
	/* TCustomForm.CreateNew */ inline __fastcall virtual TSMRBaseEditor(System::Classes::TComponent* AOwner, int Dummy) : Vcl::Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.CreateScaledNew */ inline __fastcall virtual TSMRBaseEditor(System::Classes::TComponent* AOwner, int ADPI, int Dummy) : Vcl::Forms::TForm(AOwner, ADPI, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TSMRBaseEditor() { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TSMRBaseEditor(HWND ParentWindow) : Vcl::Forms::TForm(ParentWindow) { }
	
};


_DECLARE_METACLASS(System::TMetaClass, TSMRBaseEditorClass);

class PASCALIMPLEMENTATION TSMRBaseExternalEditor : public System::Classes::TPersistent
{
	typedef System::Classes::TPersistent inherited;
	
protected:
	Smrbase::TSMRControl* FSMRControl;
	virtual bool __fastcall InternalExecute();
	
public:
	virtual void __fastcall BeforeEditProperties();
	virtual void __fastcall AfterEditProperties();
	bool __fastcall Execute(bool ShowPrevForm, Smrbase::TSMRControl* AControl);
public:
	/* TPersistent.Destroy */ inline __fastcall virtual ~TSMRBaseExternalEditor() { }
	
public:
	/* TObject.Create */ inline __fastcall TSMRBaseExternalEditor() : System::Classes::TPersistent() { }
	
};


typedef TSMRRegisterEditor *PSMRRegisterEditor;

struct DECLSPEC_DRECORD TSMRRegisterEditor
{
public:
	System::UnicodeString ControlClassName;
	System::UnicodeString EditorClassName;
};


//-- var, const, procedure ---------------------------------------------------
extern DELPHI_PACKAGE System::Classes::TList* SMREditors;
extern DELPHI_PACKAGE void __fastcall RegisterSMREditor(Smrbase::TSMRControlClass ASMRControlClass, System::Classes::TPersistentClass AEditorClassName);
extern DELPHI_PACKAGE void __fastcall UnRegisterSMREditor(Smrbase::TSMRControlClass ASMRControlClass, System::Classes::TPersistentClass AEditorClassName);
extern DELPHI_PACKAGE bool __fastcall EditSMRControl(Smrbase::TSMRControl* AControl);
}	/* namespace Smredit */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMREDIT)
using namespace Smredit;
#endif
#pragma pack(pop)
#pragma option pop

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