blob: 527f7f798deeab140ed77a069be037c452976b3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#pragma once
#include <tqwidget.h>
#include <tqdatetime.h>
#include <tqptrlist.h>
class PulseModel;
class AudioDevice;
class DeviceWidget;
class TQHBoxLayout;
class TQVBoxLayout;
class TmixPopup : public TQWidget
{
TQ_OBJECT
public:
TmixPopup( PulseModel *model,
bool showOutput, bool showMic, bool showApps,
bool showRecording = false,
TQWidget *parent = 0 );
void toggleAt( const TQPoint &trayGlobalPos, const TQSize &traySize );
bool justHidden() const;
protected:
void hideEvent( TQHideEvent *e );
void wheelEvent( TQWheelEvent *e );
private slots:
void onDefaultOutputChanged( AudioDevice *dev );
void onDeviceAdded( AudioDevice *dev );
void onDeviceRemoved( AudioDevice *dev );
private:
void rebuild();
PulseModel *m_model;
bool m_showOutput;
bool m_showMic;
bool m_showApps;
bool m_showRecording;
TQVBoxLayout *m_outerLayout;
TQWidget *m_devContainer;
TQPtrList<DeviceWidget> m_devWidgets;
TQTime m_hideTime;
};
|