diff --git a/python/bin/gwinwrap-0-0-1-x64.deb b/python/bin/gwinwrap-0-0-1-x64.deb
index bd9cf11..f3a0a28 100644
Binary files a/python/bin/gwinwrap-0-0-1-x64.deb and b/python/bin/gwinwrap-0-0-1-x64.deb differ
diff --git a/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/GWinWrap.py b/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/GWinWrap.py
index 00d553f..7e59ead 100755
--- a/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/GWinWrap.py
+++ b/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/GWinWrap.py
@@ -107,9 +107,13 @@ class GWinWrap:
self.generateThumbnail(fullPathFile)
thumbnl = self.createGtkImage("/tmp/image.png", [310, 310])
eveBox.connect("button_press_event", self.runMplayerProcess, (fullPathFile, file,))
+ eveBox.connect("enter_notify_event", self.mouseOver, (fullPathFile, file))
+ eveBox.connect("leave_notify_event", self.mouseOut, (fullPathFile, file))
elif file.lower().endswith(('.png', '.jpg', '.jpeg', '.gif')):
thumbnl = self.createGtkImage(fullPathFile, [310, 310])
eveBox.connect("button_press_event", self.runImageViewerProcess, (fullPathFile, file))
+ eveBox.connect("enter_notify_event", self.mouseOver, (fullPathFile, file))
+ eveBox.connect("leave_notify_event", self.mouseOut, (fullPathFile, file))
else:
print("Not a video or image file.")
return
@@ -159,12 +163,33 @@ class GWinWrap:
def runImageViewerProcess(self, widget, eve, params):
if eve.type == gdk.EventType.DOUBLE_BUTTON_PRESS:
- subprocess.call(["xdg-open", params[0]])
+ previewWindow = self.builder.get_object("previewWindow")
+ previewImg = self.builder.get_object("previewImg")
+ previewImg.set_from_file(params[0])
+ previewWindow.show_all()
+ previewWindow.popup()
self.toSavePath = params[0]
self.applyType = 2
self.helpLabel.set_markup("" + params[1] + "")
+ def openMainImageViewer(self, widget):
+ subprocess.call(["xdg-open", self.toSavePath])
+
+ def closePopup(self, widget):
+ previewWindow = self.builder.get_object("previewWindow")
+ previewWindow.popdown()
+
+ def mouseOver(self, widget, eve, args):
+ pass
+ # hand_cursor = gdk.Cursor(gdk.CursorType.GDK_HAND2)
+ # self.window.get_window().set_cursor(hand_cursor)
+
+ def mouseOut(self, widget, eve, args):
+ pass
+ # watch_cursor = gdk.Cursor(gdk.CursorType.GDK_LEFT_PTR)
+ # self.window.get_window().set_cursor(watch_cursor)
+
def toggleXscreenUsageField(self, widget, data=None):
useXscreenSaver = self.builder.get_object("useXScrnList")
if useXscreenSaver.get_active():
diff --git a/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/resources/GWinWrap.glade b/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/resources/GWinWrap.glade
index d711911..7920fbd 100644
--- a/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/resources/GWinWrap.glade
+++ b/python/src/debs/gwinwrap-0-0-1-x64/opt/GWinWrap/resources/GWinWrap.glade
@@ -213,6 +213,48 @@
+
+
+
+
+
+
+
@@ -661,6 +709,8 @@
True
True
True
+ stopImage
+ True
@@ -676,6 +726,8 @@
True
True
True
+ closeImage
+ True
@@ -709,4 +761,89 @@
+
+ 640
+ 525
+ False
+ True
+ True
+ helpLabel
+ bottom
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+ bottom
+
+
+ Main Image Viewer
+ True
+ True
+ True
+ openProgImage
+ True
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ True
+ closePopupImage
+ True
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ in
+ False
+
+
+ True
+ False
+
+
+ True
+ False
+ gtk-missing-image
+
+
+
+
+
+
+ True
+ True
+ 1
+
+
+
+
+
diff --git a/python/src/versions/0.0.1/GWinWrap/GWinWrap.py b/python/src/versions/0.0.1/GWinWrap/GWinWrap.py
index 00d553f..7e59ead 100755
--- a/python/src/versions/0.0.1/GWinWrap/GWinWrap.py
+++ b/python/src/versions/0.0.1/GWinWrap/GWinWrap.py
@@ -107,9 +107,13 @@ class GWinWrap:
self.generateThumbnail(fullPathFile)
thumbnl = self.createGtkImage("/tmp/image.png", [310, 310])
eveBox.connect("button_press_event", self.runMplayerProcess, (fullPathFile, file,))
+ eveBox.connect("enter_notify_event", self.mouseOver, (fullPathFile, file))
+ eveBox.connect("leave_notify_event", self.mouseOut, (fullPathFile, file))
elif file.lower().endswith(('.png', '.jpg', '.jpeg', '.gif')):
thumbnl = self.createGtkImage(fullPathFile, [310, 310])
eveBox.connect("button_press_event", self.runImageViewerProcess, (fullPathFile, file))
+ eveBox.connect("enter_notify_event", self.mouseOver, (fullPathFile, file))
+ eveBox.connect("leave_notify_event", self.mouseOut, (fullPathFile, file))
else:
print("Not a video or image file.")
return
@@ -159,12 +163,33 @@ class GWinWrap:
def runImageViewerProcess(self, widget, eve, params):
if eve.type == gdk.EventType.DOUBLE_BUTTON_PRESS:
- subprocess.call(["xdg-open", params[0]])
+ previewWindow = self.builder.get_object("previewWindow")
+ previewImg = self.builder.get_object("previewImg")
+ previewImg.set_from_file(params[0])
+ previewWindow.show_all()
+ previewWindow.popup()
self.toSavePath = params[0]
self.applyType = 2
self.helpLabel.set_markup("" + params[1] + "")
+ def openMainImageViewer(self, widget):
+ subprocess.call(["xdg-open", self.toSavePath])
+
+ def closePopup(self, widget):
+ previewWindow = self.builder.get_object("previewWindow")
+ previewWindow.popdown()
+
+ def mouseOver(self, widget, eve, args):
+ pass
+ # hand_cursor = gdk.Cursor(gdk.CursorType.GDK_HAND2)
+ # self.window.get_window().set_cursor(hand_cursor)
+
+ def mouseOut(self, widget, eve, args):
+ pass
+ # watch_cursor = gdk.Cursor(gdk.CursorType.GDK_LEFT_PTR)
+ # self.window.get_window().set_cursor(watch_cursor)
+
def toggleXscreenUsageField(self, widget, data=None):
useXscreenSaver = self.builder.get_object("useXScrnList")
if useXscreenSaver.get_active():
diff --git a/python/src/versions/0.0.1/GWinWrap/resources/GWinWrap.glade b/python/src/versions/0.0.1/GWinWrap/resources/GWinWrap.glade
index d711911..7920fbd 100644
--- a/python/src/versions/0.0.1/GWinWrap/resources/GWinWrap.glade
+++ b/python/src/versions/0.0.1/GWinWrap/resources/GWinWrap.glade
@@ -213,6 +213,48 @@
+
+ True
+ False
+ gtk-clear
+ 3
+
+
+ True
+ False
+ gtk-quit
+ 3
+
+
+
+ True
+ False
+ gtk-jump-to
+ 3
+
+
+ True
+ False
+ gtk-save
+ 3
+
+
+ True
+ False
+ gtk-media-play
+ 3
+
+
+ True
+ False
+ gtk-media-stop
+ 3
+
950
600
@@ -227,7 +269,7 @@
-
+
True
False
@@ -262,6 +304,8 @@
True
True
True
+ clearImage
+ True
@@ -631,6 +675,8 @@
True
True
True
+ saveImage
+ True
@@ -646,6 +692,8 @@
True
True
True
+ startImage
+ True
@@ -661,6 +709,8 @@
True
True
True
+ stopImage
+ True
@@ -676,6 +726,8 @@
True
True
True
+ closeImage
+ True
@@ -709,4 +761,89 @@
+
+ 640
+ 525
+ False
+ True
+ True
+ helpLabel
+ bottom
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+ bottom
+
+
+ Main Image Viewer
+ True
+ True
+ True
+ openProgImage
+ True
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ True
+ closePopupImage
+ True
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ in
+ False
+
+
+ True
+ False
+
+
+ True
+ False
+ gtk-missing-image
+
+
+
+
+
+
+ True
+ True
+ 1
+
+
+
+
+