#include <oofpp.h>
Inheritance diagram for dbShortLink2EditField:


mainly used by dbGUIadaptor | |
| void | maybeChangeTargetLink () |
| void | maybeDirty () |
| virtual void | tellGUIcareAboutLocking () const |
mainly used by dbEditHelper | |
| virtual void | copyFieldToLink () |
| virtual void | copyLinkToField () |
| virtual bool | linkEqualsField () const |
| virtual bool | leaveLink () |
| 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 bool | validToLeaveForm () |
| Validate unique fields to ensure can accept this record without error from database. | |
| 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 | |
| dbShortLink2EditField (dbShort *fld, LEditField *ctl, bool becomeReadOnly=false) | |
| virtual void | updateDerivedFieldDisplay (bool isNew) |
| 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 Attributes | |
| 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 | |
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
Reimplemented in dbFieldPickLink, and dbBoolLink. |
|
|
Reimplemented in dbFieldPickLink, and dbBoolLink. |
|
|
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. |
|
|
|
|
|
|
|
|
Reimplemented in dbFieldPickLink, and oofRepEditLink. |
|
|
Reimplemented in dbFieldPickLink, and dbBoolLink. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 from dbFieldLink. Reimplemented in dbDateLink2Editor, and dbDateTimeLink2Editor. |
|
|
Validate unique fields to ensure can accept this record without error from database.
Reimplemented in dbFieldPickLink. |
|
|
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
|
|
|
for static controls, etc;
|
|
|
|
|
|
|
|
|
tentative flag lets us optimise comparisons
|
|
|
|
|
|
default is read-write
|
1.3.5