Chris@1532: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@1532: Chris@1532: /* Chris@1532: Sonic Visualiser Chris@1532: An audio file viewer and annotation editor. Chris@1532: Centre for Digital Music, Queen Mary, University of London. Chris@1532: Chris@1532: This program is free software; you can redistribute it and/or Chris@1532: modify it under the terms of the GNU General Public License as Chris@1532: published by the Free Software Foundation; either version 2 of the Chris@1532: License, or (at your option) any later version. See the file Chris@1532: COPYING included with this distribution for more information. Chris@1532: */ Chris@1532: Chris@1532: #include "ZoomLevel.h" Chris@1532: Chris@1532: std::ostream &operator<<(std::ostream &s, const ZoomLevel &z) { Chris@1532: if (z.zone == ZoomLevel::PixelsPerFrame) { Chris@1532: s << "1/" << z.level; Chris@1532: } else { Chris@1532: s << z.level; Chris@1532: } Chris@1532: return s; Chris@1532: } Chris@1532: