📄 qisevensegmentdisplay.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'QiSevenSegmentDisplay.pas' rev: 6.00
#ifndef QiSevenSegmentDisplayHPP
#define QiSevenSegmentDisplayHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <QiComponent.hpp> // Pascal unit
#include <QiCLXComponent.hpp> // Pascal unit
#include <QiCustomComponent.hpp> // Pascal unit
#include <QiSevenSegmentCharacter.hpp> // Pascal unit
#include <QiMath.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 Qisevensegmentdisplay
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TiSevenSegmentDisplay;
class PASCALIMPLEMENTATION TiSevenSegmentDisplay : public Qicustomcomponent::TiCustomComponent
{
typedef Qicustomcomponent::TiCustomComponent inherited;
private:
Qisevensegmentcharacter::TiSevenSegmentCharacter* FSevenSegmentCharacter;
bool FAutoSize;
int FDigitCount;
int FDigitSpacing;
Qitypes::TiLeadingStyle FLeadingStyle;
int FSegmentMargin;
Qgraphics::TColor FSegmentColor;
int FSegmentSeperation;
int FSegmentSize;
bool FShowOffSegments;
bool FPowerOff;
Classes::TNotifyEvent FOnValueChange;
Classes::TNotifyEvent FOnAutoSize;
bool FAutoSegmentOffColor;
Qgraphics::TColor FSegmentOffColor;
void __fastcall iSetAutoSize(const bool Value);
void __fastcall SetDigitCount(const int Value);
void __fastcall SetDigitSpacing(const int Value);
void __fastcall SetLeadingStyle(const Qitypes::TiLeadingStyle Value);
void __fastcall SetSegmentMargin(const int Value);
void __fastcall SetSegmentColor(const Qgraphics::TColor Value);
void __fastcall SetSegmentSize(const int Value);
void __fastcall SetSegmentSeperation(const int Value);
void __fastcall SetShowOffSegments(const bool Value);
void __fastcall SetPowerOff(const bool Value);
void __fastcall SetAutoSegmentOffColor(const bool Value);
void __fastcall SetSegmentOffColor(const Qgraphics::TColor Value);
protected:
void __fastcall SetupCharacter(void);
void __fastcall DoAutoSize(void);
virtual Types::TPoint __fastcall GetAutoSize(void) = 0 ;
__property Qisevensegmentcharacter::TiSevenSegmentCharacter* SevenSegmentCharacter = {read=FSevenSegmentCharacter};
__property int DigitCount = {read=FDigitCount, write=SetDigitCount, default=4};
__property Qitypes::TiLeadingStyle LeadingStyle = {read=FLeadingStyle, write=SetLeadingStyle, default=2};
public:
__fastcall virtual TiSevenSegmentDisplay(Classes::TComponent* AOwner);
__property Classes::TNotifyEvent OnAutoSize = {read=FOnAutoSize, write=FOnAutoSize};
__published:
__property bool AutoSize = {read=FAutoSize, write=iSetAutoSize, default=1};
__property int DigitSpacing = {read=FDigitSpacing, write=SetDigitSpacing, default=6};
__property int SegmentMargin = {read=FSegmentMargin, write=SetSegmentMargin, default=5};
__property Qgraphics::TColor SegmentColor = {read=FSegmentColor, write=SetSegmentColor, default=16777215};
__property int SegmentSeperation = {read=FSegmentSeperation, write=SetSegmentSeperation, default=1};
__property int SegmentSize = {read=FSegmentSize, write=SetSegmentSize, default=1};
__property bool ShowOffSegments = {read=FShowOffSegments, write=SetShowOffSegments, default=1};
__property bool PowerOff = {read=FPowerOff, write=SetPowerOff, default=0};
__property Qgraphics::TColor SegmentOffColor = {read=FSegmentOffColor, write=SetSegmentOffColor, default=8421504};
__property bool AutoSegmentOffColor = {read=FAutoSegmentOffColor, write=SetAutoSegmentOffColor, default=1};
__property Classes::TNotifyEvent OnValueChange = {read=FOnValueChange, write=FOnValueChange};
__property BackGroundColor = {default=0};
__property BorderStyle = {default=0};
__property Transparent = {default=0};
public:
#pragma option push -w-inl
/* TiCLXComponent.Destroy */ inline __fastcall virtual ~TiSevenSegmentDisplay(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWidgetControl.CreateParented */ inline __fastcall TiSevenSegmentDisplay(Qt::QWidgetH* ParentWidget) : Qicustomcomponent::TiCustomComponent(ParentWidget) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Qisevensegmentdisplay */
using namespace Qisevensegmentdisplay;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // QiSevenSegmentDisplay
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -