1 /***************************************************************************
2 * Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com) *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
14 #include "ui_vectorscope_ui.h"
19 enum PAINT_MODE { GREEN = 0, ORIG = 1, CHROMA = 2 };
21 class Vectorscope : public QWidget, public Ui::Vectorscope_UI {
25 Vectorscope(Render *render, QWidget *parent = 0);
29 void paintEvent(QPaintEvent *);
30 void mousePressEvent(QMouseEvent *);
36 QPoint mapToCanvas(QRect inside, QPointF point);
39 void slotPaintModeChanged(int index);
40 void slotMagnifyChanged();
44 #endif // VECTORSCOPE_H