Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[processing] use QtDesigner .ui for Multiple selection dialog
- Loading branch information
Showing
4 changed files
with
160 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>DlgMultipleSelection</class> | ||
<widget class="QDialog" name="DlgMultipleSelection"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>380</width> | ||
<height>320</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Multiple selection</string> | ||
</property> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<property name="spacing"> | ||
<number>2</number> | ||
</property> | ||
<property name="margin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="QTableWidget" name="tblLayers"> | ||
<property name="columnCount"> | ||
<number>1</number> | ||
</property> | ||
<attribute name="horizontalHeaderVisible"> | ||
<bool>false</bool> | ||
</attribute> | ||
<attribute name="horizontalHeaderStretchLastSection"> | ||
<bool>true</bool> | ||
</attribute> | ||
<attribute name="verticalHeaderVisible"> | ||
<bool>false</bool> | ||
</attribute> | ||
<column/> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>DlgMultipleSelection</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>248</x> | ||
<y>254</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>157</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>rejected()</signal> | ||
<receiver>DlgMultipleSelection</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>316</x> | ||
<y>260</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>286</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'python/plugins/processing/ui/DlgMultipleSelection.ui' | ||
# | ||
# Created: Wed Oct 2 20:04:27 2013 | ||
# by: PyQt4 UI code generator 4.9.1 | ||
# | ||
# WARNING! All changes made in this file will be lost! | ||
|
||
from PyQt4 import QtCore, QtGui | ||
|
||
try: | ||
_fromUtf8 = QtCore.QString.fromUtf8 | ||
except AttributeError: | ||
_fromUtf8 = lambda s: s | ||
|
||
class Ui_DlgMultipleSelection(object): | ||
def setupUi(self, DlgMultipleSelection): | ||
DlgMultipleSelection.setObjectName(_fromUtf8("DlgMultipleSelection")) | ||
DlgMultipleSelection.resize(380, 320) | ||
self.horizontalLayout = QtGui.QHBoxLayout(DlgMultipleSelection) | ||
self.horizontalLayout.setSpacing(2) | ||
self.horizontalLayout.setMargin(0) | ||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) | ||
self.tblLayers = QtGui.QTableWidget(DlgMultipleSelection) | ||
self.tblLayers.setColumnCount(1) | ||
self.tblLayers.setObjectName(_fromUtf8("tblLayers")) | ||
self.tblLayers.setRowCount(0) | ||
self.tblLayers.horizontalHeader().setVisible(False) | ||
self.tblLayers.horizontalHeader().setStretchLastSection(True) | ||
self.tblLayers.verticalHeader().setVisible(False) | ||
self.horizontalLayout.addWidget(self.tblLayers) | ||
self.buttonBox = QtGui.QDialogButtonBox(DlgMultipleSelection) | ||
self.buttonBox.setOrientation(QtCore.Qt.Vertical) | ||
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) | ||
self.buttonBox.setObjectName(_fromUtf8("buttonBox")) | ||
self.horizontalLayout.addWidget(self.buttonBox) | ||
|
||
self.retranslateUi(DlgMultipleSelection) | ||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgMultipleSelection.accept) | ||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgMultipleSelection.reject) | ||
QtCore.QMetaObject.connectSlotsByName(DlgMultipleSelection) | ||
|
||
def retranslateUi(self, DlgMultipleSelection): | ||
DlgMultipleSelection.setWindowTitle(QtGui.QApplication.translate("DlgMultipleSelection", "Multiple selection", None, QtGui.QApplication.UnicodeUTF8)) | ||
|