Chris@289: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
Chris@289: 
Chris@289: /*
Chris@289:     Sonic Visualiser
Chris@289:     An audio file viewer and annotation editor.
Chris@289:     Centre for Digital Music, Queen Mary, University of London.
Chris@289:     This file copyright 2007 QMUL.
Chris@289:     
Chris@289:     This program is free software; you can redistribute it and/or
Chris@289:     modify it under the terms of the GNU General Public License as
Chris@289:     published by the Free Software Foundation; either version 2 of the
Chris@289:     License, or (at your option) any later version.  See the file
Chris@289:     COPYING included with this distribution for more information.
Chris@289: */
Chris@289: 
Chris@289: #ifndef _ICON_LOADER_H_
Chris@289: #define _ICON_LOADER_H_
Chris@289: 
Chris@289: #include <QIcon>
Chris@289: 
Chris@289: class IconLoader
Chris@289: {
Chris@289: public:
Chris@289:     IconLoader() { }
Chris@289:     virtual ~IconLoader() { }
Chris@289: 
Chris@289:     QIcon load(QString name);
Chris@957: 
Chris@957: private:
Chris@957:     bool shouldInvert() const;
Chris@957:     bool shouldAutoInvert(QString) const;
Chris@957:     QPixmap loadPixmap(QString, int);
Chris@957:     QPixmap loadScalable(QString, int);
Chris@957:     QPixmap invertPixmap(QPixmap);
Chris@957:     QString makeScalableFilename(QString, bool);
Chris@957:     QString makeNonScalableFilename(QString, int, bool);
Chris@289: };
Chris@289: 
Chris@289: #endif
Chris@289: 
Chris@1266: