[Lazarus] Mouse Link in SynEdit (only link-able items)
Alexander Klenin
klenin at gmail.com
Fri Dec 12 10:09:03 CET 2008
On Fri, Dec 12, 2008 at 18:41, Mattias Gärtner
<nc-gaertnma at netcologne.de> wrote:
> Zitat von Alexander Klenin <klenin at gmail.com>:
>> I should note that I was horrified by the amount of "glue" code needed
>> to route an event through main form, source notebook, source editor and
>> SynEdit.
>
> The IDE is structured in a hierarchy.
>
> mainide: the top level of the IDE and the central nerve system. Because of its
> size it's splitted into several units.
Oh, hierarchy is good in itself -- it is not what I am ranting about.
(Although I'd say that main.pp, at 15000 lines, is in dire need of
further splitting).
However, to add another event to SynEdit, I had to add two useless events
and two useless event handlers, totally containing more code then the
original event
-- simply to marshal the call through the hierarchy (see patch in the
issue for details).
This is IMHO not optimal design ;-)
--
Alexander S. Klenin
Insight Experts Ltd.
More information about the Lazarus
mailing list