dtkWidgetsManager.h 702 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Version: $Id$
//
//

// Commentary:
//
//

// Change Log:
//
//

// Code:

#pragma once

KLOCZKO Thibaud's avatar
KLOCZKO Thibaud committed
17
#include <dtkWidgetsExport>
18

KLOCZKO Thibaud's avatar
KLOCZKO Thibaud committed
19
#include <QtWidgets/QFrame>
20 21 22 23 24 25 26 27 28

class dtkWidgetsLayout;
class dtkWidgetsWidget;

class DTKWIDGETS_EXPORT dtkWidgetsManager : public QFrame
{
    Q_OBJECT

public:
KLOCZKO Thibaud's avatar
KLOCZKO Thibaud committed
29
     dtkWidgetsManager(QWidget *parent = nullptr);
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    ~dtkWidgetsManager(void);

signals:
    void focused(dtkWidgetsWidget *view);

public slots:
    void clear(void);

public slots:
    void onViewFocused(dtkWidgetsWidget *widget);
    void onViewUnfocused(dtkWidgetsWidget *widget);

public:
    dtkWidgetsLayout *layout(void);

private:
KLOCZKO Thibaud's avatar
KLOCZKO Thibaud committed
46
    class dtkWidgetsManagerPrivate *d;
47 48 49 50
};

//
// dtkWidgetsManager.h ends here