aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/RootSubWindow.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-07-19 18:57:55 +0000
committerWeblate <noreply@weblate.org>2017-07-19 18:57:55 +0000
commit72e16f90563b4998a71feed573140041f2db8fc3 (patch)
treecc9418321d40d2fa187c6b48e174cea360f7fd27 /src-qt5/core/libLumina/RootSubWindow.h
parentTranslated using Weblate (Czech) (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-72e16f90563b4998a71feed573140041f2db8fc3.tar.gz
lumina-72e16f90563b4998a71feed573140041f2db8fc3.tar.bz2
lumina-72e16f90563b4998a71feed573140041f2db8fc3.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow.h')
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.h b/src-qt5/core/libLumina/RootSubWindow.h
index 779f783b..de6aba89 100644
--- a/src-qt5/core/libLumina/RootSubWindow.h
+++ b/src-qt5/core/libLumina/RootSubWindow.h
@@ -18,8 +18,9 @@
#include <QLabel>
#include <QToolButton>
#include <QMenu>
+#include <QPropertyAnimation>
#include <NativeWindow.h>
-
+#include <NativeEmbedWidget.h>
class RootSubWindow : public QFrame{
Q_OBJECT
@@ -40,19 +41,28 @@ private:
void setMouseCursor(ModState, bool override = false); //Update the mouse cursor based on state
//Native window embed objects
NativeWindow *WIN;
- QWidget *WinWidget;
+ NativeEmbedWidget *WinWidget;
bool closing;
//Title bar objects
- QBoxLayout *titleBar, *mainLayout;
+ QBoxLayout *titleBarL, *mainLayout;
QToolButton *closeB, *maxB, *minB, *otherB;
QLabel *titleLabel;
QMenu *otherM; //menu of other actions
+ QWidget *titleBar;
+ //Other random objects (animations,etc)
+ QPropertyAnimation *anim;
+ QVariant animResetProp;
+ QTimer *moveTimer;
+ QRect lastGeom; //frame coordinates
+
void initWindowFrame();
+ void enableFrame(bool);
void LoadProperties( QList< NativeWindow::Property> list);
public slots:
void clientClosed();
+ void LoadAllProperties();
//Button Actions - public so they can be tied to key shortcuts and stuff as well
void toggleMinimize();
@@ -67,6 +77,7 @@ public slots:
private slots:
void propertiesChanged(QList<NativeWindow::Property>, QList<QVariant>);
+ void animFinished();
protected:
void mousePressEvent(QMouseEvent*);
@@ -74,6 +85,9 @@ protected:
void mouseReleaseEvent(QMouseEvent*);
void leaveEvent(QEvent *ev);
+ void moveEvent(QMoveEvent *ev);
+
+
};
#endif
bgstack15