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

📄 qiplottoolbar.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) 'QiPlotToolBar.pas' rev: 6.00

#ifndef QiPlotToolBarHPP
#define QiPlotToolBarHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <QImgList.hpp>	// Pascal unit
#include <QiPlotObjects.hpp>	// Pascal unit
#include <QiGPFunctions.hpp>	// Pascal unit
#include <QiTypes.hpp>	// Pascal unit
#include <QMenus.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 Qiplottoolbar
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TiPlotToolBarButtonStyle { iptbbsButton, iptbbsSpacer };
#pragma option pop

#pragma option push -b-
enum TiPlotToolBarButtonType { iptbbtResume, iptbbtPause, iptbbtScrollAxesMode, iptbbtZoomAxesMode, iptbbtSelect, iptbbtZoomBox, iptbbtZoomOut, iptbbtZoomIn, iptbbtCursor, iptbbtEdit, iptbbtCopy, iptbbtSave, iptbbtPrint, iptbbtPreview };
#pragma option pop

class DELPHICLASS TiPlotToolBarButton;
class DELPHICLASS TiPlotToolBar;
class PASCALIMPLEMENTATION TiPlotToolBar : public Qiplotobjects::TiPlotLayoutObject 
{
	typedef Qiplotobjects::TiPlotLayoutObject inherited;
	
private:
	Classes::TStringList* FButtonList;
	Qimglist::TImageList* FImageList;
	TiPlotToolBarButton* FResumeButton;
	TiPlotToolBarButton* FPauseButton;
	TiPlotToolBarButton* FResumePauseSpacer;
	TiPlotToolBarButton* FAxesModeScrollButton;
	TiPlotToolBarButton* FAxesModeZoomButton;
	TiPlotToolBarButton* FAxesModeSpacer;
	TiPlotToolBarButton* FZoomInButton;
	TiPlotToolBarButton* FZoomOutButton;
	TiPlotToolBarButton* FZoomInOutSpacer;
	TiPlotToolBarButton* FSelectButton;
	TiPlotToolBarButton* FZoomBoxButton;
	TiPlotToolBarButton* FCursorButton;
	TiPlotToolBarButton* FZoomBoxCursorSpacer;
	TiPlotToolBarButton* FEditButton;
	TiPlotToolBarButton* FEditSpacer;
	TiPlotToolBarButton* FCopyButton;
	TiPlotToolBarButton* FSaveButton;
	TiPlotToolBarButton* FPrintButton;
	TiPlotToolBarButton* FPreviewButton;
	double FZoomInOutFactor;
	bool FFlatButtons;
	bool FSmallButtons;
	bool FFlatBorder;
	
protected:
	void __fastcall SetShowResumeButton(const bool Value);
	void __fastcall SetShowPauseButton(const bool Value);
	void __fastcall SetShowAxesModeButtons(const bool Value);
	void __fastcall SetShowZoomInOutButtons(const bool Value);
	void __fastcall SetShowSelectButton(const bool Value);
	void __fastcall SetShowZoomBoxButton(const bool Value);
	void __fastcall SetShowCursorButton(const bool Value);
	void __fastcall SetShowEditButton(const bool Value);
	void __fastcall SetShowCopyButton(const bool Value);
	void __fastcall SetShowPrintButton(const bool Value);
	void __fastcall SetShowPreviewButton(const bool Value);
	void __fastcall SetShowSaveButton(const bool Value);
	void __fastcall SetFlatButtons(const bool Value);
	void __fastcall SetSmallButtons(const bool Value);
	void __fastcall SetFlatBorder(const bool Value);
	bool __fastcall GetShowResumeButton(void);
	bool __fastcall GetShowPauseButton(void);
	bool __fastcall GetShowAxesModeButtons(void);
	bool __fastcall GetShowZoomInOutButtons(void);
	bool __fastcall GetShowSelectButton(void);
	bool __fastcall GetShowZoomBoxButton(void);
	bool __fastcall GetShowCursorButton(void);
	bool __fastcall GetShowEditButton(void);
	bool __fastcall GetShowCopyButton(void);
	bool __fastcall GetShowPrintButton(void);
	bool __fastcall GetShowPreviewButton(void);
	bool __fastcall GetShowSaveButton(void);
	void __fastcall SetZoomInOutFactor(const double Value);
	bool __fastcall GetCursorActive(void);
	bool __fastcall GetZoomBoxActive(void);
	bool __fastcall GetSelectActive(void);
	void __fastcall ResumeClick(System::TObject* Sender);
	void __fastcall PauseClick(System::TObject* Sender);
	void __fastcall AxesModeScrollClick(System::TObject* Sender);
	void __fastcall AxesModeZoomClick(System::TObject* Sender);
	void __fastcall ZoomOutClick(System::TObject* Sender);
	void __fastcall ZoomInClick(System::TObject* Sender);
	void __fastcall SelectClick(System::TObject* Sender);
	void __fastcall ZoomBoxClick(System::TObject* Sender);
	void __fastcall CursorClick(System::TObject* Sender);
	void __fastcall EditClick(System::TObject* Sender);
	void __fastcall CopyClick(System::TObject* Sender);
	void __fastcall SaveClick(System::TObject* Sender);
	void __fastcall PrintClick(System::TObject* Sender);
	void __fastcall PreviewClick(System::TObject* Sender);
	void __fastcall ZoomBoxDownChange(System::TObject* Sender);
	void __fastcall CursorDownChange(System::TObject* Sender);
	void __fastcall SelectDownChange(System::TObject* Sender);
	void __fastcall GroupClick(System::TObject* Sender);
	TiPlotToolBarButton* __fastcall CreateButton(Classes::TNotifyEvent OnClick, int ImageIndex, int GroupIndex, AnsiString GlphyName, AnsiString Hint);
	TiPlotToolBarButton* __fastcall CreateSpacer(void);
	void __fastcall UpdateSpacers(void);
	void __fastcall UpdateResumePauseButtons(void);
	void __fastcall ButtonInvalidate(System::TObject* Sender);
	virtual Qiplotobjects::TiPlotObject* __fastcall GetMouseObject(int X, int Y);
	virtual void __fastcall AddMenuItems(Qmenus::TPopupMenu* PopupMenu);
	virtual int __fastcall GetRequiredWidth(const Qgraphics::TCanvas* Canvas);
	virtual void __fastcall NotificationSetFocus(System::TObject* Sender);
	virtual void __fastcall Draw(const Qgraphics::TCanvas* Canvas, const Qgraphics::TColor BackGroundColor);
	void __fastcall SetupLargeImages(void);
	void __fastcall SetupSmallImages(void);
	
public:
	__fastcall virtual TiPlotToolBar(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
	__fastcall virtual ~TiPlotToolBar(void);
	void __fastcall TurnOffCursor(void);
	__property bool ZoomBoxActive = {read=GetZoomBoxActive, nodefault};
	__property bool CursorActive = {read=GetCursorActive, nodefault};
	__property bool SelectActive = {read=GetSelectActive, nodefault};
	void __fastcall DoButtonClickResume(void);
	void __fastcall DoButtonClickPause(void);
	void __fastcall DoButtonClickScrollAxesMode(void);
	void __fastcall DoButtonClickZoomAxesMode(void);
	void __fastcall DoButtonClickSelect(void);
	void __fastcall DoButtonClickZoomBox(void);
	void __fastcall DoButtonClickZoomOut(void);
	void __fastcall DoButtonClickZoomIn(void);
	void __fastcall DoButtonClickCursor(void);
	void __fastcall DoButtonClickEdit(void);
	void __fastcall DoButtonClickCopy(void);
	void __fastcall DoButtonClickSave(void);
	void __fastcall DoButtonClickPrint(void);
	void __fastcall DoButtonClickPreview(void);
	
__published:
	__property bool ShowResumeButton = {read=GetShowResumeButton, write=SetShowResumeButton, default=1};
	__property bool ShowPauseButton = {read=GetShowPauseButton, write=SetShowPauseButton, default=1};
	__property bool ShowAxesModeButtons = {read=GetShowAxesModeButtons, write=SetShowAxesModeButtons, default=1};
	__property bool ShowZoomInOutButtons = {read=GetShowZoomInOutButtons, write=SetShowZoomInOutButtons, default=1};
	__property bool ShowSelectButton = {read=GetShowSelectButton, write=SetShowSelectButton, default=0};
	__property bool ShowZoomBoxButton = {read=GetShowZoomBoxButton, write=SetShowZoomBoxButton, default=1};
	__property bool ShowCursorButton = {read=GetShowCursorButton, write=SetShowCursorButton, default=1};
	__property bool ShowEditButton = {read=GetShowEditButton, write=SetShowEditButton, default=1};
	__property bool ShowCopyButton = {read=GetShowCopyButton, write=SetShowCopyButton, default=1};
	__property bool ShowSaveButton = {read=GetShowSaveButton, write=SetShowSaveButton, default=1};
	__property bool ShowPrintButton = {read=GetShowPrintButton, write=SetShowPrintButton, default=1};
	__property bool ShowPreviewButton = {read=GetShowPreviewButton, write=SetShowPreviewButton, default=0};
	__property double ZoomInOutFactor = {read=FZoomInOutFactor, write=SetZoomInOutFactor};
	__property bool FlatBorder = {read=FFlatBorder, write=SetFlatBorder, default=0};
	__property bool FlatButtons = {read=FFlatButtons, write=SetFlatButtons, default=0};
	__property bool SmallButtons = {read=FSmallButtons, write=SetSmallButtons, default=0};
};


class PASCALIMPLEMENTATION TiPlotToolBarButton : public Qiplotobjects::TiPlotButton 
{
	typedef Qiplotobjects::TiPlotButton inherited;
	
private:
	AnsiString FHint;
	TiPlotToolBarButtonStyle FStyle;
	Qimglist::TImageList* FImageList;
	int FImageIndex;
	AnsiString FImageName;
	bool FFlat;
	bool FMouseOver;
	TiPlotToolBar* FToolBar;
	
public:
	virtual void __fastcall DoMouseHint(const Qiplotobjects::TiPlotMouseData &MouseData, Qiplotobjects::TiHintData &HintData);
	virtual void __fastcall DoMouseNotOver(void);
	virtual void __fastcall iMouseMove(Qiplotobjects::TiHintData &HintData, Classes::TShiftState Shift, int X, int Y, int ScreenX, int ScreenY, bool DblClickActive);
	virtual void __fastcall Draw(const Qgraphics::TCanvas* Canvas, const Qgraphics::TColor BackGroundColor);
	void __fastcall DrawLoweredEdge(const Qgraphics::TCanvas* Canvas);
	void __fastcall DrawRaisedEdge(const Qgraphics::TCanvas* Canvas);
	__property Qimglist::TImageList* ImageList = {read=FImageList, write=FImageList};
	__property int ImageIndex = {read=FImageIndex, write=FImageIndex, nodefault};
	__property AnsiString Hint = {read=FHint, write=FHint};
	__property TiPlotToolBarButtonStyle Style = {read=FStyle, write=FStyle, nodefault};
	__property AnsiString ImageName = {read=FImageName, write=FImageName};
	__property TiPlotToolBar* ToolBar = {read=FToolBar, write=FToolBar};
	__property bool Flat = {read=FFlat, write=FFlat, nodefault};
public:
	#pragma option push -w-inl
	/* TiPlotButton.Create */ inline __fastcall virtual TiPlotToolBarButton(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename) : Qiplotobjects::TiPlotButton(AOwner, AOnChange, AOnInsert, AOnRemove, AOnRename) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TiPlotButton.Destroy */ inline __fastcall virtual ~TiPlotToolBarButton(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint ButtonTopOffset = 0x3;
static const Shortint ButtonLeftOffset = 0x3;
static const Shortint SpacerWidth = 0xa;

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

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

⌨️ 快捷键说明

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