Translations:KDevelop5/Manual/Code generation with templates/33/en: Difference between revisions

From KDE UserBase Wiki
(Importing a new version from external source)
(Importing a new version from external source)
Line 1: Line 1:
Clicking <menuchoice>> Next</menuchoice> brings up the ''Class Members'' dialog box where you can add members to a class. Depending on the selected template, these may appear in the new class as member variables, or the template may create properties with setters and getters for them. In a language where variable types have to be declared, such as C++, you have to specify both the type and the name of the member, such as <code>int number</code> or <code>QString name</code>. In other languages, you may leave out the type, but it is good practice to enter it anyway, because the selected template could still make some use of it. Optionally you can rearrange the order of the class members by selecting a member and then hitting either <menuchoice>Move Up</menuchoice> or <menuchoice>Move Down</menuchoice>. The chosen order will be the sequence used in generating the source file.
Clicking <menuchoice>> Next</menuchoice> brings up the ''Class Members'' dialog box where you can add members to a class. Depending on the selected template, these may appear in the new class as member variables, or the template may create properties with setters and getters for them. In a language where variable types have to be declared, such as C++, you have to specify both the type and the name of the member, such as <code>int number</code> or <code>QString name</code>. In other languages, you may leave out the type, but it is good practice to enter it anyway because the selected template could still make some use of it. Optionally you can rearrange the order of the class members by selecting a member and then hitting either <menuchoice>Move Up</menuchoice> or <menuchoice>Move Down</menuchoice>. The chosen order will be the sequence used in generating the source file.

Revision as of 15:19, 18 March 2020

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (KDevelop5/Manual/Code generation with templates)
Clicking <menuchoice>> Next</menuchoice> brings up the ''Class Members'' dialog box where you can add members to a class. Depending on the selected template, these may appear in the new class as member variables, or the template may create properties with setters and getters for them. In a language where variable types have to be declared, such as C++, you have to specify both the type and the name of the member, such as <code>int number</code> or <code>QString name</code>. In other languages, you may leave out the type, but it is good practice to enter it anyway because the selected template could still make some use of it. Optionally you can rearrange the order of the class members by selecting a member and then hitting either <menuchoice>Move Up</menuchoice> or <menuchoice>Move Down</menuchoice>. The chosen order will be the sequence used in generating the source file.

Clicking > Next brings up the Class Members dialog box where you can add members to a class. Depending on the selected template, these may appear in the new class as member variables, or the template may create properties with setters and getters for them. In a language where variable types have to be declared, such as C++, you have to specify both the type and the name of the member, such as int number or QString name. In other languages, you may leave out the type, but it is good practice to enter it anyway because the selected template could still make some use of it. Optionally you can rearrange the order of the class members by selecting a member and then hitting either Move Up or Move Down. The chosen order will be the sequence used in generating the source file.