~ubuntu-branches/ubuntu/jaunty/avidemux/jaunty

« back to all changes in this revision

Viewing changes to avidemux/ADM_userInterfaces/ADM_QT4/ADM_dialog/T_EqualiserPath.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-02-17 23:41:46 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090217234146-eakx254awuch4wgw
Tags: 1:2.4.4-0.0ubuntu1
* Merge from debian multimedia, Ubuntu remaining changes:
  - debian/control:
    + Build-Depends on newer libx264-dev.
    + Don't Build-Depends on ccache and libamrnb-dev.
    + Build-Depends on libpulse-dev.
    + Fixed small typo in avidemux description.
  - Don't use ccache.
  - Drop patch to fix build with newer x264, it has been merged by upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                             T_EqualiserPath.h
 
3
                             -----------------
 
4
 
 
5
    begin                : Tue Oct 7 2008
 
6
    copyright            : (C) 2008 by gruntster
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef EqualiserPath_H
 
19
#define EqualiserPath_H
 
20
 
 
21
#include <QtGui/QMouseEvent>
 
22
#include <QtGui/QPainter>
 
23
 
 
24
#include "ADM_toolkit/T_gridFrame.h"
 
25
 
 
26
class EqualiserPath : public GridFrame
 
27
{
 
28
    Q_OBJECT
 
29
 
 
30
public:
 
31
    EqualiserPath(QWidget *parent, int points[]);
 
32
 
 
33
    void paint(QPainter *);
 
34
    void mousePressEvent(QMouseEvent *event);
 
35
    void mouseMoveEvent(QMouseEvent *event);
 
36
    void mouseReleaseEvent(QMouseEvent *event);
 
37
        void updatePoint(int pointIndex, int value);
 
38
        void resetPoints(int points[]);
 
39
 
 
40
signals:
 
41
     void pointChanged(int pointIndex, int value);
 
42
 
 
43
private:
 
44
    int _pointCount;
 
45
    int _pointSize;
 
46
    int _activePoint;
 
47
    QVector<QPointF> _points;
 
48
    QPoint _mousePress;
 
49
};
 
50
 
 
51
#endif