iistaskbox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef IISTASKBOX_H
00009 #define IISTASKBOX_H
00010
00011 #include <QtGui>
00012
00013 #include "iistaskpanel_global.h"
00014
00015 class iisTaskHeader;
00016 class iisTaskGroup;
00017 class iisTaskPanelScheme;
00018 class iisIconLabel;
00019
00020 class IISTASKPANEL_EXPORT iisTaskBox : public QFrame
00021 {
00022 Q_OBJECT
00023
00024 public:
00025 iisTaskBox(const QString &title, bool expandable = true, QWidget *parent = 0);
00026 iisTaskBox(const QPixmap &icon, const QString &title, bool expandable = true, QWidget *parent = 0);
00027 virtual ~iisTaskBox();
00028
00029 void setScheme(iisTaskPanelScheme *pointer);
00030
00031 QBoxLayout* groupLayout();
00032
00033 void addIconLabel(iisIconLabel *label, bool addToLayout = true);
00034
00035 public Q_SLOTS:
00036 void showHide();
00037
00038 protected Q_SLOTS:
00039 void processHide();
00040 void processShow();
00041
00042 protected:
00043 void init();
00044
00045 virtual void paintEvent ( QPaintEvent * event );
00046
00047
00048 double m_foldStep, m_foldDelta, m_fullHeight, m_tempHeight;
00049 int m_foldDirection;
00050
00051 QPixmap m_foldPixmap;
00052
00053 iisTaskHeader *myHeader;
00054 iisTaskGroup *myGroup;
00055 QWidget *myDummy;
00056
00057 iisTaskPanelScheme *myScheme;
00058 };
00059
00060 #endif // IISTASKBOX_H