control: define and export GOption related entities
[ng-jackspa.git] / qjackspa.h
blob4b2b90e8a1485600157e841aaf24d699f95ed320
1 // qjackspa.h - include file for qjackspa.cpp
2 // Copyright © 2013 Géraud Meyer <graud@gmx.com>
3 //
4 // This file is part of ng-jackspa.
5 //
6 // ng-jackspa is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU General Public License version 2 as published by the
8 // Free Software Foundation.
9 //
10 // This program is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 // more details.
15 // You should have received a copy of the GNU General Public License along
16 // with ng-jackspa. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef QJACKSPA_H
19 #define QJACKSPA_H
21 #include "control.h"
22 #include <cmath>
23 #include <QtGui/QWidget>
24 #include <QtGui/QApplication>
25 #include <QtGui/QMessageBox>
26 #include <QtGui/QScrollArea>
27 #include <QtGui/QGridLayout>
28 #include <QtGui/QPushButton>
29 #include <QtGui/QLabel>
30 #include <QtGui/QSpinBox>
31 #include <QtGui/QSlider>
34 class ControlLayout : public QGridLayout
36 Q_OBJECT
38 public:
39 ControlLayout(state_t *state, unsigned long port, QWidget *parent = 0);
41 public slots:
42 void on_button_pressed();
44 protected:
45 control_t control;
46 QPushButton button;
47 QDoubleSpinBox number;
48 QLabel label;
49 QSlider slider;
50 void set_slider(LADSPA_Data value);
52 protected slots:
53 void on_number_changed();
54 void on_slider_changed();
55 void exchange_control();
58 #endif