Chris@1196: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@1196: Chris@1196: /* Chris@1196: Sonic Visualiser Chris@1196: An audio file viewer and annotation editor. Chris@1196: Centre for Digital Music, Queen Mary, University of London. Chris@1196: This file copyright 2007-2016 QMUL. Chris@1196: Chris@1196: This program is free software; you can redistribute it and/or Chris@1196: modify it under the terms of the GNU General Public License as Chris@1196: published by the Free Software Foundation; either version 2 of the Chris@1196: License, or (at your option) any later version. See the file Chris@1196: COPYING included with this distribution for more information. Chris@1196: */ Chris@1196: Chris@1198: #ifndef SV_COLOURMAP_COMBO_BOX_H Chris@1198: #define SV_COLOURMAP_COMBO_BOX_H Chris@1196: Chris@1196: #include "NotifyingComboBox.h" Chris@1196: Chris@1196: /** Chris@1199: * Colour map picker combo box with optional swatches Chris@1196: */ Chris@1198: class ColourMapComboBox : public NotifyingComboBox Chris@1196: { Chris@1196: Q_OBJECT Chris@1196: Chris@1196: public: Chris@1199: ColourMapComboBox(bool includeSwatches, QWidget *parent = 0); Chris@1196: Chris@1196: signals: Chris@1198: void colourMapChanged(int index); Chris@1196: Chris@1196: private slots: Chris@1196: void rebuild(); Chris@1196: void comboActivated(int); Chris@1199: Chris@1199: private: Chris@1199: bool m_includeSwatches; Chris@1196: }; Chris@1196: Chris@1196: #endif Chris@1196: