Kinetic Visualization (Visualisierung 2 - S2012)
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
src
vis2
vis2
GradientStopWidget.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QtGui/QWidget.h>
4
6
9
class
GradientStopWidget
:
public
QWidget
10
{
11
Q_OBJECT
12
public
:
16
GradientStopWidget
(QWidget *parent);
17
~GradientStopWidget
(
void
);
18
19
// events
20
void
mouseReleaseEvent
(QMouseEvent *ev);
21
void
mousePressEvent
(QMouseEvent *ev);
22
void
mouseMoveEvent
(QMouseEvent *ev);
23
void
mouseDoubleClickEvent
(QMouseEvent *ev);
24
void
paintEvent
(QPaintEvent *ev);
25
29
QGradientStops
getGradientStops
() {
return
_stops
; }
33
void
setGradientStops
(
const
QGradientStops &stops);
34
35
QSize
sizeHint
()
const
{
return
QSize(150, 10); }
36
37
signals:
38
void
gradientChanged
(
const
QGradientStops &stops);
39
private
:
40
void
removePoint
(
int
idx);
41
void
insertPoint
(
int
x);
42
void
startMovePoint
(
int
idx);
43
void
stopMovePoint
(
int
x);
44
45
void
fireChanged
();
46
47
int
GradientStopWidget::pointNearCoordinate
(
int
x);
48
50
QGradientStops
_stops
;
52
int
_moveIdx
;
53
};
54
Generated on Tue Jun 12 2012 15:05:37 for Kinetic Visualization (Visualisierung 2 - S2012) by
1.8.1