Skip to content

Commit 9b5f5d9

Browse files
author
cfarmer
committedApr 21, 2009
adds ability to copy unique values to clipboard to pasting into other
software (i.e. excel); updates version number as well git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10610 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

6 files changed

+708
-700
lines changed

6 files changed

+708
-700
lines changed
 

‎python/plugins/fTools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def description():
2121
return "Tools for vector data analysis and management"
2222

2323
def version():
24-
return "0.5.9"
24+
return "0.5.10"
2525

2626
def qgisMinimumVersion():
2727
return "1.0"

‎python/plugins/fTools/doAbout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, iface):
3232
QObject.connect(self.btnWeb, SIGNAL("clicked()"), self.openWeb)
3333
QObject.connect(self.btnHelp, SIGNAL("clicked()"), self.openHelp)
3434
self.fToolsLogo.setPixmap(QPixmap(":/icons/default/ftools_logo.png"))
35-
self.label_3.setText("fTools 0.5.8")
35+
self.label_3.setText("fTools 0.5.10")
3636
self.textEdit.setText(self.getText())
3737

3838
def getText(self):

‎python/plugins/fTools/fTools.py

Lines changed: 346 additions & 346 deletions
Large diffs are not rendered by default.

‎python/plugins/fTools/tools/doVisual.py

Lines changed: 338 additions & 323 deletions
Large diffs are not rendered by default.

‎python/plugins/fTools/tools/frmVisual.py

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# Form implementation generated from reading ui file 'frmVisual.ui'
44
#
5-
# Created: Mon Nov 10 00:01:18 2008
6-
# by: PyQt4 UI code generator 4.3.3
5+
# Created: Tue Apr 21 15:10:47 2009
6+
# by: PyQt4 UI code generator 4.4.3
77
#
88
# WARNING! All changes made in this file will be lost!
99

@@ -13,87 +13,74 @@ class Ui_Dialog(object):
1313
def setupUi(self, Dialog):
1414
Dialog.setObjectName("Dialog")
1515
Dialog.setWindowModality(QtCore.Qt.NonModal)
16-
Dialog.resize(QtCore.QSize(QtCore.QRect(0,0,374,485).size()).expandedTo(Dialog.minimumSizeHint()))
16+
Dialog.resize(374, 485)
1717
Dialog.setSizeGripEnabled(True)
18-
19-
self.gridlayout = QtGui.QGridLayout(Dialog)
20-
self.gridlayout.setObjectName("gridlayout")
21-
18+
self.gridLayout = QtGui.QGridLayout(Dialog)
19+
self.gridLayout.setObjectName("gridLayout")
2220
self.vboxlayout = QtGui.QVBoxLayout()
2321
self.vboxlayout.setObjectName("vboxlayout")
24-
2522
self.label_3 = QtGui.QLabel(Dialog)
2623
self.label_3.setObjectName("label_3")
2724
self.vboxlayout.addWidget(self.label_3)
28-
2925
self.inShape = QtGui.QComboBox(Dialog)
3026
self.inShape.setObjectName("inShape")
3127
self.vboxlayout.addWidget(self.inShape)
32-
self.gridlayout.addLayout(self.vboxlayout,0,0,1,2)
33-
28+
self.gridLayout.addLayout(self.vboxlayout, 0, 0, 1, 2)
3429
self.vboxlayout1 = QtGui.QVBoxLayout()
3530
self.vboxlayout1.setObjectName("vboxlayout1")
36-
3731
self.label = QtGui.QLabel(Dialog)
3832
self.label.setObjectName("label")
3933
self.vboxlayout1.addWidget(self.label)
40-
4134
self.cmbField = QtGui.QComboBox(Dialog)
4235
self.cmbField.setObjectName("cmbField")
4336
self.vboxlayout1.addWidget(self.cmbField)
44-
self.gridlayout.addLayout(self.vboxlayout1,1,0,1,2)
45-
37+
self.gridLayout.addLayout(self.vboxlayout1, 1, 0, 1, 2)
4638
self.vboxlayout2 = QtGui.QVBoxLayout()
4739
self.vboxlayout2.setObjectName("vboxlayout2")
48-
4940
self.label_2 = QtGui.QLabel(Dialog)
5041
self.label_2.setObjectName("label_2")
5142
self.vboxlayout2.addWidget(self.label_2)
52-
5343
self.lstUnique = QtGui.QListWidget(Dialog)
5444
self.lstUnique.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
45+
self.lstUnique.setProperty("showDropIndicator", QtCore.QVariant(False))
5546
self.lstUnique.setAlternatingRowColors(True)
5647
self.lstUnique.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
5748
self.lstUnique.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
5849
self.lstUnique.setSelectionRectVisible(True)
5950
self.lstUnique.setObjectName("lstUnique")
6051
self.vboxlayout2.addWidget(self.lstUnique)
61-
self.gridlayout.addLayout(self.vboxlayout2,2,0,1,2)
62-
52+
self.gridLayout.addLayout(self.vboxlayout2, 2, 0, 1, 2)
6353
self.hboxlayout = QtGui.QHBoxLayout()
6454
self.hboxlayout.setObjectName("hboxlayout")
65-
6655
self.label_4 = QtGui.QLabel(Dialog)
6756
self.label_4.setObjectName("label_4")
6857
self.hboxlayout.addWidget(self.label_4)
69-
7058
self.lstCount = QtGui.QLineEdit(Dialog)
7159
self.lstCount.setReadOnly(True)
7260
self.lstCount.setObjectName("lstCount")
7361
self.hboxlayout.addWidget(self.lstCount)
74-
self.gridlayout.addLayout(self.hboxlayout,3,0,1,2)
75-
62+
self.gridLayout.addLayout(self.hboxlayout, 3, 0, 1, 2)
7663
self.progressBar = QtGui.QProgressBar(Dialog)
77-
self.progressBar.setProperty("value",QtCore.QVariant(24))
64+
self.progressBar.setProperty("value", QtCore.QVariant(24))
7865
self.progressBar.setAlignment(QtCore.Qt.AlignCenter)
7966
self.progressBar.setObjectName("progressBar")
80-
self.gridlayout.addWidget(self.progressBar,4,0,1,1)
81-
67+
self.gridLayout.addWidget(self.progressBar, 4, 0, 1, 1)
8268
self.buttonBox_2 = QtGui.QDialogButtonBox(Dialog)
8369
self.buttonBox_2.setOrientation(QtCore.Qt.Horizontal)
8470
self.buttonBox_2.setStandardButtons(QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.Ok)
8571
self.buttonBox_2.setObjectName("buttonBox_2")
86-
self.gridlayout.addWidget(self.buttonBox_2,4,1,1,1)
72+
self.gridLayout.addWidget(self.buttonBox_2, 4, 1, 1, 1)
8773

8874
self.retranslateUi(Dialog)
89-
QtCore.QObject.connect(self.buttonBox_2,QtCore.SIGNAL("accepted()"),Dialog.accept)
90-
QtCore.QObject.connect(self.buttonBox_2,QtCore.SIGNAL("rejected()"),Dialog.close)
75+
QtCore.QObject.connect(self.buttonBox_2, QtCore.SIGNAL("accepted()"), Dialog.accept)
76+
QtCore.QObject.connect(self.buttonBox_2, QtCore.SIGNAL("rejected()"), Dialog.close)
9177
QtCore.QMetaObject.connectSlotsByName(Dialog)
9278

9379
def retranslateUi(self, Dialog):
9480
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "List Unique Values", None, QtGui.QApplication.UnicodeUTF8))
9581
self.label_3.setText(QtGui.QApplication.translate("Dialog", "Input Vector Layer", None, QtGui.QApplication.UnicodeUTF8))
9682
self.label.setText(QtGui.QApplication.translate("Dialog", "Target field", None, QtGui.QApplication.UnicodeUTF8))
9783
self.label_2.setText(QtGui.QApplication.translate("Dialog", "Unique values list", None, QtGui.QApplication.UnicodeUTF8))
84+
self.lstUnique.setSortingEnabled(True)
9885
self.label_4.setText(QtGui.QApplication.translate("Dialog", "Unique value count", None, QtGui.QApplication.UnicodeUTF8))
9986

‎python/plugins/fTools/tools/frmVisual.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
<property name="editTriggers" >
6262
<set>QAbstractItemView::NoEditTriggers</set>
6363
</property>
64+
<property name="showDropIndicator" stdset="0" >
65+
<bool>false</bool>
66+
</property>
6467
<property name="alternatingRowColors" >
6568
<bool>true</bool>
6669
</property>
@@ -73,6 +76,9 @@
7376
<property name="selectionRectVisible" >
7477
<bool>true</bool>
7578
</property>
79+
<property name="sortingEnabled" >
80+
<bool>true</bool>
81+
</property>
7682
</widget>
7783
</item>
7884
</layout>

0 commit comments

Comments
 (0)
Please sign in to comment.