source: src-qt4/pc-mixer/MixerGUI.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@…>, 6 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: 906 bytes
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
11#include "DeviceWidget.h"
12#include "MixerBackend.h"
13
14namespace Ui{
15        class MixerGUI;
16};
17
18class MixerGUI : public QMainWindow{
19        Q_OBJECT
20public:
21        MixerGUI(QSettings*);
22        ~MixerGUI();
23
24        void updateGUI(); //For the tray to call before the GUI becomes active
25
26private:
27        Ui::MixerGUI *ui;
28        QSettings *settings;
29        bool closing;
30
31private slots:
32        void hideGUI(){
33          this->hide();
34        }
35        void closeApplication(){
36          closing = true;
37          this->close();
38        }
39       
40        void changeDefaultTrayDevice(QString device);
41        void itemChanged(QString device); //for individual device adjustments
42
43protected:
44        void closeEvent(QCloseEvent *event){
45          if(!closing){
46            event->ignore();
47            hideGUI();
48          }
49        }
50       
51signals:
52        void updateTray();
53       
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.