summaryrefslogtreecommitdiff
path: root/muse_qt4_evolution/synti/organ/organgui.h
blob: c691b1a1b896a9229b67cc3fc0c94f5a3b9791d2 (plain)
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
//=========================================================
//  MusE
//  Linux Music Editor
//  $Id: organgui.h,v 1.8 2005/10/04 21:37:44 lunar_shuttle Exp $
//
//  (C) Copyright 2001-2004 Werner Schweer (ws@seh.de)
//=========================================================

#ifndef __ORGANGUI_H__
#define __ORGANGUI_H__

#include "ui_organgui.h"
#include "organ.h"
#include "libsynti/gui.h"
#include "libsynti/midievent.h"

class QSignalMapper;

#define NUM_GUI_CONTROLLER 18

//---------------------------------------------------------
//   OrganGui
//---------------------------------------------------------

class OrganGui : public QWidget, public Ui::OrganGuiBase, public MessGui {
      Q_OBJECT

      bool ignoreControllerChange;

      QSignalMapper* map;
      virtual void processEvent(const MidiEvent&);

   protected:
      void setParam(int, int);
      void setParamIdx(int ctrlIdx, int val);

   private slots:
      void ctrlChanged(QWidget*);
      void readMessage(int);

   public:
      friend class Organ;
      friend class Mess2;
      OrganGui();
      };

#endif