[Lazarus] Editor Toolbar patch posted
Giuliano Colla
giuliano.colla at fastwebnet.it
Fri Jul 18 12:24:42 CEST 2014
I have posted in the bugtracker (
http://bugs.freepascal.org/view.php?id=26495 ) a patch to the
editortoolbar package.
I summarize the new features:
1. The configuration allows positioning at the four sides of the editor
window
2. The configuration includes a Show/Hide checkbox
3. Jump Back/Jump Forward are provided as initial defaults
4. It registers a new entry in Main Menu/View to access configuration
also when the toolbar is hidden
Implementation notes.
With this implementation Lazarus/Ide code is left untouched, unless one
wants a different Menu Icon, which should then be added to Lazarus
resources. I had prepared one, but the one currently used appears to be
unused elsewhere, and looks appropriate to me.
If the package is included into the default Lazarus packages list, the
feature will be available by default.
If the user chooses to hide the toolbar, a Box is shown when exiting
configuration, telling where to find in the main menu the entry to
access configuration. It's intended to avoid a number of "How can I
restore the toolbar I have hidden by mistake?".
The Jump Back/Forward entries are added when there are no user defined
buttons. Meaning that they'll be added not only at startup, but also if
the user deletes all user buttons. I don't believe it to be an issue,
because an empty toolbar doesn't make much sense. But, if such is the
case, the available workaround is to leave in just a divider.
If Graeme provides a better implementation, he's welcome.
That's all folks!
Giuliano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140718/d38f9256/attachment-0002.html>
More information about the Lazarus
mailing list