summaryrefslogtreecommitdiff
path: root/src/ui/alsa/alsapopup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/alsa/alsapopup.h')
-rw-r--r--src/ui/alsa/alsapopup.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ui/alsa/alsapopup.h b/src/ui/alsa/alsapopup.h
new file mode 100644
index 0000000..94b1800
--- /dev/null
+++ b/src/ui/alsa/alsapopup.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <tqwidget.h>
+#include <tqdatetime.h>
+
+class AlsaModel;
+class AlsaDevice;
+class AlsaDeviceWidget;
+
+class AlsaPopup : public TQWidget
+{
+ TQ_OBJECT
+public:
+ explicit AlsaPopup( AlsaModel *model, TQWidget *parent = 0 );
+
+ void toggleAt( const TQPoint &trayPos, const TQSize &traySize );
+ bool justHidden() const;
+
+protected:
+ void hideEvent( TQHideEvent *e );
+
+private slots:
+ void rebuild();
+
+private:
+ AlsaModel *m_model;
+ TQWidget *m_container;
+ AlsaDeviceWidget *m_widget;
+ TQTime m_hideTime;
+};