📄 wwdatainspector.hpp
字号:
// CodeGear C++Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Wwdatainspector.pas' rev: 11.00
#ifndef WwdatainspectorHPP
#define WwdatainspectorHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Grids.hpp> // Pascal unit
#include <Db.hpp> // Pascal unit
#include <Dbtables.hpp> // Pascal unit
#include <Dbctrls.hpp> // Pascal unit
#include <Wwstr.hpp> // Pascal unit
#include <Stdctrls.hpp> // Pascal unit
#include <Wwcommon.hpp> // Pascal unit
#include <Wwdbedit.hpp> // Pascal unit
#include <Wwpict.hpp> // Pascal unit
#include <Wwsystem.hpp> // Pascal unit
#include <Wwdbdatetimepicker.hpp> // Pascal unit
#include <Wwdbcomb.hpp> // Pascal unit
#include <Wwdblook.hpp> // Pascal unit
#include <Wwdotdot.hpp> // Pascal unit
#include <Wwframe.hpp> // Pascal unit
#include <Wwriched.hpp> // Pascal unit
#include <Extctrls.hpp> // Pascal unit
#include <Wwbitmap.hpp> // Pascal unit
#include <Wwpaintoptions.hpp> // Pascal unit
#include <Imm.hpp> // Pascal unit
#include <Mask.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Wwdatainspector
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TwwInspectorHintWindow;
class PASCALIMPLEMENTATION TwwInspectorHintWindow : public Controls::THintWindow
{
typedef Controls::THintWindow inherited;
protected:
virtual void __fastcall Paint(void);
public:
Db::TField* Field;
bool WordWrap;
Classes::TAlignment Alignment;
bool CenterVertically;
public:
#pragma option push -w-inl
/* THintWindow.Create */ inline __fastcall virtual TwwInspectorHintWindow(Classes::TComponent* AOwner) : Controls::THintWindow(AOwner) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TCustomControl.Destroy */ inline __fastcall virtual ~TwwInspectorHintWindow(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TwwInspectorHintWindow(HWND ParentWindow) : Controls::THintWindow(ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TwwDataInspectorDataLink;
class DELPHICLASS TwwDataInspector;
class DELPHICLASS TwwInspectorItem;
typedef void __fastcall (__closure *TwwInspectorDrawDataCellEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem, bool ASelected, const Types::TRect &ACellRect, bool &DefaultDrawing);
typedef void __fastcall (__closure *TwwInspectorDrawICellEvent)(TwwDataInspector* Sender, int ACol, const Types::TRect &ACellRect, bool &DefaultDrawing);
typedef void __fastcall (__closure *TwwInspectorCalcCustomEditEvent)(TwwDataInspector* Sender, TwwInspectorItem* Item, Controls::TWinControl* CustomEdit, bool &AllowCustomEdit);
#pragma option push -b-
enum TwwDataInspectorOption { ovColumnResize, ovRowResize, ovTabExits, ovEnterToTab, ovHighlightActiveRow, ovHideVertDataLines, ovCenterCaptionVert, ovTabToVisibleOnly, ovShowTreeLines, ovShowCaptionHints, ovShowCellHints, ovFillNonCellArea, ovActiveRecord3DLines, ovAllowInsert, ovHideCaptionColumn, ovHideVertFixedLines, ovUseOwnBackgroundColors };
#pragma option pop
typedef Set<TwwDataInspectorOption, ovColumnResize, ovUseOwnBackgroundColors> TwwDataInspectorOptions;
class DELPHICLASS TwwInspectorCollection;
class PASCALIMPLEMENTATION TwwInspectorCollection : public Classes::TCollection
{
typedef Classes::TCollection inherited;
public:
TwwInspectorItem* operator[](int Index) { return Items[Index]; }
private:
TwwInspectorItem* FParentItem;
HIDESBASE TwwInspectorItem* __fastcall GetItem(int Index);
HIDESBASE void __fastcall SetItem(int Index, TwwInspectorItem* Value);
protected:
DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
virtual void __fastcall Update(Classes::TCollectionItem* Item);
public:
Classes::TComponent* Control;
__property TwwInspectorItem* ParentItem = {read=FParentItem};
__fastcall TwwInspectorCollection(Classes::TComponent* Control);
__fastcall virtual ~TwwInspectorCollection(void);
HIDESBASE TwwInspectorItem* __fastcall Add(void);
HIDESBASE TwwInspectorItem* __fastcall Insert(int index);
void __fastcall SaveToStream(Classes::TStream* s);
void __fastcall LoadFromStream(Classes::TStream* s);
void __fastcall SaveToFile(const AnsiString FileName);
void __fastcall LoadFromFile(const AnsiString FileName);
__property TwwInspectorItem* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
};
typedef void __fastcall (__closure *TwwInspectorFieldChangedEvent)(TwwDataInspector* Sender, Db::TField* Field);
typedef void __fastcall (__closure *TwwInspectorItemChanged)(TwwDataInspector* Sender, TwwInspectorItem* Item, AnsiString NewValue);
typedef void __fastcall (__closure *TwwInspectorCreateDTPEvent)(TwwDataInspector* Sender, Wwdbdatetimepicker::TwwDBCustomDateTimePicker* ADateTimePicker);
typedef void __fastcall (__closure *TwwInspectorCreateComboEvent)(TwwDataInspector* Sender, Wwdbcomb::TwwDBComboBox* Combo);
#pragma option push -b-
enum TwwDataInspectorLineStyle { ovNoLines, ovDottedLine, ovLight3DLine, ovDark3DLine, ovButtonLine };
#pragma option pop
class DELPHICLASS TwwInspectorButtonOptions;
class PASCALIMPLEMENTATION TwwInspectorButtonOptions : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Graphics::TBitmap* FExpandGlyph;
Graphics::TBitmap* FCollapseGlyph;
Controls::TWinControl* Control;
bool FTransparentGlyphs;
void __fastcall SetExpandGlyph(Graphics::TBitmap* Value);
void __fastcall SetCollapseGlyph(Graphics::TBitmap* Value);
public:
__fastcall TwwInspectorButtonOptions(Classes::TComponent* AOwner);
__fastcall virtual ~TwwInspectorButtonOptions(void);
__published:
__property Graphics::TBitmap* ExpandGlyph = {read=FExpandGlyph, write=SetExpandGlyph};
__property Graphics::TBitmap* CollapseGlyph = {read=FCollapseGlyph, write=SetCollapseGlyph};
__property bool TransparentGlyphs = {read=FTransparentGlyphs, write=FTransparentGlyphs, default=0};
};
#pragma option push -b-
enum TwwInspectorTabSetFocusStyle { itsPreserveActiveItem, itsResetActiveItem };
#pragma option pop
typedef void __fastcall (__closure *TwwInspectorDrawCaptionEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem, bool ASelected, const Types::TRect &ACellRect, Types::TRect &ACaptionRect, bool &DefaultTextDrawing);
typedef void __fastcall (__closure *TwwInspectorNotifyEvent)(TwwDataInspector* Sender);
typedef void __fastcall (__closure *TwwInspectorBeforeSelectCellEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem, bool &CanSelect);
typedef void __fastcall (__closure *TwwInspectorAfterSelectCellEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem);
typedef void __fastcall (__closure *TwwInspectorCanExpandEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem, bool &CanExpand);
typedef void __fastcall (__closure *TwwInspectorCanCollapseEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem, bool &CanCollapse);
typedef void __fastcall (__closure *TwwInspectorExpandedEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem);
typedef void __fastcall (__closure *TwwInspectorCollapsedEvent)(TwwDataInspector* Sender, TwwInspectorItem* ObjItem);
typedef void __fastcall (__closure *TwwInspectorPaintTextEvent)(TwwDataInspector* Sender, TwwInspectorItem* Item, AnsiString &PaintText);
typedef void __fastcall (__closure *TwwInspectorValidationError)(TwwDataInspector* Sender, TwwInspectorItem* Item, AnsiString &Msg, bool &DoDefault);
typedef void __fastcall (__closure *TwwCreateInspectorHintWindowEvent)(System::TObject* Sender, TwwInspectorHintWindow* HintWindow, Db::TField* AField, const Types::TRect &R, bool &WordWrap, int &MaxWidth, int &MaxHeight, bool &DoDefault);
class DELPHICLASS TwwInspectorIndicatorRow;
class PASCALIMPLEMENTATION TwwInspectorIndicatorRow : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
bool FEnabled;
AnsiString FCaption;
int FHeight;
Graphics::TColor FColor;
Classes::TAlignment FTextAlignment;
void __fastcall SetColor(Graphics::TColor Value);
void __fastcall SetEnabled(bool Value);
void __fastcall SetHeight(int Value);
void __fastcall SetCaption(AnsiString Value);
void __fastcall SetTextAlignment(Classes::TAlignment Value);
public:
TwwDataInspector* Inspector;
__fastcall TwwInspectorIndicatorRow(Classes::TComponent* Owner);
void __fastcall Invalidate(void);
__published:
__property Classes::TAlignment TextAlignment = {read=FTextAlignment, write=SetTextAlignment, default=0};
__property Graphics::TColor Color = {read=FColor, write=SetColor, default=-16777201};
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=0};
__property AnsiString Caption = {read=FCaption, write=SetCaption};
__property int Height = {read=FHeight, write=SetHeight, default=0};
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TwwInspectorIndicatorRow(void) { }
#pragma option pop
};
typedef void __fastcall (__closure *TwwInspectorItemCallback)(TwwInspectorItem* obj, void * UserData, bool &AContinue);
class PASCALIMPLEMENTATION TwwDataInspector : public Grids::TCustomGrid
{
typedef Grids::TCustomGrid inherited;
private:
bool SkipUpdateCustomControlInFocus;
int NewMouseRow;
Controls::TImageList* FIndicators;
TwwInspectorDrawDataCellEvent FOnDrawDataCell;
TwwInspectorDrawICellEvent FOnDrawIndicatorCell;
Classes::TNotifyEvent FOnTopLeftChanged;
TwwInspectorCalcCustomEditEvent FOnCalcCustomEdit;
TwwDataInspectorOptions FOptions;
Wwpaintoptions::TwwGridPaintOptions* FPaintOptions;
Controls::TControl* FDesigner;
TwwInspectorCollection* FItems;
TwwDataInspectorDataLink* FDataLink;
int FCaptionWidth;
Graphics::TColor FInactiveFocusColor;
AnsiString FEditText;
int FSizingIndex;
int FSizingPos;
int FSizingOfs;
Wwdbedit::TwwValidateEvent FOnCheckValue;
TwwInspectorFieldChangedEvent FOnFieldChanged;
TwwInspectorItemChanged FOnItemChanged;
bool FReadOnly;
int FCaptionIndent;
Wwdbdatetimepicker::TwwDBCustomDateTimePicker* FDateTimePicker;
Wwdbcomb::TwwDBComboBox* FCombo;
TwwInspectorCreateDTPEvent FOnCreateDateTimePicker;
TwwInspectorCreateComboEvent FOnCreateDefaultCombo;
bool FPictureMaskFromDataSet;
int FDefaultRowHeight;
Graphics::TFont* FCaptionFont;
TwwDataInspectorLineStyle FLineStyleData;
TwwDataInspectorLineStyle FLineStyleCaption;
Graphics::TColor FDottedLineColor;
int FUpdateCount;
bool InvalidateInEndUpdate;
TwwInspectorButtonOptions* FButtonOptions;
TwwInspectorTabSetFocusStyle FSetFocusTabStyle;
TwwInspectorDrawCaptionEvent FOnDrawCaptionCell;
TwwInspectorNotifyEvent FOnBeforePaint;
Grids::TGetEditEvent FOnGetEditMask;
TwwInspectorBeforeSelectCellEvent FOnBeforeSelectCell;
TwwInspectorAfterSelectCellEvent FOnAfterSelectCell;
TwwInspectorCanExpandEvent FOnCanExpand;
TwwInspectorCanCollapseEvent FOnCanCollapse;
TwwInspectorExpandedEvent FOnExpanded;
TwwInspectorCollapsedEvent FOnCollapsed;
TwwInspectorPaintTextEvent FOnCalcDataPaintText;
TwwInspectorValidationError FOnValidationErrorUsingMask;
TwwCreateInspectorHintWindowEvent FOnCreateHintWindow;
bool TextIsSame;
int LastDefaultRowHeight;
bool SkipErase;
bool CheckRowCount;
Graphics::TCanvas* FPaintCanvas;
Graphics::TBitmap* FPaintBitmap;
bool UseTempCanvas;
bool OldDesigning;
TwwInspectorItem* LastActiveItem;
TwwInspectorItem* FActiveItem;
TwwInspectorItem* FTopItem;
int FMinRowHeight;
int OldTopRow;
bool DoBeginUpdateInSelectCell;
#pragma pack(push,1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -