gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

Override 'gtDefaultInspectorTool' in Lepiter related classes so that you can toggle back to 'LePagePhlowTool'

Open botwhytho opened this issue 3 years ago • 2 comments

Good to be able to get back to an 'uncluttered' view that's not the typical inspector tool. For various classes, maybe I'm missing some, but main ones would be:

  • LePage
  • LeSnippet
  • LeDatabase

Something like below so the default would be the inspector but still have to option to toggle back into the clean view/tool to get things out of the way.

^ GtPhlowCompositeTool new
		addTool: (super gtDefaultInspectorTool);
		addTool: (LePagePhlowTool new)

For different classes the page you get back to may vary, for page and snippet the obvious answer is the related page, for a database it's probably the table of contents (or a random page if none exists).

botwhytho avatar Jul 09 '22 05:07 botwhytho

The most useful and quick would be to modify this on LePage only

botwhytho avatar Oct 08 '22 18:10 botwhytho

On v1.0.734 , ProtoObject>>#gtActionInspectFor: defines aTool yet doesn't use it, that seems like a bug in all contexts:

aTool := self gtDefaultInspectorTool.
aButton phlow spawnObject: self

The second line should send spawnTool: aTool to phlow.

On LePage, the below should be defined and things worked as expected:

gtDefaultInspectorTool
	^ self asPhlowTool

botwhytho avatar May 09 '24 18:05 botwhytho