GRE_LAYER::COMPINFO Class Reference

Layer component information. More...

#include <gre/layer.h>

List of all members.

Public Types

typedef MILIST< TABLEINFOTABLEINFOLIST

Public Member Functions

void ActivateNextSelected ()
void ActivatePrevSelected ()
HTREEITEM AddTreeViewItem (GRE_MFC_TREEVIEW &TreeView, HTREEITEM hParent, HTREEITEM hInsertAfter, const UNICODE *label, GRE_MFC_TREEVIEW::IMAGEIDX ImageIdx)
HTREEITEM AddTreeViewItem (GRE_MFC_TREEVIEW &TreeView, HTREEITEM hParent, HTREEITEM hInsertAfter, const char *label, GRE_MFC_TREEVIEW::IMAGEIDX ImageIdx)
void AddTreeViewTables (GRE_MFC_TREEVIEW &TreeView, HTREEITEM hParent, HTREEITEM hInsertAfter)
 COMPINFO (GRE_LAYER *layer, int component, ELEMTYPE ElemType, bool AllowDatabase=true, bool AllowQuery=true)
 COMPINFO ()
ERRVALUE CreateDbEdit ()
void CreateForm ()
void CreateTableRows ()
void Destroy ()
ERRVALUE DlgEditTableName (INT32 TableNum)
void DropTable (INT32 TableNum)
TABLEINFOFindTableInfo (INT32 TableNum)
INT32 GetActiveElemNum () const
INT32 GetBaseTableNum () const
int GetComponent () const
DBEDITGetDbEdit ()
MDLGPARENT GetDlgParent () const
GRE_ELEMSEARCHGetElemSearch ()
ELEMTYPE GetElemType () const
Widget GetForm () const
GRE_LAYERGetLayer () const
Widget GetSelectableTB () const
TABLEINFOLISTGetTableInfoList ()
short GetTablePosnIndex (TABLEINFO::TYPE TableType) const
bool HasDbEdit () const
void HideForm ()
void Init (GRE_LAYER *layer, int component, ELEMTYPE ElemType, bool AllowDatabase, bool AllowQuery=true)
bool IsElemSelectable () const
void NotifyElementSelected ()
void OnTreeViewPopupMenu (const CPoint &mpoint, GRE_MFC_TREEVIEW &treeview)
void SelectTableElements (INT32 TableNum, int mode)
void SetActiveElemNum (INT32 ElemNum)
void SetBaseTableNum (INT32 BaseTableNum)
void SetDbEditStyleObject ()
void SetElemSelectable (bool ElemSelectable)
short SetObjMgrPos (short pindex)
ERRVALUE SetTabularView (INT32 TableNum, bool TabularView)
void ShowDefaultTable ()
short ShowForm (short pindex)
void ShowTableList (bool show)
void UpdateShowInternalTables ()
 ~COMPINFO ()


Detailed Description

Layer component information.

Definition at line 2174 of file layer.h.


Member Typedef Documentation

typedef MILIST<TABLEINFO> GRE_LAYER::COMPINFO::TABLEINFOLIST
 

End of GRE_LAYER::COMPINFO::TABLEINFO.

Definition at line 2285 of file layer.h.


Constructor & Destructor Documentation

GRE_LAYER::COMPINFO::COMPINFO  ) 
 

Default constructor for use in arrays.

GRE_LAYER::COMPINFO::COMPINFO GRE_LAYER layer,
int  component,
ELEMTYPE  ElemType,
bool  AllowDatabase = true,
bool  AllowQuery = true
 

Standard constructor.

GRE_LAYER::COMPINFO::~COMPINFO  ) 
 

Destructor.


Member Function Documentation

void GRE_LAYER::COMPINFO::ActivateNextSelected  ) 
 

Make "next" highlighted element "active".

void GRE_LAYER::COMPINFO::ActivatePrevSelected  ) 
 

Make "previous" highlighted element "active".

HTREEITEM GRE_LAYER::COMPINFO::AddTreeViewItem GRE_MFC_TREEVIEW &  TreeView,
HTREEITEM  hParent,
HTREEITEM  hInsertAfter,
const UNICODE label,
GRE_MFC_TREEVIEW::IMAGEIDX  ImageIdx
 

Add item for component to MFC TreeView.

HTREEITEM GRE_LAYER::COMPINFO::AddTreeViewItem GRE_MFC_TREEVIEW &  TreeView,
HTREEITEM  hParent,
HTREEITEM  hInsertAfter,
const char *  label,
GRE_MFC_TREEVIEW::IMAGEIDX  ImageIdx
 

Add item for component to MFC TreeView.

void GRE_LAYER::COMPINFO::AddTreeViewTables GRE_MFC_TREEVIEW &  TreeView,
HTREEITEM  hParent,
HTREEITEM  hInsertAfter
 

Add items for attribute tables to MFC TreeView.

ERRVALUE GRE_LAYER::COMPINFO::CreateDbEdit  ) 
 

Create DBEDIT instance for component.

void GRE_LAYER::COMPINFO::CreateForm  ) 
 

void GRE_LAYER::COMPINFO::CreateTableRows  ) 
 

void GRE_LAYER::COMPINFO::Destroy  ) 
 

Destroy component forms, dialogs, table lists, etc.

ERRVALUE GRE_LAYER::COMPINFO::DlgEditTableName INT32  TableNum  ) 
 

void GRE_LAYER::COMPINFO::DropTable INT32  TableNum  ) 
 

Drop (remove) specified table from database.

Parameters:
TableNum  Table number or Form inode

TABLEINFO* GRE_LAYER::COMPINFO::FindTableInfo INT32  TableNum  ) 
 

Find TABLEINFO associated with specified table number.

Parameters:
TableNum  Table number or Form inode

INT32 GRE_LAYER::COMPINFO::GetActiveElemNum  )  const [inline]
 

Get active element number for component.

Definition at line 2391 of file layer.h.

INT32 GRE_LAYER::COMPINFO::GetBaseTableNum  )  const [inline]
 

Get "base" table number for component.

Definition at line 2395 of file layer.h.

int GRE_LAYER::COMPINFO::GetComponent  )  const [inline]
 

Get component index.

Definition at line 2399 of file layer.h.

DBEDIT* GRE_LAYER::COMPINFO::GetDbEdit  ) 
 

Get DBEDIT pointer for component.

MDLGPARENT GRE_LAYER::COMPINFO::GetDlgParent  )  const [inline]
 

Get parent for dialogs.

Definition at line 2410 of file layer.h.

GRE_ELEMSEARCH& GRE_LAYER::COMPINFO::GetElemSearch  )  [inline]
 

Get element search information for component.

Definition at line 2420 of file layer.h.

ELEMTYPE GRE_LAYER::COMPINFO::GetElemType  )  const [inline]
 

Get element type.

Definition at line 2424 of file layer.h.

Widget GRE_LAYER::COMPINFO::GetForm  )  const [inline]
 

Definition at line 2415 of file layer.h.

GRE_LAYER* GRE_LAYER::COMPINFO::GetLayer  )  const [inline]
 

Get layer for component.

Definition at line 2428 of file layer.h.

Widget GRE_LAYER::COMPINFO::GetSelectableTB  )  const [inline]
 

Definition at line 2432 of file layer.h.

TABLEINFOLIST& GRE_LAYER::COMPINFO::GetTableInfoList  )  [inline]
 

Definition at line 2437 of file layer.h.

short GRE_LAYER::COMPINFO::GetTablePosnIndex TABLEINFO::TYPE  TableType  )  const
 

bool GRE_LAYER::COMPINFO::HasDbEdit  )  const [inline]
 

Determine if has 'database editor' for component.

Definition at line 2449 of file layer.h.

void GRE_LAYER::COMPINFO::HideForm  ) 
 

void GRE_LAYER::COMPINFO::Init GRE_LAYER layer,
int  component,
ELEMTYPE  ElemType,
bool  AllowDatabase,
bool  AllowQuery = true
 

bool GRE_LAYER::COMPINFO::IsElemSelectable  )  const [inline]
 

Definition at line 2466 of file layer.h.

void GRE_LAYER::COMPINFO::NotifyElementSelected  ) 
 

Notify that elements have been selected.

void GRE_LAYER::COMPINFO::OnTreeViewPopupMenu const CPoint &  mpoint,
GRE_MFC_TREEVIEW &  treeview
 

void GRE_LAYER::COMPINFO::SelectTableElements INT32  TableNum,
int  mode
 

Select elements with given association to table.

Parameters:
TableNum  Table number
mode  XXX change to enum

void GRE_LAYER::COMPINFO::SetActiveElemNum INT32  ElemNum  )  [inline]
 

Set active element number for component.

Definition at line 2489 of file layer.h.

void GRE_LAYER::COMPINFO::SetBaseTableNum INT32  BaseTableNum  )  [inline]
 

Set "base" table number for component.

Definition at line 2494 of file layer.h.

void GRE_LAYER::COMPINFO::SetDbEditStyleObject  ) 
 

void GRE_LAYER::COMPINFO::SetElemSelectable bool  ElemSelectable  ) 
 

short GRE_LAYER::COMPINFO::SetObjMgrPos short  pindex  ) 
 

Set the position of the Object Manager.

Returns:
Next position after item.

ERRVALUE GRE_LAYER::COMPINFO::SetTabularView INT32  TableNum,
bool  TabularView
 

Set whether table is shown in single-record or tabular view.

void GRE_LAYER::COMPINFO::ShowDefaultTable  ) 
 

short GRE_LAYER::COMPINFO::ShowForm short  pindex  ) 
 

Parameters:
pindex  Position index

void GRE_LAYER::COMPINFO::ShowTableList bool  show  ) 
 

void GRE_LAYER::COMPINFO::UpdateShowInternalTables  ) 
 

Update for change to "show internal table" status.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:19:48 2004 for TNTsdk by  doxygen 1.3.8-20040913