From f651273ebf2a8b11aa01ed1434ecb613177ced6a Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sun, 2 Aug 2015 16:13:36 +0300
Subject: Add gui mode for dyecmd. Now only basic code added.

---
 src/gui/widgets/window.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'src/gui/widgets/window.cpp')

diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 73355e3fc..cd8da96bf 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -67,7 +67,11 @@
 
 #include "client.h"
 #include "configuration.h"
+#ifndef DYECMD
 #include "dragdrop.h"
+#else
+#include "resources/image.h"
+#endif
 #include "graphicsvertexes.h"
 #include "soundconsts.h"
 #include "soundmanager.h"
@@ -236,8 +240,10 @@ Window::~Window()
     if (gui)
         gui->removeDragged(this);
 
+#ifndef DYECMD
     if (setupWindow)
         setupWindow->unregisterWindowForReset(this);
+#endif
 
     client->windowRemoved(this);
 
@@ -848,6 +854,7 @@ void Window::mousePressed(MouseEvent &event)
         else
             mMoved = false;
     }
+#ifndef DYECMD
     else if (button == MouseButton::RIGHT)
     {
         if (popupMenu)
@@ -856,6 +863,7 @@ void Window::mousePressed(MouseEvent &event)
             popupMenu->showWindowPopup(this);
         }
     }
+#endif
 }
 
 void Window::close()
@@ -891,8 +899,10 @@ void Window::updateResizeHandler(MouseEvent &event)
     if (!gui)
         return;
 
+#ifndef DYECMD
     if (!dragDrop.isEmpty())
         return;
+#endif
 
     mResizeHandles = getResizeHandles(event);
 
-- 
cgit v1.2.3-70-g09d2