Difference between revisions of "Lazarus 1.2.0 release notes"

From Free Pascal wiki
Jump to navigationJump to search
Line 92: Line 92:
  
 
There is a simple example in examples/levelgraph/lvlgraph_dependencies.lpi.
 
There is a simple example in examples/levelgraph/lvlgraph_dependencies.lpi.
 +
 +
[[File:unitdependencies1.png]]
  
 
= Changes affecting compatibility =
 
= Changes affecting compatibility =

Revision as of 01:56, 22 March 2013

Template:Lazarus 1.2.0 release notes

Lazarus 1.2.0 is not yet released. This page is under construction!

Statistics:

  1. commits: xxx
  2. log: svn log -r xxxx:xxxx
  3. resolved bug tracker issues: xxx

LCL Interfaces Changes

LCL Changes

IDE Changes

  • Editor
    • Interactive Hints (Mouse can enter Hints / Hints have links). Requires package TurboPowerIProDsgn
    • Macro Recorder/Player
      • Multiple macros. Ability to select/change macro from list.
      • Individual key-shortcuts for each Macro
      • Macros can be saved per project or with the global IDE config
      • Package EditorMacroScripting: Allow use of PascalScript in macros.
    • Sticky selection mode
    • Highlight different (user specified) words in different colors See here
    • Auto-continue for comments and strings
  • Debugger
    • Watches window: added detail view, for selected watch
    • Debug Inspector: Ability to directly input expression to monitor
    • Attach and Detach
  • When option "open last project" is enabled (default) and the IDE was closed with no project, no project will open at start. When a virtual (not saved) project was open a new Application project is created.
  • IDEIntf: Added boolean parameter BringToFront (defaults to false) to TLazIDEInterface.DoShowSearchResultsView. It specifies whether Search Results dialog should be shown on top or under Source Editor. Behavior of existing code calling this method is not affected.
  • IDEIntf: Added TPropertyEditor.GetVerbCount, GetVerb, PrepareItem, ExecuteVerb to let TPropertyEditors add menu items to the Object Inspector.
  • The Package Graph now uses the new TLvlGraphControl, showing all package dependencies including project and IDE.

lazbuild

  • Added options --verbose, --quiet and -q to increase/decrease verbosity. You can pass them multiple times.
  • When compiling a project (.lpi) lazbuild now checks if the project needs compilation and if not will not call the compiler. It also now writes why it recompiles.

Components

TAChart

  • Series:
    • Transparency
    • AddArray, AddNull, AddX and AddY functions, SetText procedure
    • TFitSeries.IEquationText interface
    • TPolarSeries.CloseCircle property
    • TFuncSeries.ExtentAutoY property
    • TBarSeries.GetBarWidth function
  • Tools:
    • New tool: TDataPointDistanceTool
    • EscapeCancels property for dragging tools
    • TDataPointHintTool: UseApplicationHint property, OnHintPosition event
    • TDataPointFragTool: Origin property, OnDrag, OnStartDrag events
    • TZoomDragTool.RestoreExtentOn property
    • TChartToolset.DispatchedShiftState property
  • Sources:
    • TDbChartSource: Options=[dcsoDateTimeX, dcsoDateTimeY] property, OnGetItem event
    • TListChartSource: SetText, SetColor, AddXYList procedures
    • New sources: TCustomAnimatedChartSource, TCustomAxisChartSource
  • Axes and marks:
    • Axis index property editor
    • TChartAxis: Position, Value, ValueCount properties, IsPointInside function
    • Marks: Arrow, Margins, Shape, CalloutAngle properties, OnGetShape event
  • Misc
    • TAChartTeeChart unit with some helpers for migration from TeeChart
    • TChart: IsZoomed, PrevLogicalExtent, AutoFocus properties
    • TChartExtentHistory utility class
    • 3 new demos: lazreport, animate, distance

TLvlGraphControl

This new control is part of the package LazControls and used by the IDE itself as well. The control shows a graph consisting of nodes and edges as level graph (an other name is layered graph).

packagegraph1.png

  • automatic topological sorting, option to put nodes leftmost or rightmost
  • can automatically combine edges. Long edges over multiple levels are combined to single lines with forks.
  • heuristic for minimize crossings
  • automatic anti overlapping
  • can show nodes as rectangles, ellipses or icons from an TImageList
  • select nodes via mouse
  • multi selection
  • highlight nodes or edges under mouse
  • shows back edges with special colors, allows to quickly spot cycles.
  • edges can be drawn straight or curved (bezier)
  • header caption
  • node captions can be shown left, right, above or below nodes
  • all colors can be set via published properties
  • events to custom draw and/or skip each part of the default drawing

There is a simple example in examples/levelgraph/lvlgraph_dependencies.lpi.

unitdependencies1.png

Changes affecting compatibility

LCL TCustomForm.AddHandlerFirstShow,AddHandlerClose,AddHandlerCreate parameter AsFirst default value changed to false

  • Reason: Consistency with other LCL AddHandler.
  • Remedy: Add parameter true to caller.

LCL TScreen.AddHandlerFormAdded+AddHandlerRemoveForm+AddHandlerActiveControlChanged+AddHandlerActiveFormChanged+AddHandlerFormVisibleChanged parameter AsFirst default value changed to false

  • Reason: Consistency with other LCL AddHandler.
  • Remedy: Add parameter true to caller.

IDEIntf TOICustomPropertyGrid.Favourites was renamed to Favorites

  • Reason: Consistent American spelling
  • Remedy: Rename used identifier

Previous release notes