Esempio n. 1
0
class UrbanRadioCoberDialog(QtGui.QDialog):
    def __init__(self, parent=None):
        """Constructor."""
        QtGui.QDialog.__init__(self)
        # Set up the user interface from Designer.
        # After setupUI you can access any designer object by doing
        # self.<objectname>, and you can use autoconnect slots - see
        # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
        # #widgets-and-dialogs-with-auto-connect
        self.ui = Ui_Dialog()
        self.ui.setupUi(self)
        self.ui.buttonBox.rejected.connect(self.reject)
        self.ui.buttonBox.accepted.connect(self.accept)

    def populatedialogue(self, layername):
        self.ui.buffer_layer_name.clear()
        self.ui.buffer_layer_name.setText(layername)

    def selectedfeats(self, yes):
        if yes == 1:
            self.ui.selectedfeats.setEnabled(1)
            self.ui.selectedfeats.setCheckable(1)
            self.ui.selectedfeats.setChecked(1)
            self.ui.selectedfeats.setToolTip("Use only selected features?")
        else:
            self.ui.selectedfeats.setChecked(0)
            self.ui.selectedfeats.setCheckable(0)
            self.ui.selectedfeats.setToolTip("No features selected")
            self.ui.selectedfeats.setEnabled(0)
class UrbanRadioCoberDialog(QtGui.QDialog):
    def __init__(self, parent=None):
        """Constructor."""
        QtGui.QDialog.__init__(self)
        # Set up the user interface from Designer.
        # After setupUI you can access any designer object by doing
        # self.<objectname>, and you can use autoconnect slots - see
        # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
        # #widgets-and-dialogs-with-auto-connect
        self.ui = Ui_Dialog()
        self.ui.setupUi(self)
        self.ui.buttonBox.rejected.connect(self.reject)
        self.ui.buttonBox.accepted.connect(self.accept)

    def populatedialogue(self, layername):
        self.ui.buffer_layer_name.clear()
        self.ui.buffer_layer_name.setText(layername)

    def selectedfeats(self, yes):
        if yes == 1:
            self.ui.selectedfeats.setEnabled(1)
            self.ui.selectedfeats.setCheckable(1)
            self.ui.selectedfeats.setChecked(1)
            self.ui.selectedfeats.setToolTip("Use only selected features?")
        else:
            self.ui.selectedfeats.setChecked(0)
            self.ui.selectedfeats.setCheckable(0)
            self.ui.selectedfeats.setToolTip("No features selected")
            self.ui.selectedfeats.setEnabled(0)
Esempio n. 3
0
 def __init__(self, parent=None):
     """Constructor."""
     QtGui.QDialog.__init__(self)
     # Set up the user interface from Designer.
     # After setupUI you can access any designer object by doing
     # self.<objectname>, and you can use autoconnect slots - see
     # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
     # #widgets-and-dialogs-with-auto-connect
     self.ui = Ui_Dialog()
     self.ui.setupUi(self)
     self.ui.buttonBox.rejected.connect(self.reject)
     self.ui.buttonBox.accepted.connect(self.accept)
 def __init__(self, parent=None):
     """Constructor."""
     QtGui.QDialog.__init__(self)
     # Set up the user interface from Designer.
     # After setupUI you can access any designer object by doing
     # self.<objectname>, and you can use autoconnect slots - see
     # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
     # #widgets-and-dialogs-with-auto-connect
     self.ui = Ui_Dialog()
     self.ui.setupUi(self)
     self.ui.buttonBox.rejected.connect(self.reject)
     self.ui.buttonBox.accepted.connect(self.accept)