#include <oofrepeditx.h>
Inheritance diagram for oofRepViewEditLink:


init and cleanup code when edit dialog launches and if it changes links | |
| virtual bool | leaveLink () |
style access | |
| virtual oofRepTextStyle * | textStyle () const |
| textStyle returns a writeable pointer so allows updates HOWEVER the cascading style model means this may be a pointer to a parent style so it is NOT recommended to update this value. | |
| virtual oofRepTextStyle * | localTextStyle () const |
movement testing | |
| virtual bool | atFirst () const |
| might override atFirst if you had irregular shape allowing first cell to be further along first row, but usually use this base method | |
| virtual bool | getLastCoords (short &outCol, long &outRow) const |
| Return true to indicate we are at the last cell already, same as atFirst(). | |
| virtual bool | getLeftOfCurrent (short &outCol, long &outRow) const |
mainly used by dbGUIadaptor | |
| void | maybeChangeTargetLink () |
| void | maybeDirty () |
mainly used by dbEditHelper | |
| virtual void | copyFieldToLink () |
| virtual void | copyLinkToField () |
| virtual bool | linkEqualsField () const |
| 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 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 | |
| oofRepViewEditLink (oofRepViewBand *, bool editingSubSelection) | |
| virtual | ~oofRepViewEditLink () |
| virtual oofString | getCellText (bool *outIsEditable=0, oofString *outLocationName=0, long row=-1, short col=-1) |
| virtual void | setCellText (const oofString &, long row=-1, short col=-1) |
| virtual void | enterLink (dbGUIAdapter *) |
| virtual bool | allowsCellTextStyles () const |
| virtual bool | hasCustomViewDrawers () const |
| virtual oofRepCustomViewDrawer * | customViewDrawer (long col) const |
| virtual bool | getRightOfCurrent (short &outCol, long &outRow) const |
| virtual bool | getUpFromCurrent (short &outCol, long &outRow) const |
| virtual bool | getDownFromCurrent (short &outCol, long &outRow) const |
| void | getCurrentCoords (short &outCol, long &outRow) const |
| void | setCurrentCoords (short inCol, long inRow) |
| virtual void | tellGUIcareAboutLocking () const |
| 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 |
| void | incRefs () |
| void | decRefs () |
Protected Member Functions | |
| oofRepViewBand * | Drawable () const |
| dbView * | View () const |
Protected Attributes | |
| dbSelection * | mSelection |
| unsigned long | mRecordNumber |
| oofRepDrawable * | mDrawable |
| long | mCurrentRow |
| long | mLastRow |
| short | mCurrentCol |
| short | mLastCol |
| 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 |
| unsigned int | mReferences |
Friends | |
| class | dbAbstractEditHelper |
| so it can call PreApprovedReadOnly | |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Reimplemented from oofRepEditLink. |
|
|
|
|
|
might override atFirst if you had irregular shape allowing first cell to be further along first row, but usually use this base method
|
|
|
Reimplemented in dbFieldPickLink, and dbBoolLink. |
|
|
Reimplemented in dbFieldPickLink, and dbBoolLink. |
|
|
Reimplemented from oofRepEditLink. |
|
|
|
|
|
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. |
|
|
|
|
|
Reimplemented from oofRepEditLink. |
|
|
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. |
|
||||||||||||||||||||
|
Implements oofRepEditLink. |
|
||||||||||||
|
|
|
||||||||||||
|
Reimplemented from oofRepEditLink. |
|
||||||||||||
|
Return true to indicate we are at the last cell already, same as atFirst().
|
|
||||||||||||
|
|
|
||||||||||||
|
Reimplemented from oofRepEditLink. |
|
||||||||||||
|
Reimplemented from oofRepEditLink. |
|
|
Reimplemented from oofRepEditLink. |
|
|
|
|
|
|
|
|
Visually highlight a link, usually becoming edit focus. dbAbstractEditHelper::ValidateLinks calls us to highlight the first invalid link it finds. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from dbFieldLink. |
|
|
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. |
|
||||||||||||||||
|
Implements oofRepEditLink. |
|
||||||||||||
|
|
|
|
|
|
|
Reimplemented from dbFieldLink. |
|
|
textStyle returns a writeable pointer so allows updates HOWEVER the cascading style model means this may be a pointer to a parent style so it is NOT recommended to update this value. See OOFRep_DesignDecisions.txt for discussion of issues |
|
|
Reimplemented in dbNumericFieldLink, 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