File: m_function.h

package info (click to toggle)
ams 1.8.7-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,880 kB
  • ctags: 2,171
  • sloc: cpp: 17,793; makefile: 433; sh: 101
file content (57 lines) | stat: -rw-r--r-- 1,285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef M_FUNCTION_H
#define M_FUNCTION_H

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <qwidget.h>
#include <qstring.h>
#include <qslider.h>   
#include <qcheckbox.h>  
#include <qlabel.h>
#include <qvbox.h>
#include <qhbox.h>
#include <qspinbox.h>
#include <qradiobutton.h>
#include <qpushbutton.h>
#include <qdialog.h>
#include <qpointarray.h>
#include <alsa/asoundlib.h>
#include "synthdata.h"
#include "module.h"
#include "port.h"
#include "function.h"

#define MODULE_FUNCTION_WIDTH                 85
#define MODULE_FUNCTION_HEIGHT                40
       
class M_function : public Module
{
  Q_OBJECT

  private:
    QList<Port> out_port_list;
    Port *port_in;
    float zoom;
    float y[MAX_FUNCTIONS][MAXPOLY], old_y[MAX_FUNCTIONS][MAXPOLY];
    QPointArray *points[MAX_FUNCTIONS];
    int i[MAXPOLY][MAX_FUNCTIONS];
    int zoomIndex, editIndex;
    int mode;
        
  public: 
    float **inData;
    int functionCount;
                            
  public:
    M_function(int p_functionCount, SynthData *p_synthdata, QWidget* parent=0, const char *name=0);
    ~M_function();

  public slots:
    void generateCycle();
    void showConfigDialog();
    void updateZoom(int p_zoomIndex);
    void updateMouseLabels(int x, int y);
};
  
#endif