summaryrefslogtreecommitdiffstats
path: root/kmix/viewdockareapopup.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /kmix/viewdockareapopup.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmix/viewdockareapopup.h')
-rw-r--r--kmix/viewdockareapopup.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/kmix/viewdockareapopup.h b/kmix/viewdockareapopup.h
new file mode 100644
index 00000000..4205e831
--- /dev/null
+++ b/kmix/viewdockareapopup.h
@@ -0,0 +1,57 @@
+#ifndef ViewDockAreaPopup_h
+#define ViewDockAreaPopup_h
+
+#include "viewbase.h"
+
+class QMouseEvent;
+class QGridLayout;
+class QWidget;
+class QPushButton;
+
+class Mixer;
+class KMixDockWidget;
+class MixDeviceWidget;
+class MixDevice;
+class QFrame;
+class QTime;
+
+class ViewDockAreaPopup : public ViewBase
+{
+ Q_OBJECT
+public:
+ ViewDockAreaPopup(QWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW);
+ ~ViewDockAreaPopup();
+ MixDevice* dockDevice();
+
+ virtual int count();
+ virtual int advice();
+ virtual void setMixSet(MixSet *mixset);
+ virtual QWidget* add(MixDevice *mdw);
+ virtual void constructionFinished();
+ virtual void refreshVolumeLevels();
+ virtual void showContextMenu();
+
+ QSize sizeHint() const;
+ bool justHidden();
+
+protected:
+ MixDeviceWidget *_mdw;
+ KMixDockWidget *_dock;
+ MixDevice *_dockDevice;
+ QPushButton *_showPanelBox;
+
+ void mousePressEvent(QMouseEvent *e);
+ void wheelEvent ( QWheelEvent * e );
+
+private:
+ QGridLayout* _layoutMDW;
+ QFrame *_frame;
+ QTime *_hideTimer;
+
+private slots:
+ void showPanelSlot();
+
+};
+
+#endif
+