QSint Library  0.2.2
taskheader_p.h
1 #ifndef TASKHEADER_P_H
2 #define TASKHEADER_P_H
3 
4 #include "actionpanelscheme.h"
5 #include "actionlabel.h"
6 
7 #include <QLabel>
8 
9 
10 namespace QSint
11 {
12 
13 
14 class TaskHeader : public QFrame
15 {
16  Q_OBJECT
17 
18  typedef QFrame BaseClass;
19 
20  friend class ActionGroup;
21 
22 public:
23  TaskHeader(const QIcon &icon, const QString &title, bool expandable, QWidget *parent = 0);
24 
25  inline bool expandable() const { return myExpandable; }
26  void setExpandable(bool expandable);
27 
28  void setScheme(ActionPanelScheme *scheme);
29 
30 signals:
31  void activated();
32 
33 public slots:
34  void fold();
35 
36 protected slots:
37  void animate();
38 
39 protected:
40  virtual void paintEvent ( QPaintEvent * event );
41  virtual void enterEvent ( QEvent * event );
42  virtual void leaveEvent ( QEvent * event );
43  virtual void mouseReleaseEvent ( QMouseEvent * event );
44  virtual void keyPressEvent ( QKeyEvent * event );
45  virtual void keyReleaseEvent ( QKeyEvent * event );
46 
47  bool eventFilter(QObject *obj, QEvent *event);
48 
49  void changeIcons();
50 
51  ActionPanelScheme *myScheme;
52 
53  bool myExpandable;
54  bool m_over, m_buttonOver, m_fold;
55  double m_opacity;
56 
57  ActionLabel *myTitle;
58  QLabel *myButton;
59 };
60 
61 
62 }
63 
64 #endif // TASKHEADER_P_H

© Sintegrial Technologies 2011-2014
http://www.sintegrial.com