[Feature] Add a few templates
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
This is feature request for adding templates for properties.
Here is 7 macros: prws, prwd, pirws, pirwd, pdrws, pdrwd, psrw
for
property $ Integer read $ write $ default $;|
and its variants.
I didn't know how to create patch so I added lines from lazarus.dci
If patch is needed, please, let me know how to create it.
Steps to reproduce:
[prws | property read write]
$(AttributesStart)
EnableMakros=true
AutoOnSpace=true
RemoveChar=true
$(AttributesEnd)
property $param(Name) read $param(Getter) write $param(Setter);|
[prwd | property read write default]
$(AttributesStart)
EnableMakros=true
RemoveChar=true
AutoOnSpace=true
$(AttributesEnd)
property $param(Name) read $param(Getter) write $param(Setter) default $param(Const);|
[pirws | property Integer read write]
$(AttributesStart)
EnableMakros=true
AutoOnSpace=true
RemoveChar=true
$(AttributesEnd)
property $param(Name): Integer read $param(Getter) write $param(Setter);|
[pirwd | property Integer read write default]
$(AttributesStart)
EnableMakros=true
AutoOnSpace=true
RemoveChar=true
$(AttributesEnd)
property $param(Name): Integer read $param(Getter) write $param(Setter) default $param(Const);|
[psrw | property string read write]
$(AttributesStart)
AutoOnSpace=true
RemoveChar=true
EnableMakros=true
$(AttributesEnd)
property $param(Name): string read $param(Getter) write $param(Setter);|
[pdrwd | property Double read write default]
$(AttributesStart)
EnableMakros=true
AutoOnSpace=true
RemoveChar=true
$(AttributesEnd)
property $param(Name): Double read $param(Getter) write $param(Setter) default $param(Const);|
[pdrws | property Double read write]
$(AttributesStart)
EnableMakros=true
AutoOnSpace=true
RemoveChar=true
$(AttributesEnd)
property $param(Name): Double read $param(Getter) write $param(Setter);|
Additional information:
Lazarus 1.5 r48159M FPC 3.1.1 x86_64-linux-qt
Mantis conversion info:
- Mantis ID: 27625
- OS: Linux
- OS Build: Chakra 64-bi
- Build: 48159
- Platform: amd64
- Version: 1.5 (SVN)
- Fixed in version: 2.2
- Fixed in revision: 62275 (#b39c30b8)
- Target version: 2.2