mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
40 lines
768 B
C++
40 lines
768 B
C++
#ifndef PREVIEWCONTAINER_H
|
|
#define PREVIEWCONTAINER_H
|
|
|
|
#include <QWidget>
|
|
#include <QHBoxLayout>
|
|
|
|
#include "dbus/dbusdockentry.h"
|
|
#include "constants.h"
|
|
|
|
class PreviewContainer : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PreviewContainer(QWidget *parent = 0);
|
|
|
|
signals:
|
|
void requestActivateWindow(const WId wid) const;
|
|
void requestPreviewWindow(const WId wid) const;
|
|
void requestCancelPreview() const;
|
|
void requestHidePreview() const;
|
|
|
|
public:
|
|
void setWindowInfos(const WindowDict &infos);
|
|
|
|
public slots:
|
|
void updateLayoutDirection(const Dock::Position dockPos);
|
|
|
|
protected:
|
|
void leaveEvent(QEvent *e);
|
|
|
|
private slots:
|
|
void updateContainerSize();
|
|
|
|
private:
|
|
QBoxLayout *m_windowListLayout;
|
|
};
|
|
|
|
#endif // PREVIEWCONTAINER_H
|