[I7] Table of Contents

Andrew Hunter andrew at logicalshift.demon.co.uk
Sun Jan 6 12:12:02 CST 2008


OK, I think I've managed to wrangle the UI for this into something  
that's worth looking at. I've uploaded a new version to <http://www.logicalshift.co.uk/etc/Inform-dev.zip 
 >. There's still a lot of polish missing from this, but it should be  
good enough to play with.

I've also uploaded a couple of screenshots to <http://www.logicalshift.co.uk/etc/TOCshots.zip 
 >.

In this version you can bring up the heading list and pick a section  
to restrict the source code view. The 'torn' page interface should  
also be functional, but there's no editing or dragging things around  
yet, and performing an edit that crosses the boundary where the source  
code is 'torn off' will cause a fairly major display. There's a bunch  
of more minor cosmetic issues as well.

Something to note is that currently the two source tabs display  
independent ranges, so you can view two different sections in the two  
tabs. I don't know if we want to keep this behaviour or not.

I've added preferences to make it possible to change the display style  
in use. You can change these using the 'defaults write' command, for  
example:

	defaults write uk.org.logicalshift.inform-compiler IFHeaderGap 12.0

or

	defaults delete uk.org.logicalshift.inform-compiler IFHeaderGap

The full list of defaults is as follows:

	IFHeaderPointSize
		Point size of the font used in the header pane
	IFHeaderMargin
		Margin surrounding the header page
	IFHeaderIndent
		Indentation per level in the header display
	IFHeaderGap
		Leading between headers
	IFHeaderCorner
		Size of the corner drawn for the selected item
	IFHeaderBackgroundColour
		Array of 3 floating-point values (0-1) indicating the background  
colour for the header pane

You'll need to use a slightly different syntax to change the  
background colour:

	defaults write uk.org.logicalshift.inform-compiler  
IFHeaderBackgroundColour '(1.0,0.0,0.0)'

(though this particular command doesn't produce a very pleasing result)

On 5 Jan 2008, at 16:20, Jesse McGrew wrote:

> On Jan 5, 2008 8:10 AM, Andrew Plotkin <erkyrath at eblong.com> wrote:
>> On Sat, 5 Jan 2008, Adam Thornton wrote:
>>
>>> As far as testing on 10.4:
>>>
>>> I have access to one remaining 10.4 machine--it's Amy's old  
>>> laptop, and it
>>> has been much abused and may not be around all that much longer.   
>>> I'll do
>>> what I can with it.
>>
>> My laptop is still on 10.4, and I have no immediate plans to change  
>> that.
>
> Same here. PowerBook G4.

This is excellent: hopefully this means we won't miss any problems  
thanks to my defunct PowerBook.

Andrew.




More information about the Inform7-porters mailing list