aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeEmbedWidget.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-09-20 13:42:32 +0000
committerWeblate <noreply@weblate.org>2017-09-20 13:42:32 +0000
commita4fd58c9aae62207b131a13cc13187970495bdb5 (patch)
treecdabc3a0816c41f6f2a6f5191f3e38f698595c13 /src-qt5/core/libLumina/NativeEmbedWidget.h
parentTranslated using Weblate (Lithuanian) (diff)
parentStreamline a bit more of the new Lumina2 window embed functionality. (diff)
downloadlumina-a4fd58c9aae62207b131a13cc13187970495bdb5.tar.gz
lumina-a4fd58c9aae62207b131a13cc13187970495bdb5.tar.bz2
lumina-a4fd58c9aae62207b131a13cc13187970495bdb5.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/libLumina/NativeEmbedWidget.h')
-rw-r--r--src-qt5/core/libLumina/NativeEmbedWidget.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/NativeEmbedWidget.h b/src-qt5/core/libLumina/NativeEmbedWidget.h
index 65e03c51..16bb46dc 100644
--- a/src-qt5/core/libLumina/NativeEmbedWidget.h
+++ b/src-qt5/core/libLumina/NativeEmbedWidget.h
@@ -18,6 +18,7 @@
#include <QShowEvent>
#include <QHideEvent>
#include <QPaintEvent>
+#include <QMouseEvent>
class NativeEmbedWidget : public QWidget{
Q_OBJECT
@@ -25,7 +26,7 @@ private:
NativeWindow *WIN;
QSize winSize;
QImage winImage;
- bool paused;
+ bool paused, hasAlphaChannel;
private slots:
//Simplification functions
@@ -35,6 +36,7 @@ private slots:
void showWindow();
QImage windowImage(QRect geom);
+ void setWinUnpaused();
public:
NativeEmbedWidget(QWidget *parent);
@@ -42,22 +44,31 @@ public:
bool embedWindow(NativeWindow *window);
bool detachWindow();
bool isEmbedded(); //status of the embed
-
-
+ bool isPaused(){ return paused; }
public slots:
+ void raiseWindow();
+ void lowerWindow();
+
//Pause/resume
void pause();
void resume();
void resyncWindow();
void repaintWindow();
+ void reregisterEvents();
protected:
void resizeEvent(QResizeEvent *ev);
void showEvent(QShowEvent *ev);
void hideEvent(QHideEvent *ev);
void paintEvent(QPaintEvent *ev);
+ void enterEvent(QEvent *ev);
+ void leaveEvent(QEvent *ev);
+ void mouseMoveEvent(QMouseEvent *ev);
+ void mousePressEvent(QMouseEvent *ev);
+ void mouseReleaseEvent(QMouseEvent *ev);
+ //bool nativeEvent(const QByteArray &eventType, void *message, long *result);
};
#endif
bgstack15