#include <mi32/dbedit.h>
Public Types | |
| enum | LABELCOLOR { LABELCOLOR_Normal = 0, LABELCOLOR_Computed, LABELCOLOR_PK, LABELCOLOR_FK } |
| enum | MODE { MODE_SingleRecord = 0, MODE_Form, MODE_TabularView, MODE_GenView, MODE_ModalSingleRecord, MODE_NumModes } |
Public Member Functions | |
| int | CallbackAdd (void(*func)(MxdDatabaseEditorCallbackStruct *, void *), void *data, UINT32 reason) |
| void | CallbackRemove (void(*func)(MxdDatabaseEditorCallbackStruct *, void *), void *data, UINT32 reason) |
| void | CallCallbacks (MxdDatabaseEditorCallbackStruct *cbs, UINT32 reason) |
| int | Close () |
| int | Create (MDLGPARENT parent, const UNICODE *fname, INT32 pinode, ELEMTYPE elemtype, UINT32 flags=0) |
| void | DBCallbackResume (bool ReallyIgnore, bool Totally=false) |
| void | DBCallbackSuspend (bool ReallyIgnore, bool Totally=false) |
| DBEDIT () | |
| int | FindRecords (int active) |
| int | Flush () |
| int | FormClose (INT32 inode) |
| int | FormDrop (MDLGPARENT parent, INT32 inode) |
| int | FormNew (MDLGPARENT parent, INT32 *pinode, UINT32 flags) |
| int | FormOpen (INT32 inode, UINT32 flags) |
| int | GenViewCreate (DBEDIT_TINSTANCE **pinstance, INT32 TableNum, MGUI::LAYOUT_PANE_BASE &ParentPane, UINT32 flags) |
| int | GenViewCreate (DBEDIT_TINSTANCE **pinstance, INT32 TableNum, MDLGPARENT parent, MDLGPARENT *pwidget, Arg *uarg, int numuargs, UINT32 flags) |
| int | GetActiveElement () const |
| int | GetDatabaseHandle () const |
| void * | GetDBRelateHandle () const |
| ELEMTYPE | GetElemType () const |
| int | GetFileHandle () const |
| RVCINODENUM | GetInode () const |
| void | GetLabelColor (LABELCOLOR colornum, COLOR &color) |
| UINT32 | GetLabelColor (LABELCOLOR color) |
| void | GetLabelColorFromFlags (UINT32 flags, COLOR &color) |
| UINT32 | GetLabelColorFromFlags (UINT32 flags) |
| int | GetNumOpen () |
| int | GetNumTables () const |
| int | GetObjType () const |
| MDLGPARENT | GetParent () const |
| bool | GetStyleObject (RVC::STYLE &StyleObj) |
| DBEDIT_TDATA * | GetTableData (int table) const |
| DBEDIT_TINSTANCE * | GetTableInstanceHandle (INT32 TableNum, UINT32 flags) |
| bool | IsCreated () const |
| int | IsMainLevel () const |
| int | IsPinMapping () const |
| int | IsTableOpen (int TableNum) |
| int | ModalSingleRecordView (INT32 TableNum, INT32 Record, void *initvals, MDLGPARENT parent, UINT32 flags) |
| int | MultiSelectAddElement (INT32 element) |
| int | MultiSelectAddElementOld (INT32 element, ELEMTYPE elemtype) |
| int | MultiSelectEnd (UINT32 flags) |
| int | MultiSelectRemoveElement (INT32 element) |
| int | MultiSelectStart (UINT32 flags, ELEMTYPE ElemType, int BaseTable=0) |
| int | RefreshActiveElementAttachments (UINT32 flags) |
| int | RefreshAttachments (UINT32 flags) |
| int | SetActiveElement (INT32 element, ELEMTYPE elemtype, UINT32 flags, INT32 BaseTable=0) |
| void | SetBaseTable (int table) |
| void | SetDBRelateHandle (void *handle) |
| int | SetElements (ELEMTYPE ElemType, INT32 BaseTable, UINT8 *Bits, INT32 NumElements, INT32 ActiveElement, UINT32 flags) |
| void | SetParent (MDLGPARENT parent) |
| int | SetRecord (int table, INT32 record) |
| int | SetStyleNumber (int StyleNum, int RecNum) |
| int | SetStyleObject (const RVC::OBJITEM &StyleObjItem, const RVC::OBJECTNAME &StyleTableName, const void *dftstyle) |
| int | SetStyleObject (const UNICODE *fname, INT32 inode, int table, const void *dftstyle) |
| int | StyleDialogClose () |
| int | StyleDialogOpen (MDLGPARENT parent) |
| int | TableClose (INT32 TableNum) |
| int | TableCreate (MDLGPARENT parent) |
| int | TableCreate (MDLGPARENT parent, RVCTABLEINFO *info, DBFIELDINFO *finfo=0) |
| int | TableDestroy (int TableNum) |
| int | TableDrop (MDLGPARENT parent, int TableNum) |
| int | TableEditDefinition (MDLGPARENT parent, int TableNum) |
| int | TableOpen (INT32 TableNum, UINT32 flags) |
| int | UpdateDialogs () |
| int | UpdateResume (UINT32 flags) |
| void | UpdateSuspend () |
| ~DBEDIT () | |
|
|
This should go in DBEDIT.
|
|
|
Enums.
|
|
|
Constructor. Note: Since a constructor can't return an error, it only initialized the class to blank settings. You should call the Create method to actually set the thing up. |
|
|
|
|
||||||||||||||||
|
Add a callback.
|
|
||||||||||||||||
|
Remove a callback.
|
|
||||||||||||
|
Call callbacks. This should be private. Only used by friend classes. |
|
|
Close everything, but don't destroy anything.
|
|
||||||||||||||||||||||||
|
Create. You should call this after constructing the DBEDIT and check for an error. This is because a constructor can't return an error.
|
|
||||||||||||
|
Resume database callback handling. If any callbacks happened while suspended (and we're not still suspended) they will be processed.
|
|
||||||||||||
|
Suspend database callbacks. Unless ReallyIgnore is set, callbacks which happen while suspended will be queued and processed when resumed. Suspend/Resumes are refcounted.
|
|
|
Find records. Shouldn't this be private? Should only be called by friend classes. |
|
|
Force all unwritten records to be written.
|
|
|
Close a form.
|
|
||||||||||||
|
Deleta a form.
|
|
||||||||||||||||
|
Create a new, blank form.
|
|
||||||||||||
|
Open a form.
|
|
||||||||||||||||||||
|
Create a generic single record view form for a given table. This form doesn't do anything automatically. This is the MFC version of this function.
|
|
||||||||||||||||||||||||||||||||
|
Create a generic single record view form for a given table. This form doesn't do anything automatically. This is the X version of this function.
|
|
|
Get the active element number. Returns MxdDATABASE_NoElement if none active. |
|
|
Get the RVC object handle for this database.
|
|
|
Used by database relationships dialog to make sure there's only one instance of itself.
|
|
|
Get the ELEMTYPE_ for this database.
|
|
|
Get the RVC file handle for this database.
|
|
|
Get the inode of the database.
|
|
||||||||||||
|
Get the color to use for a label given a DBEDIT::LABELCOLOR.
|
|
|
Get the color to use for a label given a DBEDIT::LABELCOLOR.
|
|
||||||||||||
|
Get the color to use for a label from the DBFIELDINFO.flags.
|
|
|
Get the color to use for a label from the DBFIELDINFO.flags XXX. These should return a COLORREF, but I don't know where that's defined. I don't think I really want this to include it anyway.
|
|
|
Get the number of tables open.
|
|
|
Get the number of tables in the database.
|
|
|
Get the OTYPE of the database object.
|
|
|
Get the widget used as a parent for any dialogs we create.
|
|
|
Open the style object associated with a database. This is for use by DBEDIT_TDATA only (?). |
|
|
Get the DBEDIT_TDATA for a given table. Should this be private? < To account for table -1
|
|
||||||||||||
|
Returns the instance handle for a given table and open mode. Will create one unless passed the flag DBVIEW_NoCreateIfNotExist.
|
|
|
Determine if Create() has been done yet.
|
|
|
Returns true if this database is not under a vector or anything.
|
|
|
Returns true if the database is being used for pin-mapping. i.e., we've called SetRecord or SetElement with an ELEMTYPE of ELEMTYPE_Record. |
|
|
Returns 1 if the requested table is open in some way.
|
|
||||||||||||||||||||||||
|
Open a table in single record view as a modal dialog.
|
|
|
Add an element to the multi-Select list.
|
|
||||||||||||
|
Add an element to the multi-Select list. Don't use this version. It's only here for backwards compatibility. It's used by the wrapper function MxdDatabaseEditorSetElement().
|
|
|
Finish a multiple element selection.
|
|
|
Remove an element from the multi-Select list.
|
|
||||||||||||||||
|
Start adding elements to the element list. SetElements() is the prefered method, but isn't well suited to CAD. Call MultiSelectStart, MultiSelectAddElement as many times as you need, then MultiSelectEnd. If you want to clear the list first, pass MxdDATABASE_Clear.
|
|
|
Notify the database editor that attachments to active element may have changed. (Should be unnecessary now that we have database callbacks to deal with all this, but you can totally suspend the callbacks).
|
|
|
Notify the database editor that attachments may have changed. (Should be unnecessary now that we have database callbacks to deal with all this, but you can totally suspend the callbacks).
|
|
||||||||||||||||||||
|
Set the "active" element.
|
|
|
Set the base table number for PinMapping.
|
|
|
Used by database relationships dialog to make sure there's only one instance of itself.
|
|
||||||||||||||||||||||||||||
|
Set the list of selected elements using a bit array.
|
|
|
Set widget to use as parent for all dialogs.
|
|
||||||||||||
|
Set the current record. This just Calls SetActiveElement.
|
|
||||||||||||
|
Set the style number to edit in the style editor dialog. Also remembers internally which record this was for. Returns without doing anything if style editor isn't open.
|
|
||||||||||||||||
|
Set the style object to use for style samples.
|
|
||||||||||||||||||||
|
Set the style object to use for style samples.
|
|
|
Close the style dialog. Actually does nothing. |
|
|
Open the style editor dialog.
|
|
|
Close all instances of a given table.
|
|
|
Popup a table creation wizard. This uses a wizard to walk the user through the first few steps of creating a table.
|
|
||||||||||||||||
|
Popup a table creation dialog. This pops up the "New Table" dialog to let the user design a new table. If the optional tableinfo is supplied, it will be used for defaults and the the new table's info will be returned in it.
|
|
|
Destroy table instance (just the dialog, not the underlying table).
|
|
||||||||||||
|
Drop (delete) a table.
|
|
||||||||||||
|
popup a dialog to allow the user to edit the table's definition.
|
|
||||||||||||
|
Open a table window in DBVIEW_TabularView mode or (default) Single Record View.
|
|
|
Force all open table windows to update.
|
|
|
Similar to DBCallbackResume, but if resuming (it's refcounted so may these can be nested), this will check to see if we think we need to update everything and do so. In a perfect world, this should never be the case. CallbackResume will handle it all for us.
|
|
|
Just calls DBCallbackSuspend().
|
1.3.8-20040913