File: floatintmidislider.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 (41 lines) | stat: -rw-r--r-- 873 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
#ifndef FLOATINTMIDISLIDER_H
#define FLOATINTMIDISLIDER_H

#include <qslider.h>
#include <qhbox.h>
#include <qlabel.h>
#include "synthdata.h"
#include "midicontroller.h"
#include "midiguicomponent.h"

/**
  *@author Matthias Nagorni
  */

#define SLIDER_SCALE 16384.0

class FloatIntMidiSlider : public MidiGUIcomponent {

Q_OBJECT

public:
  QSlider *slider;
  QLabel *valueLabel;
  float *valueRef;
     
public:
  FloatIntMidiSlider(QObject *parentModule, float minValue, float maxValue, int pageStep, float value, QSlider::Orientation orientation,
                     QWidget * parent, const char * name=0, SynthData *p_synthdata=0, float *valueRef=0);
  ~FloatIntMidiSlider();
  virtual void setMidiValue(int value);
  virtual int getMidiValue();

signals:
  void valueChanged(int value);
	
public slots:
  void updateValue(int);
  void updateSlider(int);
};

#endif