forked from carsonfarmer/cartogram
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfrmCartogram.py
More file actions
100 lines (94 loc) · 5.32 KB
/
frmCartogram.py
File metadata and controls
100 lines (94 loc) · 5.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'frmCartogram.ui'
#
# Created: Mon Oct 12 22:21:11 2009
# by: PyQt4 UI code generator 4.4.4
#
# 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.NonModal)
Dialog.resize(374, 317)
icon = QtGui.QIcon()
icon.addFile("centroids.png")
Dialog.setWindowIcon(icon)
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_4 = QtGui.QLabel(Dialog)
self.label_4.setObjectName("label_4")
self.gridlayout.addWidget(self.label_4, 2, 0, 1, 2)
self.inFields = QtGui.QComboBox(Dialog)
self.inFields.setObjectName("inFields")
self.gridlayout.addWidget(self.inFields, 3, 0, 1, 2)
self.label_2 = QtGui.QLabel(Dialog)
self.label_2.setObjectName("label_2")
self.gridlayout.addWidget(self.label_2, 4, 0, 1, 2)
self.hboxlayout = QtGui.QHBoxLayout()
self.hboxlayout.setObjectName("hboxlayout")
self.outShape = QtGui.QLineEdit(Dialog)
self.outShape.setReadOnly(True)
self.outShape.setObjectName("outShape")
self.hboxlayout.addWidget(self.outShape)
self.toolOut = QtGui.QToolButton(Dialog)
self.toolOut.setObjectName("toolOut")
self.hboxlayout.addWidget(self.toolOut)
self.gridlayout.addLayout(self.hboxlayout, 5, 0, 1, 2)
self.hboxlayout1 = QtGui.QHBoxLayout()
self.hboxlayout1.setObjectName("hboxlayout1")
self.label = QtGui.QLabel(Dialog)
self.label.setObjectName("label")
self.hboxlayout1.addWidget(self.label)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.hboxlayout1.addItem(spacerItem)
self.spnIterations = QtGui.QSpinBox(Dialog)
self.spnIterations.setProperty("value", QtCore.QVariant(5))
self.spnIterations.setObjectName("spnIterations")
self.hboxlayout1.addWidget(self.spnIterations)
self.gridlayout.addLayout(self.hboxlayout1, 6, 0, 1, 2)
self.chkKeep = QtGui.QCheckBox(Dialog)
self.chkKeep.setChecked(True)
self.chkKeep.setObjectName("chkKeep")
self.gridlayout.addWidget(self.chkKeep, 7, 0, 1, 2)
spacerItem1 = QtGui.QSpacerItem(356, 31, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridlayout.addItem(spacerItem1, 8, 0, 1, 2)
self.txtProgress = QtGui.QLabel(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtProgress.sizePolicy().hasHeightForWidth())
self.txtProgress.setSizePolicy(sizePolicy)
self.txtProgress.setMinimumSize(QtCore.QSize(113, 20))
self.txtProgress.setObjectName("txtProgress")
self.gridlayout.addWidget(self.txtProgress, 9, 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.NoButton|QtGui.QDialogButtonBox.Ok)
self.buttonBox_2.setObjectName("buttonBox_2")
self.gridlayout.addWidget(self.buttonBox_2, 9, 1, 1, 1)
self.progressBar = QtGui.QProgressBar(Dialog)
self.progressBar.setProperty("value", QtCore.QVariant(24))
self.progressBar.setAlignment(QtCore.Qt.AlignHCenter)
self.progressBar.setTextVisible(False)
self.progressBar.setObjectName("progressBar")
self.gridlayout.addWidget(self.progressBar, 10, 0, 1, 2)
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", "Generate Centroids", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("Dialog", "Input Shapefile:", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setText(QtGui.QApplication.translate("Dialog", "Area Field:", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("Dialog", "Output Shapefile:", None, QtGui.QApplication.UnicodeUTF8))
self.toolOut.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("Dialog", "Number of iterations to perform:", None, QtGui.QApplication.UnicodeUTF8))
self.chkKeep.setText(QtGui.QApplication.translate("Dialog", "Keep intermediate shapefiles", None, QtGui.QApplication.UnicodeUTF8))