Changeset 57

Show
Ignore:
Timestamp:
06/17/07 00:20:47 (2 years ago)
Author:
Stuart Thiel
Message:

-Fixed #54
-The applet just loads the PlayerPanel? into the applet
-I made the applet dimensions much bigger (maybe this should be determined dynamically based on the size of the window and the size of the Zotero pullup)
-Additional change to #57
Instead of making a new tab or looking at how we click on items, we're now stealing the behaviour of the view button in the info tab. If it gets clicked for a "Video Recording" (type 28), then it'll load the VideAnnotate? applet with the URL as parameter.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • VideAnnotateXPI/trunk/srcExtension/chrome.manifest

    r49 r57  
    22 
    33overlay chrome://browser/content/browser.xul chrome://videannotate/content/overlay.xul 
    4 overlay chrome://zotero/content/overlay.xul chrome://videannotate/content/overlay_z.xul 
     4 
     5overlay chrome://zotero/content/itemPane.xul chrome://videannotate/content/itemPane.xul 
    56 
    67skin videannotate global chrome/videannotate/skin/global/ 
  • VideAnnotateXPI/trunk/srcExtension/chrome/VideAnnotate/content/applet.html

    r55 r57  
    88 
    99<applet code="org.videannotate.app.VideoAnnotater"  
    10         archive="SVideAnnotate.jar" width=200 height=200
     10        archive="SVideAnnotate.jar" width="533" height="400"
    1111<script> 
    1212var regexS3 = "[\\?&]url=([^&#]*)"; 
  • VideAnnotateXPI/trunk/srcExtension/chrome/VideAnnotate/content/overlay.js

    r50 r57  
    1313  isMineToDevour: function(item) { 
    1414    // initialization code 
     15    if(item.getType() == 28) return true 
    1516    if(!item) return false; 
    16     alert(item.getType()); 
    1717    return false; 
    1818  },  
    1919   
    20   workItOut: function(XulThingy) { 
     20   
     21  workItOut: function(button, event, XulThingy) { 
    2122    if(this.isMineToDevour( 
    2223     XulThingy.itemsView._getItemAtRow( 
    2324          XulThingy.itemsView.selection.currentIndex))) { 
    24  
     25                var url = button.getAttribute('viewURL'); 
     26                XulThingy.loadURI("chrome://videannotate/content/videannotate.xul?url=" + url, event); 
    2527    } else { 
    26         ZoteroPane.itemSelected(); 
     28        ZoteroItemPane.onViewClick(button, event); 
    2729    } 
    2830  }