Example #1
0
 def __init__(self, module, controller, parent=None):
     StandardModuleConfigurationWidget.__init__(self, module, controller, parent)
     self.title = module.name
     #self.module = module
     self.setObjectName("DivideWidget")
     self.parent_widget = module
     self.create_config_window()
Example #2
0
 def __init__(self, module, controller, parent=None):
     StandardModuleConfigurationWidget.__init__(self, module, controller, parent)
     self.foi_type = module.name
     #self.module = module
     self.setObjectName("FeatureOfInterestDefinerWidget")
     self.parent_widget = module
     # FIXME these modules don't exist
     self.path_png_icon = vistrails.packages.eo4vistrails.geoinf.visual.__path__[0]
     self.path_bkgimg = vistrails.packages.eo4vistrails.geoinf.visual.__path__[0]
     self.create_config_window()
 def __init__(self, module, controller, parent=None):
     StandardModuleConfigurationWidget.__init__(self, module, controller, parent)
     #FOO = module.getInputFromPort(OGC_URL_PORT)  # TEST REMOVE !!!!!!!!!!!!
     # initialise the setup necessary for all geoinf widgets that follow
     self.setWindowTitle('Geo Configuration Parameters')
     self.setToolTip("Setup service, spatial and temporal parameters for working with a geoinf module")
     self.createTabs()
     self.createButtons()
     self.setLayout(QtGui.QVBoxLayout())
     self.layout().addLayout(self.tabLayout)
     self.layout().addLayout(self.buttonLayout)
    def __init__(self, module, controller, parent=None, 
                 is_input=None, path_type=None):
        StandardModuleConfigurationWidget.__init__(self, module, controller, 
                                                   parent)

        # set title
        if module.has_annotation_with_key('__desc__'):
            label = module.get_annotation_by_key('__desc__').value.strip()
            title = '%s (%s) Module Configuration' % (label, module.name)
        else:
            title = '%s Module Configuration' % module.name
        self.setWindowTitle(title)

        self.build_gui(is_input, path_type)
        self.set_values()
Example #5
0
    def __init__(self, module, controller, title, parent=None):
        """ PVClimateConfigurationWidget(module: Module,
                                       controller: VistrailController,
                                       parent: QWidget)
                                       -> LayerConfigurationWidget
        Setup the dialog ...

        """
        StandardModuleConfigurationWidget.__init__(self, module, controller, parent)
        self.setWindowTitle( title )
        self.moduleId = module.id
        self.getParameters( module )
        # self.createLayout()
        if ( PVClimateConfigurationWidget.newConfigurationWidget == None ): PVClimateConfigurationWidget.setupSaveConfigurations()
        PVClimateConfigurationWidget.newConfigurationWidget = self
Example #6
0
 def __init__(self, module, controller, parent=None):
     """ PortTableConfigurationWidget(module: Module,
                                      controller: VistrailController,
                                      parent: QWidget)
                                      -> PortTableConfigurationWidget                                       
     Let StandardModuleConfigurationWidget constructor store the
     controller/module object from the builder and set up the
     configuration widget.        
     After StandardModuleConfigurationWidget constructor, all of
     these will be available:
     self.module : the Module object int the pipeline        
     self.controller: the current vistrail controller
                                    
     """
     StandardModuleConfigurationWidget.__init__(self, module, controller,
                                                parent)
Example #7
0
 def __init__(self, module, controller, parent=None):
     """ PortTableConfigurationWidget(module: Module,
                                      controller: VistrailController,
                                      parent: QWidget)
                                      -> PortTableConfigurationWidget                                       
     Let StandardModuleConfigurationWidget constructor store the
     controller/module object from the builder and set up the
     configuration widget.        
     After StandardModuleConfigurationWidget constructor, all of
     these will be available:
     self.module : the Module object int the pipeline        
     self.controller: the current vistrail controller
                                    
     """
     StandardModuleConfigurationWidget.__init__(self, module,
                                                controller, parent)
Example #8
0
 def __init__(self, module, controller, parent=None):
     StandardModuleConfigurationWidget.__init__(self, module, controller, parent)
     self.title = module.name
     self.setObjectName("pyDAPWidget")
     self.parent_widget = module
     self.ui = Ui_pyDAPForm()
     self.ui.setupUi(self)
     self.ui.UrlLineEdit.setText(DEFAULT_URL)
     self.connect(self.ui.fetchVarsButton,
                  QtCore.SIGNAL("clicked()"),
                  self.createRequest)
     self.connect(self.ui.okButton,
                  QtCore.SIGNAL("clicked()"),
                  self.readData)
     self.connect(self.ui.cancelButton,
                  QtCore.SIGNAL("clicked()"),
                  QtCore.SLOT("close()"))
Example #9
0
    def __init__(self, module, controller, title, parent=None):
        """ PVClimateConfigurationWidget(module: Module,
                                       controller: VistrailController,
                                       parent: QWidget)
                                       -> LayerConfigurationWidget
        Setup the dialog ...

        """
        StandardModuleConfigurationWidget.__init__(self, module, controller,
                                                   parent)
        self.setWindowTitle(title)
        self.moduleId = module.id
        self.getParameters(module)
        # self.createLayout()
        if (PVClimateConfigurationWidget.newConfigurationWidget == None):
            PVClimateConfigurationWidget.setupSaveConfigurations()
        PVClimateConfigurationWidget.newConfigurationWidget = self
Example #10
0
    def __init__(self,
                 module,
                 controller,
                 parent=None,
                 is_input=None,
                 path_type=None):
        StandardModuleConfigurationWidget.__init__(self, module, controller,
                                                   parent)

        # set title
        if module.has_annotation_with_key('__desc__'):
            label = module.get_annotation_by_key('__desc__').value.strip()
            title = '%s (%s) Module Configuration' % (label, module.name)
        else:
            title = '%s Module Configuration' % module.name
        self.setWindowTitle(title)

        self.build_gui(is_input, path_type)
        self.set_values()
    def __init__(self, module, controller, parent=None):
        """ PortConfigurationWidget(module: Module,
                                         controller: VistrailController,
                                         parent: QWidget)
                                         -> PortConfigurationWidget

        Let StandardModuleConfigurationWidget constructor store the
        controller/module object from the builder and set up the
        configuration widget.

        After StandardModuleConfigurationWidget constructor, all of
        these will be available:
        * self.module : the Module object in the pipeline
        * self.module_descriptor: the descriptor for the type
                                    registered in the registry
        * self.controller: the current vistrail controller

        """
        StandardModuleConfigurationWidget.__init__(self, module,
                                                   controller, parent)
        self.module = module
        self.ports = []
Example #12
0
    def __init__(self, module, controller, parent=None):
        StandardModuleConfigurationWidget.__init__(self, module, controller,
                                                   parent)

        self.title = module.name
        self.setObjectName("netcdf4Widget")
        self.parent_widget = module
        self.ui = Ui_netcdf4Form()
        self.ui.setupUi(self)
        port_widget = {
            init.ncFile: self.ui.UrlLineEdit
        }
        for function in self.module.functions:
            if function.name in port_widget:
                port_widget[function.name].setText(function.params[0].strValue)

        self.connect(self.ui.fetchVarsButton, QtCore.SIGNAL("clicked()"),
                     self.createRequest)
        self.connect(self.ui.okButton, QtCore.SIGNAL("clicked()"),
                     self.readData)
        self.connect(self.ui.cancelButton, QtCore.SIGNAL("clicked()"),
                     QtCore.SLOT("close()"))
Example #13
0
    def __init__(self, module, controller, parent=None):
        # inherit parent module > access Module methods in core/vistrail/module.py
        StandardModuleConfigurationWidget.__init__(self, module,
                                                   controller, parent)
        OgcConfigurationWidget.__init__(self, module, controller, parent)
        # pass in parent widget i.e. OgcCommonWidget & SpatialWidget to read changed coords
        self.config = WFSCommonWidget(self.ogc_common_widget, self.spatial_widget)

        # map widgets to ports to enable storing of their settings
        port_widget = {
            init.OGC_URL_PORT: self.config.parent_widget.line_edit_OGC_url
        }
        # get and set corresponding port value for a configuration widget
        #  "functions" are VisTrails internal representation of ports at design time
        for function in self.module.functions:
            if function.name in port_widget:
                #print "WFS:308", function.name, function.params[0].strValue
                port_widget[function.name].setText(function.params[0].strValue)

        # move parent tab to first place
        self.tabs.insertTab(1, self.config, "")
        # set WFS-specific tabs
        self.tabs.setTabText(
            self.tabs.indexOf(self.config),
            QtGui.QApplication.translate(
                "OgcConfigurationWidget",
                "WFS Specific Metadata",
                None,
                QtGui.QApplication.UnicodeUTF8))
        self.tabs.setTabToolTip(
            self.tabs.indexOf(self.config),
            QtGui.QApplication.translate(
                "OgcConfigurationWidget",
                "Select WFS-specific parameters",
                None,
                QtGui.QApplication.UnicodeUTF8))
        self.tabs.setCurrentIndex(0)
Example #14
0
 def destroy(self, destroyWindow=True, destroySubWindows=True):
     self.saveConfigurations()
     StandardModuleConfigurationWidget.destroy(self, destroyWindow, destroySubWindows)
Example #15
0
 def destroy( self, destroyWindow = True, destroySubWindows = True):
     self.saveConfigurations()
     StandardModuleConfigurationWidget.destroy( self, destroyWindow, destroySubWindows )
 def __init__(self, module, controller, parent=None):
     StandardModuleConfigurationWidget.__init__(self, module,
                                                controller, parent)