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

📄 vrjogmeter.hpp

📁 wimax bs simulator对应的GUI程序
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'VrJogMeter.pas' rev: 5.00

#ifndef VrJogMeterHPP
#define VrJogMeterHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <vrTypemeter.hpp>	// Pascal unit
#include <VrSysUtils.hpp>	// Pascal unit
#include <VrControls.hpp>	// Pascal unit
#include <VrClasses.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Vrjogmeter
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TVrLiniarIndicator;
class PASCALIMPLEMENTATION TVrLiniarIndicator : public Vrclasses::TVrPersistent 
{
	typedef Vrclasses::TVrPersistent inherited;
	
private:
	double FValue;
	Graphics::TBitmap* FBitmap;
	Vrtypemeter::TvrIndicatorShape FShape;
	Graphics::TColor FColor;
	bool FVisible;
	void __fastcall SetBitmap(Graphics::TBitmap* Value);
	void __fastcall SetColor(Graphics::TColor Value);
	void __fastcall SetShape(Vrtypemeter::TvrIndicatorShape Value);
	void __fastcall SetValue(double Value);
	void __fastcall SetVisible(bool Value);
	void __fastcall LoadBitmap(void);
	void __fastcall BitmapChanged(System::TObject* Sender);
	
public:
	__fastcall TVrLiniarIndicator(void);
	__fastcall virtual ~TVrLiniarIndicator(void);
	
__published:
	__property double Value = {read=FValue, write=SetValue};
	__property Graphics::TBitmap* Bitmap = {read=FBitmap, write=SetBitmap};
	__property Vrtypemeter::TvrIndicatorShape Shape = {read=FShape, write=SetShape, nodefault};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, nodefault};
	__property bool Visible = {read=FVisible, write=SetVisible, nodefault};
};


class DELPHICLASS TVrJogMeterScale;
class PASCALIMPLEMENTATION TVrJogMeterScale : public Vrclasses::TVrPersistent 
{
	typedef Vrclasses::TVrPersistent inherited;
	
private:
	Graphics::TColor FColor;
	double FStep;
	AnsiString FFormatText;
	double FApperture;
	double FSmallStep;
	int FHeightMax;
	int FHeightMin;
	bool FVisible;
	Vrtypemeter::TVrPosition FPosition;
	int Fdecimals;
	void __fastcall SetColor(Graphics::TColor Value);
	void __fastcall SetStep(double Value);
	void __fastcall SetSmallStep(double Value);
	void __fastcall SetHeightMax(int Value);
	void __fastcall SetHeightMin(int Value);
	void __fastcall SetVisible(bool Value);
	void __fastcall SetPosition(Vrtypemeter::TVrPosition Value);
	void __fastcall SetFormatText(AnsiString Value);
	void __fastcall SetDecimals(int Value);
	void __fastcall SetApperture(const double Value);
	
public:
	__fastcall TVrJogMeterScale(void);
	
__published:
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=8388608};
	__property int Decimals = {read=Fdecimals, write=SetDecimals, default=0};
	__property AnsiString FormatText = {read=FFormatText, write=SetFormatText};
	__property double Apperture = {read=FApperture, write=SetApperture};
	__property Vrtypemeter::TVrPosition Position = {read=FPosition, write=SetPosition, default=0};
	__property double Step = {read=FStep, write=SetStep};
	__property double SmallStep = {read=FSmallStep, write=SetSmallStep};
	__property int HeightMax = {read=FHeightMax, write=SetHeightMax, default=8};
	__property int HeightMin = {read=FHeightMin, write=SetHeightMin, default=5};
	__property bool Visible = {read=FVisible, write=SetVisible, default=1};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TVrJogMeterScale(void) { }
	#pragma option pop
	
};


class DELPHICLASS TVrJogMeter;
class PASCALIMPLEMENTATION TVrJogMeter : public Vrcontrols::TVrGraphicImageControl 
{
	typedef Vrcontrols::TVrGraphicImageControl inherited;
	
private:
	TVrJogMeterScale* FScale;
	TVrLiniarIndicator* FValue;
	Vrtypemeter::TVrDirection FDirection;
	bool FShowCaption;
	Graphics::TColor FFromColor;
	Graphics::TColor FToColor;
	Windows::TRect TheRect;
	int DrawStyle;
	int meterTop;
	int meterLeft;
	int meterHeight;
	int meterWidth;
	void __fastcall SetDirection(Vrtypemeter::TVrDirection Value);
	void __fastcall SetValue(TVrLiniarIndicator* Value);
	void __fastcall ScaleChanged(System::TObject* Sender);
	void __fastcall PickChanged(System::TObject* Sender);
	void __fastcall DrawAnIndicator(TVrLiniarIndicator* indicator);
	void __fastcall DrawIndicators(void);
	void __fastcall UpdateMeterCoords(void);
	int __fastcall ValueToPixels(double Value);
	void __fastcall DrawGradient(void);
	void __fastcall DrawCaption(void);
	void __fastcall DrawScaleValues(void);
	void __fastcall DrawScale(void);
	AnsiString __fastcall DisplayValue(double Value);
	void __fastcall SetShowCaption(bool Value);
	void __fastcall SetFromColor(const Graphics::TColor Value);
	void __fastcall SetFToColor(const Graphics::TColor Value);
	
protected:
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TVrJogMeter(Classes::TComponent* AOwner);
	__fastcall virtual ~TVrJogMeter(void);
	
__published:
	__property Vrtypemeter::TVrDirection Direction = {read=FDirection, write=SetDirection, default=1};
	__property bool ShowCaption = {read=FShowCaption, write=SetShowCaption, default=0};
	__property TVrJogMeterScale* Scale = {read=FScale, write=FScale};
	__property TVrLiniarIndicator* Value = {read=FValue, write=SetValue};
	__property Graphics::TColor FromColor = {read=FFromColor, write=SetFromColor, nodefault};
	__property Graphics::TColor ToColor = {read=FToColor, write=SetFToColor, nodefault};
	__property Align ;
	__property Anchors ;
	__property Constraints ;
	__property Caption ;
	__property Color ;
	__property DragCursor ;
	__property DragKind ;
	__property DragMode ;
	__property Font ;
	__property Hint ;
	__property ParentColor ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ParentFont ;
	__property ShowHint ;
	__property Visible ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDock ;
	__property OnStartDrag ;
};


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

}	/* namespace Vrjogmeter */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vrjogmeter;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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

⌨️ 快捷键说明

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