MuseScore  3.4
Music composition and notation
zitagui.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseSynth
3 // Music Software Synthesizer
4 //
5 // Copyright (C) 2013 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __ZITAGUI_H__
14 #define __ZITAGUI_H__
15 
16 #include "effects/effectgui.h"
17 
18 namespace Ms {
19 
20 class ZitaReverb;
21 
22 //---------------------------------------------------------
23 // Rotary
24 //---------------------------------------------------------
25 
26 struct Rotary {
27  const char* id;
28  int x, y;
29  qreal value;
30  };
31 
32 //---------------------------------------------------------
33 // gui
34 //---------------------------------------------------------
35 
36 class ZitaEffectGui : public EffectGui {
37  Q_OBJECT
38 
39  std::vector<QPixmap> pm;
40  std::vector<Rotary> rotary;
41 
42  int mx, my;
43  int r;
44  qreal oval;
45 
46  void paintEvent(QPaintEvent*);
47  void mousePressEvent(QMouseEvent*);
48  void mouseReleaseEvent(QMouseEvent*);
49  void mouseMoveEvent(QMouseEvent*);
50 
51  virtual void updateValues();
52 
53  public:
54  ZitaEffectGui(ZitaReverb*, QWidget* parent = 0);
55  };
56 }
57 
58 #endif
59 
60 
int x
Definition: zitagui.h:28
int my
Definition: zitagui.h:42
Definition: zitagui.h:26
const char * id
Definition: zitagui.h:27
Definition: effectgui.h:24
int r
Definition: zitagui.h:43
int y
Definition: zitagui.h:28
Definition: zita.h:200
std::vector< QPixmap > pm
Definition: zitagui.h:39
qreal oval
Definition: zitagui.h:44
Definition: aeolus.cpp:26
std::vector< Rotary > rotary
Definition: zitagui.h:40
qreal value
Definition: zitagui.h:29
Definition: zitagui.h:36