[Lazarus] Command constants (Lazarus internals)

Mattias Gärtner nc-gaertnma at netcologne.de
Fri Jan 22 13:55:06 CET 2010


Zitat von Juha Manninen <juha.manninen at phnet.fi>:

> Hi,
>
> About Lazarus internal code:
> I was planning to combine command constants from
>   lazarus/components/synedit/SynEditKeyCmds.pp
> into
>   lazarus/ideintf/IDECommands.pas
>
> Now I realize SynEdit is a component which can be used in other projects (not
> just Lazarus), so the constants can't be moved. (?)

Correct.


> Otherwise this refactoring would be logical because many of those editor
> commands can be used elsewhere in Lazarus, like undo and copy/paste in form
> designer.
>
> I also would have changed those constants to enum to get rid of the const
> array name mappings.

I removed them in 23531.

Mattias







More information about the Lazarus mailing list