aboutsummaryrefslogtreecommitdiff
path: root/lumina-wm-INCOMPLETE/GlobalDefines.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-04 09:29:29 -0400
committerKen Moore <moorekou@gmail.com>2015-09-04 09:29:29 -0400
commite75014ec60c937d42f09852d7d0e833f96ee7093 (patch)
treea4d1ee2df38b61b8c0ccd6aa79de304d4c3f2884 /lumina-wm-INCOMPLETE/GlobalDefines.h
parentClean out all the old XLib functions which were commented out, and start addi... (diff)
downloadlumina-e75014ec60c937d42f09852d7d0e833f96ee7093.tar.gz
lumina-e75014ec60c937d42f09852d7d0e833f96ee7093.tar.bz2
lumina-e75014ec60c937d42f09852d7d0e833f96ee7093.zip
Commit some more work on lumina-wm:
1) The LWindow class seems to function properly for embedding/controlling a window now. 2) Add a "testwin" CLI flag to simply run a text of the window class (with a sample window). This allows testing without having to stop the currently running WM. 3) Setup the XCB access class so it is globally accessible to the individual classes in the WM (no need to constantly be passing the structure around). 4) Already include built-in support for simple window animations/effects (3-lines per effect is all that is needed). Will need to define animation flags/settings for use later, probably with an abstracted function to "performAnimation(type, size)"
Diffstat (limited to 'lumina-wm-INCOMPLETE/GlobalDefines.h')
-rw-r--r--lumina-wm-INCOMPLETE/GlobalDefines.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/lumina-wm-INCOMPLETE/GlobalDefines.h b/lumina-wm-INCOMPLETE/GlobalDefines.h
new file mode 100644
index 00000000..f78f9cbd
--- /dev/null
+++ b/lumina-wm-INCOMPLETE/GlobalDefines.h
@@ -0,0 +1,64 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2015, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+// Global defines and enumerations for the window manager
+//===========================================
+#ifndef _LUMINA_WINDOW_MANAGER_GLOBAL_DEFINES_H
+#define _LUMINA_WINDOW_MANAGER_GLOBAL_DEFINES_H
+
+//Qt includes
+#include <QObject>
+#include <QFrame>
+#include <QLabel>
+#include <QToolButton>
+#include <QMenu>
+#include <QHBoxLayout>
+#include <QMouseEvent>
+#include <QAction>
+#include <QPoint>
+#include <QFile>
+#include <QDir>
+#include <QString>
+#include <QTextStream>
+#include <QUrl>
+#include <QDebug>
+#include <QStringList>
+#include <QAbstractNativeEventFilter>
+#include <QList>
+#include <QX11Info>
+#include <QCoreApplication>
+#include <QPropertyAnimation>
+#include <QWindow>
+#include <QBackingStore>
+
+// libLumina includes
+#include <LuminaX11.h>
+#include <LuminaXDG.h>
+#include <LuminaOS.h>
+#include <LuminaThemes.h>
+#include <LuminaUtils.h>
+#include <LuminaSingleApplication.h>
+
+//XCB Includes
+#include <xcb/xcb.h>
+#include <xcb/xproto.h>
+#include <xcb/damage.h>
+#include <xcb/xcb_atom.h>
+#include <xcb/xcb_aux.h> //included in libxcb-util.so
+
+#define ANIMTIME 100 //animation time in milliseconds
+//Global flags/structures
+namespace LWM{
+ //Flags/enumerations
+ enum WindowAction{MoveResize, Show, Hide, TryClose, Closed};
+
+ //Data structures
+ extern LXCB *SYSTEM;
+};
+
+
+
+#endif \ No newline at end of file
bgstack15