c50dedc90a
Not finished, but enough to give David something to work with No BLOBs -- just linking/importing of files and loaded documents New Scholar.Item methods: incrementFileCount() (used internally) decrementFileCount() (used internally) isFile() numFiles() getFile() -- returns nsILocalFile or false if associated file doesn't exist (note: always returns false for items with LINK_MODE_LINKED_URL, since they have no files -- use getFileURL() instead) getFileURL() -- returns URL string getFileLinkMode() -- compare to Scholar.Files.LINK_MODE_* constants: LINKED_FILE, IMPORTED_FILE, LINKED_URL, IMPORTED_URL getFileMimeType() -- mime type of file (e.g. text/plain) getFileCharset() -- charsetID of file getFiles() -- array of file itemIDs this file is a source for New Scholar.Files methods: importFromFile(nsIFile file [, int sourceItemID]) linkFromFile(nsIFile file [, int sourceItemID]) importFromDocument(nsIDOMDocument document [, int sourceItemID]) linkFromDocument(nsIDOMDocument document [, int sourceItemID]) New class Scholar.FileTypes -- partially implemented, not yet used New class Scholar.CharacterSets -- same as other *Types classes: getID(idOrName) getName(idOrName) getTypes() (aliased to getAll(), which I'll probably change the others to as well) Charsets table with all official character sets (copied from Mozilla source) Renamed Item.setNoteSource() to setSource() and Item.getNoteSource() to getSource() and adjusted to handle both notes and files |
||
---|---|---|
.. | ||
admin | ||
bindings | ||
ingester | ||
test | ||
xpcom | ||
about.xul | ||
collectionTreeView.js | ||
fileInterface.js | ||
include.js | ||
itemPane.js | ||
itemPane.xul | ||
itemTreeView.js | ||
note.js | ||
note.xul | ||
overlay.js | ||
overlay.xul | ||
preferences.js | ||
preferences.xul | ||
selectItemsDialog.js | ||
selectItemsDialog.xul |