~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/hudwidget.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
30
30
 
31
31
// Local
32
32
 
33
 
 
34
 
namespace Gwenview {
35
 
 
 
33
namespace Gwenview
 
34
{
36
35
 
37
36
struct HudWidgetPrivate;
38
 
class GWENVIEWLIB_EXPORT HudWidget : public QFrame {
39
 
        Q_OBJECT
 
37
class GWENVIEWLIB_EXPORT HudWidget : public QFrame
 
38
{
 
39
    Q_OBJECT
40
40
public:
41
 
        enum Option {
42
 
                OptionNone                 = 0,
43
 
                OptionCloseButton          = 1 << 1,
44
 
                // FIXME: Ugly
45
 
                OptionDoNotFollowChildSize = 1 << 2, /// Make it possible to resize the hudwidget independently of child size
46
 
                OptionOpaque               = 1 << 3
47
 
        };
48
 
        Q_DECLARE_FLAGS(Options, Option)
49
 
 
50
 
        HudWidget(QWidget* parent = 0);
51
 
        ~HudWidget();
52
 
 
53
 
        void init(QWidget*, Options options);
54
 
 
55
 
        QWidget* mainWidget() const;
 
41
    enum Option {
 
42
        OptionNone                 = 0,
 
43
        OptionCloseButton          = 1 << 1,
 
44
        // FIXME: Ugly
 
45
        OptionDoNotFollowChildSize = 1 << 2, /// Make it possible to resize the hudwidget independently of child size
 
46
        OptionOpaque               = 1 << 3
 
47
    };
 
48
    Q_DECLARE_FLAGS(Options, Option)
 
49
 
 
50
    HudWidget(QWidget* parent = 0);
 
51
    ~HudWidget();
 
52
 
 
53
    void init(QWidget*, Options options);
 
54
 
 
55
    QWidget* mainWidget() const;
56
56
 
57
57
Q_SIGNALS:
58
 
        void closed();
 
58
    void closed();
59
59
 
60
60
private Q_SLOTS:
61
 
        void slotCloseButtonClicked();
 
61
    void slotCloseButtonClicked();
62
62
 
63
63
private:
64
 
        HudWidgetPrivate* const d;
 
64
    HudWidgetPrivate* const d;
65
65
};
66
66
 
67
 
 
68
67
} // namespace
69
68
 
70
69
Q_DECLARE_OPERATORS_FOR_FLAGS(Gwenview::HudWidget::Options)