aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-25 15:54:24 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-28 05:57:27 +0200
commit4f01392de56f44e33a7e0989a340cced73147a5a (patch)
treeb2c7db8c3269cbf7e83b9d30c1bf37ee8b14f976 /share
parent6cd6ddbd1c25b9b78aaa0b1690b0ca748e2da810 (diff)
downloadlogdiag-4f01392de56f44e33a7e0989a340cced73147a5a.tar.gz
logdiag-4f01392de56f44e33a7e0989a340cced73147a5a.tar.xz
logdiag-4f01392de56f44e33a7e0989a340cced73147a5a.zip
Add basic print functionality
Sadly, the line width depends on the widget's DPI, which seems to even cause uneven lines on Windows, where virtual printers claim high DPI. It might also be an unrelated problem. Similarly, selected objects are exported highlighted. Other than that, it works quite well. Add a manifest to make the print dialog look nice with the older GTK+ bundle we depend upon. The RC file could theoretically be scanned for /\s+"([^"]+)"\s*$/, unescaped, and the results configure_file()-stamped.
Diffstat (limited to 'share')
-rw-r--r--share/gui/window-main.ui4
-rw-r--r--share/logdiag.manifest11
-rw-r--r--share/logdiag.rc2
3 files changed, 14 insertions, 3 deletions
diff --git a/share/gui/window-main.ui b/share/gui/window-main.ui
index 8209cd4..f826698 100644
--- a/share/gui/window-main.ui
+++ b/share/gui/window-main.ui
@@ -6,10 +6,8 @@
<menuitem action="Save" />
<menuitem action="SaveAs" />
<separator />
-<!--
- <menuitem action="Export" />
+ <menuitem action="Print" />
<separator />
--->
<menuitem action="Quit" />
</menu>
<menu action="EditMenu">
diff --git a/share/logdiag.manifest b/share/logdiag.manifest
new file mode 100644
index 0000000..ace298f
--- /dev/null
+++ b/share/logdiag.manifest
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity name="logdiag" version="1.0.0.0" type="win32" />
+ <dependency>
+ <dependentAssembly>
+ <assemblyIdentity name="Microsoft.Windows.Common-Controls"
+ version="6.0.0.0" type="win32" processorArchitecture="*"
+ publicKeyToken="6595b64144ccf1df" language="*" />
+ </dependentAssembly>
+ </dependency>
+</assembly>
diff --git a/share/logdiag.rc b/share/logdiag.rc
index 30684e2..cff1571 100644
--- a/share/logdiag.rc
+++ b/share/logdiag.rc
@@ -1 +1,3 @@
+#include <windows.h>
LD_ICON ICON "logdiag.ico"
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "logdiag.manifest"