iistaskheader.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   Copyright: http://www.ii-system.com                                   *
00004  *   License:   LGPL                                                       *
00005  *                                                                         *
00006  ***************************************************************************/
00007 
00008 #ifndef IISTASKHEADER_H
00009 #define IISTASKHEADER_H
00010 
00011 #include <QtGui>
00012 
00013 #include "iistaskpanel_global.h"
00014 
00015 class iisTaskPanelScheme;
00016 struct iisIconLabelScheme;
00017 class iisIconLabel;
00018 
00019 class IISTASKPANEL_EXPORT iisTaskHeader : public QFrame
00020 {
00021         Q_OBJECT
00022 
00023 public:
00024         iisTaskHeader(const QIcon &icon, const QString &title, bool expandable, QWidget *parent = 0);
00025 
00026         void setScheme(iisTaskPanelScheme *scheme);
00027         virtual ~iisTaskHeader();
00028 
00029 Q_SIGNALS:
00030         void activated();
00031 
00032 public Q_SLOTS:
00033         void fold();
00034 
00035 protected Q_SLOTS:
00036         void animate();
00037 
00038 protected:
00039         virtual void paintEvent ( QPaintEvent * event );
00040         virtual void enterEvent ( QEvent * event );
00041         virtual void leaveEvent ( QEvent * event );
00042         virtual void mouseReleaseEvent ( QMouseEvent * event );
00043 
00044         bool eventFilter(QObject *obj, QEvent *event);
00045 
00046         void changeIcons();
00047 
00048         iisTaskPanelScheme *myScheme;
00049         iisIconLabelScheme *myLabelScheme;
00050 
00051         bool myExpandable;
00052         bool m_over, m_buttonOver, m_fold;
00053         double m_opacity;
00054 
00055         iisIconLabel *myTitle;
00056         QLabel *myButton;
00057 };
00058 
00059 #endif // IISTASKHEADER_H

Generated on Wed Nov 23 19:00:18 2011 for FreeCAD by  doxygen 1.6.1