2
2
3
3
# Form implementation generated from reading ui file 'frmVectorGrid.ui'
4
4
#
5
- # Created: Mon Nov 10 00:06:05 2008
5
+ # Created: Tue Jan 27 23:10:42 2009
6
6
# by: PyQt4 UI code generator 4.3.3
7
7
#
8
8
# WARNING! All changes made in this file will be lost!
@@ -13,7 +13,7 @@ class Ui_Dialog(object):
13
13
def setupUi (self , Dialog ):
14
14
Dialog .setObjectName ("Dialog" )
15
15
Dialog .setWindowModality (QtCore .Qt .NonModal )
16
- Dialog .resize (QtCore .QSize (QtCore .QRect (0 ,0 ,374 , 483 ).size ()).expandedTo (Dialog .minimumSizeHint ()))
16
+ Dialog .resize (QtCore .QSize (QtCore .QRect (0 ,0 ,369 , 459 ).size ()).expandedTo (Dialog .minimumSizeHint ()))
17
17
Dialog .setSizeGripEnabled (True )
18
18
19
19
self .gridlayout = QtGui .QGridLayout (Dialog )
@@ -25,70 +25,76 @@ def setupUi(self, Dialog):
25
25
self .gridlayout1 = QtGui .QGridLayout (self .groupBox )
26
26
self .gridlayout1 .setObjectName ("gridlayout1" )
27
27
28
- self .rdoBoundary = QtGui .QRadioButton (self .groupBox )
29
- self .rdoBoundary .setChecked (True )
30
- self .rdoBoundary .setObjectName ("rdoBoundary" )
31
- self .gridlayout1 .addWidget (self .rdoBoundary ,0 ,0 ,1 ,2 )
28
+ spacerItem = QtGui .QSpacerItem (80 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
29
+ self .gridlayout1 .addItem (spacerItem ,1 ,0 ,1 ,1 )
32
30
33
- self .inShape = QtGui .QComboBox (self .groupBox )
34
- self .inShape .setObjectName ("inShape" )
35
- self .gridlayout1 .addWidget (self .inShape ,1 ,0 ,1 ,2 )
31
+ self .btnUpdate = QtGui .QToolButton (self .groupBox )
32
+ self .btnUpdate .setMinimumSize (QtCore .QSize (0 ,30 ))
33
+ self .btnUpdate .setObjectName ("btnUpdate" )
34
+ self .gridlayout1 .addWidget (self .btnUpdate ,1 ,1 ,1 ,2 )
36
35
37
- self .rdoCoordinates = QtGui .QRadioButton (self .groupBox )
38
- self .rdoCoordinates .setObjectName ("rdoCoordinates" )
39
- self .gridlayout1 .addWidget (self .rdoCoordinates ,2 ,0 ,1 ,2 )
36
+ spacerItem1 = QtGui .QSpacerItem (79 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
37
+ self .gridlayout1 .addItem (spacerItem1 ,1 ,3 ,1 ,1 )
40
38
41
39
self .hboxlayout = QtGui .QHBoxLayout ()
42
40
self .hboxlayout .setObjectName ("hboxlayout" )
43
41
44
42
self .label = QtGui .QLabel (self .groupBox )
45
- self .label .setEnabled (False )
43
+ self .label .setEnabled (True )
46
44
self .label .setObjectName ("label" )
47
45
self .hboxlayout .addWidget (self .label )
48
46
49
47
self .xMin = QtGui .QLineEdit (self .groupBox )
48
+ self .xMin .setEnabled (True )
50
49
self .xMin .setObjectName ("xMin" )
51
50
self .hboxlayout .addWidget (self .xMin )
52
- self .gridlayout1 .addLayout (self .hboxlayout ,3 ,0 ,1 ,1 )
51
+ self .gridlayout1 .addLayout (self .hboxlayout ,2 ,0 ,1 ,2 )
53
52
54
53
self .hboxlayout1 = QtGui .QHBoxLayout ()
55
54
self .hboxlayout1 .setObjectName ("hboxlayout1" )
56
55
57
56
self .label_4 = QtGui .QLabel (self .groupBox )
58
- self .label_4 .setEnabled (False )
57
+ self .label_4 .setEnabled (True )
59
58
self .label_4 .setObjectName ("label_4" )
60
59
self .hboxlayout1 .addWidget (self .label_4 )
61
60
62
61
self .yMin = QtGui .QLineEdit (self .groupBox )
62
+ self .yMin .setEnabled (True )
63
63
self .yMin .setObjectName ("yMin" )
64
64
self .hboxlayout1 .addWidget (self .yMin )
65
- self .gridlayout1 .addLayout (self .hboxlayout1 ,3 , 1 ,1 ,1 )
65
+ self .gridlayout1 .addLayout (self .hboxlayout1 ,2 , 2 ,1 ,2 )
66
66
67
67
self .hboxlayout2 = QtGui .QHBoxLayout ()
68
68
self .hboxlayout2 .setObjectName ("hboxlayout2" )
69
69
70
70
self .label_3 = QtGui .QLabel (self .groupBox )
71
- self .label_3 .setEnabled (False )
71
+ self .label_3 .setEnabled (True )
72
72
self .label_3 .setObjectName ("label_3" )
73
73
self .hboxlayout2 .addWidget (self .label_3 )
74
74
75
75
self .xMax = QtGui .QLineEdit (self .groupBox )
76
+ self .xMax .setEnabled (True )
76
77
self .xMax .setObjectName ("xMax" )
77
78
self .hboxlayout2 .addWidget (self .xMax )
78
- self .gridlayout1 .addLayout (self .hboxlayout2 ,4 ,0 ,1 ,1 )
79
+ self .gridlayout1 .addLayout (self .hboxlayout2 ,3 ,0 ,1 ,2 )
79
80
80
81
self .hboxlayout3 = QtGui .QHBoxLayout ()
81
82
self .hboxlayout3 .setObjectName ("hboxlayout3" )
82
83
83
84
self .label_5 = QtGui .QLabel (self .groupBox )
84
- self .label_5 .setEnabled (False )
85
+ self .label_5 .setEnabled (True )
85
86
self .label_5 .setObjectName ("label_5" )
86
87
self .hboxlayout3 .addWidget (self .label_5 )
87
88
88
89
self .yMax = QtGui .QLineEdit (self .groupBox )
90
+ self .yMax .setEnabled (True )
89
91
self .yMax .setObjectName ("yMax" )
90
92
self .hboxlayout3 .addWidget (self .yMax )
91
- self .gridlayout1 .addLayout (self .hboxlayout3 ,4 ,1 ,1 ,1 )
93
+ self .gridlayout1 .addLayout (self .hboxlayout3 ,3 ,2 ,1 ,2 )
94
+
95
+ self .inShape = QtGui .QComboBox (self .groupBox )
96
+ self .inShape .setObjectName ("inShape" )
97
+ self .gridlayout1 .addWidget (self .inShape ,0 ,0 ,1 ,4 )
92
98
self .gridlayout .addWidget (self .groupBox ,0 ,0 ,1 ,2 )
93
99
94
100
self .gridBox = QtGui .QGroupBox (Dialog )
@@ -97,8 +103,8 @@ def setupUi(self, Dialog):
97
103
self .gridlayout2 = QtGui .QGridLayout (self .gridBox )
98
104
self .gridlayout2 .setObjectName ("gridlayout2" )
99
105
100
- spacerItem = QtGui .QSpacerItem (40 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
101
- self .gridlayout2 .addItem (spacerItem ,0 ,0 ,1 ,1 )
106
+ spacerItem2 = QtGui .QSpacerItem (40 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
107
+ self .gridlayout2 .addItem (spacerItem2 ,0 ,0 ,1 ,1 )
102
108
103
109
self .label_7 = QtGui .QLabel (self .gridBox )
104
110
self .label_7 .setObjectName ("label_7" )
@@ -107,7 +113,7 @@ def setupUi(self, Dialog):
107
113
self .spnX = QtGui .QDoubleSpinBox (self .gridBox )
108
114
self .spnX .setDecimals (4 )
109
115
self .spnX .setMinimum (0.0001 )
110
- self .spnX .setMaximum (9999 .0 )
116
+ self .spnX .setMaximum (999999999 .0 )
111
117
self .spnX .setSingleStep (0.0001 )
112
118
self .spnX .setObjectName ("spnX" )
113
119
self .gridlayout2 .addWidget (self .spnX ,0 ,2 ,1 ,1 )
@@ -117,11 +123,11 @@ def setupUi(self, Dialog):
117
123
self .chkLock .setObjectName ("chkLock" )
118
124
self .gridlayout2 .addWidget (self .chkLock ,0 ,3 ,2 ,1 )
119
125
120
- spacerItem1 = QtGui .QSpacerItem (40 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
121
- self .gridlayout2 .addItem (spacerItem1 ,0 ,4 ,1 ,1 )
126
+ spacerItem3 = QtGui .QSpacerItem (40 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
127
+ self .gridlayout2 .addItem (spacerItem3 ,0 ,4 ,1 ,1 )
122
128
123
- spacerItem2 = QtGui .QSpacerItem (40 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
124
- self .gridlayout2 .addItem (spacerItem2 ,1 ,0 ,1 ,1 )
129
+ spacerItem4 = QtGui .QSpacerItem (40 ,20 ,QtGui .QSizePolicy .Expanding ,QtGui .QSizePolicy .Minimum )
130
+ self .gridlayout2 .addItem (spacerItem4 ,1 ,0 ,1 ,1 )
125
131
126
132
self .label_8 = QtGui .QLabel (self .gridBox )
127
133
self .label_8 .setEnabled (False )
@@ -132,7 +138,7 @@ def setupUi(self, Dialog):
132
138
self .spnY .setEnabled (False )
133
139
self .spnY .setDecimals (4 )
134
140
self .spnY .setMinimum (0.0001 )
135
- self .spnY .setMaximum (9999 .0 )
141
+ self .spnY .setMaximum (999999999 .0 )
136
142
self .spnY .setSingleStep (0.0001 )
137
143
self .spnY .setObjectName ("spnY" )
138
144
self .gridlayout2 .addWidget (self .spnY ,1 ,2 ,1 ,1 )
@@ -186,24 +192,14 @@ def setupUi(self, Dialog):
186
192
self .retranslateUi (Dialog )
187
193
QtCore .QObject .connect (self .buttonBox_2 ,QtCore .SIGNAL ("accepted()" ),Dialog .accept )
188
194
QtCore .QObject .connect (self .buttonBox_2 ,QtCore .SIGNAL ("rejected()" ),Dialog .close )
189
- QtCore .QObject .connect (self .rdoBoundary ,QtCore .SIGNAL ("toggled(bool)" ),self .inShape .setEnabled )
190
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .xMin .setEnabled )
191
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .xMax .setEnabled )
192
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .yMin .setEnabled )
193
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .yMax .setEnabled )
194
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .label .setEnabled )
195
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .label_3 .setEnabled )
196
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .label_4 .setEnabled )
197
- QtCore .QObject .connect (self .rdoCoordinates ,QtCore .SIGNAL ("toggled(bool)" ),self .label_5 .setEnabled )
198
195
QtCore .QObject .connect (self .chkLock ,QtCore .SIGNAL ("clicked(bool)" ),self .spnY .setDisabled )
199
196
QtCore .QObject .connect (self .chkLock ,QtCore .SIGNAL ("toggled(bool)" ),self .label_8 .setDisabled )
200
197
QtCore .QMetaObject .connectSlotsByName (Dialog )
201
198
202
199
def retranslateUi (self , Dialog ):
203
200
Dialog .setWindowTitle (QtGui .QApplication .translate ("Dialog" , "Generate Regular Points" , None , QtGui .QApplication .UnicodeUTF8 ))
204
- self .groupBox .setTitle (QtGui .QApplication .translate ("Dialog" , "Grid Extent" , None , QtGui .QApplication .UnicodeUTF8 ))
205
- self .rdoBoundary .setText (QtGui .QApplication .translate ("Dialog" , "Input Boundary Layer" , None , QtGui .QApplication .UnicodeUTF8 ))
206
- self .rdoCoordinates .setText (QtGui .QApplication .translate ("Dialog" , "Input Coordinates" , None , QtGui .QApplication .UnicodeUTF8 ))
201
+ self .groupBox .setTitle (QtGui .QApplication .translate ("Dialog" , "Grid extent" , None , QtGui .QApplication .UnicodeUTF8 ))
202
+ self .btnUpdate .setText (QtGui .QApplication .translate ("Dialog" , "Update extents from layer" , None , QtGui .QApplication .UnicodeUTF8 ))
207
203
self .label .setText (QtGui .QApplication .translate ("Dialog" , "X Min" , None , QtGui .QApplication .UnicodeUTF8 ))
208
204
self .label_4 .setText (QtGui .QApplication .translate ("Dialog" , "Y Min" , None , QtGui .QApplication .UnicodeUTF8 ))
209
205
self .label_3 .setText (QtGui .QApplication .translate ("Dialog" , "X Max" , None , QtGui .QApplication .UnicodeUTF8 ))
@@ -212,8 +208,8 @@ def retranslateUi(self, Dialog):
212
208
self .label_7 .setText (QtGui .QApplication .translate ("Dialog" , "X" , None , QtGui .QApplication .UnicodeUTF8 ))
213
209
self .chkLock .setText (QtGui .QApplication .translate ("Dialog" , "Lock 1:1 ratio" , None , QtGui .QApplication .UnicodeUTF8 ))
214
210
self .label_8 .setText (QtGui .QApplication .translate ("Dialog" , "Y" , None , QtGui .QApplication .UnicodeUTF8 ))
215
- self .rdoPolygons .setText (QtGui .QApplication .translate ("Dialog" , "Output as polygons" , None , QtGui .QApplication .UnicodeUTF8 ))
216
- self .rdoLines .setText (QtGui .QApplication .translate ("Dialog" , "Output as lines" , None , QtGui .QApplication .UnicodeUTF8 ))
217
- self .label_2 .setText (QtGui .QApplication .translate ("Dialog" , "Output Shapefile " , None , QtGui .QApplication .UnicodeUTF8 ))
211
+ self .rdoPolygons .setText (QtGui .QApplication .translate ("Dialog" , "Output grid as polygons" , None , QtGui .QApplication .UnicodeUTF8 ))
212
+ self .rdoLines .setText (QtGui .QApplication .translate ("Dialog" , "Output grid as lines" , None , QtGui .QApplication .UnicodeUTF8 ))
213
+ self .label_2 .setText (QtGui .QApplication .translate ("Dialog" , "Output shapefile " , None , QtGui .QApplication .UnicodeUTF8 ))
218
214
self .toolOut .setText (QtGui .QApplication .translate ("Dialog" , "Browse" , None , QtGui .QApplication .UnicodeUTF8 ))
219
215
0 commit comments