Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Off The Wall: Feature Ideas >> "Freeze" a note's attributes
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1322564380

Message started by Paul Walters on Nov 29th, 2011, 5:59am

Title: "Freeze" a note's attributes
Post by Paul Walters on Nov 29th, 2011, 5:59am

I would find it useful to be able to "freeze" a note's attributes and prevent any changes to them - either by agents or by editing them.  This would apply to user-modifiable attributes (including Text, Name, and so forth), but not to attributes that are controlled by Tinderbox.  If a note is "frozen" then its aliases would also be frozen.  "Frozen" notes would thus be read-only notes.

Since the "lock" command is already spoken for (i.e., lock a note's map position), perhaps "freeze" or a similar synonym would be used.  An indicator in views showing which notes are frozen would be useful, too.

I'd like this because I want to have agents find notes, but exclude some from being affected by agent actions.  I'd also like to be able to prevent unintended text or name edits on some notes.  I realize there are complex actions that could be coded to get the same result, but a simple command would be useful over here.

Of course, if all of this is already possible (e.g., I think aTBref is telling me that the ReadOnly boolean attribute is a partial implementation of this suggestion) then someone will show me the way.  ;)


Title: Re: "Freeze" a note's attributes
Post by Mark Anderson on Nov 29th, 2011, 6:41am

The aTbRef $ReadOnly page has been updated to reflect more clearly the fact that $ReadOnly only affects $Text. All other attributes remain editable. As the note describes, this attribute is mainly used (by TB) for $AutoFetch notes. You rightly point out $Lock affects Map - in fact I've updated [url=]that page[/url] too as whilst it mainly affects a notes $Xpos/$Ypos it also affects drag-reordering of $OutlineOrder unless map move up/down commands are used. The latter makes sense once you try it out.

However, there isn't an attribute to make a note (and/or its aliases) read-only. Is your problem trying to avoid accidental editing. I presume your 'freeze' attribute would be only editable via one or two UI controls (Info view, Inspector, etc.) as you'd want frozen notes to be impervious to scripting, agents, etc.

Title: Re: "Freeze" a note's attributes
Post by Paul Walters on Nov 29th, 2011, 7:37am


Quote:
Is your problem trying to avoid accidental editing[?] I presume your 'freeze' attribute would be only editable via one or two UI controls (Info view, Inspector, etc.) as you'd want frozen notes to be impervious to scripting, agents, etc.

Yes, I want to turn off changes to all editable attributes (Text is an editable attribute), on a note-by-note basis.  Of course, ReadOnly, already applies to Text - so I'd like a feature that applies to any editable attribute.  Doesn't matter to me how it's implemented - but I assume "Freeze" itself would be an attribute and would never be subject to itself (i.e., "Freeze" would always be editable).

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.