[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] VisualGST
From: |
Gwenael Casaccio |
Subject: |
[Help-smalltalk] VisualGST |
Date: |
Mon, 11 Apr 2011 10:37:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 |
Hello everybody,
Some news about VisualGST, if you try the master branch of VisualGST you
will two majors changes; a source code widget this is a classical
text editor with the full class sources. The method categories and
the methods are merged into one widget. The migration is not totally
finished but it takes a good shape.
Internal changes:
State is used to update the browser which simplify a lot the code and
improve a bit the speed; I've updated the GtkTreeView/GtkListView widget
to made it more simple and Smalltalk friendly:
treeWidget := GtkScrollTreeWidget createListWithModel:
{{GtkColumnPixbufType visible. GtkColumnTextType title: 'Methods'}}.
(model := GtkListModel on: treeWidget treeView getModel)
contentsBlock: [ :each |
{each methodViewIcon.
each selector asString} ].
For a tree:
treeWidget := GtkScrollTreeWidget createTreeWithModel:
{{GtkColumnTextType title: 'Classes'}}.
treeWidget connectToWhenPopupMenu: (ClassMenus on: self).
treeWidget treeView getSelection setMode: self selectionMode.
(model := GtkTreeModel on: treeWidget treeView getModel)
item: self root;
childrenBlock: [ :each | self subclasses: each ];
contentsBlock: [ :each | {each asClass name
asString, ' '} ].
Append is really simple too:
myTree append: anObject.
or
myTree append: anObject parent: aParentObject.
Feel free to reuse GtkMainWindow widget and those widgets for your Gtk
project ;-)
Simple tasks for VisualGST:
===========================
- testing with bug reports
- improve again GtkScrollTreeWidget some ideas:
treeWidget treeView getSelection
setMode: GTK.Gtk gtkSelectionBrowse.
replace by:
treeWidget aNiceMessage :)
- GtkListModel "integrated" into GtkScrollTreeWidget:
treeWidget contentsBlock: [ :each |
{each methodViewIcon.
each selector asString} ].
- other idea for GtkTree* a message like expand: anObject
and the isExpanded: anObject
Cheers,
Gwen
- [Help-smalltalk] VisualGST,
Gwenael Casaccio <=