<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html class="client-nojs" dir="ltr" lang="en">
<head>
<meta charset="UTF-8" />
<title>Модули/Конфигуратор на Qt - OpenSCADAWiki</title>
<meta content="MediaWiki 1.26.4" name="generator" />
<link href="https://www.gnu.org/copyleft/fdl.html" rel="copyright" />
<link href="../../en/files/doc.css" rel="stylesheet" /></head>
<body><div class="floatright"><a href="../index.html"><img alt="OpenSCADA" src="../../en/files/index.png" /></a></div><div id="mw_header">
			<div class="mw-indicators">
</div>
			<h1 id="firstHeading" lang="ru">Модули/Конфигуратор на Qt</h1>
		</div><div class="mw-content-ltr" dir="ltr" id="mw-content-text" lang="ru"><div class="mw-pt-translate-header noprint" dir="ltr" lang="en">This page is a <span class="plainlinks"><a class="external text" href="http://oscada.org/wiki/index.php?title=Special:Translate&amp;group=page-Modules%2FQTCfg&amp;action=page&amp;filter=&amp;language=ru" rel="nofollow noreferrer noopener" target="_blank">translated version</a></span> of the page <a class="external" href="http://oscada.org/wiki/Modules/QTCfg" title="Modules/QTCfg">Modules/QTCfg</a> and the translation is 81% complete.</div><hr /><div class="mw-pt-languages" dir="ltr" lang="en"><div class="mw-pt-languages-list autonym"><a class="mw-pt-languages-ui mw-pt-progress mw-pt-progress--complete" href="../../en/Modules/QTCfg.html" title="Modules/QTCfg (100% translated)">English</a>&nbsp;• ‎<span class="mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete">mRussian</span>&nbsp;• ‎<a class="mw-pt-progress mw-pt-progress--complete" href="../../uk/Modules/QTCfg.html" title="Модулі/Конфігуратор на Qt (100% translated)">Українська</a></div></div>
<table class="wikitable">

<tr>
<th> Модуль </th>
<th> Имя </th>
<th> Версия </th>
<th> Лицензия </th>
<th> Источник </th>
<th> Языки </th>
<th> Платформы </th>
<th> Тип </th>
<th> Автор </th>
<th> Описание
</th></tr>

<tr>
<td> <a href="../Modules/QTCfg.html" title="Special:MyLanguage/Modules/QTCfg">QTCfg</a> </td>
<td> Конфигуратор программы (Qt)
</td>
<td> 6.1 </td>
<td> GPL2 </td>
<td> ui_QTCfg.so </td>
<td> en,uk,ru,de </td>
<td> x86,x86_64,ARM
</td>
<td> Пользовательские интерфейсы </td>
<td> Роман Савоченко </td>
<td> Предоставляет основанный на Qt конфигуратор OpenSCADA.
<ul><li> <b><a href="../../en/To_do.html" title="Special:MyLanguage/Works/To do">Задачи (To Do)</a>:</b></li></ul>
<p><br />
</p>
</td></tr></table>
<p>Модуль предоставляет конфигуратор OpenSCADA, который основан на многоплатформенной библиотеке <a class="external text" href="http://qt.io" rel="nofollow noreferrer noopener" target="_blank">Qt</a> графического пользовательского интерфейса (GUI), изначально созданного фирмой <a class="external text" href="http://www.trolltech.com" rel="nofollow noreferrer noopener" target="_blank">TrollTech</a>.
</p><p>В основе модуля лежит <a href="../../en/API.html" title="Special:MyLanguage/Documents/API">интерфейс управления OpenSCADA</a>, а значит предоставляется единый интерфейс конфигурации. Обновление модуля может потребоваться только в случае обновления спецификации языка интерфейса управления. Для запроса контекста страницы используется групповой запрос интерфейса управления, что позволяет оптимизировать время удалённого доступа по высоколатентным и медленным каналам связи.
</p><p>Рассмотрим рабочее окно конфигуратора на рисунке 1.
</p>
<div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:784px;"><a class="image" href="http://oscada.org/wiki/File:QTCfg_workplacestruct.png"><img class="thumbimage" height="720" src="../../en/files/QTCfg_workplacestruct.png" width="782" /></a>  <div class="thumbcaption">Рис.1. Рабочее окно конфигуратора.</div></div></div></div>
<p>Рабочее окно конфигуратора состоит из следующих частей:
</p>
<dl><dd>1 <i>Меню</i> — содержит выпадающее меню конфигуратора.</dd>
<dd>2 <i>Панель инструментов</i> — содержит кнопки быстрого управления.</dd>
<dd>3 <i>Навигатор</i> — предназначен для прямой навигации по дереву управления.
<dl><dd><dl><dd> <a class="image" href="http://oscada.org/wiki/File:At.png"><img alt="At.png" height="22" src="../../en/files/At.png" width="22" /></a> Изображение иконки <a href="../Program_manual.html#Projects" title="Special:MyLanguage/Documents/Program manual">проекта OpenSCADA</a> сначала получается из файла "<b>{StationName}.[png|gif|jpg|jpeg]</b>", а затем, при отсутствии первого, из файла "<b>{StationID}.[png|gif|jpg|jpeg]</b>", в <a href="../Program_manual.html#Config" title="Special:MyLanguage/Documents/Program manual">каталоге иконок</a>.</dd></dl></dd>
<dd>3.1 Поле ввода текста для поиска элемента в текущей ветви дерева.</dd></dl></dd>
<dd>4 <i>Строка статуса</i> — отображает состояний конфигуратора с кнопкой вызова истории строки статуса.
<dl><dd>4.1 <i>Индикатор/выбор пользователя</i> — отображает текущего пользователя, по двойному клику открывается диалог выбора пользователя. Также содержит индикатор факта внесения изменений в конфигурацию.</dd></dl></dd>
<dd>5 <i>Рабочее поле</i> — поделено на части:
<dl><dd>5.1 <i>Имя узла</i> — содержит имя текущего узла.</dd>
<dd>5.2 <i>Табулятор рабочих областей</i> — в табулятор помещаются корневые страницы (области управления) узла. Области управления следующих уровней помещаются в основном пространстве контроля.</dd></dl></dd></dl>
<p>Menu of the configurator contains the following items:
</p>
<ul><li> <i>File</i> — group of the general commands:
<ul><li> <i>Load from DB</i> — loads the selected object or branch of the object from the database.</li>
<li> <i>Load from DB forcibly</i> — loads the selected object or branch of the object from the database forcibly, not only when it changed.</li>
<li> <i>Save to DB</i> — saves the selected object or branch of the object to the database.</li>
<li> <i>Save to DB forcibly</i> — saves the selected object or branch of the object to the database forcibly, not only when it changed.</li>
<li> <i>Close</i> — closes the configurator window.</li>
<li> <i>Quit</i> — quits OpenSCADA.</li></ul></li>
<li> <i>Edit</i> — editing commands:
<ul><li> <i>Add</i> — adds a new object to the container.</li>
<li> <i>Delete</i> — deletes the selected object.</li>
<li> <i>Copy item</i> — copies the selected object.</li>
<li> <i>Cut item</i> — cuts of the selected object. The original object is removed after paste.</li>
<li> <i>Paste item</i> — pastes of the copied or cut item.</li></ul></li>
<li> <i>View</i> — navigation and control of the view commands:
<ul><li> <i>Up</i> — goes to the parent page.</li>
<li> <i>Back</i> — goes back to the previous page, with a menu of direct access items.</li>
<li> <i>Forward</i> — goes forward to the forward page, with a menu of direct access items.</li>
<li> <i>Refresh</i> — refreshes the current page.</li>
<li> <i>Start</i> — runs periodically update of the current page content with an interval of one second.</li>
<li> <i>Stop</i> — stops the periodically update of the current page content with an interval of one second.</li>
<li> <i>Favorite</i> — going to the selected favorite pages.</li>
<li> <i>Append to favorite for {Page}/Remove from favorite  for {Page}</i> — toggles the current page as favorite.</li></ul></li>
<li> <i>Help</i> — assistance call commands:
<ul><li> <i>About</i> — information about this module and OpenSCADA.</li>
<li> <i>About Qt</i> — information about the Qt library.</li>
<li> <i>Manual on 'QTCfg' </i> — calls inline or offline manual on the module QTCfg.</li>
<li> <i>Manual on 'OpenSCADA 0.9' </i> — calls inline or offline index of links to documents and manuals on OpenSCADA.</li>
<li> <i>Manual on the page</i> — calls inline or offline manual on selected page.</li>
<li> <i>What's This</i> — requests information for the interface elements and receive their full contextual help.</li></ul></li></ul>
<p>The toolbar contains the following management buttons (from left to right):
</p>
<ul><li> <i>Load from the DB</i> — loads the selected object or branch of the object from the database.</li>
<li> <i>Save to the DB</i> — saves the selected object or branch of the object to the database.</li>
<li> <i>Add</i> — adds a new object to the container.</li>
<li> <i>Delete</i> — deletes the selected object.</li>
<li> <i>Copy item</i> — copies the selected object.</li>
<li> <i>Cut item</i> — cuts of the selected object. The original object is removed after paste.</li>
<li> <i>Paste item</i> — pastes of the copied or cut item.</li>
<li> <i>Up</i> — goes to the parent page.</li>
<li> <i>Back</i> — goes back to the previous page, with a menu of direct access items.</li>
<li> <i>Forward</i> — goes forward to the forward page, with a menu of direct access items.</li>
<li> <i>Refresh</i> — refreshes the current page.</li>
<li> <i>Start</i> — runs periodically update of the current page content with an interval of one second.</li>
<li> <i>Stop</i> — stops periodically update of the current page content with an interval of one second.</li>
<li> <i>Favorite</i> — going to the selected favorite pages.</li>
<li> <i>Append to favorite for {Page}/Remove from favorite  for {Page}</i> — toggles the current page as favorite.</li>
<li> <i>Manual on the page</i> — calls inline or offline manual on selected page.</li>
<li> Call buttons of the graphical interface modules of OpenSCADA based on the Qt library</li></ul>
<p>In the navigation tree the context menu of following contents is supported:
</p>
<ul><li> <i>Load from the DB</i> — loads the selected object or branch of the object from the database.</li>
<li> <i>Save to the DB</i> — saves the selected object or branch of the object to the database.</li>
<li> <i>Add</i> — adds a new object to the container.</li>
<li> <i>Delete</i> — deletes the selected object.</li>
<li> <i>Copy item</i> — copies the selected object.</li>
<li> <i>Cut item</i> — cuts of the selected object. The original object is removed after paste.</li>
<li> <i>Paste item</i> — pastes of the copied or cut item.</li>
<li> <i>Favorite</i> — going to the selected favorite pages.</li>
<li> <i>Append to favorite for {Page}/Remove from favorite  for {Page}</i> — toggles the current page as favorite.</li>
<li> <i>Refresh the items tree</i> — refreshes the navigation tree content.</li></ul>
<p>Элементы управления делятся на: базовые, команды, списки, таблицы и изображения. Все элементы отображаются в последовательности, строго соответствующей их расположению в описании языка интерфейса управления.
</p>
<div class="toc" id="toc"><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#Configuration"><span class="tocnumber">1</span> <span class="toctext">Configuration</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#.D0.91.D0.B0.D0.B7.D0.BE.D0.B2.D1.8B.D0.B5_.D1.8D.D0.BB.D0.B5.D0.BC.D0.B5.D0.BD.D1.82.D1.8B"><span class="tocnumber">2</span> <span class="toctext">Базовые элементы</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#.D0.9A.D0.BE.D0.BC.D0.B0.D0.BD.D0.B4.D1.8B"><span class="tocnumber">3</span> <span class="toctext">Команды</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#.D0.A1.D0.BF.D0.B8.D1.81.D0.BA.D0.B8"><span class="tocnumber">4</span> <span class="toctext">Списки</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#.D0.A2.D0.B0.D0.B1.D0.BB.D0.B8.D1.86.D1.8B"><span class="tocnumber">5</span> <span class="toctext">Таблицы</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Images"><span class="tocnumber">6</span> <span class="toctext">Images</span></a></li>
</ul>
</div>

<h2><span class="mw-headline" id="Configuration"><span class="mw-headline-number">1</span> Configuration</span></h2>
<p>In order to customize its own behavior in some cases, the module provides the ability to configure the parameters through the control interface of OpenSCADA (Fig.2). These parameters are:
</p>
<ul><li> Timeouts of the connection checking '{fail}:{good}' — sometimes (for the SSH tunnels), it is useful to reduce the connecting timeout up to 30 seconds to keep the connection.</li>
<li> Initial path of the configurator — allows to determine what local page to open when you start the configurator.</li>
<li> Initial user of the configurator — points on behalf of the which user to open configuration without requiring a password.</li>
<li> ToolTip limit in chars to prevent of big emerging help windows, by default 150. Set zero for disable.</li>
<li> Go to configuration of the remote OpenSCADA hosts list, which is used to provide the remote configuration.</li></ul>
<div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:939px;"><a class="image" href="http://oscada.org/wiki/File:QTCfg_ru.png"><img class="thumbimage" height="506" src="../files/QTCfg_ru.png" width="937" /></a>  <div class="thumbcaption">Рис.2. Страница конфигурации самого конфигуратора.</div></div></div></div>
<p>Вертикально масштабированные поля (перечень, текст и таблица) предусматривают автоматичное масштабирование на доступное пространство и под содержимое полей. Кроме этого, для них доступна возможность ручного изменение высоты путём хватания за нижний край виджета и перетягивания его, что однако работает не для всех стилей виджетов Qt.
</p>
<h2><span class="mw-headline" id=".D0.91.D0.B0.D0.B7.D0.BE.D0.B2.D1.8B.D0.B5_.D1.8D.D0.BB.D0.B5.D0.BC.D0.B5.D0.BD.D1.82.D1.8B"><span class="mw-headline-number">2</span> Базовые элементы</span></h2>
<p>В число базовых элементов входят: информационные элементы, поля ввода значений, элементы выбора из списка, флаги, текстовые поля. В случае отсутствия имени элемента, базовый элемент присоединяется к предыдущему базовому элементу. Пример группы базовых элементов с присоединением приведён на рисунке 3.
</p><p>Для элементов ввода, которые не подразумевают мгновенного изменения и могут продолжительное время редактироваться перед окончательным завершением, предусмотрен механизм подтверждения. Этот механизм позволяет исключить задержки при редактировании, особенно в случае конфигурации удалённых станций, и вносить изменения по подтверждению. К элементам ввода с подтверждением относятся: поля ввода строк текста или числовых значений и текстовые поля. Подтверждение осуществляется нажатием кнопки, которая появляется рядом с полем ввода после начала редактирования.
</p><p>Текстовые поля поддерживает поиск, также как подсветку синтаксиса, правила которой передаются в виде регулярных выражений из интерфейса управления или могут быть встроены в значение текста как комментарий в <a href="../../en/API.html#SnthHgl" title="Special:MyLanguage/Documents/API">XML-теге "SnthHgl"</a>.
</p>
<div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:817px;"><a class="image" href="http://oscada.org/wiki/File:QTCfg_genelem_ru.png"><img class="thumbimage" height="657" src="../files/QTCfg_genelem_ru.png" width="815" /></a>  <div class="thumbcaption">Рис.3. Присоединение базовых элементов.</div></div></div></div>
<h2><span class="mw-headline" id=".D0.9A.D0.BE.D0.BC.D0.B0.D0.BD.D0.B4.D1.8B"><span class="mw-headline-number">3</span> Команды</span></h2>
<p>Команды — это элементы передачи определённых указаний действия узлу и организации ссылок-переходов на другие страницы. Команды могут содержать параметры. Параметры формируются из базовых элементов. Пример команды с параметрами приведен на рисунке 4.
</p>
<div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:804px;"><a class="image" href="http://oscada.org/wiki/File:QTCfg_commandelem_ru.png"><img class="thumbimage" height="552" src="../files/QTCfg_commandelem_ru.png" width="802" /></a>  <div class="thumbcaption">Рис.4. Команда.</div></div></div></div>
<h2><span class="mw-headline" id=".D0.A1.D0.BF.D0.B8.D1.81.D0.BA.D0.B8"><span class="mw-headline-number">4</span> Списки</span></h2>
<p>Списки содержат группу базовых элементов одного типа. Операции над элементами доступны через контекстное меню списка. Через элементы списка могут выполняться операции перехода на другие страницы, обычно дочерние. Переход осуществляется посредством двойного клика мышки на элементе списка. Списки могут быть индексированными. Пример списка приведен на рисунке 5.
</p>
<div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:752px;"><a class="image" href="http://oscada.org/wiki/File:QTCfg_listelem_ru.png"><img class="thumbimage" height="403" src="../files/QTCfg_listelem_ru.png" width="750" /></a>  <div class="thumbcaption">Рис.5. Список.</div></div></div></div>
<h2><span class="mw-headline" id=".D0.A2.D0.B0.D0.B1.D0.BB.D0.B8.D1.86.D1.8B"><span class="mw-headline-number">5</span> Таблицы</span></h2>
<p>Таблицы содержат значения базовых элементов и поддерживают поиск. Тип базового элемента является индивидуальным для каждой колонки. Пример таблицы приведен на рисунке 6. Операции над структурой таблицы, для редактируемых таблиц, доступны посредством контекстного меню. Редактирование элементов таблицы производится путём двойного клика по нужной ячейке.
</p>
<div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:935px;"><a class="image" href="http://oscada.org/wiki/File:QTCfg_tableelem_ru.png"><img class="thumbimage" height="579" src="../files/QTCfg_tableelem_ru.png" width="933" /></a>  <div class="thumbcaption">Рис.6. Таблица.</div></div></div></div>
<h2><span class="mw-headline" id="Images"><span class="mw-headline-number">6</span> Images</span></h2>
<p>The images are designed to transmit graphic information into the configurators. Example of the image is shown in Figure 7. From the context menu you can save the image and writable ones you can also load and clear.
</p>
<div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:1022px;"><a class="image" href="http://oscada.org/wiki/File:QTCfg_imgelem_ru.png"><img class="thumbimage" height="618" src="../files/QTCfg_imgelem_ru.png" width="1020" /></a>  <div class="thumbcaption">Рис.7. Изображение.</div></div></div></div>






</div><table style="border-top: dotted 2px #999999; margin-top: 20pt; color: gray;" width="100%"><tr><td style="text-align: left;" width="40%"><a href="http://oscada.org/wiki/Modules/QTCfg/ru">Modules/QTCfg/ru</a> - <a href="http://oscada.org/en/main/about-the-project/licenses/">GFDL</a></td><td style="text-align: center;">April 2025</td><td style="text-align: right;" width="40%">OpenSCADA 1+r3018</td></tr></table></body>
</html>