📄 sctvopt.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'SctVOpt.pas' rev: 3.00
#ifndef SctVOptHPP
#define SctVOptHPP
#include <Windows.hpp>
#include <SctRep.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include <SctVar.hpp>
#include <PageMan.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include <StdCtrls.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <SysInit.hpp>
#include <System.hpp>
//-- user supplied -----------------------------------------------------------
namespace Sctvopt
{
//-- type declarations -------------------------------------------------------
typedef Messages::TWMNoParams TAceRefreshVarLists;
enum SctVOpt__1 { dsoUpdatingVars, dsoRefreshLists };
typedef Set<SctVOpt__1, dsoUpdatingVars, dsoRefreshLists> TAceDSOptionsState;
class DELPHICLASS TSctDSVariableOptions;
class PASCALIMPLEMENTATION TSctDSVariableOptions : public Forms::TForm
{
typedef Forms::TForm inherited;
__published:
Extctrls::TPanel* DataSourcePanel;
Extctrls::TPanel* Panel6;
Extctrls::TPanel* FieldsPanel;
Stdctrls::TListBox* flist;
Menus::TPopupMenu* clistPopup;
Menus::TMenuItem* SelectAll1;
Menus::TMenuItem* Delete1;
Menus::TPopupMenu* flistpopup;
Menus::TMenuItem* flistSelectAll;
Menus::TPopupMenu* ExprListPopup;
Menus::TMenuItem* ExprDelete;
Menus::TMenuItem* ExprSelectAll;
Menus::TPopupMenu* TotalListPopup;
Menus::TMenuItem* TotalDelete;
Menus::TMenuItem* TotalSelectAll;
Extctrls::TPanel* Panel1;
Extctrls::TPanel* Panel2;
Menus::TMenuItem* flistAdd;
Extctrls::TPanel* totalpanel;
Extctrls::TPanel* ButtonPanel;
Stdctrls::TButton* Button1;
Stdctrls::TListBox* TotalVarList;
Extctrls::TPanel* TotalVarPanel;
Grids::TStringGrid* DataSourceList;
Stdctrls::TButton* Button2;
Menus::TMenuItem* ExprAdd;
Stdctrls::TLabel* TotalLabel;
Stdctrls::TLabel* totalLevelLabel;
Stdctrls::TLabel* TotalVariableLabel;
Stdctrls::TLabel* Label1;
Menus::TMenuItem* SelectAllUnused1;
Menus::TMenuItem* TotalSelectAllUnused;
Menus::TMenuItem* ExprUnused;
Extctrls::TPanel* DataSourceListPanel;
Stdctrls::TLabel* DataSourceLabel;
Stdctrls::TLabel* AutoLabel;
Stdctrls::TLabel* DSLevelLabel;
Menus::TPopupMenu* DSListPopup;
Menus::TMenuItem* RevertDsgItem;
Menus::TMenuItem* String1;
Menus::TMenuItem* Integer1;
Menus::TMenuItem* Float1;
Menus::TMenuItem* Boolean1;
Menus::TMenuItem* DateTime1;
Menus::TMenuItem* Blob1;
Menus::TMenuItem* Memo1;
Menus::TMenuItem* Graphic1;
Extctrls::TPanel* DBVarPanel;
Stdctrls::TListBox* DBVarList;
Extctrls::TPanel* Panel5;
Stdctrls::TLabel* DBLabel;
Stdctrls::TLabel* DBSourceLabel;
Stdctrls::TLabel* DBFieldLabel;
Stdctrls::TLabel* DBLevelLabel;
Stdctrls::TLabel* Label2;
Menus::TPopupMenu* DBListPopup;
Menus::TMenuItem* DBDelete;
Menus::TMenuItem* DBSelectUnused;
Menus::TMenuItem* DBSelectAll;
Menus::TMenuItem* Add1;
Extctrls::TPanel* ExprPanel;
Extctrls::TPanel* ExprVarPanel;
Stdctrls::TLabel* ExprLevelLabel;
Stdctrls::TLabel* ExprLabel;
Stdctrls::TLabel* ExprEventLabel;
Stdctrls::TLabel* ExprTypeLabel;
Stdctrls::TListBox* ExprVarList;
Buttons::TSpeedButton* DataSourceZoom;
Buttons::TSpeedButton* ExprZoom;
Buttons::TSpeedButton* TotalZoom;
Buttons::TSpeedButton* DbVarZoom;
Buttons::TSpeedButton* FieldZoom;
Extctrls::TPanel* VarPanel;
Extctrls::TPanel* Panel3;
Buttons::TSpeedButton* VarZoom;
Extctrls::TPanel* Panel7;
Stdctrls::TListBox* clist;
Buttons::TSpeedButton* ZOOMIN;
Buttons::TSpeedButton* ZOOMOUT;
Stdctrls::TButton* Button3;
Menus::TMenuItem* DeleteDsgItem;
Menus::TMenuItem* AddDsgItem;
void __fastcall FormShow(System::TObject* Sender);
void __fastcall FormCreate(System::TObject* Sender);
void __fastcall FormDestroy(System::TObject* Sender);
void __fastcall flistDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
void __fastcall flistDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState
State, bool &Accept);
void __fastcall clistDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
void __fastcall clistDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState
State, bool &Accept);
void __fastcall TotalVarListDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y
, Controls::TDragState State, bool &Accept);
void __fastcall TotalVarListDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y
);
void __fastcall Button1Click(System::TObject* Sender);
void __fastcall ExprSelectAllClick(System::TObject* Sender);
void __fastcall TotalSelectAllClick(System::TObject* Sender);
void __fastcall flistSelectAllClick(System::TObject* Sender);
void __fastcall SelectAll1Click(System::TObject* Sender);
void __fastcall Delete1Click(System::TObject* Sender);
void __fastcall flistAddClick(System::TObject* Sender);
void __fastcall TotalDeleteClick(System::TObject* Sender);
void __fastcall ExprDeleteClick(System::TObject* Sender);
void __fastcall TotalVarListClick(System::TObject* Sender);
void __fastcall ExprVarListClick(System::TObject* Sender);
void __fastcall clistClick(System::TObject* Sender);
void __fastcall FormResize(System::TObject* Sender);
void __fastcall clistDrawItem(Controls::TWinControl* Control, int Index, const Windows::TRect &Rect
, Stdctrls::TOwnerDrawState State);
void __fastcall DataSourceListDrawCell(System::TObject* Sender, int Col, int Row, const Windows::TRect
&Rect, Grids::TGridDrawState State);
void __fastcall DataSourceListClick(System::TObject* Sender);
void __fastcall DataSourcePanelResize(System::TObject* Sender);
void __fastcall Button2Click(System::TObject* Sender);
void __fastcall ExprAddClick(System::TObject* Sender);
void __fastcall clistPopupPopup(System::TObject* Sender);
void __fastcall flistpopupPopup(System::TObject* Sender);
void __fastcall ExprListPopupPopup(System::TObject* Sender);
void __fastcall TotalListPopupPopup(System::TObject* Sender);
void __fastcall flistClick(System::TObject* Sender);
void __fastcall TotalVarListDrawItem(Controls::TWinControl* Control, int Index, const Windows::TRect
&Rect, Stdctrls::TOwnerDrawState State);
void __fastcall ExprVarListDrawItem(Controls::TWinControl* Control, int Index, const Windows::TRect
&Rect, Stdctrls::TOwnerDrawState State);
void __fastcall SelectAllUnused1Click(System::TObject* Sender);
void __fastcall TotalSelectAllUnusedClick(System::TObject* Sender);
void __fastcall ExprUnusedClick(System::TObject* Sender);
void __fastcall flistDrawItem(Controls::TWinControl* Control, int Index, const Windows::TRect &Rect
, Stdctrls::TOwnerDrawState State);
void __fastcall RevertDsgItemClick(System::TObject* Sender);
void __fastcall DSListPopupPopup(System::TObject* Sender);
void __fastcall DBVarListClick(System::TObject* Sender);
void __fastcall DBVarListDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState
State, bool &Accept);
void __fastcall DBVarListDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
void __fastcall DBVarListDrawItem(Controls::TWinControl* Control, int Index, const Windows::TRect &
Rect, Stdctrls::TOwnerDrawState State);
void __fastcall DBDeleteClick(System::TObject* Sender);
void __fastcall DBSelectUnusedClick(System::TObject* Sender);
void __fastcall DBSelectAllClick(System::TObject* Sender);
void __fastcall DBListPopupPopup(System::TObject* Sender);
void __fastcall Add1Click(System::TObject* Sender);
void __fastcall DataSourceZoomClick(System::TObject* Sender);
void __fastcall FieldZoomClick(System::TObject* Sender);
void __fastcall DataSourceListMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState
Shift, int X, int Y);
void __fastcall Button3Click(System::TObject* Sender);
void __fastcall DeleteDsgItemClick(System::TObject* Sender);
void __fastcall AddDsgItemClick(System::TObject* Sender);
private:
Classes::TList* DsgList;
Classes::TList* ExprList;
Classes::TList* TotalList;
Classes::TList* DBList;
TAceDSOptionsState FDSOptionsState;
bool DataSourceZoomed;
bool ExprZoomed;
bool TotalZoomed;
bool DBVarZoomed;
bool FieldZoomed;
bool VarZoomed;
void __fastcall UpdateDSG(Sctrep::TSctDataSourceGuide* Dsg);
void __fastcall RefreshLists(void);
bool __fastcall VarUsed(Sctvar::TSctVar* MyVar);
void __fastcall SelectComponent(Classes::TComponent* Comp);
void __fastcall UnSelectStuff(System::TObject* Component);
void __fastcall SelectUnused(Stdctrls::TListBox* List);
MESSAGE void __fastcall AceRefreshVarLists(Messages::TWMNoParams &Message);
void __fastcall FillDsgVarList(Sctrep::TSctDataSourceGuide* DSG, Classes::TList* List);
void __fastcall FillDsgFieldList(Sctrep::TSctDataSourceGuide* DSG, Classes::TStringList* List);
void __fastcall UpdateDsgList(void);
void __fastcall UpdateCFList(void);
void __fastcall UpdateDBVarList(void);
void __fastcall UpdateExprList(void);
void __fastcall UpdateTotalList(void);
Sctrep::TSctGrouppage* __fastcall GetGroupPage(void);
bool __fastcall DsgOk(void);
System::AnsiString __fastcall GetFullDSName();
Sctrep::TSctDataSourceGuide* __fastcall GetDataSourceGuide(System::AnsiString FullDSName);
Sctvar::TSctDBVar* __fastcall GetDbVar(Sctrep::TSctDataSourceGuide* DSG, System::AnsiString FieldName
);
void __fastcall AddDbVar(Sctrep::TSctDataSourceGuide* DSG, System::AnsiString FieldName);
void __fastcall DeleteVar(Sctvar::TSctVar* MyVar);
void __fastcall CListDelete(void);
void __fastcall FListDefine(void);
void __fastcall Optimize(void);
Sctvar::TSctVar* __fastcall GetVar(System::AnsiString VarName);
void __fastcall AddTotal(Stdctrls::TListBox* List);
void __fastcall AddManualDBVar(Stdctrls::TListBox* List);
void __fastcall DeleteETList(Stdctrls::TListBox* ListBox);
void __fastcall SetMyButton(Buttons::TSpeedButton* btn, System::TObject* Sender, bool &Zoomed);
public:
Pageman::TSctPageManager* PageManager;
bool __fastcall UpdateVars(void);
void __fastcall ObjectChanged(void);
public:
/* TCustomForm.Create */ __fastcall virtual TSctDSVariableOptions(Classes::TComponent* AOwner) : Forms::
TForm(AOwner) { }
/* TCustomForm.CreateNew */ __fastcall TSctDSVariableOptions(Classes::TComponent* AOwner, int Dummy
) : Forms::TForm(AOwner, Dummy) { }
/* TCustomForm.Destroy */ __fastcall virtual ~TSctDSVariableOptions(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TSctDSVariableOptions(HWND ParentWindow) : Forms::TForm(
ParentWindow) { }
};
//-- var, const, procedure ---------------------------------------------------
#define Ace_RefreshVarLists (Word)(1024)
extern PACKAGE TSctDSVariableOptions* SctDSVariableOptions;
} /* namespace Sctvopt */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Sctvopt;
#endif
//-- end unit ----------------------------------------------------------------
#endif // SctVOpt
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -