📄 iplotlegend.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'iPlotLegend.pas' rev: 6.00
#ifndef iPlotLegendHPP
#define iPlotLegendHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <iPlotChannelCustom.hpp> // Pascal unit
#include <iPlotObjects.hpp> // Pascal unit
#include <iGPFunctions.hpp> // Pascal unit
#include <iTypes.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <ComCtrls.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Variants.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Types.hpp> // Pascal unit
#include <Clipbrd.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Graphics.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 Iplotlegend
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TiPlotLegendChannelNameColorStyle { iplcncsFont, iplcncsChannelColor, iplcncsXAxisFontColor, iplcncsYAxisFontColor };
#pragma option pop
class DELPHICLASS TiPlotLegendButton;
class PASCALIMPLEMENTATION TiPlotLegendButton : public Iplotobjects::TiPlotButton
{
typedef Iplotobjects::TiPlotButton inherited;
public:
virtual void __fastcall Draw(const Graphics::TCanvas* Canvas, const Graphics::TColor BackGroundColor);
public:
#pragma option push -w-inl
/* TiPlotButton.Create */ inline __fastcall virtual TiPlotLegendButton(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename) : Iplotobjects::TiPlotButton(AOwner, AOnChange, AOnInsert, AOnRemove, AOnRename) { }
#pragma option pop
#pragma option push -w-inl
/* TiPlotButton.Destroy */ inline __fastcall virtual ~TiPlotLegendButton(void) { }
#pragma option pop
};
class DELPHICLASS TiPlotLegendItem;
class PASCALIMPLEMENTATION TiPlotLegendItem : public System::TObject
{
typedef System::TObject inherited;
public:
Iplotchannelcustom::TiPlotChannelCustom* Channel;
int MaxHeight;
int ALeft;
int ATop;
int ARow;
int ACol;
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TiPlotLegendItem(void) : System::TObject() { }
#pragma option pop
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TiPlotLegendItem(void) { }
#pragma option pop
};
class DELPHICLASS TiPlotLegend;
class PASCALIMPLEMENTATION TiPlotLegend : public Iplotobjects::TiPlotLayoutObject
{
typedef Iplotobjects::TiPlotLayoutObject inherited;
private:
TiPlotLegendButton* FUpButton;
TiPlotLegendButton* FDownButton;
int FRequiredWidth;
int FRequiredHeight;
#pragma pack(push, 1)
Types::TRect FInnerRect;
#pragma pack(pop)
Classes::TStringList* FItemList;
Classes::TStringList* FColumnList;
int FColumnWidth;
int FItemWidth;
int FActualWrapColCount;
int FActualWrapRowCount;
int FColumnSpacingPixels;
int FRowSpacingPixels;
int FWrapSpacingPixels;
int FColumnStartChannel;
int FColumnStartLine;
int FColumnStartMarker;
int FColumnStartXName;
int FColumnStartYName;
int FColumnStartXValue;
int FColumnStartYValue;
int FColumnStartYMax;
int FColumnStartYMin;
int FColumnStartYMean;
int FMaxWidthLine;
int FMaxWidthMarker;
int FMaxWidthChannelLabel;
int FMaxWidthXName;
int FMaxWidthYName;
int FMaxWidthXValue;
int FMaxWidthYValue;
int FMaxWidthYMax;
int FMaxWidthYMin;
int FMaxWidthYMean;
int FItemViewStartIndex;
int FItemViewStopIndex;
int FItemHeight;
int FMaxItemHeight;
int FColumnTitlesHeightPixels;
int FColumnTitlesMarginPixels;
#pragma pack(push, 1)
Types::TRect FColumnTitlesRect;
#pragma pack(pop)
#pragma pack(push, 1)
Types::TRect FItemsRect;
#pragma pack(pop)
double FMarginLeft;
double FMarginRight;
double FMarginBottom;
double FMarginTop;
bool FBackGroundTransparent;
Graphics::TColor FBackGroundColor;
double FColumnSpacing;
Graphics::TFont* FFont;
Graphics::TColor FSelectedItemBackGroundColor;
Graphics::TFont* FSelectedItemFont;
bool FShowColumnLine;
bool FShowColumnMarker;
bool FShowColumnXName;
bool FShowColumnYName;
bool FShowColumnXValue;
bool FShowColumnYValue;
bool FColumnTitlesVisible;
Graphics::TFont* FColumnTitlesFont;
double FChannelNameMaxWidth;
TiPlotLegendChannelNameColorStyle FChannelNameColorStyle;
bool FShowColumnYMax;
bool FShowColumnYMin;
bool FShowColumnYMean;
bool FCursorAllChannels;
bool FShowColumnXValue2;
bool FShowColumnYValue2;
AnsiString FCaptionColumnYMax;
AnsiString FCaptionColumnYValue;
AnsiString FCaptionColumnTitle;
AnsiString FCaptionColumnYMean;
AnsiString FCaptionColumnXName;
AnsiString FCaptionColumnYName;
AnsiString FCaptionColumnXValue;
AnsiString FCaptionColumnYMin;
int FWrapColDesiredCount;
int FWrapRowDesiredCount;
bool FWrapColAutoCountEnabled;
bool FWrapRowAutoCountEnabled;
int FWrapRowAutoCountMax;
int FWrapColAutoCountMax;
double FWrapColSpacingMin;
double FWrapRowSpacingMin;
bool FWrapRowSpacingAuto;
bool FWrapColSpacingAuto;
protected:
void __fastcall SetMarginBottom(const double Value);
void __fastcall SetMarginLeft(const double Value);
void __fastcall SetMarginRight(const double Value);
void __fastcall SetMarginTop(const double Value);
void __fastcall SetBackGroundColor(const Graphics::TColor Value);
void __fastcall SetBackGroundTransparent(const bool Value);
void __fastcall SetFont(const Graphics::TFont* Value);
void __fastcall SetSelectedItemBackGroundColor(const Graphics::TColor Value);
void __fastcall SetSelectedItemFont(const Graphics::TFont* Value);
void __fastcall SetShowColumnLine(const bool Value);
void __fastcall SetShowColumnMarker(const bool Value);
void __fastcall SetShowColumnXAxisTitle(const bool Value);
void __fastcall SetShowColumnYAxisTitle(const bool Value);
void __fastcall SetShowColumnXValue(const bool Value);
void __fastcall SetShowColumnYValue(const bool Value);
void __fastcall SetShowColumnYMax(const bool Value);
void __fastcall SetShowColumnYMean(const bool Value);
void __fastcall SetShowColumnYMin(const bool Value);
void __fastcall SetColumnSpacing(const double Value);
void __fastcall SetColumnTitlesFont(const Graphics::TFont* Value);
void __fastcall SetColumnTitlesVisible(const bool Value);
void __fastcall SetChannelNameMaxWidth(const double Value);
void __fastcall SetChannelNameColorStyle(const TiPlotLegendChannelNameColorStyle Value);
void __fastcall SetWrapColDesiredCount(const int Value);
void __fastcall SetWrapRowDesiredCount(const int Value);
void __fastcall SetWrapColAutoCountEnabled(const bool Value);
void __fastcall SetWrapRowAutoCountEnabled(const bool Value);
void __fastcall SetWrapColAutoCountMax(const int Value);
void __fastcall SetWrapRowAutoCountMax(const int Value);
void __fastcall SetWrapColSpacingMin(const double Value);
void __fastcall SetWrapRowSpacingMin(const double Value);
void __fastcall SetWrapColSpacingAuto(const bool Value);
void __fastcall SetWrapRowSpacingAuto(const bool Value);
void __fastcall SetCaptionColumnTitle(const AnsiString Value);
void __fastcall SetCaptionColumnXAxisTitle(const AnsiString Value);
void __fastcall SetCaptionColumnXValue(const AnsiString Value);
void __fastcall SetCaptionColumnYAxisTitle(const AnsiString Value);
void __fastcall SetCaptionColumnYMax(const AnsiString Value);
void __fastcall SetCaptionColumnYMean(const AnsiString Value);
void __fastcall SetCaptionColumnYMin(const AnsiString Value);
void __fastcall SetCaptionColumnYValue(const AnsiString Value);
void __fastcall CalcRects(Graphics::TCanvas* Canvas);
void __fastcall CalcColumnChannelName(Graphics::TCanvas* Canvas);
void __fastcall CalcColumnTitles(Graphics::TCanvas* Canvas);
void __fastcall ButtonInvalidate(System::TObject* Sender);
void __fastcall UpButtonClick(System::TObject* Sender);
void __fastcall DownButtonClick(System::TObject* Sender);
void __fastcall ClearItemList(void);
virtual void __fastcall NotificationSetFocus(System::TObject* Sender);
virtual Iplotobjects::TiPlotObject* __fastcall GetMouseObject(int X, int Y);
virtual void __fastcall AddMenuItems(Menus::TPopupMenu* PopupMenu);
virtual void __fastcall DoMouseUp(const Iplotobjects::TiPlotMouseData &MouseData);
virtual int __fastcall GetRequiredWidth(const Graphics::TCanvas* Canvas);
void __fastcall GetNewMax(int Value, int &Max);
virtual void __fastcall Draw(const Graphics::TCanvas* Canvas, const Graphics::TColor BackGroundColor);
void __fastcall DrawLine(const Graphics::TCanvas* Canvas, int X, int Y, Graphics::TColor AColor, Itypes::TiPlotLineStyle LineStyle);
void __fastcall DrawColumnTitles(const Graphics::TCanvas* Canvas);
void __fastcall DrawDownButton(const Graphics::TCanvas* Canvas);
void __fastcall DrawUpButton(const Graphics::TCanvas* Canvas);
AnsiString __fastcall GetXAxisNameText(Iplotchannelcustom::TiPlotChannelCustom* iChannel);
AnsiString __fastcall GetYAxisNameText(Iplotchannelcustom::TiPlotChannelCustom* iChannel);
AnsiString __fastcall GetXAxisValueText(Iplotchannelcustom::TiPlotChannelCustom* iChannel);
AnsiString __fastcall GetYAxisValueText(Iplotchannelcustom::TiPlotChannelCustom* iChannel);
AnsiString __fastcall GetYAxisMaxText(Iplotchannelcustom::TiPlotChannelCustom* iChannel);
AnsiString __fastcall GetYAxisMeanText(Iplotchannelcustom::TiPlotChannelCustom* iChannel);
AnsiString __fastcall GetYAxisMinText(Iplotchannelcustom::TiPlotChannelCustom* iChannel);
__property bool CursorAllChannels = {read=FCursorAllChannels, write=FCursorAllChannels, nodefault};
public:
__fastcall virtual TiPlotLegend(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
__fastcall virtual ~TiPlotLegend(void);
__property int ViewStartIndex = {read=FItemViewStartIndex, nodefault};
__property int ViewStopIndex = {read=FItemViewStopIndex, nodefault};
__published:
__property double MarginLeft = {read=FMarginLeft, write=SetMarginLeft};
__property double MarginTop = {read=FMarginTop, write=SetMarginTop};
__property double MarginRight = {read=FMarginRight, write=SetMarginRight};
__property double MarginBottom = {read=FMarginBottom, write=SetMarginBottom};
__property Graphics::TColor BackGroundColor = {read=FBackGroundColor, write=SetBackGroundColor, default=8421504};
__property bool BackGroundTransparent = {read=FBackGroundTransparent, write=SetBackGroundTransparent, default=1};
__property Graphics::TColor SelectedItemBackGroundColor = {read=FSelectedItemBackGroundColor, write=SetSelectedItemBackGroundColor, default=65535};
__property Graphics::TFont* SelectedItemFont = {read=FSelectedItemFont, write=SetSelectedItemFont};
__property bool ShowColumnLine = {read=FShowColumnLine, write=SetShowColumnLine, default=1};
__property bool ShowColumnMarker = {read=FShowColumnMarker, write=SetShowColumnMarker, default=0};
__property bool ShowColumnXAxisTitle = {read=FShowColumnXName, write=SetShowColumnXAxisTitle, default=0};
__property bool ShowColumnYAxisTitle = {read=FShowColumnYName, write=SetShowColumnYAxisTitle, default=0};
__property bool ShowColumnXValue = {read=FShowColumnXValue, write=SetShowColumnXValue, default=0};
__property bool ShowColumnYValue = {read=FShowColumnYValue, write=SetShowColumnYValue, default=0};
__property bool ShowColumnYMax = {read=FShowColumnYMax, write=SetShowColumnYMax, default=0};
__property bool ShowColumnYMin = {read=FShowColumnYMin, write=SetShowColumnYMin, default=0};
__property bool ShowColumnYMean = {read=FShowColumnYMean, write=SetShowColumnYMean, default=0};
__property AnsiString CaptionColumnTitle = {read=FCaptionColumnTitle, write=SetCaptionColumnTitle};
__property AnsiString CaptionColumnXAxisTitle = {read=FCaptionColumnXName, write=SetCaptionColumnXAxisTitle};
__property AnsiString CaptionColumnYAxisTitle = {read=FCaptionColumnYName, write=SetCaptionColumnYAxisTitle};
__property AnsiString CaptionColumnXValue = {read=FCaptionColumnXValue, write=SetCaptionColumnXValue};
__property AnsiString CaptionColumnYValue = {read=FCaptionColumnYValue, write=SetCaptionColumnYValue};
__property AnsiString CaptionColumnYMax = {read=FCaptionColumnYMax, write=SetCaptionColumnYMax};
__property AnsiString CaptionColumnYMin = {read=FCaptionColumnYMin, write=SetCaptionColumnYMin};
__property AnsiString CaptionColumnYMean = {read=FCaptionColumnYMean, write=SetCaptionColumnYMean};
__property Graphics::TFont* Font = {read=FFont, write=SetFont};
__property double ColumnSpacing = {read=FColumnSpacing, write=SetColumnSpacing};
__property double RowSpacing = {read=FWrapRowSpacingMin, write=SetWrapRowSpacingMin};
__property int WrapColDesiredCount = {read=FWrapColDesiredCount, write=SetWrapColDesiredCount, nodefault};
__property bool WrapColAutoCountEnabled = {read=FWrapColAutoCountEnabled, write=SetWrapColAutoCountEnabled, nodefault};
__property int WrapColAutoCountMax = {read=FWrapColAutoCountMax, write=SetWrapColAutoCountMax, nodefault};
__property double WrapColSpacingMin = {read=FWrapColSpacingMin, write=SetWrapColSpacingMin};
__property bool WrapColSpacingAuto = {read=FWrapColSpacingAuto, write=SetWrapColSpacingAuto, nodefault};
__property int WrapRowDesiredCount = {read=FWrapRowDesiredCount, write=SetWrapRowDesiredCount, nodefault};
__property bool WrapRowAutoCountEnabled = {read=FWrapRowAutoCountEnabled, write=SetWrapRowAutoCountEnabled, nodefault};
__property int WrapRowAutoCountMax = {read=FWrapRowAutoCountMax, write=SetWrapRowAutoCountMax, nodefault};
__property double WrapRowSpacingMin = {read=FWrapRowSpacingMin, write=SetWrapRowSpacingMin};
__property bool WrapRowSpacingAuto = {read=FWrapRowSpacingAuto, write=SetWrapRowSpacingAuto, nodefault};
__property bool ColumnTitlesVisible = {read=FColumnTitlesVisible, write=SetColumnTitlesVisible, default=0};
__property Graphics::TFont* ColumnTitlesFont = {read=FColumnTitlesFont, write=SetColumnTitlesFont};
__property double ChannelNameMaxWidth = {read=FChannelNameMaxWidth, write=SetChannelNameMaxWidth};
__property TiPlotLegendChannelNameColorStyle ChannelNameColorStyle = {read=FChannelNameColorStyle, write=SetChannelNameColorStyle, default=0};
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Iplotlegend */
using namespace Iplotlegend;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // iPlotLegend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -