#include <oofgui.h>
Inheritance diagram for dbFieldPickLink:


| \param | becomeReadOnly is probably irrelevant but maybe we might have an entry field that is temporarily readonly depending on user state. |
just copy the entire table into RAM lookup map for speed.
mainly used by dbEditHelper | |
| virtual void | copyFieldToLink () |
| Load related record as popup setting or copy value. | |
| virtual void | copyLinkToField () |
| Update the linked dGUIAdapter from our field, actually what lookup record is related. | |
| virtual bool | linkEqualsField () const |
| Compare ordinal position for popups, use base for values. | |
| virtual bool | leaveLink () |
| Mainly override to avoid checks in base. | |
| virtual bool | validToLeaveForm () |
| Validate unique fields to ensure can accept this record without error from database. | |
mainly used by dbGUIadaptor | |
| void | maybeChangeTargetLink () |
| void | maybeDirty () |
| virtual void | tellGUIcareAboutLocking () const |
mainly used by dbEditHelper | |
| virtual void | updateDerivedFieldDisplay (bool isNew) |
| virtual void | readOnly (bool isReadOnly=true) |
| Change readonly state of link to accept or deny data entry. | |
| virtual bool | validToLeaveLink () |
| Validate field contents, overridden if can check just contents. | |
| virtual void | highlightLink () |
| Visually highlight a link, usually becoming edit focus. | |
| void | markClean () |
reflective calls | |
| bool | isReadOnly () const |
| bool | alwaysReadOnly () const |
| bool | isDirty () const |
| bool | linkIsEmpty () const |
| dbGUIAdapter * | adapter () const |
Public Member Functions | |
| dbFieldPickLink (dbField *, dbGUIAdapter *adoptedAdapter, bool becomeReadOnly, dbRelRef *pickVia) | |
| dbFieldPickLink (const dbFieldPickLink &) | |
| virtual | ~dbFieldPickLink () |
| bool | allowsNullRelationship () const |
| void | allowNullRelationship (bool inAllowFlag=true) |
| void | setDefaultPick (int) |
| dbHelper * | owner () const |
| void | owner (dbHelper *) |
| not ctor param as can create without helper | |
| dbField * | field () const |
| purposely non-virtual as subclasses return different types | |
| void | setField (dbField *inField) |
| bool | hidden () const |
| void | hide (bool hideIt=true) |
| virtual void | describe (std::ostream &) const |
| Provide human-readable information about object. | |
| virtual oofString | name () const |
Protected Member Functions | |
| void | InitLookup () |
| Clone tables for lookup operations. | |
Protected Attributes | |
| bool | mAllowsNullRelationship |
| OK to not have lookup value. | |
| dbRelRef * | mPickVia |
| only allow Ref as lookups point to just one record | |
| dbTable * | mLookupTable |
| owned clone | |
| unsigned long | mCachedRecordNumber |
| used for popups to optimise comparisons | |
| int | mDefaultPick |
| dbField * | mField |
| dbGUIAdapter * | mAdapter |
| owned | |
| dbHelper * | mOwner |
| bool | mMaybeDirty |
| tentative flag lets us optimise comparisons | |
| bool | mReadOnly |
| default is read-write | |
| bool | mAlwaysReadOnly |
| for static controls, etc; | |
| bool | mHidden |
Friends | |
| class | dbAbstractEditHelper |
| so it can call PreApprovedReadOnly | |
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load related record as popup setting or copy value.
Reimplemented from dbFieldLink. |
|
|
Update the linked dGUIAdapter from our field, actually what lookup record is related. If this is the first time called on this screen, may need to load a popup menu. Maps one-based indexes returned from pickers to 0-based records numbers.
Reimplemented from dbFieldLink. |
|
|
Provide human-readable information about object. Overriden to provide much more detail particularly for dbTable::describe() which provides full schema. Reimplemented in dbTable, dbConnect, dbField, dbChar, dbFixedBinary, and dbRelRefBase. |
|
|
purposely non-virtual as subclasses return different types Used by dbGUIAdapters such as dbGUIAdaptEditPane::setFieldLink to get the field in order to query database characteristics.
Reimplemented in dbUshortLink. |
|
|
|
|
|
|
|
|
Visually highlight a link, usually becoming edit focus. dbAbstractEditHelper::ValidateLinks calls us to highlight the first invalid link it finds. |
|
|
Clone tables for lookup operations.
|
|
|
|
|
|
|
|
|
Mainly override to avoid checks in base. It is common for our target fields (the lookup field) to be uniquely indexed. We rely on the check in validToLeaveForm.
Reimplemented from dbFieldLink. |
|
|
Compare ordinal position for popups, use base for values.
Reimplemented from dbFieldLink. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in dbTable, dbConnect, dbField, and OOF_adornerHolder. |
|
|
not ctor param as can create without helper
|
|
|
|
|
|
Change readonly state of link to accept or deny data entry. Won't allow enabling editing if can't edit record due to locking. |
|
|
|
|
|
|
|
|
Reimplemented in oofRepEditLink. |
|
|
Reimplemented in dbNumericFieldLink, dbDateLink2Editor, and dbDateTimeLink2Editor. |
|
|
Validate unique fields to ensure can accept this record without error from database.
Reimplemented from dbFieldLink. |
|
|
Validate field contents, overridden if can check just contents. Lightweight check that allows tabbing between fields in open record.
Reimplemented in dbDateLink2Editor, and dbDateTimeLink2Editor. |
|
|
so it can call PreApprovedReadOnly
|
|
|
owned
|
|
|
OK to not have lookup value.
|
|
|
for static controls, etc;
|
|
|
used for popups to optimise comparisons
|
|
|
|
|
|
|
|
|
|
|
|
owned clone
|
|
|
tentative flag lets us optimise comparisons
|
|
|
|
|
|
only allow Ref as lookups point to just one record
|
|
|
default is read-write
|
1.3.5