summaryrefslogtreecommitdiff
path: root/src/ui/mixerwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/mixerwindow.h')
-rw-r--r--src/ui/mixerwindow.h51
1 files changed, 41 insertions, 10 deletions
diff --git a/src/ui/mixerwindow.h b/src/ui/mixerwindow.h
index f6b7be8..c472246 100644
--- a/src/ui/mixerwindow.h
+++ b/src/ui/mixerwindow.h
@@ -1,15 +1,19 @@
#pragma once
-#include <tqwidget.h>
#include <tqmap.h>
+#include <tdemainwindow.h>
#include "../model/audiodevice.h"
class PulseModel;
class KTabWidget;
class TQHBoxLayout;
+class TQWidgetStack;
+class TQToolButton;
+class DevicesPage;
+class TQResizeEvent;
-class MixerWindow : public TQWidget
+class MixerWindow : public TDEMainWindow
{
TQ_OBJECT
@@ -17,22 +21,49 @@ public:
explicit MixerWindow( PulseModel *model, TQWidget *parent = 0 );
~MixerWindow() {}
-private slots:
- void onDeviceAdded( AudioDevice *dev );
- void onDeviceRemoved( AudioDevice *dev );
-
-public:
struct Tab {
+ TQWidget *scroll;
TQWidget *page;
TQHBoxLayout *layout;
+ int count;
};
-private:
+protected:
+ bool queryClose();
+ bool eventFilter( TQObject *obj, TQEvent *e );
+ void showEvent( TQShowEvent *e );
+private slots:
+ void onDeviceAdded( AudioDevice *dev );
+ void onDeviceRemoved( AudioDevice *dev );
+ void onDefaultOutputChanged( AudioDevice *dev );
+ void showAbout();
+ void showPreferences();
+ void applySettings();
+ void quit();
+ void onAppAboutToQuit();
+ void toggleDevices();
+
+private:
Tab &tabForCategory( AudioDevice::Category cat );
+ void rebuildView();
+ void updateDevicesButton();
+ void repositionDevicesBtn();
- PulseModel *m_model;
- KTabWidget *m_tabs;
+ PulseModel *m_model;
+ KTabWidget *m_tabs;
+ class PreferencesDlg *m_prefsDlg;
+ TQWidgetStack *m_outerStack;
+ TQWidgetStack *m_stack;
+ TQWidget *m_allPage;
+ TQWidget *m_allStrip;
+ TQHBoxLayout *m_allLayout;
+ int m_allCount;
+ class TmixTray *m_tray;
+ TQToolButton *m_devicesBtn;
+ DevicesPage *m_devicesPage;
+ bool m_devicesInTabs; // true = DevicesPage is a tab in m_tabs
+ bool m_quitting;
Tab m_output;
Tab m_input;