~ubuntu-branches/ubuntu/karmic/smplayer/karmic

« back to all changes in this revision

Viewing changes to src/floatingwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-01-03 17:08:06 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090103170806-eodntb2slv6g2pb6
Tags: 0.6.6-0ubuntu1
* The "just before FF" release.
* New upstream release.
* debian/control: Bumped Standards-Version to 3.8.0.
* debian/copyright: Changed (C) to © to fix Lintian warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#define _FLOATING_WIDGET_H_
21
21
 
22
22
#include <QWidget>
 
23
#include <QTimer>
23
24
 
24
25
class QToolBar;
25
26
 
42
43
        QToolBar * toolbar() { return tb; };
43
44
 
44
45
        bool isAnimated() { return _animated; };
 
46
        bool autoHide() { return auto_hide; };
 
47
        int margin() { return _margin; };
45
48
 
46
49
public slots:
47
50
        void setAnimated(bool b) { _animated = b; };
 
51
        void setAutoHide(bool b);
 
52
        void setMargin(int margin) { _margin = margin; };
 
53
#ifndef Q_OS_WIN
 
54
        void setBypassWindowManager(bool b);
 
55
#endif
48
56
 
49
57
protected:
50
58
        QToolBar * tb;
51
59
 
52
60
private slots:
53
61
        void animate();
 
62
        void checkUnderMouse();
54
63
 
55
64
private:
56
65
        // Animation variables
59
68
        int final_y;
60
69
        int current_y;
61
70
        Movement current_movement;
 
71
 
 
72
        bool auto_hide;
 
73
        QTimer auto_hide_timer;
 
74
 
 
75
        int _margin;
62
76
};
63
77
 
64
78
#endif