wwdbnavigator.hpp
来自「胜天进销存源码,国产优秀的进销存」· HPP 代码 · 共 390 行 · 第 1/2 页
HPP
390 行
// CodeGear C++Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Wwdbnavigator.pas' rev: 11.00
#ifndef WwdbnavigatorHPP
#define WwdbnavigatorHPP
#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 <Wwdialog.hpp> // Pascal unit
#include <Db.hpp> // Pascal unit
#include <Buttons.hpp> // Pascal unit
#include <Extctrls.hpp> // Pascal unit
#include <Wwcommon.hpp> // Pascal unit
#include <Typinfo.hpp> // Pascal unit
#include <Dbctrls.hpp> // Pascal unit
#include <Dbconsts.hpp> // Pascal unit
#include <Wwintl.hpp> // Pascal unit
#include <Wwspeedbutton.hpp> // Pascal unit
#include <Wwcollection.hpp> // Pascal unit
#include <Wwclearpanel.hpp> // Pascal unit
#include <Wwframe.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Wwdbnavigator
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TwwNavDataLink;
class DELPHICLASS TwwDBNavigator;
class DELPHICLASS TwwNavButtons;
class DELPHICLASS TwwNavButton;
#pragma option push -b-
enum TwwNavButtonStyle { nbsFirst, nbsPrior, nbsNext, nbsLast, nbsInsert, nbsDelete, nbsEdit, nbsPost, nbsCancel, nbsRefresh, nbsPriorPage, nbsNextPage, nbsSaveBookmark, nbsRestoreBookmark, nbsFilterDialog, nbsRecordViewDialog, nbsLocateDialog, nbsSearchDialog, nbsCustom };
#pragma option pop
#pragma option push -b-
enum TwwUpdateCause { usDataChanged, usEditingChanged, usActiveChanged, usOther };
#pragma option pop
class PASCALIMPLEMENTATION TwwNavButtons : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
public:
TwwNavButton* operator[](int Index) { return Items[Index]; }
private:
Controls::TControl* FDesigner;
TwwDBNavigator* FNavigator;
int FUpdateLock;
protected:
virtual void __fastcall AddButton(const TwwNavButton* Button);
virtual void __fastcall RemoveButton(const TwwNavButton* Button);
virtual void __fastcall BeginUpdate(void);
virtual void __fastcall EndUpdate(void);
virtual TwwNavButton* __fastcall BottommostButton(void);
virtual TwwNavButton* __fastcall FindButtonAtPos(TwwNavButton* IgnoreButton, int x, int y);
virtual bool __fastcall IgnoreButton(TwwNavButton* Button);
virtual TwwNavButton* __fastcall RightmostButton(void);
void __fastcall MakeButtonsVisible(void);
virtual void __fastcall MakeVisible(TwwNavButtonStyle AStyle, bool CanCreate);
virtual void __fastcall MakeInvisible(TwwNavButtonStyle AStyle);
virtual int __fastcall GetCount(void);
virtual TwwNavButton* __fastcall GetItems(int Index);
virtual TwwDBNavigator* __fastcall GetNavigator(void);
virtual TwwNavButton* __fastcall GetVisibleButton(int Index);
virtual int __fastcall GetVisibleCount(void);
public:
__fastcall TwwNavButtons(TwwDBNavigator* ANav);
__fastcall virtual ~TwwNavButtons(void);
HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);
int __stdcall _AddRef(void);
int __stdcall _Release(void);
Wwcollection::_di_IwwCollectionItem __fastcall IwwCollection_Add();
Wwcollection::_di_IwwCollectionItem __fastcall GetItem(int Index);
void __fastcall SetDesigner(Controls::TControl* Value);
virtual TwwNavButton* __fastcall Add(TwwNavButtonStyle AStyle = (TwwNavButtonStyle)(0x12), Classes::TComponent* AComponent = (Classes::TComponent*)(0x0));
virtual void __fastcall AddInfoPowerDialogs(void);
virtual void __fastcall Clear(void);
virtual void __fastcall CreateDefaultButtons(void);
virtual void __fastcall UpdateButtonsRect(void);
virtual void __fastcall UpdateButtonsPos(void);
virtual void __fastcall UpdateButtonsState(TwwUpdateCause Cause);
__property int Count = {read=GetCount, nodefault};
__property TwwDBNavigator* Navigator = {read=GetNavigator};
__property TwwNavButton* Items[int Index] = {read=GetItems/*, default*/};
__property int UpdateLock = {read=FUpdateLock, nodefault};
__property TwwNavButton* VisibleButtons[int Index] = {read=GetVisibleButton};
__property int VisibleCount = {read=GetVisibleCount, nodefault};
private:
void *__IwwCollection; /* Wwcollection::IwwCollection */
void *__IwwNavButtons; /* Wwcollection::IwwNavButtons */
public:
operator IwwNavButtons*(void) { return (IwwNavButtons*)&__IwwNavButtons; }
operator IwwCollection*(void) { return (IwwCollection*)&__IwwCollection; }
operator IInterface*(void) { return (IInterface*)&__IwwNavButtons; }
};
#pragma option push -b-
enum TwwNavAutoSizeStyle { asSizeNavigator, asSizeNavButtons, asNone };
#pragma option pop
#pragma option push -b-
enum TwwNavLayout { nlHorizontal, nlVertical };
#pragma option pop
#pragma option push -b-
enum TwwNavOption { noConfirmDelete, noUseInternationalText };
#pragma option pop
typedef Set<TwwNavOption, noConfirmDelete, noUseInternationalText> TwwNavOptions;
class DELPHICLASS TwwNavRepeatInterval;
class PASCALIMPLEMENTATION TwwNavRepeatInterval : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
int FInitialDelay;
int FRepeatInterval;
public:
__fastcall TwwNavRepeatInterval(void);
__published:
__property int InitialDelay = {read=FInitialDelay, write=FInitialDelay, nodefault};
__property int Interval = {read=FRepeatInterval, write=FRepeatInterval, nodefault};
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TwwNavRepeatInterval(void) { }
#pragma option pop
};
typedef Set<TwwNavButtonStyle, nbsFirst, nbsCustom> TwwNavButtonNavStylesEx;
class PASCALIMPLEMENTATION TwwDBNavigator : public Wwclearpanel::TwwCustomTransparentPanel
{
typedef Wwclearpanel::TwwCustomTransparentPanel inherited;
private:
TwwNavButtons* FButtons;
Db::TDataLink* FDataLink;
Classes::TList* FBookmarks;
TwwNavAutoSizeStyle FAutosizeStyle;
Db::TDataSource* FDataSource;
bool FFlat;
Controls::TImageList* FImageList;
TwwNavLayout FLayout;
int FMoveBy;
TwwNavOptions FOptions;
TwwNavRepeatInterval* FRepeatInterval;
bool InPaint;
bool FTransparentClearsBackground;
bool FDisableThemes;
MESSAGE void __fastcall CMControlChange(Controls::TCMControlChange &Message);
HIDESBASE MESSAGE void __fastcall CMControlListChange(Controls::TCMControlListChange &Message);
HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
protected:
virtual void __fastcall ControlListChange(const Controls::TControl* Control, const bool Inserting);
virtual void __fastcall WndProc(Messages::TMessage &Message);
virtual void __fastcall AlignControls(Controls::TControl* Control, Types::TRect &Rect);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
virtual void __fastcall ReadState(Classes::TReader* Reader);
virtual void __fastcall DataChanged(void);
virtual void __fastcall EditingChanged(void);
virtual void __fastcall ActiveChanged(void);
virtual bool __fastcall GetShowHint(void);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?