home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / ybrowser.exe / 0 / RCDATA / TAFFRMTABPROCESS / TAFFRMTABPROCESS.txt
Text File  |  2013-04-03  |  14KB  |  544 lines

  1. object AFfrmTabProcess: TAFfrmTabProcess
  2.   Left = 0
  3.   Top = 0
  4.   ClientHeight = 179
  5.   ClientWidth = 139
  6.   Color = clBtnFace
  7.   Font.Charset = DEFAULT_CHARSET
  8.   Font.Color = clWindowText
  9.   Font.Height = -11
  10.   Font.Name = 'Tahoma'
  11.   Font.Style = []
  12.   OldCreateOrder = False
  13.   OnClose = FormClose
  14.   OnCloseQuery = FormCloseQuery
  15.   OnCreate = FormCreate
  16.   OnDestroy = FormDestroy
  17.   PixelsPerInch = 96
  18.   TextHeight = 13
  19.   object tmrUserPlayed: TTimer
  20.     Enabled = False
  21.     Interval = 280
  22.     OnTimer = tmrUserPlayedTimer
  23.     Left = 40
  24.     Top = 8
  25.   end
  26.   object AppEvents: TApplicationEvents
  27.     OnException = AppEventsException
  28.     OnIdle = AppEventsIdle
  29.     Left = 72
  30.     Top = 136
  31.   end
  32.   object tmrFree: TTimer
  33.     Enabled = False
  34.     Interval = 2
  35.     OnTimer = tmrFreeTimer
  36.     Left = 8
  37.     Top = 8
  38.   end
  39.   object alCtxMenu: TActionList
  40.     Left = 8
  41.     Top = 136
  42.     object actCtxPasteAndEnter: TAction
  43.       Tag = 20011
  44.       Caption = 'Paste and Submit'
  45.       GroupIndex = 2
  46.       OnExecute = actCtxPasteAndEnterExecute
  47.       OnUpdate = actCtxPasteAndEnterUpdate
  48.     end
  49.     object actCtxBv5: TAction
  50.       Tag = 20000
  51.       Caption = '-'
  52.     end
  53.     object actCtxSearch: TAction
  54.       Tag = 20001
  55.       Caption = 'Search'
  56.       GroupIndex = 4
  57.       OnExecute = actCtxSearchExecute
  58.       OnUpdate = actCtxTxtUpdate
  59.     end
  60.     object actCtxHighlight: TAction
  61.       Tag = 20002
  62.       Caption = 'Highlight'
  63.       GroupIndex = 4
  64.       OnExecute = actCtxHighlightExecute
  65.       OnUpdate = actCtxHighlightUpdate
  66.     end
  67.     object actCtxBv1: TAction
  68.       Tag = 20000
  69.       Caption = '-'
  70.     end
  71.     object actOpenDetach: TAction
  72.       Tag = 20015
  73.       Caption = 'Open in Detached Tab'
  74.       GroupIndex = 5
  75.       OnExecute = actOpenDetachExecute
  76.       OnUpdate = actOpenDetachUpdate
  77.     end
  78.     object actOpenSplited: TAction
  79.       Tag = 20016
  80.       Caption = 'Open in The Other Split Side'
  81.       GroupIndex = 5
  82.       OnExecute = actOpenSplitedExecute
  83.       OnUpdate = actOpenSplitedUpdate
  84.     end
  85.     object actCtxOpenNew: TAction
  86.       Tag = 20003
  87.       Caption = 'Open in New %apptitle%'
  88.       GroupIndex = 5
  89.       OnExecute = actCtxOpenNewExecute
  90.       OnUpdate = actCtxOpenNewUpdate
  91.     end
  92.     object actCtxOpenPrivate: TAction
  93.       Tag = 20004
  94.       Caption = 'Open in New %apptitle% [Private Mode]'
  95.       GroupIndex = 5
  96.       OnExecute = actCtxOpenPrivateExecute
  97.       OnUpdate = actCtxOpenPrivateUpdate
  98.     end
  99.     object actCtxBM: TAction
  100.       Tag = 20005
  101.       Caption = 'Add to Bookmarks'
  102.       OnExecute = actCtxBMExecute
  103.       OnUpdate = actCtxUpdate
  104.     end
  105.     object actCtxBv2: TAction
  106.       Tag = 20000
  107.       Caption = '-'
  108.     end
  109.     object actCtxDownload: TAction
  110.       Tag = 20012
  111.       Caption = 'Download'
  112.       OnExecute = actCtxDownloadExecute
  113.       OnUpdate = actCtxDownloadUpdate
  114.     end
  115.     object actCtxDownloadAll: TAction
  116.       Tag = 20013
  117.       Caption = 'Download All'
  118.       OnExecute = actCtxDownloadAllExecute
  119.       OnUpdate = actCtxUpdate
  120.     end
  121.     object actCtxDownloadVideos: TAction
  122.       Tag = 20014
  123.       Caption = 'Download Videos'
  124.       OnExecute = actCtxDownloadVideosExecute
  125.       OnUpdate = actCtxDownloadVideosUpdate
  126.     end
  127.     object actCtxBv3: TAction
  128.       Tag = 20000
  129.       Caption = '-'
  130.     end
  131.     object actCtxBlock: TAction
  132.       Tag = 20006
  133.       Caption = 'Add to AD Black List'
  134.       GroupIndex = 1
  135.       OnExecute = actCtxBlockExecute
  136.       OnUpdate = actCtxUpdate
  137.     end
  138.     object actCtxBlockAll: TAction
  139.       Tag = 20007
  140.       Caption = 'Block All Images from the Same Server'
  141.       GroupIndex = 1
  142.       OnExecute = actCtxBlockAllExecute
  143.       OnUpdate = actCtxUpdate
  144.     end
  145.     object actCtxBv4: TAction
  146.       Tag = 20000
  147.       Caption = '-'
  148.     end
  149.     object actCtxOpenAll: TAction
  150.       Tag = 20008
  151.       Caption = 'Open All Links in This Page'
  152.       OnExecute = actCtxOpenAllExecute
  153.       OnUpdate = actCtxUpdate
  154.     end
  155.     object actCtxBv6: TAction
  156.       Tag = 20000
  157.       Caption = '-'
  158.     end
  159.     object actCtxCopyImgUrl: TAction
  160.       Tag = 20009
  161.       Caption = 'Copy Picture Link'
  162.       GroupIndex = 1
  163.       OnExecute = actCtxCopyImgUrlExecute
  164.       OnUpdate = actCtxUpdate
  165.     end
  166.     object actCtxOpenImgNew: TAction
  167.       Tag = 20010
  168.       Caption = 'Open Picture in New Tab'
  169.       GroupIndex = 1
  170.       OnExecute = actCtxOpenImgNewExecute
  171.       OnUpdate = actCtxUpdate
  172.     end
  173.   end
  174.   object thdClose: TWinThread
  175.     OnException = thdThreadExcep
  176.     OnExecute = thdCloseExecute
  177.     Left = 8
  178.     Top = 104
  179.   end
  180.   object tmrShowFloatingBar: TTimer
  181.     Interval = 600
  182.     OnTimer = tmrShowFloatingBarTimer
  183.     Left = 40
  184.     Top = 40
  185.   end
  186.   object tmrMouseMoved: TTimer
  187.     Enabled = False
  188.     Interval = 5
  189.     OnTimer = tmrMouseMovedTimer
  190.     Left = 8
  191.     Top = 40
  192.   end
  193.   object tmrResetDragDrop: TTimer
  194.     Enabled = False
  195.     Interval = 2000
  196.     OnTimer = tmrResetDragDropTimer
  197.     Left = 104
  198.     Top = 8
  199.   end
  200.   object tmrNoUse: TTimer
  201.     Enabled = False
  202.     Interval = 15000
  203.     OnTimer = tmrNoUseTimer
  204.     Left = 72
  205.     Top = 40
  206.   end
  207.   object thdCloseHangs: TWinThread
  208.     OnException = thdThreadExcep
  209.     OnExecute = thdCloseHangsExecute
  210.     Left = 40
  211.     Top = 104
  212.   end
  213.   object tmrTerminate: TTimer
  214.     Enabled = False
  215.     Interval = 160
  216.     OnTimer = tmrTerminateTimer
  217.     Left = 104
  218.     Top = 40
  219.   end
  220.   object tmrDelayGetKeyword: TTimer
  221.     Enabled = False
  222.     Interval = 500
  223.     OnTimer = tmrDelayGetKeywordTimer
  224.     Left = 8
  225.     Top = 72
  226.   end
  227.   object alCtxEngines: TActionList
  228.     Left = 40
  229.     Top = 136
  230.     object actRenderingEngine: TAction
  231.       Caption = 'Rendering Engine'
  232.     end
  233.     object actReloadIE7: TAction
  234.       Tag = 20020
  235.       Caption = 'Reload with IE Compatible Engine'
  236.       HelpContext = 7000
  237.       OnExecute = actSwitchEngineExecute
  238.       OnUpdate = actSwitchEngineUpdate
  239.     end
  240.     object actReloadIE8: TAction
  241.       Tag = 20021
  242.       Caption = 'Reload with IE8 Engine'
  243.       HelpContext = 8000
  244.       OnExecute = actSwitchEngineExecute
  245.       OnUpdate = actSwitchEngineUpdate
  246.     end
  247.     object actReloadIE9: TAction
  248.       Tag = 20022
  249.       Caption = 'Reload with IE9 Engine'
  250.       HelpContext = 9000
  251.       OnExecute = actSwitchEngineExecute
  252.       OnUpdate = actSwitchEngineUpdate
  253.     end
  254.     object actReloadIE10: TAction
  255.       Tag = 20023
  256.       Caption = 'Reload with IE10 Engine'
  257.       HelpContext = 10000
  258.       OnExecute = actSwitchEngineExecute
  259.       OnUpdate = actSwitchEngineUpdate
  260.     end
  261.     object actReloadFF: TAction
  262.       Tag = 20024
  263.       Caption = 'Reload with Firefox Engine'
  264.       HelpContext = 101
  265.       OnExecute = actSwitchEngineExecute
  266.       OnUpdate = actSwitchEngineUpdate
  267.     end
  268.     object actReloadWK: TAction
  269.       Tag = 20025
  270.       Caption = 'Reload with Webkit Engine'
  271.       HelpContext = 102
  272.       OnExecute = actSwitchEngineExecute
  273.       OnUpdate = actSwitchEngineUpdate
  274.     end
  275.     object actNewIE7: TAction
  276.       Tag = 20026
  277.       Caption = 'View in New Tab with IE Compatible Engine'
  278.       HelpContext = 7000
  279.       OnExecute = actSwitchEngineExecute
  280.       OnUpdate = actSwitchEngineUpdate
  281.     end
  282.     object actNewIE8: TAction
  283.       Tag = 20027
  284.       Caption = 'View in New Tab with IE8 Engine'
  285.       HelpContext = 8000
  286.       OnExecute = actSwitchEngineExecute
  287.       OnUpdate = actSwitchEngineUpdate
  288.     end
  289.     object actNewIE9: TAction
  290.       Tag = 20028
  291.       Caption = 'View in New Tab with IE9 Engine'
  292.       HelpContext = 9000
  293.       OnExecute = actSwitchEngineExecute
  294.       OnUpdate = actSwitchEngineUpdate
  295.     end
  296.     object actNewIE10: TAction
  297.       Tag = 20029
  298.       Caption = 'View in New Tab with IE10 Engine'
  299.       HelpContext = 10000
  300.       OnExecute = actSwitchEngineExecute
  301.       OnUpdate = actSwitchEngineUpdate
  302.     end
  303.     object actNewFF: TAction
  304.       Tag = 20030
  305.       Caption = 'View in New Tab with Firefox Engine'
  306.       HelpContext = 101
  307.       OnExecute = actSwitchEngineExecute
  308.       OnUpdate = actSwitchEngineUpdate
  309.     end
  310.     object actNewWK: TAction
  311.       Tag = 20031
  312.       Caption = 'View in New Tab with Webkit Engine'
  313.       HelpContext = 102
  314.       OnExecute = actSwitchEngineExecute
  315.       OnUpdate = actSwitchEngineUpdate
  316.     end
  317.   end
  318.   object asImgShell: TAdvStrings
  319.     Tag = 1
  320.     Strings.Strings = (
  321.       'var fitType = 0;'
  322.       'var rotateAngle = 0;'
  323.       'var zoom = 1;'
  324.       'var scale = 1;'
  325.       'var inited = 0;'
  326.       ''
  327.       'function RotateClockWise(){'
  328.       '    zoom = 1;'
  329.       '    rotateAngle += 90;'
  330.       '    rotateAngle = rotateAngle % 360;'
  331.       '    ReloadImg();'
  332.       '}'
  333.       ''
  334.       'function RotateAntiClockWise(){'
  335.       '    zoom = 1;'
  336.       '    rotateAngle -= 90;'
  337.       '    rotateAngle = (rotateAngle + 360) % 360; '
  338.       '    ReloadImg();'
  339.       '}'
  340.       ''
  341.       'function FitImg(){'
  342.       #9'fitType++;'
  343.       ''
  344.       #9'if (fitType>2)'
  345.       #9#9'fitType=0;'
  346.       ''
  347.       #9'ReloadImg();'
  348.       '}'
  349.       ''
  350.       'function GetImgOriginalSize(aurl)'
  351.       '{'
  352.       '    var originImage=new Image();'
  353.       '    originImage.src = aurl;'
  354.       
  355.         '    var ret =  {width:originImage.width, height:originImage.heig' +
  356.         'ht};'
  357.       '    delete originImage;'
  358.       '    return ret;'
  359.       '}'
  360.       ''
  361.       'function IsIE(){'
  362.       '    if(navigator.appName.indexOf("Explorer") > -1)'
  363.       '        return true;'
  364.       '    else'
  365.       '        return false;'
  366.       '}'
  367.       ''
  368.       'function GetWinSize(){'
  369.       '    var winSize = {width:0,height:0};'
  370.       #9
  371.       '    if(IsIE())'
  372.       '    {'
  373.       '        winSize.width = document.body.clientWidth;'
  374.       '        winSize.height = document.body.clientHeight;'
  375.       '    }'
  376.       '    else'
  377.       '    {'
  378.       '        winSize.width = window.innerWidth;'
  379.       '        winSize.height = window.innerHeight;'
  380.       '    }'
  381.       ''
  382.       '    winSize.width -=2;'
  383.       '    winSize.height -=2;'
  384.       '    return winSize;'
  385.       '}'
  386.       ''
  387.       'function GetPos(){'
  388.       '    var pos = {left:0,top:0,width:0,height:0};'
  389.       '    '
  390.       
  391.         '    var oImg = document.getElementById("_Avant_Force_Scripted_Pi' +
  392.         'cture_Element_000");'
  393.       '    var originalImgSize = {width:0,height:0};'
  394.       '    originalImgSize = GetImgOriginalSize(oImg.src);'
  395.       '    '
  396.       '    if(originalImgSize.width ==0)'
  397.       '    {'
  398.       '        originalImgSize.width = oImg.offsetWidth;'
  399.       '        originalImgSize.height = oImg.offsetHeight;'
  400.       '    }'
  401.       '    '
  402.       '    if((rotateAngle == 0) || (rotateAngle==180))'
  403.       '    {'
  404.       '        pos.width = originalImgSize.width ;'
  405.       '        pos.height = originalImgSize.height;'
  406.       '    }'
  407.       '    else if((rotateAngle == 90) || (rotateAngle == 270))'
  408.       '    {'
  409.       '        pos.width = originalImgSize.height;'
  410.       '        pos.height = originalImgSize.width;'
  411.       '    }'
  412.       '    else'
  413.       '    {'
  414.       '        //alert("wrong rotateAngle !");'
  415.       '    }'
  416.       '    var winSize = GetWinSize();'
  417.       ''
  418.       '    var wScale = winSize.width/pos.width;'
  419.       '    var hScale = winSize.height/pos.height;'
  420.       ''
  421.       '    if(fitType==0)'
  422.       '    {'
  423.       '        if((wScale < 1) || (hScale < 1))'
  424.       '        {'
  425.       '            if(wScale < hScale)'
  426.       '            {'
  427.       '                scale = wScale;'
  428.       '            }'
  429.       '            else'
  430.       '            {'
  431.       '                scale = hScale;'
  432.       '            }'
  433.       '        }'
  434.       '        else'
  435.       '        {'
  436.       '            scale = 1;'
  437.       '        }'
  438.       '              '
  439.       '        pos.width = Math.floor(pos.width*scale);'
  440.       '        pos.height = Math.floor(pos.height*scale);'
  441.       '    }'
  442.       '    else if(fitType==1)'
  443.       '    {'
  444.       '        scale = 1;'
  445.       '        pos.width = Math.floor(pos.width*scale);'
  446.       '        pos.height = Math.floor(pos.height*scale);'
  447.       '    }'
  448.       #9'else if(fitType==2)'
  449.       '    {'
  450.       '        if((wScale < 1) || (hScale < 1))'
  451.       '        {'
  452.       '            if(wScale > hScale)'
  453.       '            {'
  454.       '                scale = wScale;'
  455.       '            }'
  456.       '            else'
  457.       '            {'
  458.       '                scale = hScale;'
  459.       '            }'
  460.       '        }'
  461.       '        else'
  462.       '        {'
  463.       '            scale = 1;'
  464.       '        }'
  465.       '              '
  466.       '        pos.width = Math.floor(pos.width*scale);'
  467.       '        pos.height = Math.floor(pos.height*scale);'
  468.       '    }'
  469.       '    else'
  470.       '    {'
  471.       '        scale = scale * zoom;'
  472.       '        pos.width = Math.floor(pos.width*scale);'
  473.       '        pos.height = Math.floor(pos.height*scale);'
  474.       '    }'
  475.       '    '
  476.       '    pos.left = 0;'
  477.       '    pos.top = 0;'
  478.       '    return pos;'
  479.       '}'
  480.       ''
  481.       'function ReloadImg(){'
  482.       '    var posObj = GetPos();'
  483.       
  484.         '    var oImg = document.getElementById("_Avant_Force_Scripted_Pi' +
  485.         'cture_Element_000");'
  486.       '    if(oImg == null) return;'
  487.       #9'document.body.style.position = "absolute";'
  488.       #9'oImg.style.position = "absolute";'
  489.       #9'var rotation = Math.floor(rotateAngle/90);'
  490.       
  491.         #9'oImg.style.filter="progid:DXImageTransform.Microsoft.BasicImage' +
  492.         '(Rotation="+rotation+")";'
  493.       ''
  494.       #9'if((rotateAngle == 90) ||(rotateAngle ==270)){'
  495.       #9#9'oImg.width = posObj.height;'
  496.       #9#9'oImg.height = posObj.width;'
  497.       #9'}else{'
  498.       #9#9'oImg.width = posObj.width;'
  499.       #9#9'oImg.height = posObj.height;'
  500.       #9'}'
  501.       #9'oImg.style.posLeft = posObj.left;'
  502.       #9'oImg.style.posTop = posObj.top;'
  503.       #9'window.status = "";'
  504.       '    window.defaultStatus = "";'
  505.       '}'
  506.       ''
  507.       'function doResize(){'
  508.       #9'if (inited==0) '
  509.       #9'  return;'
  510.       #9'if (fitType==1) '
  511.       #9'  return;'
  512.       #9'  '
  513.       '    ReloadImg();'
  514.       '}'
  515.       ''
  516.       'function Init(){'
  517.       
  518.         #9'var oImg = document.getElementById("_Avant_Force_Scripted_Pictu' +
  519.         're_Element_000");'
  520.       #9'if(oImg != null)'
  521.       #9#9'return;'
  522.       
  523.         #9'document.images[0].id = "_Avant_Force_Scripted_Picture_Element_' +
  524.         '000";'
  525.       ''
  526.       #9'window.onresize = doResize;'
  527.       #9'fitType = 0;'
  528.       #9'ReloadImg();'
  529.       #9'inited = 1;'
  530.       '}'
  531.       ''
  532.       'Init();')
  533.     Left = 104
  534.     Top = 136
  535.   end
  536.   object tmrActivateMaster: TTimer
  537.     Enabled = False
  538.     Interval = 80
  539.     OnTimer = tmrActivateMasterTimer
  540.     Left = 72
  541.     Top = 8
  542.   end
  543. end
  544.