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

📄 qiscopepanelchannels.hpp

📁 Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 数据显示编程插件,可用于工业控制
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'QiScopePanelChannels.pas' rev: 6.00

#ifndef QiScopePanelChannelsHPP
#define QiScopePanelChannelsHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <QiPlotDataScopeList.hpp>	// Pascal unit
#include <QiPlotAxis.hpp>	// Pascal unit
#include <QiScopeChannel.hpp>	// Pascal unit
#include <QiPlotChannelCustom.hpp>	// Pascal unit
#include <QiPlotChannel.hpp>	// Pascal unit
#include <QiPlot.hpp>	// Pascal unit
#include <QiCheckBox.hpp>	// Pascal unit
#include <QiLinkedListBox.hpp>	// Pascal unit
#include <QiSpinSelector.hpp>	// Pascal unit
#include <QiEditorBasicComponents.hpp>	// Pascal unit
#include <QButtons.hpp>	// Pascal unit
#include <QiGPFunctions.hpp>	// Pascal unit
#include <QiTypes.hpp>	// Pascal unit
#include <QExtCtrls.hpp>	// Pascal unit
#include <QStdCtrls.hpp>	// Pascal unit
#include <QComCtrls.hpp>	// Pascal unit
#include <QControls.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Types.hpp>	// Pascal unit
#include <QTypes.hpp>	// Pascal unit
#include <QClipbrd.hpp>	// Pascal unit
#include <QDialogs.hpp>	// Pascal unit
#include <QForms.hpp>	// Pascal unit
#include <QGraphics.hpp>	// Pascal unit
#include <Qt.hpp>	// Pascal unit
#include <TypInfo.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Qiscopepanelchannels
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TiScopePanelChannels;
class PASCALIMPLEMENTATION TiScopePanelChannels : public Qcontrols::TCustomControl 
{
	typedef Qcontrols::TCustomControl inherited;
	
private:
	Qcontrols::TWidgetControl* FScope;
	Classes::TStringList* FScopeChannelList;
	bool FBlockActive;
	Qstdctrls::TLabel* FLabel;
	Qstdctrls::TLabel* FVoltageLabel;
	Qstdctrls::TLabel* FPositionLabel;
	Qstdctrls::TLabel* FCouplingLabel;
	Qilinkedlistbox::TiLinkedListBox* FChannelListDisplay;
	Qispinselector::TiSpinSelector* FVoltageSelector;
	Qispinselector::TiSpinSelector* FPositionSelector;
	Qispinselector::TiSpinSelector* FCouplingSelector;
	Qicheckbox::TiCheckBox* FVisibleCheckBox;
	Qicheckbox::TiCheckBox* FRefLineCheckBox;
	int FMaxWidthTitle;
	int FMaxWidthCoupling;
	int FMaxWidthVoltsPerDiv;
	int FMaxWidthPosition;
	bool FCreationComplete;
	bool __fastcall GetDataBlockSynchronized(void);
	
protected:
	virtual void __fastcall Paint(void);
	DYNAMIC void __fastcall Resize(void);
	void __fastcall AdjustLayout(void);
	void __fastcall AdjustAnnotations(void);
	Qiscopechannel::TiScopeChannel* __fastcall GetScopeChannel(int Index);
	int __fastcall GetCount(void);
	void __fastcall VoltageSelectorChange(System::TObject* Sender);
	void __fastcall PositionSelectorChange(System::TObject* Sender);
	void __fastcall CouplingChange(System::TObject* Sender);
	void __fastcall VisibleClick(System::TObject* Sender);
	void __fastcall RefLineClick(System::TObject* Sender);
	void __fastcall ChannelChange(System::TObject* Sender);
	AnsiString __fastcall GetCouplingText(Qiscopechannel::TiScopeChannelCoupling Value);
	AnsiString __fastcall GetVoltsPerDivText(double Value);
	AnsiString __fastcall GetPositionText(double Value);
	void __fastcall ChannelListGetItemCount(System::TObject* Sender, int &Value);
	void __fastcall ChannelListGetItemString(System::TObject* Sender, int Index, AnsiString &Value);
	void __fastcall ChannelListPaintItem(System::TObject* Sender, Qgraphics::TCanvas* Canvas, const Types::TRect &ARect, Qstdctrls::TOwnerDrawState State, int Index, AnsiString AText, bool &Handled);
	void __fastcall ChannelListChange(System::TObject* Sender);
	void __fastcall ChannelListPaintSetup(System::TObject* Sender, Qgraphics::TCanvas* Canvas);
	
public:
	__fastcall virtual TiScopePanelChannels(Classes::TComponent* AOwner);
	__fastcall virtual ~TiScopePanelChannels(void);
	void __fastcall DataBlockBegin(void);
	void __fastcall DataBlockEnd(void);
	void __fastcall DataBlockClear(void);
	__property bool DataBlockActive = {read=FBlockActive, nodefault};
	__property bool DataBlockSynchronized = {read=GetDataBlockSynchronized, nodefault};
	void __fastcall AddChannelData(int Channel, double Y);
	Qiscopechannel::TiScopeChannel* __fastcall GetScopeChannelFromLimitIndex(int Index);
	Qiscopechannel::TiScopeChannel* __fastcall GetScopeChannelFromAnnotation(int Index);
	void __fastcall CheckForSynchronizedData(void);
	void __fastcall UpdateDisplay(void);
	int __fastcall AddChannel(void);
	void __fastcall RemoveAllChannels(void);
	void __fastcall DeleteChannel(int Index);
	__property Qiscopechannel::TiScopeChannel* ScopeChannel[int Index] = {read=GetScopeChannel};
	__property int Count = {read=GetCount, nodefault};
	__property Qcontrols::TWidgetControl* Scope = {read=FScope, write=FScope};
	__property Qispinselector::TiSpinSelector* VoltageSelector = {read=FVoltageSelector};
	__property Qispinselector::TiSpinSelector* PositionSelector = {read=FPositionSelector};
	__property Qispinselector::TiSpinSelector* CouplingSelector = {read=FCouplingSelector};
public:
	#pragma option push -w-inl
	/* TWidgetControl.CreateParented */ inline __fastcall TiScopePanelChannels(Qt::QWidgetH* ParentWidget) : Qcontrols::TCustomControl(ParentWidget) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Qiscopepanelchannels */
using namespace Qiscopepanelchannels;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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

⌨️ 快捷键说明

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