Changeset 3529
- Timestamp:
- Mar 18, 2019, 6:31:47 PM (6 years ago)
- Location:
- trunk/src/netlabs/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/netlabs/macros/config.e ¶
r3434 r3529 2075 2075 call DeleteConfigTree( '\NEPMD\User\Mouse\Mark\Workaround') 2076 2076 call DeleteConfigTree( '\NEPMD\User\Mouse\Url\Browser') 2077 call DeleteConfigTree( '\NEPMD\User\Reflow\Margins1') 2078 call DeleteConfigTree( '\NEPMD\User\Reflow\Margins\1') 2077 2079 2078 2080 call RenameConfigTree( '\NEPMD\User\Mode', '\NEPMD\Var\Mode') … … 2094 2096 call RenameConfigTree( '\NEPMD\User\Keys\AddKeyDefs\Selected', '\NEPMD\User\Keysets\AddKeyDefs\Selected') 2095 2097 call RenameConfigTree( '\NEPMD\User\Reflow\MarginsItem', '\NEPMD\User\Reflow\Margins\Selected') 2096 call RenameConfigTree( '\NEPMD\User\Reflow\Margins1', '\NEPMD\User\Reflow\Margins\1')2097 2098 call RenameConfigTree( '\NEPMD\User\Reflow\Margins2', '\NEPMD\User\Reflow\Margins\2') 2098 2099 call RenameConfigTree( '\NEPMD\User\Search\LastFindDefButton', '\NEPMD\Var\Search\LastFindDefButton') -
TabularUnified trunk/src/netlabs/macros/newmenu.e ¶
r3528 r3529 716 716 'Delete from cursor until begin of next word', 717 717 '') 718 ;719 ; x Box used in: CustEpm720 ; x Draw used in: CustEpm721 ; Fill722 ; Center723 ; x Sort724 ; x Sum725 ; ?Math726 ; x Expand > First727 ; x Expand > Second728 ; Syntax expansion in header729 ;730 718 DefMenuSep() -------------------- 731 719 … … 1322 1310 DefMenuSep() -------------------- 1323 1311 1312 DefMenuItem( 'headerwidth', -- Header width: [] 1313 'Header ~width: []...', 1314 'DefaultHeaderWidth', 1315 'Configure default header width used for boxes, center and syntax expansion', 1316 '') 1317 DefMenuSep() -------------------- 1318 1324 1319 DefMenuItem( 'draw', -- Draw lines 1325 1320 '~Draw lines', … … 1382 1377 'Reformat current email', 1383 1378 '') 1384 DefMenuSep() --------------------1385 1386 1379 DefMenuItem( '', -- Select reflow type... 1387 1380 '~Select reflow type...', 1388 1381 'SelectReflowType', 1389 ' ',1382 'No other type defined yet', 1390 1383 '', 1391 1384 'disabled') … … 1411 1404 'Margins/right margin for wrap and reflow actions', 1412 1405 '') 1413 DefMenuItem( 'reflowmargins1', -- 1: 1414 '~1: [] ',1406 DefMenuItem( 'reflowmargins1', -- 1: [] (header width) 1407 '~1: [] (header width)', 1415 1408 'ReflowmarginsSelect 1', 1416 1409 'Select specified value(s) as reflow margins', 1417 1410 '', 1418 1411 NoDismiss) 1419 DefMenuItem( 'reflowmargins2', -- 2: 1412 DefMenuItem( 'reflowmargins2', -- 2: [] 1420 1413 '~2: []', 1421 1414 'ReflowmarginsSelect 2', … … 1423 1416 '', 1424 1417 NoDismiss) 1425 DefMenuItem( 'reflowmargins3', -- 3: rightmargin1426 '~3: [] ',1418 DefMenuItem( 'reflowmargins3', -- 3: [] (margins) 1419 '~3: [] (margins)', 1427 1420 'ReflowmarginsSelect 3', 1428 1421 'Select file''s margins as reflow margins', … … 1435 1428 '~Configure selected...', 1436 1429 'Set_ReflowMargins', 1437 'Configure selected reflow -margins item...',1430 'Configure selected reflow margins item...', 1438 1431 '') 1439 1432 DefMenuSep() -------------------- … … 3915 3908 KeyPath = '\NEPMD\User\Reflow\Margins\Selected' 3916 3909 i = QueryConfigKey( KeyPath) 3917 if i = 3 then 3910 if i = 1 then 3911 reflowmargins = '1 'GetDefaultHeaderWidth()' 1' 3912 elseif i = 3 then 3918 3913 reflowmargins = .margins 3919 3914 else … … 3952 3947 defc menuinit_reflowmargins 3953 3948 KeyPath = '\NEPMD\User\Reflow\Margins\1' 3954 new = QueryConfigKey( KeyPath)3949 new = '1 'GetDefaultHeaderWidth()' 1' 3955 3950 SetMenuVarText( 'reflowmargins1', new) 3956 3951 … … 3967 3962 SetMenuAttribute( GetAVar( 'mid_reflowmargins2'), MIA_CHECKED, not (i = 2)) 3968 3963 SetMenuAttribute( GetAVar( 'mid_reflowmargins3'), MIA_CHECKED, not (i = 3)) 3964 3965 if i = 1 then 3966 text = '~Configure header width...' 3967 elseif i = 2 then 3968 text = '~Configure selected...' 3969 elseif i = 3 then 3970 text = '~Configure margins...' 3971 endif 3972 SetMenuText( 'mid_reflowmarginsconfig', text) 3969 3973 3970 3974 defc menuinit_linebreaks … … 4106 4110 endif 4107 4111 SetMenuVarText( 'selectboxstyle', new) 4112 new = GetDefaultHeaderWidth() 4113 SetMenuVarText( 'headerwidth', new) 4108 4114 KeyPath = '\NEPMD\User\Format\DrawStyle' 4109 4115 new = QueryConfigKey( KeyPath) … … 6271 6277 args = arg(1) 6272 6278 parse value args with lma rma parma 6273 if lma > '' then6279 if lma <> '' then 6274 6280 if rma = '' then 6275 6281 args = 1 args -- default value for lma is 1 … … 6282 6288 KeyPath = '\NEPMD\User\Reflow\Margins\Selected' 6283 6289 i = QueryConfigKey( KeyPath) 6284 if i = 3 then 6285 new = args 6286 if new = '' then 6287 'ma' -- Open command line with current .margins value 6288 return 6289 endif 6290 reflowmargins = .margins 6290 if i = 1 then 6291 'DefaultHeaderWidth' 6292 return 6293 elseif i = 3 then 6294 'ma' -- Open command line with current .margins value 6295 return 6291 6296 else 6292 6297 KeyPath = '\NEPMD\User\Reflow\Margins\'i … … 6310 6315 KeyPath = '\NEPMD\User\Reflow\Margins\Selected' 6311 6316 WriteConfigKey( KeyPath, i) 6312 if i = 3 then 6317 if i = 1 then 6318 reflowmargins = '1 'GetDefaultHeaderWidth()' 1' 6319 elseif i = 3 then 6313 6320 reflowmargins = .margins 6314 6321 else … … 6321 6328 new = reflowmargins 6322 6329 SetMenuVarText( 'reflowmargins', new) 6330 if i = 1 then 6331 text = '~Configure header width...' 6332 elseif i = 2 then 6333 text = '~Configure selected...' 6334 elseif i = 3 then 6335 text = '~Configure margins...' 6336 endif 6337 SetMenuText( 'mid_reflowmarginsconfig', text) 6323 6338 6324 6339 ; ---------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.