Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing] add QtDesigner .ui file for Number input dialog
- Loading branch information
Showing
3 changed files
with
216 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>DlgNumberInput</class> | ||
<widget class="QDialog" name="DlgNumberInput"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>445</width> | ||
<height>300</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Enter number or expression</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<property name="spacing"> | ||
<number>2</number> | ||
</property> | ||
<property name="leftMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="topMargin"> | ||
<number>5</number> | ||
</property> | ||
<property name="rightMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="bottomMargin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string>Enter expression in the text field. | ||
Double click on elements in the tree to add their values to the expression.</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QTreeWidget" name="treeValues"> | ||
<attribute name="headerVisible"> | ||
<bool>false</bool> | ||
</attribute> | ||
<column> | ||
<property name="text"> | ||
<string notr="true">1</string> | ||
</property> | ||
</column> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLineEdit" name="leFormula"/> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</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>DlgNumberInput</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>DlgNumberInput</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,51 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'python/plugins/processing/ui/DlgNumberInput.ui' | ||
# | ||
# Created: Thu Oct 3 10:29:20 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_DlgNumberInput(object): | ||
def setupUi(self, DlgNumberInput): | ||
DlgNumberInput.setObjectName(_fromUtf8("DlgNumberInput")) | ||
DlgNumberInput.resize(445, 300) | ||
self.verticalLayout = QtGui.QVBoxLayout(DlgNumberInput) | ||
self.verticalLayout.setSpacing(2) | ||
self.verticalLayout.setContentsMargins(0, 5, 0, 0) | ||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) | ||
self.label = QtGui.QLabel(DlgNumberInput) | ||
self.label.setObjectName(_fromUtf8("label")) | ||
self.verticalLayout.addWidget(self.label) | ||
self.treeValues = QtGui.QTreeWidget(DlgNumberInput) | ||
self.treeValues.setObjectName(_fromUtf8("treeValues")) | ||
self.treeValues.headerItem().setText(0, _fromUtf8("1")) | ||
self.treeValues.header().setVisible(False) | ||
self.verticalLayout.addWidget(self.treeValues) | ||
self.leFormula = QtGui.QLineEdit(DlgNumberInput) | ||
self.leFormula.setObjectName(_fromUtf8("leFormula")) | ||
self.verticalLayout.addWidget(self.leFormula) | ||
self.buttonBox = QtGui.QDialogButtonBox(DlgNumberInput) | ||
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) | ||
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) | ||
self.buttonBox.setObjectName(_fromUtf8("buttonBox")) | ||
self.verticalLayout.addWidget(self.buttonBox) | ||
|
||
self.retranslateUi(DlgNumberInput) | ||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgNumberInput.accept) | ||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgNumberInput.reject) | ||
QtCore.QMetaObject.connectSlotsByName(DlgNumberInput) | ||
|
||
def retranslateUi(self, DlgNumberInput): | ||
DlgNumberInput.setWindowTitle(QtGui.QApplication.translate("DlgNumberInput", "Enter number or expression", None, QtGui.QApplication.UnicodeUTF8)) | ||
self.label.setText(QtGui.QApplication.translate("DlgNumberInput", "Enter expression in the text field.\n" | ||
"Double click on elements in the tree to add their values to the expression.", None, QtGui.QApplication.UnicodeUTF8)) | ||
|