Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 5, 2015
  1. Merge pull request #4 from mcs07/cd7

    authored
    Use WebGL ChemDoodle viewer if supported
  2. @mcs07

    Register UTIs exported by other apps

    mcs07 authored
    If the user has other chemistry apps installed, they can re-assign the UTI of files to something else. By adding those UTIs to `LSItemContentTypes` we register ChemLook as still being able to preview them.
Commits on Feb 4, 2015
  1. @mcs07

    Tidy up

    mcs07 authored
  2. @mcs07
  3. @mcs07

    Prevent thumbnails for CIFs

    mcs07 authored
  4. @mcs07

    Use WebGL 3D viewer if supported

    mcs07 authored
    This allows for better 3D rendering in general, and unit cell display with CIFs.
  5. @mcs07

    Tweak 2D display

    mcs07 authored
    Render slightly larger, increase buffer between bonds and element labels, and allow zooming and rotation.
  6. @mcs07
  7. @mcs07

    Improve molecule scaling

    mcs07 authored
    The function now returns a copy of the molecule so we can have differently scaled molecules for each viewer canvas.
  8. @mcs07

    Improve file reading strategy

    mcs07 authored
    Pass PDB and CIF files straight to ChemDoodle. For all other files, use Open Babel if available to convert to ChemDoodle JSON and pass that to ChemDoodle.
  9. @mcs07

    Remove experimental CIF parsing

    mcs07 authored
  10. @mcs07

    Move js and css into separate files

    mcs07 authored
    The HTML template is a bit unwieldy with large portions of embedded javascript and CSS, so this moves them into their own files and then embeds them in the same way as ChemDoodle and the template variables.
  11. @mcs07
Commits on Apr 23, 2014
  1. Make sure to center molecules (to ensure "natural" 3D rotation).

    authored
    Also make sure to generate previews for .can files.
  2. @mcs07

    Change UTTypeConformsTo to public.plain-text

    mcs07 authored
    OS X makes some decisions about how thumbnails are displayed using the file UTI. By stating that these formats conform to `public.plain-text` instead of just `public.text`, OS X will display the file extension as a 'badge' over the thumbnail.
    
    UTI declarations within installed apps will override any declarations within Quick Look generators,
    so if users have apps with conflicting information, the badge may not display.
  3. @mcs07

    Use WebView to render SVG thumbnail

    mcs07 authored
    Open Babel is used to generate an SVG representation from the file contents, which is rendered in a WebView, which is drawn onto an NSGraphicsContext.
  4. @mcs07

    Add separate ThumbnailURL function

    mcs07 authored
    Common.m now has PreviewURL function for generating preview HTML, and ThumbnailURL function for generating thumbnail SVG.
Commits on Apr 22, 2014
  1. Merge pull request #2 from mcs07/newformats

    authored
    Add support for SMILES and InChI formats
  2. @mcs07

    Add support for SMILES and InChI formats

    mcs07 authored
    Use the Open Babel `gen2d` option to generate 2D coordinates for files containing SMILES and InChI formats.
Commits on Apr 21, 2014
  1. Merge pull request #1 from mcs07/master

    authored
    Modernize project, use ChemDoodle JSON, add 2D previews
Commits on Apr 17, 2014
  1. @mcs07

    Remove log statements

    mcs07 authored
  2. @mcs07

    Fix memory leak when casting from CFURLRef to NSURL

    mcs07 authored
    If a CFURLRef is created and then cast to an NSURL, the CFURLRef needs to be released. This is done through a `__bridge_transfer` which tells ARC to release it for us.
  3. @mcs07

    Make header comments consistent

    mcs07 authored
  4. @mcs07

    Minor tidy up

    mcs07 authored
  5. @mcs07

    Extend file format coverage

    mcs07 authored
    Added some more formats that Open Babel is able to read, and added some alternative file extensions and mime-types for existing formats.
  6. @mcs07
  7. @mcs07
  8. @mcs07
Commits on Apr 16, 2014
  1. @mcs07

    Attempt to display unit cell for CIF

    mcs07 authored
    Not quite there yet - the display code is commented out.
  2. @mcs07

    Allow both 2D and 3D previews

    mcs07 authored
Commits on Apr 15, 2014
  1. @mcs07
Commits on Apr 11, 2014
  1. @mcs07

    Switch from babel to obabel

    mcs07 authored
  2. @mcs07
  3. @mcs07
Something went wrong with that request. Please try again.