source: src-qt4/pc-mixer/MixerGUI.h @ 0d4dda3e

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

Add new options to the pc-mixer GUI:
Links to run pc-soundconfig, pavucontrol, paprefs.
Also add some icons.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1#ifndef _PC_MIXER_GUI_H
2#define _PC_MIXER_GUI_H
3
4#include <QMainWindow>
5#include <QSettings>
6#include <QCloseEvent>
7#include <QCoreApplication>
8#include <QHBoxLayout>
9#include <QScrollBar>
10#include <QProcess>
11#include <QAction>
12
13#include "DeviceWidget.h"
14#include "MixerBackend.h"
15
16namespace Ui{
17        class MixerGUI;
18};
19
20class MixerGUI : public QMainWindow{
21        Q_OBJECT
22public:
23        MixerGUI(QSettings*);
24        ~MixerGUI();
25
26        void updateGUI(); //For the tray to call before the GUI becomes active
27
28private:
29        Ui::MixerGUI *ui;
30        QSettings *settings;
31        bool closing;
32
33private slots:
34        void hideGUI(){
35          this->hide();
36        }
37        void closeApplication(){
38          closing = true;
39          this->close();
40        }
41       
42        void startExternalApp(QAction *act){
43          QProcess::startDetached(act->whatsThis());
44        }
45       
46        void changeDefaultTrayDevice(QString device);
47        void itemChanged(QString device); //for individual device adjustments
48
49protected:
50        void closeEvent(QCloseEvent *event){
51          if(!closing){
52            event->ignore();
53            hideGUI();
54          }
55        }
56       
57signals:
58        void updateTray();
59       
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.