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

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

#ifndef SMDataHPP
#define SMDataHPP

#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.StdCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <SMRTypes.hpp>
#include <SMRDMan.hpp>
#include <SMRCnst.hpp>
#include <Data.DB.hpp>

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

namespace Smdata
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TfrmExpBuilder;
//-- type declarations -------------------------------------------------------
class PASCALIMPLEMENTATION TfrmExpBuilder : public Vcl::Forms::TForm
{
	typedef Vcl::Forms::TForm inherited;
	
__published:
	Vcl::Stdctrls::TButton* btnOk;
	Vcl::Stdctrls::TButton* btnCancel;
	Vcl::Extctrls::TImage* imgData;
	Vcl::Stdctrls::TMemo* memoExpression;
	Vcl::Stdctrls::TListBox* lbType;
	Vcl::Stdctrls::TListBox* lbSubType;
	Vcl::Stdctrls::TListBox* lbValue;
	Vcl::Stdctrls::TButton* btnPlus;
	Vcl::Stdctrls::TButton* btnMinus;
	Vcl::Stdctrls::TButton* btnMul;
	Vcl::Stdctrls::TButton* btnDiv;
	Vcl::Stdctrls::TButton* btnEQ;
	Vcl::Stdctrls::TButton* btnGT;
	Vcl::Stdctrls::TButton* btnLT;
	Vcl::Stdctrls::TButton* btnNE;
	Vcl::Stdctrls::TButton* btnAND;
	Vcl::Stdctrls::TButton* btnOR;
	Vcl::Stdctrls::TButton* btnNOT;
	Vcl::Stdctrls::TButton* btnLParen;
	Vcl::Stdctrls::TButton* btnRParen;
	Vcl::Stdctrls::TLabel* lblHint;
	Vcl::Stdctrls::TButton* btnValidate;
	void __fastcall ValueAdd(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall lbTypeClick(System::TObject* Sender);
	void __fastcall lbSubTypeClick(System::TObject* Sender);
	void __fastcall lbValueClick(System::TObject* Sender);
	void __fastcall btnValidateClick(System::TObject* Sender);
	
private:
	void __fastcall FillItems(System::Classes::TStrings* lstFrom, System::Classes::TStrings* lstTo, int intIndex);
	System::Variant __fastcall GetSysDataValue(Smrcnst::TSMRSysDataType sdType);
	void __fastcall SMRGetVariable(System::TObject* Sender, System::UnicodeString VariableName, bool &Accept, Data::Db::TFieldType &VariableType, System::Variant &Value);
	
protected:
	System::UnicodeString strValidExpression;
	
public:
	System::Classes::TStrings* lstSubType;
	System::Classes::TStrings* lstValue;
	Smrdman::TSMRDataManager* FDataManager;
public:
	/* TCustomForm.Create */ inline __fastcall virtual TfrmExpBuilder(System::Classes::TComponent* AOwner) : Vcl::Forms::TForm(AOwner) { }
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmExpBuilder(System::Classes::TComponent* AOwner, int Dummy) : Vcl::Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.CreateScaledNew */ inline __fastcall virtual TfrmExpBuilder(System::Classes::TComponent* AOwner, int ADPI, int Dummy) : Vcl::Forms::TForm(AOwner, ADPI, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmExpBuilder() { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TfrmExpBuilder(HWND ParentWindow) : Vcl::Forms::TForm(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern DELPHI_PACKAGE bool __fastcall ExpressionBuilder(System::UnicodeString &Expression, System::LongInt LangShift, Smrdman::TSMRDataManager* DataManager, System::Classes::TCollection* Variables, System::Classes::TCollection* Parameters);
}	/* namespace Smdata */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMDATA)
using namespace Smdata;
#endif
#pragma pack(pop)
#pragma option pop

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