mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-30 00:07:09 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			98 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			98 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
| # -*- coding: utf-8 -*-
 | |
| 
 | |
| # Form implementation generated from reading ui file 'frmRandom.ui'
 | |
| #
 | |
| # Created: Mon Nov 10 00:01:16 2008
 | |
| #      by: PyQt4 UI code generator 4.3.3
 | |
| #
 | |
| # WARNING! All changes made in this file will be lost!
 | |
| 
 | |
| from PyQt4 import QtCore, QtGui
 | |
| 
 | |
| class Ui_Dialog(object):
 | |
|     def setupUi(self, Dialog):
 | |
|         Dialog.setObjectName("Dialog")
 | |
|         Dialog.setWindowModality(QtCore.Qt.WindowModal)
 | |
|         Dialog.resize(QtCore.QSize(QtCore.QRect(0,0,374,287).size()).expandedTo(Dialog.minimumSizeHint()))
 | |
|         Dialog.setSizeGripEnabled(True)
 | |
| 
 | |
|         self.gridlayout = QtGui.QGridLayout(Dialog)
 | |
|         self.gridlayout.setObjectName("gridlayout")
 | |
| 
 | |
|         self.label_3 = QtGui.QLabel(Dialog)
 | |
|         self.label_3.setObjectName("label_3")
 | |
|         self.gridlayout.addWidget(self.label_3,0,0,1,2)
 | |
| 
 | |
|         self.inShape = QtGui.QComboBox(Dialog)
 | |
|         self.inShape.setObjectName("inShape")
 | |
|         self.gridlayout.addWidget(self.inShape,1,0,1,2)
 | |
| 
 | |
|         self.label_2 = QtGui.QLabel(Dialog)
 | |
|         self.label_2.setObjectName("label_2")
 | |
|         self.gridlayout.addWidget(self.label_2,2,0,1,2)
 | |
| 
 | |
|         self.hboxlayout = QtGui.QHBoxLayout()
 | |
|         self.hboxlayout.setObjectName("hboxlayout")
 | |
| 
 | |
|         self.rdoNumber = QtGui.QRadioButton(Dialog)
 | |
|         self.rdoNumber.setChecked(True)
 | |
|         self.rdoNumber.setObjectName("rdoNumber")
 | |
|         self.hboxlayout.addWidget(self.rdoNumber)
 | |
| 
 | |
|         spacerItem = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
 | |
|         self.hboxlayout.addItem(spacerItem)
 | |
| 
 | |
|         self.spnNumber = QtGui.QSpinBox(Dialog)
 | |
|         self.spnNumber.setMinimum(1)
 | |
|         self.spnNumber.setObjectName("spnNumber")
 | |
|         self.hboxlayout.addWidget(self.spnNumber)
 | |
|         self.gridlayout.addLayout(self.hboxlayout,3,0,1,2)
 | |
| 
 | |
|         self.hboxlayout1 = QtGui.QHBoxLayout()
 | |
|         self.hboxlayout1.setObjectName("hboxlayout1")
 | |
| 
 | |
|         self.rdoPercent = QtGui.QRadioButton(Dialog)
 | |
|         self.rdoPercent.setObjectName("rdoPercent")
 | |
|         self.hboxlayout1.addWidget(self.rdoPercent)
 | |
| 
 | |
|         spacerItem1 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
 | |
|         self.hboxlayout1.addItem(spacerItem1)
 | |
| 
 | |
|         self.spnPercent = QtGui.QSpinBox(Dialog)
 | |
|         self.spnPercent.setMinimum(1)
 | |
|         self.spnPercent.setMaximum(100)
 | |
|         self.spnPercent.setProperty("value",QtCore.QVariant(50))
 | |
|         self.spnPercent.setObjectName("spnPercent")
 | |
|         self.hboxlayout1.addWidget(self.spnPercent)
 | |
|         self.gridlayout.addLayout(self.hboxlayout1,4,0,1,2)
 | |
| 
 | |
|         spacerItem2 = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
 | |
|         self.gridlayout.addItem(spacerItem2,5,0,1,2)
 | |
| 
 | |
|         self.progressBar = QtGui.QProgressBar(Dialog)
 | |
|         self.progressBar.setProperty("value",QtCore.QVariant(0))
 | |
|         self.progressBar.setAlignment(QtCore.Qt.AlignCenter)
 | |
|         self.progressBar.setTextVisible(True)
 | |
|         self.progressBar.setObjectName("progressBar")
 | |
|         self.gridlayout.addWidget(self.progressBar,6,0,1,1)
 | |
| 
 | |
|         self.buttonBox_2 = QtGui.QDialogButtonBox(Dialog)
 | |
|         self.buttonBox_2.setOrientation(QtCore.Qt.Horizontal)
 | |
|         self.buttonBox_2.setStandardButtons(QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.Ok)
 | |
|         self.buttonBox_2.setObjectName("buttonBox_2")
 | |
|         self.gridlayout.addWidget(self.buttonBox_2,6,1,1,1)
 | |
| 
 | |
|         self.retranslateUi(Dialog)
 | |
|         QtCore.QObject.connect(self.buttonBox_2,QtCore.SIGNAL("accepted()"),Dialog.accept)
 | |
|         QtCore.QObject.connect(self.buttonBox_2,QtCore.SIGNAL("rejected()"),Dialog.close)
 | |
|         QtCore.QMetaObject.connectSlotsByName(Dialog)
 | |
| 
 | |
|     def retranslateUi(self, Dialog):
 | |
|         Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Random Selection Tool", None, QtGui.QApplication.UnicodeUTF8))
 | |
|         self.label_3.setText(QtGui.QApplication.translate("Dialog", "Input Vector Layer", None, QtGui.QApplication.UnicodeUTF8))
 | |
|         self.label_2.setText(QtGui.QApplication.translate("Dialog", "Randomly Select", None, QtGui.QApplication.UnicodeUTF8))
 | |
|         self.rdoNumber.setText(QtGui.QApplication.translate("Dialog", "Number of Features", None, QtGui.QApplication.UnicodeUTF8))
 | |
|         self.rdoPercent.setText(QtGui.QApplication.translate("Dialog", "Percentage of Features", None, QtGui.QApplication.UnicodeUTF8))
 | |
|         self.spnPercent.setSuffix(QtGui.QApplication.translate("Dialog", "%", None, QtGui.QApplication.UnicodeUTF8))
 | |
| 
 |