Makefile: install-doc: install manpage links for each command
[ng-jackspa.git] / qjackspa.h
blobab06c832d4bc427916584057dda935621dc48405
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, unsigned long ctrl,
40 QWidget *parent = 0);
41 ~ControlLayout();
43 public slots:
44 void on_button_pressed();
46 protected:
47 control_t control;
48 QPushButton button;
49 QDoubleSpinBox number;
50 QLabel label;
51 QSlider slider;
52 void set_slider(LADSPA_Data value);
54 protected slots:
55 void on_number_changed();
56 void on_slider_changed();
57 void exchange_control();
60 #endif