📄 qiplottable.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'QiPlotTable.pas' rev: 6.00
#ifndef QiPlotTableHPP
#define QiPlotTableHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <QiPlotChannelCustom.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 Qiplottable
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TiPlotTableButton;
class PASCALIMPLEMENTATION TiPlotTableButton : public Qiplotobjects::TiPlotButton
{
typedef Qiplotobjects::TiPlotButton inherited;
public:
virtual void __fastcall Draw(const Qgraphics::TCanvas* Canvas, const Qgraphics::TColor BackGroundColor);
public:
#pragma option push -w-inl
/* TiPlotButton.Create */ inline __fastcall virtual TiPlotTableButton(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 ~TiPlotTableButton(void) { }
#pragma option pop
};
class DELPHICLASS TiPlotTableColumn;
class PASCALIMPLEMENTATION TiPlotTableColumn : public System::TObject
{
typedef System::TObject inherited;
protected:
int WidthPixels;
public:
AnsiString Title;
double Width;
bool Visible;
Qitypes::TiAlignmentHorizontal TitleAlignment;
double TitleAlignmentMargin;
Qgraphics::TColor TitleFontColor;
Qitypes::TiAlignmentHorizontal DataAlignment;
double DataAlignmentMargin;
Qgraphics::TColor DataFontColor;
bool AutoSize;
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TiPlotTableColumn(void) : System::TObject() { }
#pragma option pop
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TiPlotTableColumn(void) { }
#pragma option pop
};
class DELPHICLASS TiPlotTable;
class PASCALIMPLEMENTATION TiPlotTable : public Qiplotobjects::TiPlotLayoutObject
{
typedef Qiplotobjects::TiPlotLayoutObject inherited;
private:
TiPlotTableButton* FUpButton;
TiPlotTableButton* FDownButton;
int FRequiredWidth;
int FRequiredHeight;
Classes::TStringList* FColumnList;
Classes::TStringList* FRowDataList;
Classes::TStringList* FTempStringList;
int FItemViewStartIndex;
int FItemViewStopIndex;
int FRowHeight;
double FMarginLeft;
double FMarginRight;
double FMarginBottom;
double FMarginTop;
bool FGridBackGroundTransparent;
Qgraphics::TColor FGridBackGroundColor;
bool FGridLinesShow;
Qgraphics::TColor FGridLinesColor;
double FColumnSpacing;
double FRowSpacing;
int FRowsMax;
Qgraphics::TFont* FDataFont;
#pragma pack(push, 1)
Types::TRect FGridRect;
#pragma pack(pop)
#pragma pack(push, 1)
Types::TRect FTitleRect;
#pragma pack(pop)
bool FColumnTitlesVisible;
Qgraphics::TFont* FColumnTitlesFont;
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 SetGridBackGroundColor(const Qgraphics::TColor Value);
void __fastcall SetGridBackGroundTransparent(const bool Value);
void __fastcall SetDataFont(const Qgraphics::TFont* Value);
void __fastcall SetColumnSpacing(const double Value);
void __fastcall SetRowSpacing(const double Value);
void __fastcall SetColumnTitlesFont(const Qgraphics::TFont* Value);
void __fastcall SetColumnTitlesVisible(const bool Value);
void __fastcall SetGridLinesShow(const bool Value);
void __fastcall SetGridLinesColor(const Qgraphics::TColor Value);
void __fastcall SetRowsMax(const int Value);
void __fastcall CalcRects(Qgraphics::TCanvas* Canvas);
TiPlotTableColumn* __fastcall GetColumn(int Index);
int __fastcall GetColumnCount(void);
int __fastcall GetRowCount(void);
AnsiString __fastcall GetData(int Col, int Row);
void __fastcall SetData(int Col, int Row, const AnsiString Value);
void __fastcall ButtonInvalidate(System::TObject* Sender);
void __fastcall UpButtonClick(System::TObject* Sender);
void __fastcall DownButtonClick(System::TObject* Sender);
virtual void __fastcall NotificationSetFocus(System::TObject* Sender);
virtual Qiplotobjects::TiPlotObject* __fastcall GetMouseObject(int X, int Y);
virtual int __fastcall GetRequiredWidth(const Qgraphics::TCanvas* Canvas);
virtual void __fastcall AddMenuItems(Qmenus::TPopupMenu* PopupMenu);
virtual void __fastcall DoMouseUp(const Qiplotobjects::TiPlotMouseData &MouseData);
virtual void __fastcall Draw(const Qgraphics::TCanvas* Canvas, const Qgraphics::TColor BackGroundColor);
void __fastcall DrawGrid(const Qgraphics::TCanvas* Canvas);
void __fastcall DrawColumnTitles(const Qgraphics::TCanvas* Canvas);
void __fastcall DrawData(const Qgraphics::TCanvas* Canvas);
void __fastcall DrawDownButton(const Qgraphics::TCanvas* Canvas);
void __fastcall DrawUpButton(const Qgraphics::TCanvas* Canvas);
public:
__fastcall virtual TiPlotTable(System::TObject* AOwner, Classes::TNotifyEvent AOnChange, Classes::TNotifyEvent AOnInsert, Classes::TNotifyEvent AOnRemove, Classes::TNotifyEvent AOnRename);
__fastcall virtual ~TiPlotTable(void);
int __fastcall AddColumn(AnsiString Title);
int __fastcall AddRow(void);
void __fastcall RemoveAllColumns(void);
void __fastcall RemoveAllRows(void);
void __fastcall DeleteColumn(int Index);
void __fastcall DeleteRow(int Index);
__property int RowCount = {read=GetRowCount, nodefault};
__property int ColumnCount = {read=GetColumnCount, nodefault};
__property TiPlotTableColumn* Column[int Index] = {read=GetColumn};
__property AnsiString Data[int Col][int Row] = {read=GetData, write=SetData};
__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 Qgraphics::TColor GridBackGroundColor = {read=FGridBackGroundColor, write=SetGridBackGroundColor, default=8421504};
__property bool GridBackGroundTransparent = {read=FGridBackGroundTransparent, write=SetGridBackGroundTransparent, default=0};
__property Qgraphics::TColor GridLinesColor = {read=FGridLinesColor, write=SetGridLinesColor, nodefault};
__property bool GridLinesShow = {read=FGridLinesShow, write=SetGridLinesShow, nodefault};
__property Qgraphics::TFont* DataFont = {read=FDataFont, write=SetDataFont};
__property double ColumnSpacing = {read=FColumnSpacing, write=SetColumnSpacing};
__property double RowSpacing = {read=FRowSpacing, write=SetRowSpacing};
__property int RowsMax = {read=FRowsMax, write=SetRowsMax, nodefault};
__property bool ColumnTitlesVisible = {read=FColumnTitlesVisible, write=SetColumnTitlesVisible, default=0};
__property Qgraphics::TFont* ColumnTitlesFont = {read=FColumnTitlesFont, write=SetColumnTitlesFont};
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Qiplottable */
using namespace Qiplottable;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // QiPlotTable
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -