From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- kmix/viewapplet.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 kmix/viewapplet.h (limited to 'kmix/viewapplet.h') diff --git a/kmix/viewapplet.h b/kmix/viewapplet.h new file mode 100644 index 00000000..a03d90e2 --- /dev/null +++ b/kmix/viewapplet.h @@ -0,0 +1,47 @@ +#ifndef ViewApplet_h +#define ViewApplet_h + +#include "viewbase.h" +#include + +class QBoxLayout; +class QHBox; +class QSize; + +class Mixer; + +class ViewApplet : public ViewBase +{ + Q_OBJECT +public: + ViewApplet(QWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KPanelApplet::Position pos); + ~ViewApplet(); + + virtual int count(); + virtual int advice(); + virtual void setMixSet(MixSet *mixset); + virtual QWidget* add(MixDevice *mdw); + virtual void constructionFinished(); + virtual void configurationUpdate(); + + QSize sizeHint() const; + QSizePolicy sizePolicy() const; + virtual void resizeEvent(QResizeEvent*); + +signals: + void appletContentChanged(); + +public slots: + virtual void refreshVolumeLevels(); + +private: + bool shouldShowIcons(QSize); + QBoxLayout* _layoutMDW; + // Position of the applet (pLeft, pRight, pTop, pBottom) + //KPanelApplet::Position _KMIXposition; + // Orientation of the applet (horizontal or vertical) + Qt::Orientation _viewOrientation; +}; + +#endif + -- cgit v1.2.1