source: src-qt4/pc-mixer/DeviceWidget.h @ 0c784d0

releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 0c784d0 was 0c784d0, checked in by Ken Moore <ken@…>, 8 months ago

Finish up the new pc-mixer utility. The main Mixer GUI is done now, and it all works great!

  • Property mode set to 100644
File size: 759 bytes
Line 
1#ifndef _MIXER_DEVICE_WIDGET_H
2#define _MIXER_DEVICE_WIDGET_H
3
4#include <QWidget>
5#include <QString>
6
7#include "MixerBackend.h"
8
9namespace Ui{
10        class DeviceWidget;
11};
12
13class DeviceWidget : public QWidget{
14        Q_OBJECT
15public:
16        DeviceWidget(QWidget *parent = 0);
17        ~DeviceWidget();
18
19        void setupDevice(QString device, int Lvol, int Rvol);
20       
21        QString device();
22        int LVolume();
23        int RVolume();
24
25private:
26        Ui::DeviceWidget *ui;
27        int CRV, CLV; //Current R/L volume (in case it was muted)
28        bool changing, ismuted, islinked; // internal status flags
29
30        void updateVolumes(int, int);
31        void updateButtons();
32
33private slots:
34        void muteClicked();
35        void linkClicked();
36        void LSliderChanged(int);
37        void RSliderChanged(int);
38       
39signals:
40        void deviceChanged(QString);
41       
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.