📄 qiplotobjects.hpp
字号:
void __fastcall EditMenuItemClick(System::TObject* Sender);
virtual void __fastcall AddMenuItems(Qmenus::TPopupMenu* PopupMenu);
void __fastcall AddEditMenuItems(Qmenus::TPopupMenu* PopupMenu);
__property System::TObject* Owner = {read=FOwner};
__property TiPlotObject* MouseOverObject = {read=FMouseOverObject, write=FMouseOverObject};
__property AnsiString NameOld = {read=FNameOld};
__property Classes::TNotifyEvent OnEdit = {read=FOnEdit, write=FOnEdit};
__property Classes::TNotifyEvent OnLayoutChange = {read=FOnLayoutChange, write=FOnLayoutChange};
__property Classes::TNotifyEvent OnInvalidateNow = {read=FOnInvalidateNow, write=FOnInvalidateNow};
__property Classes::TNotifyEvent OnSetFocus = {read=FOnSetFocus, write=FOnSetFocus};
__property Classes::TNotifyEvent OnRemove = {read=FOnRemove, write=FOnRemove};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property bool XYAxesReversed = {read=FXYAxesReversed, write=SetXYAxesReversed, nodefault};
__property bool MouseDown = {read=FMouseDown, nodefault};
__property Classes::TShiftState Shift = {read=FShiftState, nodefault};
__property bool CanDraw = {read=FCanDraw, write=FCanDraw, nodefault};
__property AnsiString LayerString = {read=GetLayerString};
public:
__fastcall virtual TiPlotObject(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
__fastcall virtual ~TiPlotObject(void);
bool __fastcall HitTest(int X, int Y);
__property bool UserSelected = {read=FUserSelected, write=SetUserSelected, nodefault};
__property bool UserCanEdit = {read=FUserCanEdit, write=SetUserCanEdit, nodefault};
__published:
__property AnsiString Name = {read=FName, write=SetName};
__property bool Visible = {read=FVisible, write=SetVisible, default=1};
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
__property int Layer = {read=FLayer, write=SetLayer, default=100};
__property bool PopupEnabled = {read=FPopupEnabled, write=SetPopupEnabled, default=1};
};
class DELPHICLASS TiPlotManagerObject;
class PASCALIMPLEMENTATION TiPlotManagerObject : public TiPlotObject
{
typedef TiPlotObject inherited;
public:
__fastcall virtual TiPlotManagerObject(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
public:
#pragma option push -w-inl
/* TiPlotObject.Destroy */ inline __fastcall virtual ~TiPlotManagerObject(void) { }
#pragma option pop
};
class DELPHICLASS TiPlotLayoutObject;
class PASCALIMPLEMENTATION TiPlotLayoutObject : public TiPlotManagerObject
{
typedef TiPlotManagerObject inherited;
private:
double FStopPercent;
double FStartPercent;
int FZOrder;
bool FHorizontal;
bool FReverseSide;
int FBottom;
int FLeft;
int FTop;
int FRight;
bool FStartStacked;
bool FStopStacked;
int FLayoutBottom;
int FLayoutLeft;
int FLayoutTop;
int FLayoutRight;
bool FForceStacking;
protected:
void __fastcall SetHorizontal(const bool Value);
void __fastcall SetReverseSide(const bool Value);
void __fastcall SetStartPercent(const double Value);
void __fastcall SetStopPercent(const double Value);
void __fastcall SetZOrder(const int Value);
void __fastcall SetBottom(const int Value);
void __fastcall SetLeft(const int Value);
void __fastcall SetRight(const int Value);
void __fastcall SetTop(const int Value);
void __fastcall SetDrawRect(const Types::TRect &Value);
void __fastcall SetLayoutRect(const Types::TRect &Value);
void __fastcall SetStartStacked(const bool Value);
void __fastcall SetStopStacked(const bool Value);
void __fastcall SetForceStacking(const bool Value);
Types::TRect __fastcall GetDrawRect();
Types::TRect __fastcall GetLayoutRect();
virtual bool __fastcall GetIsHorz(void);
virtual bool __fastcall GetIsVert(void);
int __fastcall GetHeight(void);
int __fastcall GetWidth(void);
int __fastcall GetLayoutHeight(void);
int __fastcall GetLayoutWidth(void);
AnsiString __fastcall GetZOrderString();
AnsiString __fastcall GetStartPercentString();
virtual int __fastcall GetRequiredWidth(const Qgraphics::TCanvas* Canvas);
virtual int __fastcall GetRequiredLengthGaurd(const Qgraphics::TCanvas* Canvas);
virtual bool __fastcall iMouseHitTest(const TiPlotMouseData &MouseData);
virtual void __fastcall Loaded(void);
void __fastcall SetStartStopPercent(const double Start, const double Stop);
__property int Left = {read=FLeft, write=SetLeft, nodefault};
__property int Top = {read=FTop, write=SetTop, nodefault};
__property int Right = {read=FRight, write=SetRight, nodefault};
__property int Bottom = {read=FBottom, write=SetBottom, nodefault};
__property int LayoutLeft = {read=FLayoutLeft, write=FLayoutLeft, nodefault};
__property int LayoutTop = {read=FLayoutTop, write=FLayoutTop, nodefault};
__property int LayoutRight = {read=FLayoutRight, write=FLayoutRight, nodefault};
__property int LayoutBottom = {read=FLayoutBottom, write=FLayoutBottom, nodefault};
__property bool StartStacked = {read=FStartStacked, write=SetStartStacked, nodefault};
__property bool StopStacked = {read=FStopStacked, write=SetStopStacked, nodefault};
__property bool ReverseSide = {read=FReverseSide, write=SetReverseSide, nodefault};
__property bool ForceStacking = {read=FForceStacking, write=SetForceStacking, nodefault};
__property AnsiString ZOrderString = {read=GetZOrderString};
__property AnsiString StartPercentString = {read=GetStartPercentString};
public:
__fastcall virtual TiPlotLayoutObject(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
__fastcall virtual ~TiPlotLayoutObject(void);
__property Types::TRect DrawRect = {read=GetDrawRect};
__property Types::TRect LayoutRect = {read=GetLayoutRect};
__property bool IsHorz = {read=GetIsHorz, nodefault};
__property bool IsVert = {read=GetIsVert, nodefault};
__property int LayoutWidth = {read=GetLayoutWidth, nodefault};
__property int LayoutHeight = {read=GetLayoutHeight, nodefault};
__property int Width = {read=GetWidth, nodefault};
__property int Height = {read=GetHeight, nodefault};
__published:
__property bool Horizontal = {read=FHorizontal, write=SetHorizontal, nodefault};
__property int ZOrder = {read=FZOrder, write=SetZOrder, nodefault};
__property double StartPercent = {read=FStartPercent, write=SetStartPercent};
__property double StopPercent = {read=FStopPercent, write=SetStopPercent};
};
class DELPHICLASS TiPlotButton;
class PASCALIMPLEMENTATION TiPlotButton : public TiPlotObject
{
typedef TiPlotObject inherited;
private:
int FTop;
int FBottom;
int FRight;
int FLeft;
bool FDown;
Classes::TNotifyEvent FOnClick;
Classes::TNotifyEvent FOnGroupClick;
Classes::TNotifyEvent FOnInvalidate;
Classes::TNotifyEvent FOnDownChange;
Qextctrls::TTimer* FTimer;
bool FFirstTimerMessage;
bool FTimerEnabled;
int FGroupIndex;
void __fastcall SetDown(const bool Value);
protected:
virtual void __fastcall SetEnabled(const bool Value);
void __fastcall SetDrawRect(const Types::TRect &Value);
Types::TRect __fastcall GetDrawRect();
int __fastcall GetHeight(void);
int __fastcall GetWidth(void);
void __fastcall Invalidate(void);
void __fastcall TimerEvent(System::TObject* Sender);
void __fastcall DestroyTimer(void);
public:
__fastcall virtual TiPlotButton(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
__fastcall virtual ~TiPlotButton(void);
virtual void __fastcall DoMouseLeft(const TiPlotMouseData &MouseData);
virtual void __fastcall DoMouseMove(const TiPlotMouseData &MouseData);
virtual void __fastcall DoMouseUp(const TiPlotMouseData &MouseData);
__property Types::TRect DrawRect = {read=GetDrawRect, write=SetDrawRect};
__property int Left = {read=FLeft, write=FLeft, nodefault};
__property int Top = {read=FTop, write=FTop, nodefault};
__property int Right = {read=FRight, write=FRight, nodefault};
__property int Bottom = {read=FBottom, write=FBottom, nodefault};
__property bool Down = {read=FDown, write=SetDown, nodefault};
__property int Width = {read=GetWidth, nodefault};
__property int Height = {read=GetHeight, nodefault};
__property bool TimerEnabled = {read=FTimerEnabled, write=FTimerEnabled, nodefault};
__property int GroupIndex = {read=FGroupIndex, write=FGroupIndex, nodefault};
__property Classes::TNotifyEvent OnInvalidate = {read=FOnInvalidate, write=FOnInvalidate};
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
__property Classes::TNotifyEvent OnGroupClick = {read=FOnGroupClick, write=FOnGroupClick};
__property Classes::TNotifyEvent OnDownChange = {read=FOnDownChange, write=FOnDownChange};
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Qiplotobjects */
using namespace Qiplotobjects;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // QiPlotObjects
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -