Code Search for Developers
 
 
  

colorbar.h from marsyas at Krugle


Show colorbar.h syntax highlighted

#include <qwidget.h>

class ColorBar: public QWidget
{
    Q_OBJECT

public:
    ColorBar(Qt::Orientation = Qt::Horizontal, 
        QWidget * = NULL);

    virtual void setOrientation(Qt::Orientation o);
    Qt::Orientation orientation() const { return d_orientation; }

    void setRange(const QColor &light, const QColor &dark);
    void setLight(const QColor &light);
    void setDark(const QColor &dark);

    QColor light() const { return d_light; }
    QColor dark() const { return d_dark; }

signals:
    void selected(const QColor &);

protected:
    virtual void mousePressEvent(QMouseEvent *);
    virtual void paintEvent(QPaintEvent *);

    void drawColorBar(QPainter *, const QRect &) const;

private:
    Qt::Orientation d_orientation;
    QColor d_light;
    QColor d_dark;
};




See more files for this project here

marsyas

Marsyas (Music Analysis, Retrieval and Synthesis for Audio Signals) is a framework for developing systems for audio processing. It provides an general architecture for connecting audio, soundfiles, signal processing blocks and machine learning.

Project homepage: http://sourceforge.net/projects/marsyas
Programming language(s): C++
License: other

  README
  canvaspicker.cpp
  canvaspicker.h
  colorbar.cpp
  colorbar.h
  event_filter.cpp
  event_filter.pro
  plot.cpp
  plot.h
  scalepicker.cpp
  scalepicker.h