May have related data to the main table being edited. There will be one of these per dialog editing a record except possibly if the only controls on the dialog are lists of records. This copy of the class implements PowerPlant linkField methods. dbEditHelper will be reimplemented for each GUI platform and has linkField classes for that GUI's different control types.
|
platform-specific links |
| void | linkField (dbField &, const dbGUIAdapterFactoryPP &) |
| void | linkField (dbField *, const dbGUIAdapterFactoryPP &) |
| void | linkPickField (dbField &, const dbGUIAdapterFactoryPP &, dbRelRef *pickVia=0) |
| void | linkPickField (dbField *, const dbGUIAdapterFactoryPP &, dbRelRef *pickVia=0) |
USER-HOOK messages as alternative to subclassing and overriding the hook methods |
| void | msgEnteringAboutToLoad (OOFmsgT) |
| OOFmsgT | msgEnteringAboutToLoad () |
| void | msgEnteringAfterLoad (OOFmsgT) |
| OOFmsgT | msgEnteringAfterLoad () |
| void | msgCanSaveRecord (OOFmsgT) |
| OOFmsgT | msgCanSaveRecord () |
| void | msgConfirmSave (OOFmsgT) |
| OOFmsgT | msgConfirmSave () |
USER-HOOKS override the following virtual methods as documented in guihooks.htm |
| virtual void | EnteringAboutToLoad () |
| virtual void | EnteringAfterLoad () |
| virtual bool | CanSaveRecord () |
| virtual YNCancelT | ConfirmSave () |
| | Ask user to confirm if should save or not, allowing cancel.
|
| virtual void | ChangedCurrentField () |
Public Member Functions |
| | dbEditHelper (dbTable *) |
| virtual void * | currentGUItarget () const |
| void | linkAdapter (dbField &, dbGUIAdapter *adoptedAdapter, bool becomeReadOnly=false) |
| void | linkAdapter (dbField *, dbGUIAdapter *adoptedAdapter, bool becomeReadOnly=false) |
| void | linkPickAdapter (dbField &, dbGUIAdapter *adoptedAdapter, bool becomeReadOnly=false, dbRelRef *pickVia=0) |
| void | linkPickAdapter (dbField *, dbGUIAdapter *adoptedAdapter, bool becomeReadOnly=false, dbRelRef *pickVia=0) |
| | Link an Adapter to control used to select from lookup table.
|
| virtual bool | receiveMsg (OOFmsgT msg, unsigned long senderDefined) |
| | The default receiveMsg behaviour is to delete yourself when the broadcaster closes.
|
| void | adoptLink (dbFieldLink *adoptedLink) |
| dbFieldLink * | getLink (void *) |
| virtual dbTable * | table () const |
| bool | isDirty () |
| | Check if helper is dirty, implied by mMainTable being dirty.
|
| void | copyLinksToFields () |
| void | copyFieldsToLinks () |
| virtual void | maybeChangeTargetLink (dbFieldLink *) |
| | React to possibly leaving a field, calling validation and update methods.
|
| virtual void | maybeDirty (dbFieldLink *) |
| virtual void | updateDerivedFieldDisplays () |
| bool | isReadOnly () const |
| void | readOnly (bool isReadOnly=true) |
| void | msgChangedCurrentField (OOFmsgT) |
| OOFmsgT | msgChangedCurrentField () |
| virtual void | subscribeTo (oofBroadcaster *) |
| virtual void | unsubscribe (oofBroadcaster *from=0) |
| void | suspendListening () |
| void | resumeListening () |
| void | broadcast (OOFmsgT msg, unsigned long senderDefined=0, const oofReceiver *skipping=0) |
| | Broadcast a message to all anonymous subscribers.
|
| oofReceiver * | askAllStoppingAtFirst (bool stopOn, OOFmsgT msg, unsigned long senderDefined=0, const oofReceiver *skipping=0) |
| bool | askAllReturningAny (bool returnAny, OOFmsgT msg, unsigned long senderDefined=0, const oofReceiver *skipping=0) |
| bool | isBroadcasting () const |
| void | addReceiver (oofReceiver *) |
| | Append receiver to end of list.
|
| void | removeReceiver (const oofReceiver *) |
Static Public Member Functions |
| void | warnUser (std::ostream &os) |
Protected Member Functions |
| virtual bool | SendFrameworkMessage (OOFmsgT, void *ioParam=0) |
| virtual bool | SendImmediateFrameworkMessage (OOFmsgT, void *ioParam=0) |
| | Send a message so any listeners can approve an action.
|
| virtual void | LoadData () |
| void | ResetDirtyLinks () |
| virtual bool | LeaveRecord () |
| | Leave record, asking user to OK changes if necessary.
|
| bool | ValidateLinks () |
| | Check all links to see if they are validToLeaveForm, stopping at first failure.
|
| void | BroadcastShutdown () |
Protected Attributes |
| bool | mChangingPages |
| bool | mAutoSaveOnMoving |
| dbTable * | mMainTable |
| OOF_Dictionary | mLinks |
| bool | mReadOnly |
| dbFieldLink * | mCurrentLink |
| OOFmsgT | mMsgEnteringAboutToLoad |
| OOFmsgT | mMsgEnteringAfterLoad |
| OOFmsgT | mMsgCanSaveRecord |
| OOFmsgT | mMsgConfirmSave |
| OOFmsgT | mMsgChangedCurrentField |
| oofBroadcaster * | mListensTo |
| oofBroadcaster * | mSuspendedListensTo |
| unsigned short | mSuspendCount |
| OOF_ExpandableLongArray * | mReceivers |
| | owned
|
| unsigned long | mNestedBroadcastingDepth |
| | aid to debugging and removeReceiver
|
| bool | mLostReceiversWhileBroadcasting |
| | simple flag that removeReceiver was called during nested broadcast
|