Skip to content

Commit 8653e6c

Browse files
authored
Merge pull request #70 from tudelft3d/gio-dev
Changes towards v. 0.8.9
2 parents cbb31b2 + aea0a38 commit 8653e6c

6 files changed

+30
-46
lines changed

cdb_tools_main.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ def initGui(self) -> None:
343343
callback = self.run_admin,
344344
parent = self.iface.mainWindow(),
345345
add_to_menu = True,
346-
# add_to_toolbar = False)
347346
add_to_toolbar = True)
348347

349348
# Add separator
@@ -360,7 +359,7 @@ def initGui(self) -> None:
360359
callback = self.run_usr_guide,
361360
parent = self.iface.mainWindow(),
362361
add_to_menu = True,
363-
add_to_toolbar = False) # Default: False
362+
add_to_toolbar = False)
364363

365364
# About Dialog - Leave this at the end, so it will be the last icon.
366365
self.add_action(
@@ -369,7 +368,7 @@ def initGui(self) -> None:
369368
callback = self.run_about,
370369
parent = self.iface.mainWindow(),
371370
add_to_menu = True,
372-
add_to_toolbar = False) # Default: False
371+
add_to_toolbar = True)
373372

374373
#####################################################################
375374
#
@@ -662,15 +661,8 @@ def run_usr_guide(self) -> None:
662661
Otherwise: Opens the url to the PDF in GitHub.
663662
"""
664663
file_name: str = "3DCityDB-Tools_UserGuide.pdf"
665-
666-
if self.PLATFORM_SYSTEM == "Windows":
667-
# This will open a PDF viewer instead of the browser, if available
668-
pdf_path = os.path.join(self.PLUGIN_ABS_PATH, "manuals", file_name)
669-
sh_f.open_local_PDF(pdf_path=pdf_path)
670-
else:
671-
# For OS other than windows, stay safe and simply point to the PDF on GitHub
672-
url = "/".join([self.URL_GITHUB_PLUGIN, "blob", "v." + self.PLUGIN_VERSION_TXT, "manuals", file_name])
673-
sh_f.open_online_url(url=url)
664+
url = "/".join([self.URL_GITHUB_PLUGIN, "blob", "v." + self.PLUGIN_VERSION_TXT, "manuals", file_name])
665+
sh_f.open_online_url(url=url)
674666

675667
return None
676668

cdb_tools_main_constants.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Plugin current version
1515
PLUGIN_VERSION_MAJOR: int = 0
1616
PLUGIN_VERSION_MINOR: int = 8
17-
PLUGIN_VERSION_REV: int = 8
17+
PLUGIN_VERSION_REV: int = 9
1818

1919
# Paths
2020
PLUGIN_ABS_PATH: str = os.path.normpath(os.path.dirname(__file__))
@@ -38,7 +38,7 @@
3838
MENU_LABEL_LOADER: str = "Layer Loader"
3939
MENU_LABEL_DELETER: str = "Bulk Deleter"
4040
MENU_LABEL_ADMIN: str = "QGIS Package Administrator"
41-
MENU_LABEL_USRGUIDE: str= "User guide (PDF)"
41+
MENU_LABEL_USRGUIDE: str= "User guide (Online PDF)"
4242
MENU_LABEL_ABOUT: str = "About"
4343

4444
# Dialog names

manuals/3DCityDB-Tools_UserGuide.pdf

-1.31 KB
Binary file not shown.

metadata.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
name=3DCityDB Tools
66
qgisMinimumVersion=3.22
77
description=Tools to visualize and manipulate CityGML 2.0 data stored in the 3D City Database
8-
version=0.8.8
8+
version=0.8.9
99
author=Giorgio Agugiaro, Konstantinos Pantelios
1010
email=g.agugiaro@tudelft.nl, konstantinospantelios@yahoo.com,
1111

@@ -29,7 +29,8 @@ repository=https://github.com/tudelft3d/3DCityDB-Tools-for-QGIS
2929
hasProcessingProvider=no
3030

3131
# Uncomment the following line and add your changelog:
32-
changelog= 0.8.8 Minor edits
32+
changelog= 0.8.9 Minor changes
33+
0.8.8 Minor edits
3334
0.8.7 Bug fixes and minor improvements
3435
0.8.6 Added About dialog GUI and other minor improvements
3536
0.8.5 Fixed minor bugs in the QGIS client

shared/gui_about/about_dialog.py

+6-30
Original file line numberDiff line numberDiff line change
@@ -181,36 +181,6 @@ def evt_btn3DCityDBInstall_clicked(self) -> None:
181181
For Windows OS: Opens the default web browser with the PDF file containing the installation and user guide.
182182
Otherwise: Opens the url to GitHub where the PDFs are stored.
183183
"""
184-
# To be activated once we have the PDFs for each main OS
185-
if self.PLATFORM_SYSTEM == "Windows":
186-
file_name: str = "3DCityDB_Suite_QuickInstall_Windows.pdf"
187-
# elif self.PLATFORM_SYSTEM == "Darwin":
188-
# file_name: str = "3DCityDB_Suite_QuickInstall_macOS.pdf"
189-
# elif self.PLATFORM_SYSTEM == "Linux":
190-
# file_name: str = "3DCityDB_Suite_QuickInstall_Linux.pdf"
191-
# else:
192-
# file_name: str = "3DCityDB_Suite_QuickInstall_Linux.pdf"
193-
194-
# **************************************
195-
# Only for testing purposes
196-
#
197-
# self.PLATFORM_SYSTEM = "Darwin"
198-
#
199-
# **************************************
200-
201-
if self.PLATFORM_SYSTEM == "Windows":
202-
# This will open a PDF viewer instead of the browser
203-
pdf_path = os.path.join(self.PLUGIN_ABS_PATH, "manuals", "3dcitydb_install", file_name)
204-
# print(pdf_path)
205-
sh_f.open_local_PDF(pdf_path)
206-
else:
207-
# url = "/".join([self.URL_GITHUB_PLUGIN, "blob", "v." + self.PLUGIN_VERSION_TXT, "manuals", "3dcitydb_install", file_name])
208-
209-
# For OSes other than Windows, simply point to the GitHub folder because
210-
# we cannot automatically guess which default PDF reader (if any) they have on their system
211-
url = "/".join([self.URL_GITHUB_PLUGIN, "blob", "v." + self.PLUGIN_VERSION_TXT, "manuals", "3dcitydb_install"])
212-
# print(url)
213-
sh_f.open_online_url(url)
214184

215185
# **************************************
216186
# Only for testing purposes
@@ -221,6 +191,12 @@ def evt_btn3DCityDBInstall_clicked(self) -> None:
221191
#
222192
# **************************************
223193

194+
# Simply point to the GitHub folder because
195+
url = "/".join([self.URL_GITHUB_PLUGIN, "blob", "v." + self.PLUGIN_VERSION_TXT, "manuals", "3dcitydb_install"])
196+
# print(url)
197+
sh_f.open_online_url(url)
198+
199+
224200
return None
225201

226202

shared/gui_about/html/changelog.html

+15
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,21 @@ <h4>Main changes</h4>
6565
<div>
6666
-->
6767

68+
<div id="0.8.9">
69+
<h3>Version 0.8.9 (2024-07-23)</h3>
70+
<h4>Main changes</h4>
71+
<p>
72+
<ul class="l1">
73+
<li>Client-side
74+
<ul class="l2">
75+
<li>Removed links to local copies of Manual/Installation Guide. Now point only to GitHub</li>
76+
</ul>
77+
</li>
78+
<li>Minor code edits</li>
79+
</ul>
80+
</p>
81+
<div>
82+
6883
<div id="0.8.8">
6984
<h3>Version 0.8.8 (2024-07-04)</h3>
7085
<h4>Main changes</h4>

0 commit comments

Comments
 (0)