Changeset 14

Show
Ignore:
Timestamp:
10/25/08 22:19:07 (2 months ago)
Author:
aaronr
Message:

adding help

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/qgisrest/qgisrest.py

    r11 r14  
    4343 
    4444class QGISRestPlugin: 
    45   def __init__(self, iface): 
    46     # save reference to the QGIS interface 
    47     self.iface = iface 
     45    def __init__(self, iface): 
     46        # save reference to the QGIS interface 
     47        self.iface = iface 
    4848 
    49   def initGui(self): 
    50     # create action that will start plugin configuration 
    51     self.action = QAction(QIcon(":/qgisresticon.png"), "QGISRest", self.iface.mainWindow()) 
    52     self.action.setWhatsThis("QGISRest Plugin") 
    53     QObject.connect(self.action, SIGNAL("activated()"), self.run) 
    54  
    55     # add toolbar button and menu item 
    56     self.iface.addToolBarIcon(self.action) 
    57     self.iface.addPluginToMenu("&QGISRest", self.action) 
    58  
    59   def unload(self): 
    60     # remove the plugin menu item and icon 
    61     self.iface.removePluginMenu("&QGISRest",self.action) 
    62     self.iface.removeToolBarIcon(self.action) 
    63  
    64   def run(self): 
    65     # create and show a configuration dialog  
    66     flags = Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMaximizeButtonHint  
    67     self.gui = QGISRestGui(self.iface.mainWindow(),flags) 
    68     self.gui.show() 
     49    def initGui(self): 
     50        # create action that will start plugin configuration 
     51        self.action = QAction(QIcon(":/qgisresticon.png"), "QGISRest", self.iface.mainWindow()) 
     52        self.action.setWhatsThis("QGISRest Plugin") 
     53        QObject.connect(self.action, SIGNAL("activated()"), self.run) 
     54        self.helpaction = QAction(QIcon(":/qgisresthelp.png"), 
     55                                  "About", self.iface.mainWindow()) 
     56        self.helpaction.setWhatsThis("QGISRest Help") 
     57        QObject.connect(self.helpaction, SIGNAL("activated()"), self.helprun) 
     58         
     59        # add toolbar button and menu item 
     60        self.iface.addToolBarIcon(self.action) 
     61        self.iface.addPluginToMenu("&QGISRest", self.action) 
     62        self.iface.addPluginToMenu("&QGISRest", self.helpaction) 
     63         
     64    def unload(self): 
     65        # remove the plugin menu item and icon 
     66        self.iface.removePluginMenu("&QGISRest",self.action) 
     67        self.iface.removeToolBarIcon(self.action) 
     68         
     69    def helprun(self): 
     70        # print "Help pressed..." 
     71        infoString = QString("Written by Aaron Racicot\naaronr@z-pulley.com\n") 
     72        infoString = infoString.append("Company - http://www.z-pulley.com\n\n") 
     73        infoString = infoString.append("Blog - http://www.reprojected.com\n\n") 
     74        infoString = infoString.append("Source: http://svn.reprojected.com/") 
     75        infoString = infoString.append("qgisplugins/trunk/qgisrest\n") 
     76        infoString = infoString.append("TRAC: http://trac.reprojected.com/") 
     77        infoString = infoString.append("qgisplugins\n") 
     78        QMessageBox.information(self.iface.mainWindow(), 
     79                                "QGISRest Plugin About",infoString) 
     80         
     81    def run(self): 
     82        # create and show a configuration dialog  
     83        flags = Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMaximizeButtonHint  
     84        self.gui = QGISRestGui(self.iface.mainWindow(),flags) 
     85        self.gui.show() 
  • trunk/qgisrest/resources.qrc

    r6 r14  
    22    <qresource prefix="/" > 
    33        <file>qgisresticon.png</file> 
     4        <file>qgisresthelp.png</file> 
    45    </qresource> 
    56</RCC> 
  • trunk/qgisrest/resources_rc.py

    r6 r14  
    33# Resource object code 
    44# 
    5 # Created: Sun Jan 13 23:15:49 2008 
    6 #      by: The Resource Compiler for PyQt (Qt v4.3.1
     5# Created: Sat Oct 25 22:16:33 2008 
     6#      by: The Resource Compiler for PyQt (Qt v4.3.3
    77# 
    88# WARNING! All changes made in this file will be lost! 
     
    1111 
    1212qt_resource_data = "\ 
     13\x00\x00\x06\x16\ 
     14\x89\ 
     15\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ 
     16\x00\x00\x16\x00\x00\x00\x16\x08\x06\x00\x00\x00\xc4\xb4\x6c\x3b\ 
     17\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\ 
     18\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\xa7\x93\x00\ 
     19\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\x01\ 
     20\x00\x9a\x9c\x18\x00\x00\x00\x07\x74\x49\x4d\x45\x07\xd8\x01\x0d\ 
     21\x05\x04\x2d\xda\xcb\x9e\x15\x00\x00\x05\x96\x49\x44\x41\x54\x38\ 
     22\xcb\x9d\x95\x5d\x88\x5d\x77\x15\xc5\x7f\xe7\x7f\x3e\xee\xf7\xc7\ 
     23\xcc\x9d\x99\x64\x26\x49\x33\x4d\x52\x8c\x31\xc4\x50\x34\xd2\xd1\ 
     24\xa6\xc5\xa8\x89\x60\x4b\x05\xc5\x2a\x3e\x58\x8b\x60\xc1\x17\x7d\ 
     25\x10\x84\xa2\x28\x48\xd5\x07\xeb\x93\x2d\x4a\x89\x41\x29\x16\x2a\ 
     26\x8a\x2d\x98\xd8\x18\x93\x29\x4d\x30\x96\x76\x62\x63\x5a\x67\x26\ 
     27\x69\x66\x32\x77\xee\xcc\x9d\xb9\x37\x73\xe7\xdc\x73\xcf\xc7\xff\ 
     28\xcb\x87\x94\xa2\x46\x5f\x5c\x6f\x0b\xf6\x5e\x7b\xb3\x37\xac\x05\ 
     29\xff\x81\x3f\xcd\x25\xfc\x3f\xf8\xed\xab\xab\xff\xc6\x9d\x7f\x25\ 
     30\x67\xde\x1c\xf0\xd1\xf7\x16\x01\x78\x39\xb4\x4e\xb2\x98\x94\xb0\ 
     31\x54\x71\xa8\x80\xf5\xac\xb1\x8e\xb6\xc6\x2a\x63\x95\xd2\x26\xd4\ 
     32\xc6\x6c\x0e\x8d\x86\xd1\x91\xc9\x9d\x16\xe0\xb9\x57\x96\xf9\xdc\ 
     33\x87\x27\x00\xf0\xfe\xdb\xf4\x17\x43\x4b\xb6\x9a\x8d\x05\x2e\xf7\ 
     34\x58\xcb\x51\x03\xf7\x63\x69\x18\x81\x8f\x41\x22\xe8\x08\x9c\xb3\ 
     35\xc6\x71\x4e\xf5\xd6\x83\x0b\xa7\x9b\x37\x56\x3f\xb6\x6d\xc7\xed\ 
     36\x1b\x9f\xbc\x1c\x02\x70\x6c\x7f\x85\xd7\x16\x4d\x7e\x23\x4a\x0e\ 
     37\xa5\xca\x3c\x3a\x56\xf1\x0e\x56\xf2\xce\x84\x35\x76\xd8\x5a\x23\ 
     38\xac\xb5\xef\x74\x39\xc6\x5a\xba\xeb\xa1\x5c\x5e\x5c\x8f\x67\x02\ 
     39\x97\x67\x1a\x65\x71\xf1\xc8\x81\xb1\xe4\x67\x27\xaf\xdf\x2a\x79\ 
     40\xf1\xe2\x06\x9f\x3a\x54\x07\xe0\xdc\xf5\x24\xdf\xdf\x90\x87\x7d\ 
     41\x97\x47\x6a\x45\xf1\x40\xb5\xe0\x94\x84\x35\xf4\x22\x49\x6f\x90\ 
     42\x22\x95\xc1\x15\x0e\xa5\xbc\x47\xad\x18\xa0\x8c\x43\xa7\x2f\xa3\ 
     43\x56\x37\x7e\x21\x4a\xf4\xf1\x40\xb8\xd3\x5f\xfe\xc4\xf6\x04\xc0\ 
     44\x7d\xf6\xe7\x3f\xb8\xf5\xb4\x5f\x46\x0c\x86\xd4\x94\xc0\x7e\x25\ 
     45\xe7\xf2\xf0\x78\xcd\x0d\xa4\x94\x2c\x77\x07\x5c\x5b\x19\xb0\xd8\ 
     46\x89\x59\xbe\x99\xb0\xb6\x99\xd1\x1b\x64\x68\x6d\xa8\x14\x5c\xea\ 
     47\x65\x3f\xe8\x84\x72\x7f\xa6\x8c\x1f\xa7\xb2\x75\xf3\x7d\xdb\x17\ 
     48\x96\xce\xbc\x74\xeb\x14\x33\x17\xac\xd3\xf2\xc2\xd1\xc8\xc8\x1f\ 
     49\x8d\xd5\xfc\xcf\x8c\xd7\xbd\xd2\x20\xc9\x98\x59\xe8\xb1\xd4\x19\ 
     50\xd0\x28\xf9\x7c\x70\x4f\x83\x46\x25\x60\x63\x90\x31\xdb\xec\x33\ 
     51\xbf\x1a\x52\x2f\xfa\x1c\xbc\xa3\x46\xa5\x18\xf0\xe6\x52\x18\xcd\ 
     52\xb7\xfa\xcf\x3b\x6e\xf6\xcd\xd6\xe0\xfa\x9a\x07\xf0\x77\xb5\x56\ 
     53\x2a\x08\x31\x35\x56\xf5\x0f\xd6\x0a\x4e\x29\x4d\x25\x33\xd7\x37\ 
     54\x98\x6d\x86\x0c\x97\x03\xee\xdd\x37\xc2\x8e\x91\x12\x05\xdf\xa5\ 
     55\x51\x09\xa8\xe4\x3d\x9a\xdd\x88\x85\x76\x1f\xcf\x81\xbb\x77\x0f\ 
     56\x33\x5a\x0d\x4a\x4a\x15\x0e\xce\xb5\xd2\x29\x3f\x19\x3f\x2d\x00\ 
     57\x32\xa5\xab\xa9\xd4\xc7\xaa\x05\xb1\xcd\x75\x2c\x4b\xeb\x31\xf3\ 
     58\xad\x3e\x9d\xcd\x84\x6a\xde\x65\xef\x44\x95\x34\xd3\xb4\x6e\xc6\ 
     59\xa4\x52\x33\x39\x5a\xe4\xae\xad\x25\x7c\xd7\x32\xbf\xd2\x63\x61\ 
     60\x2d\xa2\x90\x73\x19\xad\xe5\xb6\xc9\xcc\x1c\xd3\xca\x56\x3d\x00\ 
     61\xa9\x54\xc5\x41\xdc\x67\x8c\x19\x0e\x13\xc5\xd5\x95\x3e\x52\x2a\ 
     62\x1c\xc7\x12\x4b\xc5\xd2\xfa\x80\xb9\x56\x48\x9c\x29\xb6\x0e\xe5\ 
     63\x29\xee\xa8\xb3\x7b\x6b\x89\x66\x27\x64\xe6\xed\x0e\x73\xcb\x1b\ 
     64\x34\x2a\x01\x9e\x60\x38\xcd\xf4\x7d\x4a\x99\x8a\x00\x48\x33\xe5\ 
     65\xa5\x99\x1a\xc3\x1a\x11\xa7\x92\x95\x8d\x08\xa9\x34\x9e\x6b\xb9\ 
     66\xb6\xda\xe3\xc4\x9f\x67\x59\xd9\x88\x98\x18\xce\xb3\x6b\x4b\x05\ 
     67\x63\xa1\x1b\x66\x84\x03\x89\x56\x86\x56\x27\x24\xc9\x14\x16\x44\ 
     68\x9c\xc9\xb1\x41\x2a\x3d\x0f\x20\x49\xa5\xb0\x46\x04\xc6\x58\x94\ 
     69\xb1\x44\x99\x42\x69\x85\x35\x9a\x7e\xa2\x18\xc4\x19\x47\xde\x3f\ 
     70\xc1\x7b\xb6\xd5\x09\xe3\x8c\xb3\x97\x9a\xbc\xdd\x0e\x69\x75\x07\ 
     71\x18\x6d\x18\xc4\x29\x5a\x6b\xac\x10\x24\xa9\x0c\xe2\x4c\x89\x77\ 
     72\x84\x33\x63\x8d\x9b\x29\x6d\x70\x84\x83\xef\x09\x32\xa9\xd1\xc6\ 
     73\xe0\x00\xbe\x2b\x10\x40\xbb\x17\x73\x65\xa1\xcb\xa9\x57\x17\x48\ 
     74\x32\x85\x2b\x1c\x5c\x57\xe0\x7b\x0e\x8e\x63\x51\x46\x13\x67\x32\ 
     75\x8b\x13\x69\x3c\x80\x38\x91\xca\x1a\xd3\x96\x5a\xd7\x73\x9e\x23\ 
     76\x46\xcb\x39\x92\x38\x43\x19\x83\xeb\x80\x52\x8a\x5f\xfc\xf1\x2d\ 
     77\xc0\x62\x0d\x68\xa5\xf1\x1d\x30\x46\xe3\x38\x96\x46\xb5\x82\xe7\ 
     78\x0a\x92\x54\x99\x34\x95\xed\x38\x91\xca\x03\x08\x93\x34\xb4\x78\ 
     79\xe7\xfa\x03\x39\x52\x2f\xe7\x46\xf6\x8c\x97\x59\x5e\xdb\x44\x49\ 
     80\x85\x35\x86\xc0\x77\x79\x70\xea\x4e\x76\x8c\x56\x58\x58\xed\xf1\ 
     81\x9b\xe9\x59\x32\xad\xb1\xc6\xe0\x09\xc1\xde\x1d\x43\x38\xd6\x61\ 
     82\x63\x33\xe9\xa6\x69\x76\x2e\x1a\xa4\xa1\x00\x18\xc4\xe9\x66\x9c\ 
     83\xca\x93\x6f\x2d\xde\x6c\xb6\x37\x06\x6c\x6f\x14\xd9\x33\x5e\xa1\ 
     84\x9c\xf7\x48\xa5\x42\x2b\x45\x31\x70\xa9\x97\x7c\x8a\x39\x17\x63\ 
     85\x0d\x69\x26\x29\x06\x2e\xbb\xc6\x87\xd8\xb9\xa5\xc2\x8d\x76\xc8\ 
     86\xeb\x73\xed\x66\x92\xc9\x93\x51\x92\x6e\x7a\x00\xb9\xae\x1b\x0d\ 
     87\x54\x76\xfe\xaf\xdd\xd5\x99\x4c\xe9\x3d\xc3\x95\xa0\x74\xe0\xce\ 
     88\x61\x94\x56\x24\x59\x86\x56\x9a\xe9\x37\x6e\xf0\xda\xdc\x0a\xfd\ 
     89\x58\x22\x84\xa0\x9c\x13\x4c\x6e\xad\x72\xe0\xae\x71\xa2\x44\x71\ 
     90\x69\xbe\x1d\x4d\xff\xad\x39\xe3\xe7\x73\xe7\x5b\x4e\x39\x7a\xd7\ 
     91\x8f\xbf\xff\xc4\x15\xae\xd8\xe5\xc3\x60\x1e\x1b\xa9\x17\x1e\xfe\ 
     92\xf4\x47\x76\x91\xcf\x79\x5c\x5f\xe9\x71\xf9\xda\x1a\x9d\x5e\x9f\ 
     93\x24\x51\xf8\xae\x60\xa8\x5e\x64\xff\xce\x11\x26\xc7\x6b\x44\x89\ 
     94\xe6\xf8\x1f\x2e\xd3\x5c\xeb\xff\x3a\x95\xe6\xa9\x6b\x85\xfa\x74\ 
     95\xe7\xc9\x4f\xe2\x3c\xf6\xe3\x97\x79\xea\x1b\xf7\x02\xf0\xa5\x1f\ 
     96\x9e\xc9\xb7\x6e\x86\x87\xcb\x05\xff\x91\xdd\xe3\xb5\x07\xf6\xed\ 
     97\x1c\x2a\x6d\x1b\x2d\x63\xb1\x24\x99\x42\x6b\x8d\x70\x04\x81\xef\ 
     98\x62\x0d\x2c\xac\x6e\x32\x33\xdf\x8e\xde\xb8\xba\xfe\x42\x77\x33\ 
     99\x3d\x3e\x5c\x29\x4d\x9f\xff\xe9\x67\x93\x77\xfd\xf8\x8b\x4f\xbc\ 
     100\x04\xc0\xaf\xbe\xf5\x71\x1e\xfa\xce\xf3\xf9\x38\x16\x87\xfa\xb1\ 
     101\x7a\xf4\xd0\xde\x2d\x07\xf7\x4d\x36\x26\x6a\xe5\xdc\xb0\xeb\x3a\ 
     102\x02\xc0\x5a\x8b\x54\xc6\x74\x7b\x71\xf7\xf5\xb9\xd5\xe5\x73\x97\ 
     103\x96\x66\x8a\x81\xff\x4c\x39\xf0\x2f\xbe\xf2\xf4\xe7\x93\xa9\xaf\ 
     104\x3d\x77\x7b\x34\x3d\xf4\xed\xdf\xf3\xbb\xef\x3d\x48\x6d\xf7\xd7\ 
     105\xb9\xfb\xe8\x07\xb6\x48\xd7\xbb\xc7\xc2\x51\xb0\xf7\x1b\x6d\x1b\ 
     106\xc6\x58\xdf\x5a\x2b\xb5\x35\x1d\x6d\xec\x59\x63\xec\x29\xdf\x33\ 
     107\x17\xc2\xb4\xb9\x3a\x7b\xe2\x71\x3e\xf4\xd5\x67\xf9\xcb\xd3\x5f\ 
     108\xf8\xdf\xd1\xd4\xbb\xfa\x24\x2b\xff\xf8\x6e\x5b\x6d\xbd\xe3\xb4\ 
     109\xe7\x89\x8b\x9e\xeb\xfc\xc4\x68\xe3\x19\x63\x1d\x63\xad\xd5\x46\ 
     110\xab\x44\xea\x50\x2a\xb3\x39\x3e\x94\x45\xb3\x27\x1e\xbf\x4d\xe3\ 
     111\x9f\xed\x56\x34\xee\x0e\xa6\xa8\xcb\x00\x00\x00\x00\x49\x45\x4e\ 
     112\x44\xae\x42\x60\x82\ 
    13113\x00\x00\x06\x87\ 
    14114\x89\ 
     
    122222qt_resource_name = "\ 
    123223\x00\x10\ 
     224\x01\x37\xf9\x47\ 
     225\x00\x71\ 
     226\x00\x67\x00\x69\x00\x73\x00\x72\x00\x65\x00\x73\x00\x74\x00\x68\x00\x65\x00\x6c\x00\x70\x00\x2e\x00\x70\x00\x6e\x00\x67\ 
     227\x00\x10\ 
    124228\x0f\x65\xfa\x87\ 
    125229\x00\x71\ 
     
    128232 
    129233qt_resource_struct = "\ 
    130 \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ 
     234\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x01\ 
    131235\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ 
     236\x00\x00\x00\x26\x00\x00\x00\x00\x00\x01\x00\x00\x06\x1a\ 
    132237" 
    133238