Example #1
0
    def __init__(self, parent, rendererSlot, propertyInspectorSlot):
        AppResourceMPL.__init__(self, parent,
                                rendererSlot,
                                propertyInspectorSlot)

        # set the name of this application that appears to the resource tree
        self.setName("GPS Viewer")

        # optionaly load content informations for this application,
        # generated by an gui-builder that wrote xrc-files
        # eg. wxFormBuilder, __file__ is needed to find the xrc-file
        self.loadXRC('gpsview.xrc', __file__)

        # register a menu to the main-MenuBar,
        # using this function ensures that this menu will be shown/hiden
        # respective to the activate status of the application
        self.mbCoordinatesMenu = self.createMainMenu('&Coordinates')

        # create an item to the Coordinates menu
        self.createMenuItem(self.mbCoordinatesMenu,
                            name="Import File",
                            help='auto',
                            function=self.onImportFile)

        self.createMenuItem(self.mbCoordinatesMenu,
                            name="Export ASCII",
                            help='auto',
                            function=self.onExportAscii)

        # create another item to the Coordinates menu
        self.createMenuItem(self.mbCoordinatesMenu,
                            name="Export UTM",
                            help='auto',
                            function=self.onExportUTM)

        # the application has some properties that can be altered by the
        # property inspector (PI), loaded and saved
        # self.titleTextProp = self.appendProperty(
        #     "Title", default='unknown', valType=str)

        self.vendorProp = self.appendProperty("MapVendor",
                                              valType=str,
                                              default='Google Maps')

        # self.vendorProp = self.appendProperty("MapVendor",
        # valType = unicode, default = 'Open Street Map')
        self.utmZone = self.appendProperty("UTMZone",
                                           valType=str,
                                           default='')

        self.ellipsoid = self.appendProperty("Ellipsoid",
                                             valType=str,
                                             default='WGS84')

        # define local data after your needs
        self.gpsWPTs = None
        self.newXLimits = None
        self.newYLimits = None
Example #2
0
    def __init__(self, parent, rendererSlot, propertyInspectorSlot):
        AppResourceMPL.__init__(self, parent, rendererSlot,
                                propertyInspectorSlot)

        # set the name of this application that appears to the resource tree
        self.setName("GPS Viewer")

        # optionaly load content informations for this application,
        # generated by an gui-builder that wrote xrc-files
        # eg. wxFormBuilder, __file__ is needed to find the xrc-file
        self.loadXRC('gpsview.xrc', __file__)

        # register a menu to the main-MenuBar,
        # using this function ensures that this menu will be shown/hiden
        # respective to the activate status of the application
        self.mbCoordinatesMenu = self.createMainMenu('&Coordinates')

        # create an item to the Coordinates menu
        self.createMenuItem(self.mbCoordinatesMenu,
                            name="Import File",
                            help='auto',
                            function=self.onImportFile)

        self.createMenuItem(self.mbCoordinatesMenu,
                            name="Export ASCII",
                            help='auto',
                            function=self.onExportAscii)

        # create another item to the Coordinates menu
        self.createMenuItem(self.mbCoordinatesMenu,
                            name="Export UTM",
                            help='auto',
                            function=self.onExportUTM)

        # the application has some properties that can be altered by the
        # property inspector (PI), loaded and saved
        # self.titleTextProp = self.appendProperty(
        #     "Title", default='unknown', valType=str)

        self.vendorProp = self.appendProperty("MapVendor",
                                              valType=str,
                                              default='Google Maps')

        # self.vendorProp = self.appendProperty("MapVendor",
        # valType = unicode, default = 'Open Street Map')
        self.utmZone = self.appendProperty("UTMZone", valType=str, default='')

        self.ellipsoid = self.appendProperty("Ellipsoid",
                                             valType=str,
                                             default='WGS84')

        # define local data after your needs
        self.gpsWPTs = None
        self.newXLimits = None
        self.newYLimits = None
Example #3
0
 def __init__(self, parent, rendererSlot, propertyInspectorSlot):
     AppResourceMPL.__init__(self, parent, rendererSlot,
                             propertyInspectorSlot)
Example #4
0
 def __init__(self, parent, rendererSlot, propertyInspectorSlot):
     AppResourceMPL.__init__(
         self,
         parent,
         rendererSlot,
         propertyInspectorSlot)