mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
40 lines
822 B
C++
40 lines
822 B
C++
#ifndef APPITEM_H
|
|
#define APPITEM_H
|
|
|
|
#include "dockitem.h"
|
|
#include "dbus/dbusdockentry.h"
|
|
#include "dbus/dbusclientmanager.h"
|
|
|
|
class AppItem : public DockItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AppItem(const QDBusObjectPath &entry, QWidget *parent = nullptr);
|
|
|
|
private:
|
|
void paintEvent(QPaintEvent *e);
|
|
void mouseReleaseEvent(QMouseEvent *e);
|
|
void mousePressEvent(QMouseEvent *e);
|
|
void mouseMoveEvent(QMouseEvent *e);
|
|
|
|
void startDrag();
|
|
void initClientManager();
|
|
void entryDataChanged(const QString &key, const QString &value);
|
|
|
|
private:
|
|
DBusDockEntry *m_itemEntry;
|
|
|
|
bool m_draging;
|
|
|
|
QMap<QString, QString> m_data;
|
|
QMap<uint, QString> m_windows;
|
|
|
|
QPoint m_mousePressPos;
|
|
|
|
static DBusClientManager *ClientInter;
|
|
static uint ActiveWindowId;
|
|
};
|
|
|
|
#endif // APPITEM_H
|