Skip to content

Releases: pharo-spec/Spec

v0.7.4

13 Oct 19:46
Compare
Choose a tag to compare
  • Organise and comment properly ALL widget presenters (children of SpAbstractWidgetPresenter) that are needed to create SpPresenter compositions.
  • Add missing examples for all widget presenters.
  • Presenter comments are now implemented through a microdown template, showing interesting sections and pointing to correct API to use (along with examples).
  • SpAbstractWidgetPresenter hierarchy now understands selectFirst.
  • New presenter SpTreePresenter. A tree with just one column.
  • SpTreeTablePresenter now understands expandPath: and expandRoots.
  • Added SpLinkTableColumn to add links to tables (and trees).
  • New utility presenter: SpListWithFilterPresenter.
  • Fixed alignment of cells on SpGridLayout.
  • SpGridLayout axis constraints now understand alignment (because sometimes you want to align a whole column, not just a cell).
  • Several fixes on commands for Pharo interaction.
  • Lots of small bugfixes.

v0.7.3

08 Sep 21:13
Compare
Choose a tag to compare
  • fix a leak on dialogs, which were not being removed from the windows list in application
  • enhance demo of SpNotebookPresenter
  • made string columns not sortable by default
  • fix IconStyler usage
  • fix SpCodePresenter>>#overridingContextMenu
  • enhance comments and organisation (WIP)

v0.7.2

28 Jul 14:00
Compare
Choose a tag to compare
  • text presenters now can inform when a selection has changed
  • text presenters now can define wrap/not wrap
  • text presenters now can set #cursorPositionIndex:
  • styles can now change a text color
  • code presenter now can show a nice error popover when compiler errors happen
  • box layout now can replace presenters (#replace:with)
  • Fixed default focus order in dialogs, since it was not working fine.
  • Fixed window close event (now it should happen always that a window is closed, no matter the way it is closed).

v0.7.1

23 Jul 08:45
Compare
Choose a tag to compare

Bugfixes

  • tree table presenter: it was not reacting to "activate on single click"
  • dialogs: ensure open a dialog centered on topWindow works even when there is no "topWindow" defined.
  • code presenter: fix interaction models (they were a mess and with some misunderstood concepts).
  • code presenter: fix accept/cancel commands (that will appear if there are submit/reset events defined).
  • "dynamic" package was broken and it does not has sense now: moved all broken stuff into a single package (Spec-Dynamic) that will not be loaded (and probably needs to be removed)

v0.7.0

05 Jul 08:32
Compare
Choose a tag to compare

General

  • add comments to Transmission, Style and Application
  • added a hook to rebuild layouts
  • style: do not calculate font each time there is a call to it.
  • refactor on SpCodePresenter: instead a matrix to complete (doItContext, doItReceiver, etc.) now there is a hierarchy of "InteractionModels"the user can extend and use.
  • #iconNamed: moved to SpApplication.
  • Text: create the concept of userActionDuring: to avoid multiple actualisations when changing selection, text, etc. all at once.
  • Remove tests for Pharo 8 since it is not supported anymore.
  • Window: add vocabulary: isMinimized/isMaximized
  • ToolBar was renamed as Toolbar.
  • Lots of cleanups on dependencies to be able to split Spec2 from Morphic.

Bugfixes

  • fix a problem in popover which was not abswering correct "lines"to print.
  • sometimes we ask to center a widnow to its parent, but there is no parent. In that cases, center to world.
  • fix problems in the Style merge algorithm\
  • List: fixed problems with selection and sorting.
  • Application was leaking windows. Not anymore.

v0.6.0

15 May 12:31
Compare
Choose a tag to compare

New Features:

General

  • #eventHandler low level protocol added to presenters. Now you can directly listen: focusReceived, focusLost, keyUp, keyDown, mouseUp, mouseDown, mouseEnter, mouseLeave and mouseMove.
  • <meta+t> will show the context menu of presenters, if defined.
  • styles of presenters can be added and removed in runtime.
  • added #defaultKeyboardFocus to complement focus state (when I want to transmit the default focus to one of my children instead of the first one... but I do not want to rewrite the full #focusOrder)
  • To all text presenters (text area, text field, code area, etc): autoAccept property was removed, all text is by default "autoAccept" now.
    • whenSubmitDo:/whenResetDo: mapping <meta+s> and <meta+l> events were added to replace the usage of acceptBlock:, etc..
  • added a general mechanism to allow i18n.

Presenters

  • SpTextPresenter
    • add "editable" property to use when I need to show text but not modifiable.
    • adds natural width/height propagation concept (to auto-expand text areas when needed, instead following scrollbar size).
    • cursorPosition answers row@column position (adds to cursorPositionIndex which answers position from start of text).
  • SpCodePresenter
    • now can add user defined contextMenu in addition to code default menu (you can still override it completely if you want).
    • Now commands work properly (it was not the case).
    • It has a new #interactiveModel api to give the presenter an object who will handle all Pharo related stuff.
  • SpMenuItemPresenter
    • name and icon now are modifiable on runtime.
  • SpToolBarPresenter
    • added SpToolBarToggleButtonPresenter
    • added SpToolBarMenuButtonPresenter
  • SpModalWindowPresenter
    • close on backdrop click is not false by default (the regular desktop behaviour)

Layouts

  • SpBoxLayout now has alignment properties (hAlignCenter, hAlignStart, hAlignEnd, vAlignCenter, vAlignStart, vAlignEnd) that will handle how the contained presenters will be aligned in the layout.

New presenters:

  • SpPopoverPresenter, to show popovers relative to a presenter (or located elsewhere in screen).
  • SpWorldPresenter (Morphic specific) restored and working properly (this is used to make a presenter to "take over the world".

Fixes:

  • Toolbar now does not has a weird effect when hovering
  • MenuItems now display shortcut properly
  • Number presenter answers zero to value when content is empty.
  • Style now correctly calculates properties (there was a bug where nested defining properties where replacing higher level ones, instead merging them).
  • Scrolling and selection now decoupled (you can select without scrolling, which was not possible)

(And a lot more tweaks and fixes that makes this version a lot more stable)

v0.3.0

13 Mar 12:38
Compare
Choose a tag to compare

Main changes:

  • Application added #topWindow to know which windows is currently active.
  • Transmission mechanism modified to not work on arrays but direct methods.
  • Layouts are now fully dynamic: You can add/remove presenters in runtime and you can change completely a layout in runtime.
  • SpListPresenter: Added and experimental generator-based model.
  • SpNotebookPresenter: Pages can now be closeable.
  • Toolbar: Added Toggle buttons.
  • Some work on documentation.
  • Deprecated methods has been moved to Spec2-Deprecated packages and is not loaded anymore.
  • Old layout is no longer needed, and it has been moved to a deprecated package and not loaded anymore either

v0.2.1

31 Jan 21:22
Compare
Choose a tag to compare
  • add code commands
  • add system navigation commands
  • fix default sort on list/table/tree (morphic).
  • SpNotebookMorph now responds better to different scenarios (and some bug fixes too)

v0.2.0

16 Jan 10:27
Compare
Choose a tag to compare
  • Add search capabilities to tables, lists and trees
  • Make SpComponentListPresenter behave as a list (actionable, selectable, searchable)
  • SpEditableList renamed to SpEditableListPresenter (and make it work)
  • Toggle buttons now can have icons (for some reason it was not allowing them before)
  • Radio buttons now accept an initial state of "none selected"
  • SpCodePresenter now have more actions defined.
  • Dialogs now can define a "default" button (which will be executed on meta+s)
  • Trait names renamed to match code conventions (prefix is SpT and not TSp)

v0.1.0

28 Nov 13:49
6a2d61f
Compare
Choose a tag to compare
  • fixes on toolbar width assignation
  • fixes on the way shortcuts are presented (using KMShortcutPrinter)
  • make SpComponentListPresenter to work as a list (selectable, allowing multiple selection, etc.).
  • make SpComponentListPresenter allow variable height rows.
  • fixes on miller list
  • fixes on styles and allow nested styles
  • fixes a bug were windows were not removed from active windows lists
  • fixes container background overrides
  • make applications to keep active configuration
  • fix multiple selection on trees
  • add SpSearchInputFieldPresenter