Skip to content

Commit 0062180

Browse files
committed
added settings menu to toolbar
1 parent 8562f3e commit 0062180

File tree

7 files changed

+7
-4
lines changed

7 files changed

+7
-4
lines changed

doc/menu.jpg

5.28 KB
Loading

doc/toolbar.jpg

62 Bytes
Loading

images/settings.png

-611 Bytes
Binary file not shown.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h1>Lat Lon Tools Plugin</h1>
158158
<p><img src="images/copycanvas.png" alt="Copy canvas bounding box"> <strong><em>Copy Canvas Bounding Box</em></strong> - Copy the canvas bounding box to the clipboard using one of the formats in settings.</p>
159159
</li>
160160
<li>
161-
<p><img src="images/settings.png" alt="Settings"> <strong><em>Settings</em></strong> - Displays the settings dialog box (see below).</p>
161+
<p><img src="doc/settings.png" alt="Settings"> <strong><em>Settings</em></strong> - Displays the settings dialog box (see below).</p>
162162
</li>
163163
<li><img src="images/help.png" alt="Help"> <strong><em>Help</em></strong> - Displays this help page.</li>
164164
</ul>

latLonTools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ def initGui(self):
125125
self.iface.addPluginToMenu("Lat Lon Tools", self.copyCanvasAction)
126126

127127
# Initialize the Settings Dialog Box
128-
settingsicon = QIcon(os.path.dirname(__file__) + '/images/settings.png')
128+
settingsicon = QIcon(':/images/themes/default/mActionOptions.svg')
129129
self.settingsAction = QAction(settingsicon, "Settings", self.iface.mainWindow())
130130
self.settingsAction.setObjectName('latLonToolsSettings')
131+
self.settingsAction.setToolTip('Lat Lon Tools Settings')
131132
self.settingsAction.triggered.connect(self.settings)
133+
self.toolbar.addAction(self.settingsAction)
132134
self.iface.addPluginToMenu('Lat Lon Tools', self.settingsAction)
133135

134136
# Help

metadata.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Lat Lon Tools
33
qgisMinimumVersion=3.4
44
description=Tools to capture and zoom to coordinates using decimal, DMS, WKT, GeoJSON, MGRS, UTM, Geohash, Maidenhead grid, and Plus Codes formats. Provides external map support, point digitizing tools, coordinate conversion tools, and conversion functions.
5-
version=3.4.4
5+
version=3.4.5
66
author=C Hamilton
77
88
about=
@@ -29,6 +29,7 @@ hasProcessingProvider=yes
2929
experimental=False
3030
deprecated=False
3131
changelog=
32+
3.4.5 - Added settings icon to toolbar
3233
3.4.4 - Enhanced UTM parsing
3334
3.4.3 - Updatd open location code (Plus Code) library
3435
3.4.2 - Added UTM and additional DMS field calculator functions

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Some of the functions can be accessed from the ***Lat Lon Tools*** toolbar. If f
117117

118118
* <img src="images/copycanvas.png" alt="Copy canvas bounding box"> ***Copy Canvas Bounding Box*** - Copy the canvas bounding box to the clipboard using one of the formats in settings.
119119

120-
* <img src="images/settings.png" alt="Settings"> ***Settings*** - Displays the settings dialog box (see below).
120+
* <img src="doc/settings.png" alt="Settings"> ***Settings*** - Displays the settings dialog box (see below).
121121
* <img src="images/help.png" alt="Help"> ***Help*** - Displays this help page.
122122

123123
## Settings

0 commit comments

Comments
 (0)