Skip to content

Commit 5e9c2df

Browse files
committed
added help menu
1 parent 544bf5a commit 5e9c2df

File tree

3 files changed

+96
-4
lines changed

3 files changed

+96
-4
lines changed

postgres91plusauditor.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from qgis.core import *
2-
from PyQt4.QtGui import QAction, QIcon
1+
from qgis.core import QgsMapLayerRegistry, QgsAction
2+
from PyQt4.QtCore import QUrl
3+
from PyQt4.QtGui import QAction, QIcon, QDesktopServices
34

45
from gui.auditdialog import AuditDialog
56
from gui.loglayerchooserdialog import LogLayerChooserDialog
@@ -30,6 +31,11 @@ def initGui(self):
3031
self.auditAction.triggered.connect(self.audit)
3132
self.iface.addToolBarIcon(self.auditAction)
3233
self.iface.addPluginToMenu("&Postgres 91 plus Auditor", self.auditAction)
34+
# help action
35+
self.helpAction = QAction(QIcon(":/plugins/postgres91plusauditor/icons/help.png"),
36+
"Help", self.iface.mainWindow())
37+
self.helpAction.triggered.connect(lambda: QDesktopServices.openUrl(QUrl("http://3nids.github.io/postgres91plusauditor/")))
38+
self.iface.addPluginToMenu("&Postgres 91 plus Auditor", self.helpAction)
3339

3440
def unload(self):
3541
self.iface.removePluginMenu("&Postgres 91 plus Auditor", self.connectLayerAction)

resources.py

+85-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Resource object code
44
#
5-
# Created: Mon Apr 15 08:14:44 2013
5+
# Created: Tue May 7 13:57:48 2013
66
# by: The Resource Compiler for PyQt (Qt v4.8.1)
77
#
88
# WARNING! All changes made in this file will be lost!
@@ -830,6 +830,84 @@
830830
\x2f\xd7\xcb\xcc\xcb\x2e\x4e\x4e\x2c\x48\xd5\xcb\x2f\x4a\x07\x00\
831831
\x36\xd8\x06\x58\x10\x53\xca\x5c\x00\x00\x00\x00\x49\x45\x4e\x44\
832832
\xae\x42\x60\x82\
833+
\x00\x00\x04\xb8\
834+
\x89\
835+
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
836+
\x00\x00\x18\x00\x00\x00\x18\x08\x03\x00\x00\x00\xd7\xa9\xcd\xca\
837+
\x00\x00\x02\x43\x50\x4c\x54\x45\xff\xff\xff\xde\xde\xde\xd1\xd2\
838+
\xd4\xb5\xb5\xb5\x3d\x3d\x3d\x12\x12\x12\x00\x00\x00\x5b\x5b\x5b\
839+
\x29\x29\x29\x00\x00\x00\x3d\x3d\x3d\x00\x00\x00\x48\x48\x48\x29\
840+
\x29\x29\x12\x12\x12\xc4\xc4\xc4\x33\x33\x33\x07\x07\x07\x00\x00\
841+
\x00\xd6\xd6\xd6\xbd\xbd\xbd\x93\x92\x8f\x12\x12\x12\x00\x00\x00\
842+
\xd1\xd2\xd4\x8c\x8c\x8c\x00\x00\x00\x85\x85\x85\x00\x00\x00\xbd\
843+
\xbd\xbd\x51\x51\x51\x33\x33\x33\x07\x07\x07\x00\x00\x00\xbd\xbd\
844+
\xbd\xa6\xa6\xa5\x51\x51\x51\x29\x29\x29\x22\x22\x22\x07\x07\x07\
845+
\xcc\xcc\xcc\xa5\xa1\x9e\x8c\x8c\x8c\x51\x51\x51\x3d\x3d\x3d\xc4\
846+
\xc4\xc4\xb5\xb5\xb5\x79\x79\x79\x51\x51\x51\x41\x41\x41\xcc\xcc\
847+
\xcc\xc4\xc4\xc4\xb5\xb5\xb5\x8c\x8c\x8c\x79\x79\x79\x66\x66\x66\
848+
\x5b\x5b\x5b\x48\x48\x48\xd4\xd2\xcf\xc4\xc4\xc4\xbd\xbd\xbd\xae\
849+
\xae\xae\x88\x88\x87\x85\x85\x85\x73\x73\x73\x66\x66\x66\x5b\x5b\
850+
\x5b\x51\x51\x51\xff\xff\xff\xfc\xfa\xf8\xfa\xf7\xff\xf7\xf7\xf7\
851+
\xf6\xf4\xf0\xf2\xf2\xf0\xf1\xed\xea\xe9\xeb\xf7\xe6\xe8\xef\xe2\
852+
\xe9\xf6\xe7\xe6\xe5\xe5\xdf\xdc\xde\xdf\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\xdd\x8c\x8c\x8c\x47\x95\xe4\x5e\x91\xcb\
869+
\x6d\x8f\xb8\x54\x91\xd1\x42\x93\xe1\x48\x92\xd9\x40\x94\xe5\x88\
870+
\x88\x87\x85\x85\x85\x5a\x8c\xc5\x3d\x90\xe0\x41\x8c\xd6\x39\x8c\
871+
\xde\x42\x8a\xd0\x32\x89\xde\x31\x87\xdd\x4e\x81\xb8\x79\x79\x79\
872+
\x29\x84\xdd\x35\x82\xce\x31\x83\xd4\x24\x82\xde\x73\x73\x73\x21\
873+
\x7f\xdb\x2f\x7c\xc6\x2c\x7b\xc6\x66\x66\x66\xd7\x97\x3c\x89\x00\
874+
\x00\x00\x44\x74\x52\x4e\x53\x00\x11\x11\x11\x11\x11\x11\x22\x22\
875+
\x22\x33\x33\x44\x44\x44\x55\x55\x55\x55\x66\x66\x66\x66\x66\x77\
876+
\x77\x77\x88\x88\x99\x99\x99\x99\x99\xaa\xaa\xaa\xaa\xaa\xaa\xbb\
877+
\xbb\xbb\xbb\xbb\xcc\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd\xdd\xdd\xdd\
878+
\xdd\xee\xee\xee\xee\xee\xee\xee\xee\xee\xee\xe5\x70\xee\x8e\x00\
879+
\x00\x01\xe0\x49\x44\x41\x54\x18\x19\x05\xc1\xcf\x4e\x13\x41\x00\
880+
\xc0\xe1\xdf\xfc\xd9\xd9\xdd\x76\x2d\x6c\xa0\x60\xad\x80\x26\x58\
881+
\x84\x80\x06\x62\x38\x78\xf1\xe0\xd9\xb3\x89\x37\x9f\xc0\x07\xf0\
882+
\xc6\x33\x70\xe6\x09\x4c\x4c\x78\x09\x62\x8c\xc1\x90\x10\x89\x12\
883+
\x42\xc4\x84\xa2\x85\x96\xd2\x6d\x3b\x33\xdb\x5d\xbf\x4f\x00\x80\
884+
\x4a\x6a\xd3\x81\xf0\x59\xbf\x9b\x03\x00\x02\x80\x99\xa5\x87\x43\
885+
\x50\xa8\xfa\xd9\x69\xc7\x03\x20\x00\xb1\xb2\x3c\xa6\x9a\x86\xd8\
886+
\xae\xa7\xfe\xf5\x3c\x77\x80\x00\xb1\x59\x9f\xcc\xac\x6a\x11\xaa\
887+
\x58\xf6\xbe\x8d\xe2\xb3\x13\xeb\x40\xc1\xd3\x07\xc5\x7a\x23\x13\
888+
\xda\x18\xa8\xb6\xae\xfb\x0b\xf6\x56\x4c\x50\xdc\x7f\xe6\xd6\xc3\
889+
\x7e\xf1\xf7\xf7\x8f\x9f\x6d\xdf\x2c\x57\x2f\xef\x5e\xfe\x1a\xe5\
890+
\x28\xb9\xc1\xdc\x7c\xb7\x6c\x77\x6c\x59\x8e\xae\x2e\x36\xf3\xd6\
891+
\x69\x27\xb8\x2e\x26\x6a\x66\xa5\x7c\x9e\x79\x32\xf1\x66\xf3\xc9\
892+
\x09\xb6\x59\x89\x82\xce\xf6\xb1\xf5\xb2\xe6\xa7\x44\x9c\xb0\xfd\
893+
\xea\xf2\x5c\x2e\x42\x81\x6b\xd1\x49\x42\x23\x53\x12\x4d\x99\x74\
894+
\xda\x68\x7d\x05\x8b\x98\x28\x22\x09\xd0\x91\xa8\x85\xb9\x28\x11\
895+
\xa9\xdd\xb7\xbc\x96\x30\x99\x15\xb1\x52\x5a\x68\xad\xaa\xae\x20\
896+
\x3a\xe8\xa2\xde\x57\x7b\xa1\x54\x18\x24\x72\x4c\x3f\x54\x51\xa5\
897+
\x12\x29\xf8\x30\xea\x29\x83\x1a\xe8\x31\xe8\x4c\x0d\x0c\x05\xc8\
898+
\xad\x73\xee\xb4\xd2\x52\x59\x39\x35\x00\xdd\xab\x65\xa3\xb8\x28\
899+
\x90\xb3\x0b\x78\xa5\x23\x69\xbe\x2f\x37\x9d\x47\xf9\x4a\xd2\x69\
900+
\x09\x2d\xa6\x3f\x7d\x39\x5c\x9a\x0d\xa4\xce\x0f\x1b\x7b\x37\x43\
901+
\x2b\xed\x59\xea\x8e\xee\xe9\xd0\xa4\x8d\x46\x4d\x4a\x1d\xec\xaf\
902+
\xd5\xff\x78\xeb\x04\xd1\xc6\x1a\x8d\x17\xda\x4d\x05\xc2\x7b\x33\
903+
\xf9\xbc\x95\xec\xb6\x6f\x07\x4e\x91\xf7\xe3\xc7\xc3\xd3\xa0\x5e\
904+
\xe6\x85\xe4\xe8\x78\x2b\xde\xbb\x1a\xde\x59\x04\x98\x4a\xeb\xed\
905+
\x8d\xfa\x97\x46\x8c\xcb\x47\xe1\xfc\xce\x65\xde\xf5\x0e\x01\x98\
906+
\x68\xae\xf9\x6e\x10\x10\x12\xd6\x76\x2f\x72\x7b\xeb\x1d\x08\x00\
907+
\x13\x54\xe3\x34\xfd\xa8\x77\xba\x99\xf7\x43\xeb\x1d\x20\x00\xc0\
908+
\x04\x61\x24\x81\x62\x6c\xbd\x03\x40\x00\x00\x18\x05\xc0\xc4\x01\
909+
\x00\xff\x01\xb0\x05\xc4\xd6\x28\xe6\x27\xdf\x00\x00\x00\x00\x49\
910+
\x45\x4e\x44\xae\x42\x60\x82\
833911
"
834912

835913
qt_resource_name = "\
@@ -854,14 +932,19 @@
854932
\x0f\x80\x36\x67\
855933
\x00\x71\
856934
\x00\x61\x00\x75\x00\x64\x00\x69\x00\x74\x00\x2d\x00\x36\x00\x34\x00\x2e\x00\x70\x00\x6e\x00\x67\
935+
\x00\x08\
936+
\x0c\x33\x5a\x87\
937+
\x00\x68\
938+
\x00\x65\x00\x6c\x00\x70\x00\x2e\x00\x70\x00\x6e\x00\x67\
857939
"
858940

859941
qt_resource_struct = "\
860942
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
861943
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
862944
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
863-
\x00\x00\x00\x44\x00\x02\x00\x00\x00\x02\x00\x00\x00\x04\
945+
\x00\x00\x00\x44\x00\x02\x00\x00\x00\x03\x00\x00\x00\x04\
864946
\x00\x00\x00\x54\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
947+
\x00\x00\x00\x90\x00\x00\x00\x00\x00\x01\x00\x00\x32\xf7\
865948
\x00\x00\x00\x70\x00\x00\x00\x00\x00\x01\x00\x00\x04\x0e\
866949
"
867950

resources.qrc

+3
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
<qresource prefix="/plugins/postgres91plusauditor" >
66
<file>icons/qaudit-64.png</file>
77
</qresource>
8+
<qresource prefix="/plugins/postgres91plusauditor" >
9+
<file>icons/help.png</file>
10+
</qresource>
811
</RCC>

0 commit comments

Comments
 (0)