Skip to content

Commit

Permalink
Encyclopedia
Browse files Browse the repository at this point in the history
  • Loading branch information
MKadaner committed Jan 25, 2025
1 parent 2b4e66f commit 1cd9778
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.
6 changes: 4 additions & 2 deletions enc/enc_lua/macroapi_manual.en.tsi
Original file line number Diff line number Diff line change
Expand Up @@ -2239,8 +2239,9 @@ mtime=3607109038
#_
#_**Properties:**
#_
#_ Id: string (GUID)
#_ Value: string
#_ Id: string (GUID)
#_ Value: string
#_ HorizontalAlignment: number
#_
#_**Functions:**
#_
Expand All @@ -2255,6 +2256,7 @@ mtime=3607109038
#_{filterstr}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.FilterStr
#_{filter}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Filter
#_{getvalue}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.GetValue
#_{horizontalalignment}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.HorizontalAlignment
#_{id}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Info.Id
#_{itemstatus}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.ItemStatus
#_{select}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Select
Expand Down
6 changes: 4 additions & 2 deletions enc/enc_lua/macroapi_manual.pl.tsi
Original file line number Diff line number Diff line change
Expand Up @@ -2238,8 +2238,9 @@ mtime=3607109038
#_
#_**Właściwości:**
#_
#_ Id: łańcuch (GUID)
#_ Value: łańcuch
#_ Id: łańcuch (GUID)
#_ Value: łańcuch
#_ HorizontalAlignment: liczba
#_
#_**Funkcje:**
#_
Expand All @@ -2254,6 +2255,7 @@ mtime=3607109038
#_{filterstr}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.FilterStr
#_{filter}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Filter
#_{getvalue}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.GetValue
#_{horizontalalignment}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.HorizontalAlignment
#_{id}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Info.Id
#_{itemstatus}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.ItemStatus
#_{select}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Select
Expand Down
6 changes: 4 additions & 2 deletions enc/enc_lua/macroapi_manual.ru.tsi
Original file line number Diff line number Diff line change
Expand Up @@ -2234,8 +2234,9 @@ mtime=3607109106
#_
#_**Свойства:**
#_
#_ Id: string (GUID)
#_ Value: string
#_ Id: string (GUID)
#_ Value: string
#_ HorizontalAlignment: number
#_
#_**Функции:**
#_
Expand All @@ -2250,6 +2251,7 @@ mtime=3607109106
#_{filterstr}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.FilterStr
#_{filter}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Filter
#_{getvalue}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.GetValue
#_{horizontalalignment}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.HorizontalAlignment
#_{id}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Info.Id
#_{itemstatus}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.ItemStatus
#_{select}: http://api.farmanager.com/ru/macro/macrocmd/prop_func/menus.html#Menu.Select
Expand Down
18 changes: 17 additions & 1 deletion enc/enc_rus/meta/macro/macrocmd/prop_func/menus.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ <h1>Свойства и функции для работы с меню и спи
меню пользователя (<code>UserMenu</code>), меню выбора диска (<code>Disks</code>).</p>

<p>Под списками понимается: список автодополнения (<code>AutoCompletion</code>),
и различные открытые списки в диалогах (<code>Dialog</code>) - List box / Combo box / History.</p>
различные открытые списки в диалогах (<code>Dialog</code>) - List box / Combo box / History,
а также список всех найденных строк (<code>FindAll</code>) в редакторе (<code>Editor</code>).</p>

<p>Далее в тексте "меню" и "списки" не разделяются, и упоминаются под общим названием "меню".</p>

Expand All @@ -42,6 +43,21 @@ <h2>Свойства</h2>
<td>String</td>
<td>строковое представление идентификатора текущего меню</td>
</tr>
<tr>
<td><a name="Menu.HorizontalAlignment">Menu.HorizontalAlignment</a></td>
<td>Number</td>
<td><p>горизонтальное выравнивание пунктов меню:</p>
<table class="cont2 params lite tiny">
<col class="value">
<col>
<tr><th><var>Значение</var></th><th>Описание</th></tr>
<tr><td>0</td><td>пункты меню не выравнены</td></tr>
<tr><td>1</td><td>все пункты меню выравнены налево</td></tr>
<tr><td>2</td><td>все пункты меню выравнены направо</td></tr>
<tr><td>4</td><td>все пункты меню выравнены по аннотациям, т.е., по найденному образцу в списке всех найденных строк (<code>FindAll</code>) в редакторе (<code>Editor</code>)</td></tr>
<tr><td>-1</td><td>оператор вызван не для меню</td></tr>
</table>
</tr>

<tr><th colspan="3">Меню выбора диска</th></tr>
<tr><th>Оператор</th><th>Тип</th><th>Описание</th></tr>
Expand Down
2 changes: 1 addition & 1 deletion far/macro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static_assert(MCODE_V_HELPTOPIC == 0x80841); // Help.Topic
static_assert(MCODE_V_HELPSELTOPIC == 0x80842); // Help.SelTopic
static_assert(MCODE_V_MENU_VALUE == 0x80843); // Menu.Value
static_assert(MCODE_V_MENUINFOID == 0x80844); // Menu.Info.Id
static_assert(MCODE_V_MENU_HORIZONTALALIGNMENT == 0x80845); // Menu.HorizontalAlignment
static_assert(MCODE_V_MENU_HORIZONTALALIGNMENT == 0x80845); // Menu.HorizontalAlignment

// для диалога назначения клавиши
struct DlgParam
Expand Down

0 comments on commit 1cd9778

Please sign in to comment.