Инструменты пользователя

Инструменты сайта


en:documentation:movebutton_adddialog

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
Последняя версияСледующая версия справа и слева
en:documentation:movebutton_adddialog [2019/03/12 12:50] – created loopbacken:documentation:movebutton_adddialog [2019/03/13 19:32] loopback
Строка 1: Строка 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 ====== AddDialog ====== ====== AddDialog ======
  
-Команда добавляет диалог в список отслеживаемых диалогов.+The command adds the dialog to the list of dialogs being processed.
  
 <code> <code>
Строка 9: Строка 7:
 </code> </code>
  
-**Параметры поиска диалога**+**Dialog search parameters**
 |< 100% 15% >| |< 100% 15% >|
-|<name/class>|Название диалога или имя класса диалогаЕсли это имя не одно из предопределенных имен (смотрите ниже), то трактуется как имя класса диалога.|+|<name/class>|The name of the dialog or the name of the dialog classIf this name is not one of the predefined names (see below), then it is interpreted as the name of the dialog class.|
  
-**Параметры изменения диалога** 
  
-Параметры /X, /Y, /W, /H задают смещение относительно исходных координат окна или изменение его размеров. Если параметр опущен, то считается, что его значение = 0 (т.е. окно не перемещается по этой координате или не изменяет соответствующий размер). +**Dialog modify parameters**
  
-Значения параметров задаются для стандартной плотности 96 dpi. При более высоких значениях плотности диалог будет масштабироваться автоматическиЭто поведение можно изменить параметром /NOSCALE.+The parameters /X, /Y, /W, /H set the offset relative to the original coordinates of the window or change its size. If the parameter is omitted, then its value is considered to be = 0 (i.e., the window does not move along this coordinate or does not change the corresponding size). 
 + 
 + 
 +Parameter values are set for a standard density of 96 dpi. At higher density values, the dialog will scale automaticallyThis behavior can be changed with the / NOSCALE option.
 |< 100% 15% >| |< 100% 15% >|
-|/X:<value>|Смещение диалога по относительно исходного положения диалогаПоложительное значение смещает диалог вправоотрицательное - влево.| +|/X:<value>|The offset of the dialogue on the relative to the initial position of the dialogueA positive value shifts the dialog to the righta negative one to the left.| 
-|/Y:<value>|Смещение диалога по относительно исходного положения диалогаПоложительное значение смещает диалог внизотрицательное вверх.| +|/Y:<value>|The offset of the dialogue on relative to the initial position of the dialogueA positive value shifts the dialogue downa negative one up.| 
-|/W:<value>|Изменение ширины диалога относительно исходнойПоложительное значение увеличивает ширинуотрицательное - уменьшает.| +|/W:<value>|Changing the width of the dialogue relative to the originalA positive value increases the widtha negative value decreases.| 
-|/H:<value>|Изменение высоты диалога относительно исходнойПоложительное значение увеличивает высотуотрицательное - уменьшает.| +|/H:<value>|Change the height of the dialogue relative to the originalA positive value increases the heighta negative value decreases.| 
-|<text>|Новый текст заголовка диалога.| +|<text>|New dialog title text.| 
-|/NOSCALE|Отключает автоматическое масштабирование изменений смещения/размера для данного диалога и всех его элементов управленияПозволяет максимально точно задать нужные значения для нужной плотности пикселейПри использовании этого параметра вам необходимо делать наборы элементов управления под каждую используемую плотность пикселей и выбирать нужный набор в Autorun.| +|/NOSCALE|Disables the automatic scaling of the offset/size changes for this dialog and all its controlsAllows you to accurately specify the desired values for the desired pixel densityWhen using this parameter, you need to make sets of controls for each pixel density used and select the desired set in Autorun.| 
-|/SAVE:<value>|Включает сохранение и загрузку положения и/или размера для данного диалогаЗначение **value** является суммой флагов:\\ 1 - сохранять x\\ 2 - сохранять y\\ 4 - сохранять ширину\\ 8 - сохранять высоту\\ \\ Положения сохраняются в файле с именем плагина и расширением "pos", по умолчанию это Autorun_ModifyDialogs.pos.\\ \\ Обратите вниманиечто работа функции сохранения зависит от класса диалога и заданных для него условийпоэтому при изменении любого из этих параметров сохраненные значения будут сброшены в значения по умолчаниюТакже, те диалоги, у которых для разных версий различны условиябудут сохраняться независимо для 32-х и 64-х битной версии.\\ \\ :!: Не все окна Total Commander позволяют изменять свои размерыв некоторых диалогах включено ограничение на изменение размера (напримерв диалоге "Поиск файловнельзя менять высоту).| +|/SAVE:<value>|Includes saving and loading of position and/or size for this dialogThe **value** is the sum of the flags:\\ 1 - save x\\ 2 - save y\\ 4 - save width\\ 8 - save height\\ \\ The positions are saved in a file with the name of the plugin and the extension "pos", by default it is Autorun_ModifyDialogs.pos\\ \\ Note that the operation of the save function depends on the class of the dialog and the conditions set for itso if you change any of these parametersthe saved values will be reset to their default valuesAlsothose dialogues that have different conditions for different versions will be saved independently for the 32-bit and 64-bit versions.\\ \\ :!: Not all Total Commander windows allow you to resizein some dialogs the restriction on resizing is included (for examplethe height cannot be changed in the "File Searchdialog).\\ \\ Saving supports fine tuning by editing the keys in the pos-file, see below for details.| 
-|/CENTER:<value>|Включает центрирование диалогаЗначение **value** является суммой флагов:\\ 1 - центрировать по х\\ 2 - центрировать по y\\ 4 - центрировать относительно родительского окна\\ \\ По умолчаниюокна центрируются относительно главного окна Total Commander. Флаг позволяет центрировать относительно родительского окнаЕсли родительским окном к диалогу является главное окното использование флага не имеет значения.\\ \\ Обратите внимание, центрирование окна происходит после изменения размеров с параметрами /W, /H или их восстановления параметром /SAVE со значением 4, 8 или 12.| +|/CENTER:<value>|Enables centering the dialogThe **value** is the sum of the flags:\\ 1 - center on x\\ 2 - center on y\\ 4 - center on the parent window\\ \\ By defaultwindows are centered on the main window of Total Commander. Flag allows centering relative to the parent windowIf the parent window to the dialog is the main windowthen using flag does not matter.\\ \\ Note that the window is centered after resizing with the /W, /H parameters or restoring them with /SAVE with 4, 8 or 12.| 
-|/WAIT:<value>|Ожидание перед выполнением операций над диалогомЗначение **value** задается в миллисекундах.\\ \\ Размеры и позиция некоторых диалогов не могут быть изменены в тот момент, когда работает плагин (либо они изменяются самим Total Commander позже). Для обхода таких ситуаций есть возможность включить задержкуПри этом операции над диалогом (изменение положения и размероввосстановление размеровцентрированиебудут производиться уже после того, как их обработает Total Commander.\\ \\ Обратите вниманиечто при использовании этой опции операции надо окном будут производиться после тогокак оно станет видимым, соответственно, вы будете видеть и его перемещенияЭтот эффект можно минимизировать путем правильной настройки задержки.\\ \\ Число задержки должно быть больше 0. Если оно равно 0, ожидание не будет производиться.|+|/WAIT:<value>|Waiting before performing operations on the dialogueThe **value** is set in milliseconds.\\ \\ The size and position of some dialogs cannot be changed while the plugin is running (or they are changed by Total Commander later). To circumvent such situations, it is possible to enable a delayAt the same time, operations on the dialog (changing position and sizerestoring dimensionscenteringwill be done after Total Commander processes them.\\ \\ Please note that when using this parameterthe operations for the dialog will be performed after it will become visibleso you will see it's movementThis effect can be minimized by properly setting the delay.\\ \\ The delay number must be greater than 0. If it is 0, no waiting will be given.| 
 + 
 +**Dialogs predefined names** 
 + 
 +Due to the fact that in Total Commander can use one class for different dialogues, that are difficult to distinguish, or additional processing is required (for example, controls that appear after pressing the "Options" button in the copy dialog), some dialogs have been assigned special names. Currently, special processing requires only one dialogue, for which the names are provided: 
 + 
 +|DIALOG_COPYMOVE|Standard copy/move dialog.| 
 +|DIALOG_COPYMOVE_POST|Sets the controls that appear after pressing the "Options" button in the copy/move dialog.| 
 +|DIALOG_COPYMOVE_PINNED|Sets the controls for the open window (with the "pin" button pressed) in the copy/move dialog.| 
 + 
 +**Save fine tuning**
  
-**Названия диалогов**+When you enable saving dialog positions, a file with the pos extension will be created. By structure, this is a regular ini-file, and the following keys will be created in the "Common" section, by changing the values of which you can change some aspects of the storage function:
  
-В связи с тем, что в Total Commander в некоторых случаях используются разные диалоги с одним классом, которые сложно различить, либо требуется их дополнительная обработка (например, элементы управления, появляющиеся после нажатия кнопки "Опции" в диалоге копирования), некоторым диалогам были назначены специальные названия. В настоящее время специальной обработки требует только один диалог, для которого предусмотрены названия: +|ScreenResDependent=1|By default, storing positions/sizes depends on the screen resolution. Set to 0 so that the save does not depend on the resolution.| 
-|DIALOG_COPYMOVE|Стандартный диалог копирования/перемещения.| +|RestoreFromLastRes=1|When you first open a dialog on a new resolutionthe positions/dimensions of the dialog will be taken from the last resolution used. Set to 0 to allow Total Commander to set the position/size of the dialog for the new resolution. It works only if **ScreenResDependent** is 1.| 
-|DIALOG_COPYMOVE_POST|Задает элементы управления появляющиеся после нажатия кнопки "Опции" в диалоге копирования/перемещения.| +|NoRestartToCreate=1|By default, when the resolution is changed, the section for the new resolution is created immediately upon the next opening of the dialog. When this key is set to 0, new sections will be created only when Total Commander next starts up. It can be useful in environments with frequent resolution changes, such as virtual machines. It works only if **ScreenResDependent** is 1.|
-|DIALOG_COPYMOVE_PINNED|Задает элементы управления для раскрытого окна (с нажатой кнопкой прикрепления) в диалоге копирования/перемещения.|+
  
en/documentation/movebutton_adddialog.txt · Последнее изменение: 2019/06/20 16:38 — 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki