Translations:KDevelop5/Manual/Code generation with templates/28/uk: Difference between revisions

From KDE UserBase Wiki
(Importing a new version from external source)
(No difference)

Revision as of 08:03, 16 September 2017

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)
The most common use for code generation is probably writing new classes. To create a new class in an existing project, right-click on a project folder and choose <menuchoice>Create from Template...</menuchoice>. The same dialog can be started from the menu by clicking <menuchoice>File -> New from Template...</menuchoice>, but using a project folder has the benefit of setting a base URL for the output files. Choose <tt>C++</tt> in the ''Language'' selection view, the desired ''Framework'' and ''Template'' in the other two views. At the bottom of the dialog, a ''Preview'' pane shows you the files it will generate and allows you to browse the files. After you are through with your selections,  you will have to specify the details of the new class in the ''Class Basics'' dialog after clicking <menuchoice>> Next</menuchoice>.

Найпоширенішим випадком використання створення коду за шаблоном є, ймовірно, написання нового класу. Щоб створити новий клас у вже створеному проекті, наведіть вказівник миші на теку проекту, клацніть правою кнопкою миші і виберіть у контекстному меню пункт Створити з шаблона. Те саме діалогове вікно може бути відкрито за допомогою меню, пункту Файл -> Створити з шаблона, але використання теки проекту має перевагу встановлення базової адреси для вихідних файлів. Виберіть Клас на панелі вибору категорії, бажану мову програмування та шаблон. Після вибору шаблона класу вам слід вказати інші характеристики нового класу.