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

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

#ifndef SMROIHPP
#define SMROIHPP

#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 <Vcl.Grids.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <System.TypInfo.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <SMCombo.hpp>
#include <SMRDMan.hpp>
#include <System.UITypes.hpp>
#include <System.Variants.hpp>
#include <System.Types.hpp>

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

namespace Smroi
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TfrmSMROI;
class DELPHICLASS TSMRPropertyEditor;
class DELPHICLASS TSMRKindPropertyEditor;
class DELPHICLASS TSMRFontEditor;
class DELPHICLASS TSMRFileNameEditor;
class DELPHICLASS TSMRExpressionEditor;
class DELPHICLASS TSMRStringsEditor;
class DELPHICLASS TSMREnumEditor;
class DELPHICLASS TSMRSetEditor;
//-- type declarations -------------------------------------------------------
class PASCALIMPLEMENTATION TfrmSMROI : public Vcl::Forms::TForm
{
	typedef Vcl::Forms::TForm inherited;
	
__published:
	Vcl::Stdctrls::TComboBox* cbOI;
	Vcl::Comctrls::TTabControl* tcOI;
	Vcl::Grids::TStringGrid* sgOI;
	Vcl::Extctrls::TPanel* pnlInplaceEditor;
	Vcl::Stdctrls::TEdit* edInplaceEditor;
	Vcl::Stdctrls::TButton* btnInplaceEditor;
	Vcl::Stdctrls::TComboBox* cbInplaceEditor;
	void __fastcall cbOIChange(System::TObject* Sender);
	void __fastcall FormResize(System::TObject* Sender);
	void __fastcall FormHide(System::TObject* Sender);
	void __fastcall FormShow(System::TObject* Sender);
	void __fastcall sgOIDrawCell(System::TObject* Sender, int Col, int Row, const Winapi::Windows::TRect &Rect, Vcl::Grids::TGridDrawState State);
	void __fastcall pnlInplaceEditorResize(System::TObject* Sender);
	void __fastcall sgOISelectCell(System::TObject* Sender, int Col, int Row, bool &CanSelect);
	void __fastcall sgOITopLeftChanged(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall cbInplaceEditorChange(System::TObject* Sender);
	void __fastcall btnInplaceEditorClick(System::TObject* Sender);
	void __fastcall sgOIMouseDown(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
	void __fastcall sgOIMouseMove(System::TObject* Sender, System::Classes::TShiftState Shift, int X, int Y);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall edInplaceEditorKeyPress(System::TObject* Sender, System::WideChar &Key);
	
private:
	Smcombo::TSMColorsCombo* SMColorsCombo;
	void __fastcall ObjectInspector(System::TObject* Obj, Vcl::Grids::TStringGrid* Items, System::Typinfo::TTypeKinds TypeKinds);
	System::UnicodeString __fastcall GetParentObjectName(int ARow, System::TObject* Obj);
	bool __fastcall ObjectInParentRow(System::TObject* Obj, int RowNo);
	
public:
	System::LongInt LangShift;
	Smrdman::TSMRDataManager* DataManager;
	System::Classes::TCollection* lstVariables;
	System::Classes::TCollection* lstParameters;
	void __fastcall AddComponent(System::Classes::TComponent* Root);
	void __fastcall SelectComponent(System::Classes::TComponent* comp);
public:
	/* TCustomForm.Create */ inline __fastcall virtual TfrmSMROI(System::Classes::TComponent* AOwner) : Vcl::Forms::TForm(AOwner) { }
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmSMROI(System::Classes::TComponent* AOwner, int Dummy) : Vcl::Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.CreateScaledNew */ inline __fastcall virtual TfrmSMROI(System::Classes::TComponent* AOwner, int ADPI, int Dummy) : Vcl::Forms::TForm(AOwner, ADPI, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmSMROI() { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TfrmSMROI(HWND ParentWindow) : Vcl::Forms::TForm(ParentWindow) { }
	
};


enum DECLSPEC_DENUM TSMRPropertyEditorType : unsigned char { petEditbox, petEditButton, petCombobox };

enum DECLSPEC_DENUM TSMRPropertyAttribute : unsigned char { rpaDialog, rpaValueList, rpaSortList };

typedef System::Set<TSMRPropertyAttribute, TSMRPropertyAttribute::rpaDialog, TSMRPropertyAttribute::rpaSortList> TSMRPropertyAttributes;

class PASCALIMPLEMENTATION TSMRPropertyEditor : public System::TObject
{
	typedef System::TObject inherited;
	
protected:
	virtual TSMRPropertyEditorType __fastcall GetEditorType();
	virtual void __fastcall GetValues(System::Classes::TStrings* List, System::Typinfo::PPropInfo pi);
	
public:
	System::UnicodeString PropertyName;
	System::TClass ObjectClass;
	virtual void __fastcall Edit(TfrmSMROI* OI, System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual TSMRPropertyAttributes __fastcall GetAttributes();
	virtual System::UnicodeString __fastcall GetStrValue(System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual System::Variant __fastcall GetValue(System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual void __fastcall SetValue(System::TObject* Instance, System::Typinfo::PPropInfo pi, const System::Variant &AValue);
	__property TSMRPropertyEditorType EditorType = {read=GetEditorType, nodefault};
public:
	/* TObject.Create */ inline __fastcall TSMRPropertyEditor() : System::TObject() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMRPropertyEditor() { }
	
};


_DECLARE_METACLASS(System::TMetaClass, TSMRPropertyEditorClass);

class PASCALIMPLEMENTATION TSMRKindPropertyEditor : public TSMRPropertyEditor
{
	typedef TSMRPropertyEditor inherited;
	
private:
	System::Typinfo::TTypeKind FTypeKind;
	
public:
	__property System::Typinfo::TTypeKind TypeKind = {read=FTypeKind, write=FTypeKind, nodefault};
public:
	/* TObject.Create */ inline __fastcall TSMRKindPropertyEditor() : TSMRPropertyEditor() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMRKindPropertyEditor() { }
	
};


_DECLARE_METACLASS(System::TMetaClass, TSMRKindPropertyEditorClass);

class PASCALIMPLEMENTATION TSMRFontEditor : public TSMRPropertyEditor
{
	typedef TSMRPropertyEditor inherited;
	
public:
	virtual void __fastcall Edit(TfrmSMROI* OI, System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual TSMRPropertyAttributes __fastcall GetAttributes();
public:
	/* TObject.Create */ inline __fastcall TSMRFontEditor() : TSMRPropertyEditor() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMRFontEditor() { }
	
};


class PASCALIMPLEMENTATION TSMRFileNameEditor : public TSMRPropertyEditor
{
	typedef TSMRPropertyEditor inherited;
	
public:
	virtual void __fastcall Edit(TfrmSMROI* OI, System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual TSMRPropertyAttributes __fastcall GetAttributes();
public:
	/* TObject.Create */ inline __fastcall TSMRFileNameEditor() : TSMRPropertyEditor() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMRFileNameEditor() { }
	
};


class PASCALIMPLEMENTATION TSMRExpressionEditor : public TSMRPropertyEditor
{
	typedef TSMRPropertyEditor inherited;
	
public:
	virtual void __fastcall Edit(TfrmSMROI* OI, System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual TSMRPropertyAttributes __fastcall GetAttributes();
public:
	/* TObject.Create */ inline __fastcall TSMRExpressionEditor() : TSMRPropertyEditor() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMRExpressionEditor() { }
	
};


class PASCALIMPLEMENTATION TSMRStringsEditor : public TSMRPropertyEditor
{
	typedef TSMRPropertyEditor inherited;
	
private:
	Vcl::Forms::TForm* frmEditor;
	void __fastcall frmDialogEditorResize(System::TObject* Sender);
	
public:
	virtual void __fastcall Edit(TfrmSMROI* OI, System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual TSMRPropertyAttributes __fastcall GetAttributes();
public:
	/* TObject.Create */ inline __fastcall TSMRStringsEditor() : TSMRPropertyEditor() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMRStringsEditor() { }
	
};


class PASCALIMPLEMENTATION TSMREnumEditor : public TSMRKindPropertyEditor
{
	typedef TSMRKindPropertyEditor inherited;
	
protected:
	virtual void __fastcall GetValues(System::Classes::TStrings* List, System::Typinfo::PPropInfo pi);
	
public:
	virtual TSMRPropertyAttributes __fastcall GetAttributes();
public:
	/* TObject.Create */ inline __fastcall TSMREnumEditor() : TSMRKindPropertyEditor() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMREnumEditor() { }
	
};


class PASCALIMPLEMENTATION TSMRSetEditor : public TSMRKindPropertyEditor
{
	typedef TSMRKindPropertyEditor inherited;
	
private:
	Vcl::Forms::TForm* frmEditor;
	void __fastcall frmDialogEditorResize(System::TObject* Sender);
	
public:
	virtual void __fastcall Edit(TfrmSMROI* OI, System::TObject* Instance, System::Typinfo::PPropInfo pi);
	virtual TSMRPropertyAttributes __fastcall GetAttributes();
public:
	/* TObject.Create */ inline __fastcall TSMRSetEditor() : TSMRKindPropertyEditor() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TSMRSetEditor() { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern DELPHI_PACKAGE Vcl::Graphics::TBitmap* imgSMRTreePlus;
extern DELPHI_PACKAGE Vcl::Graphics::TBitmap* imgSMRTreeMinus;
extern DELPHI_PACKAGE System::Classes::TList* lstSMRPropertyEditors;
extern DELPHI_PACKAGE void __fastcall RegisterSMRPropertyEditor(System::TClass AObjectClass, System::UnicodeString APropertyName, TSMRPropertyEditorClass ASMRPropertyEditorClass);
extern DELPHI_PACKAGE void __fastcall RegisterSMRKindPropertyEditor(System::TClass AObjectClass, System::UnicodeString APropertyName, TSMRKindPropertyEditorClass ASMRPropertyEditorClass, System::Typinfo::TTypeKind AKind);
extern DELPHI_PACKAGE void __fastcall UnRegisterSMRPropertyEditor(System::TClass AObjectClass, System::UnicodeString APropertyName, TSMRPropertyEditorClass ASMRPropertyEditorClass);
extern DELPHI_PACKAGE TSMRPropertyEditor* __fastcall GetSMRPropertyEditor(System::TObject* Instance, System::Typinfo::PPropInfo pi);
}	/* namespace Smroi */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMROI)
using namespace Smroi;
#endif
#pragma pack(pop)
#pragma option pop

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