Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.49k stars 170 forks source link

plugins need the update to avoid DELETED API 'props' #3223

Closed Alexey-T closed 3 years ago

Alexey-T commented 3 years ago
    <plugin.Backup_File/cd_bk.py>: #5
        < 526>:                  +[dict(cid='d4ma',tp='ed'  ,t= 85      ,l=5+120        ,w=580+5                            ,en=opdf,props='1,0,1'  )] #     ro,mono,brd
        < 532>:                  +[dict(cid='dfmx',tp='sp-ed',tid='diff',l=5+630+100+10 ,w= 50                              ,en=opdf,props='0,20,1' )] #
        < 547>:                  +[dict(cid='d4mo',tp='ed'  ,t=235      ,l=5+120        ,w=580+5                                    ,props='1,0,1'  )] #     ro,mono,brd
        < 558>:                  +[dict(cid='!'   ,tp='bt'  ,tid='-'    ,l=DLGW-175     ,w=80   ,cap=_('OK')                        ,props='1'      )] #     default
        < 814>:          [dict(cid='htx',tp='me'    ,t=GAP  ,h=650  ,l=GAP          ,w=600  ,props='1,1,1' ) #  ro,mono,border
Alexey-T commented 3 years ago
    <plugin.External_Tools/cd_exttools.py>: #24
        < 158>:          [dict(cid='htx',tp='me'    ,t=GAP  ,h=600  ,l=GAP          ,w=590  ,props='1,1,1' ) #  ro,mono,border
        < 754>: #                        ,dict(cid='!'  ,tp='bt'    ,t=GAP+400+GAP  ,l=    200-140  ,w=70   ,cap=_('OK'),props='1'  ) #  default
        < 900>:                     +[dict(cid='edt',tp='bt'    ,t=ACTS_T[1],l=ACTS_L[1]    ,w=ACTS_W           ,cap=_('&Edit...')          ,props='1'  ,en=lG0 )] # &e  default
        <1234>:                      ,dict(cid='edt',tp='bt'    ,t=bt_t1       ,l=bt_l1        ,w=110  ,cap=_('&Edit...')  ,props='1'   ,en=nempty  )   # &e  default
        <1269>:                      ,dict(cid='!'  ,tp='bt'    ,t=GAP+110    ,l=    400-140  ,w=70   ,cap=_('OK'),props='1'  ) #     default
        <1356>:                  ,dict(cid='!'  ,tp='bt'    ,t=GAP+400+GAP  ,l=    300-140  ,w=70   ,cap=_('OK'),props='1'  ) #  default
        <1399>:                      ,dict(cid='keys',tp='ed'   ,t=PROP_T[3]   ,l=PRP2_L   ,w=PRP2_W                       ,props='1,0,1'   ) #     ro,mono,border
        <1404>:                      ,dict(cid='!'   ,tp='bt'   ,t=PROP_T[4]+9 ,l=DLG_W-GAP*2-100*2,w=100  ,cap=_('OK')    ,props='1'       ) #     default
        <1418>:                 # Check props
        <1529>:                      +[dict(cid='lxrs',tp='ed'   ,t=PROP_T[6]   ,l=PRP2_L   ,w=PRP2_W                       ,props='1,0,1'      )] #     ro,mono,border
        <1533>:                      +[dict(cid='main',tp='ed'   ,t=PROP_T[7]   ,l=PRP2_L   ,w=PRP2_W                       ,props='1,0,1'      )] #     ro,mono,border
        <1540>:                      +[dict(cid='keys',tp='ed'   ,t=PROP_T[9]   ,l=PRP2_L   ,w=PRP2_W                       ,props='1,0,1'      )] #     ro,mono,border
        <1546>:                      +[dict(cid='encd',tp='ed'   ,t=PROP_T[12]  ,l=PRP2_L   ,w=PRP2_W                       ,props='1,0,1'      )] #     ro,mono,border
        <1549>:                      +[dict(cid='pttn',tp='ed'   ,t=PROP_T[13]  ,l=PRP2_L   ,w=PRP2_W                       ,props='1,0,1'      )] #     ro,mono,border
        <1553>:                      +[dict(cid='more',tp='ed'   ,t=PROP_T[14]  ,l=PRP2_L   ,w=PRP2_W                       ,props='1,0,1'      )] #     ro,mono,border
        <1559>:                      +[dict(cid='!'   ,tp='bt'   ,t=PROP_T[15]+9,l=DLG_W-GAP*2-100*2,w=100  ,cap=_('OK')    ,props='1',en=for_ed)] #     default
        <1589>:                 # Check props
        <1680>:                          ,dict(cid='!'  ,tp='bt'    ,t=GAP+400+GAP  ,l=    200-140  ,w=70   ,cap=_('OK'),props='1'  ) #  default
        <1722>:                      dict(cid='!'   ,tp='bt',t=GAP+avd_h+GAP,l=    600-140  ,w=70   ,cap=_('OK')     ,props='1' ) # default
        <1750>:                                                                                                             ,props=RE_REF                ) # &r
        <1762>:                  ,dict(cid='file'      ,tp='ed'     ,t=110+GAP*0+23*1   ,l=GAP+ 80      ,r=DLG_W-GAP*2-70               ,props='1,0,1'   ) #   ro,mono,border
        <1764>:                  ,dict(cid='line'      ,tp='ed'     ,t=110+GAP*1+23*2   ,l=GAP+ 80      ,r=DLG_W-GAP*2-70               ,props='1,0,1'   ) #   ro,mono,border
        <1766>:                  ,dict(cid='col'       ,tp='ed'     ,t=110+GAP*2+23*3   ,l=GAP+ 80      ,r=DLG_W-GAP*2-70               ,props='1,0,1'   ) #   ro,mono,border
        <1771>:                  ,dict(cid='ok'        ,tp='bt'     ,t=DLG_H-GAP-24 ,l=    550-140      ,w=70               ,cap=_('OK'),props='1'       ) #   default
Alexey-T commented 3 years ago
    <plugin.Configure_Menu/cd_config_menu.py>: #5
        < 464>:                  ,dict(           tp='clr'  ,t= 40,l=0,w=1000,h=1           ,props=f('0,{},0,0',rgb_to_int(185,185,185))                    ) #
        < 478>:                  ,dict(cid='!'   ,tp='bt'   ,t=170      ,l=5+350-160,w=80           ,cap=_('Save')  ,props='1'                              ) #     default
        < 599>:                      [dict(cid='htx',tp='me'    ,t=GAP  ,h=550  ,l=GAP          ,w=640  ,props='1,1,1' ) #  ro,mono,border
        < 648>: #                     ,'props='+REF_HELP_CFG_MENU #url
        < 652>: #                     ,'props=1' #default
Alexey-T commented 3 years ago
    <plugin.Configure_Hotkeys/cd_config_keys.py>: #3
        < 234>:   ('fltr',dict(tp='bt'  ,t=5+40+10      ,l=M.lrpt   ,w=100  ,cap=_('&Filter')           ,props='1'                  ,call=m.do_fltr )) # &f  default
        < 251>:  ,('lwks',dict(tp='lvw' ,t=5+50         ,l=5        ,w=M.LST_W,h=M.LST_H    ,items=itms ,props='1'      ,a='tB'                     
        < 311>:              [dict(cid='htxt',tp='me'    ,t=GAP  ,h=DH-28,l=GAP          ,w=DW   ,props='1,0,1'  ) #  ro,mono,border
Alexey-T commented 3 years ago
    <plugin.Configure_PyCodeStyle/cd_pep8.py>: #2
        < 180>:                  ,dict(cid='maxl',tp='sp-ed'    ,t=210          ,l=450+350  ,w= 65      ,props='70,200,1'                           )
        < 189>:                  ,dict(cid='!'   ,tp='bt'       ,t=5+645-28     ,l=5+860-165,w=80       ,cap=_('OK')        ,props='1'              ) # default
Alexey-T commented 3 years ago
    <plugin.SnipToCall/cd_snip2call.py>: #3
        < 228>:             cnts    =[dict(cid='fltr',tp='bt'  ,tid='scnd'  ,l=5+520+5  ,w=110  ,cap=_('&Filter')       ,props='1'          ) # &f  default
        < 236>:                      ,dict(cid='lwcs',tp='lvw' ,t=5+50      ,l=5        ,w=520,h=535  ,items=itms       ,props='1'          ) #     grid
        < 273>:                      [dict(cid='htxt',tp='me'    ,t=5  ,h=300-28,l=5          ,w=400  ,props='1,0,1'  ) #  ro,mono,border
Alexey-T commented 3 years ago
    <plugin.Intext_Complete/cd_int_cmpl.py>: #2
        <  85>:                      ,dict(cid='minl',tp='sp-ed',t=180      ,l=180      ,w=DLG_W-180-5                                  ,props='2,5,1'      ) #  
        <  90>:                      ,dict(cid='!'   ,tp='bt'   ,t=DLG_H-30 ,l=DLG_W-180,w=80         ,cap=_('Save')                    ,props='1'          ) #    default
Alexey-T commented 3 years ago

    <plugin.Intext_Bookmarks/cd_int_bms.py>: #1
        < 218>:                  ,dict(cid='!'   ,tp='bt'   ,t=DLG_H-30 ,l=DLG_W-GAP-165,w=80           ,cap=_('Save')          ,props='1'          ) #     default
Alexey-T commented 3 years ago
    <plugin.Macros/cd_macros.py>: #9
        < 152>:  ,dict(cid='expo'   ,tp='bt'    ,t=GAP+35+HT_LST    ,l=    WD_LST-70*2 ,w=70            ,cap=_('&Export')       ,props='1'      )   # default
        < 242>:  ,dict(cid='impo'   ,tp='bt'    ,t=GAP+35+HT_LST    ,l=    WD_LST-70*2 ,w=70            ,cap=_('&Import')       ,props='1'  )   # default
        < 342>: # [dict(cid='view'   ,tp='bt'   ,t=GAP* 1+HT_BTN* 0     ,l=l_btn                ,w=WD_BTN   ,cap=_('&View actions') ,props=n_edable,en=n_edable         )]  # default
        < 347>:  +[dict(cid='run'    ,tp='bt'   ,t=GAP* 5+HT_BTN* 4     ,l=l_btn                ,w=WD_BTN   ,cap=_('&Run!')         ,props=n_vwable ,en=n_edable        )]  # default
        < 349>:  +[dict(cid='times'  ,tp='sp-ed',t=GAP* 6+HT_BTN* 5     ,l=l_btn+WD_BTN_3+GAP   ,r=l_btn+WD_BTN                     ,props=tims_props,en=only_rec_off   )]  # min,max,step
        < 351>:  +[dict(cid='waits'  ,tp='sp-ed',t=GAP* 7+HT_BTN* 6     ,l=l_btn+WD_BTN_3+GAP   ,r=l_btn+WD_BTN-40                  ,props='1,3600,1',en=only_rec_off   )]  # min,max,step
        < 355>:  +[dict(cid='stst'   ,tp='bt'   ,t=GAP*11+HT_BTN*10     ,l=l_btn                ,w=WD_BTN   ,cap=stst_cap           ,props=def_stst                     )]
        < 361>:   [dict(cid='acts'   ,tp='me'   ,t=GAP  ,h=HT_ACTS      ,l=l_acts               ,w=WD_ACTS                          ,props='1,1,1'                      )]  # ro,mono,border
        < 747>:  ,dict(cid='wait'   ,tp='bt'    ,t=GAP*2+25*1   ,l=GAP  ,w=400   ,cap=_('Wait &another {} sec').format(tm_wait)  ,props='1'      )   # default
kvichans commented 3 years ago

Не понял. В чем проблема?

Alexey-T commented 3 years ago

1.0.370 (app 1.128.1)

Alexey-T commented 3 years ago

@kvichans предлагаю. не править плагины а взять УЖЕ поправленный (мной) dlg_wrapper из плагина Cuda_palette. обновить враппер во всех плагах- см выше- которые там видны.

kvichans commented 3 years ago

Да, хорошая идея. Работаю...

kvichans commented 3 years ago

Все обновил и выложил Только kv-addons.json не менял. Без этого нормально?

Alexey-T commented 3 years ago

не хорошо без обновления версий, хотя если очень заняты..