-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing] homogenize widgets used for ParameterNumber (fix 8807)
- Loading branch information
Showing
5 changed files
with
148 additions
and
36 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
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,45 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'python/plugins/processing/ui/widgetNumberInput.ui' | ||
# | ||
# Created: Wed Oct 9 19:20:54 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_widgetNumberInput(object): | ||
def setupUi(self, widgetNumberInput): | ||
widgetNumberInput.setObjectName(_fromUtf8("widgetNumberInput")) | ||
widgetNumberInput.resize(189, 28) | ||
self.horizontalLayout_2 = QtGui.QHBoxLayout(widgetNumberInput) | ||
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 2) | ||
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) | ||
self.horizontalLayout = QtGui.QHBoxLayout() | ||
self.horizontalLayout.setSpacing(2) | ||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) | ||
self.spnValue = QtGui.QDoubleSpinBox(widgetNumberInput) | ||
self.spnValue.setDecimals(6) | ||
self.spnValue.setMinimum(-100000000.0) | ||
self.spnValue.setMaximum(100000000.0) | ||
self.spnValue.setObjectName(_fromUtf8("spnValue")) | ||
self.horizontalLayout.addWidget(self.spnValue) | ||
self.btnCalc = QtGui.QToolButton(widgetNumberInput) | ||
self.btnCalc.setObjectName(_fromUtf8("btnCalc")) | ||
self.horizontalLayout.addWidget(self.btnCalc) | ||
self.horizontalLayout_2.addLayout(self.horizontalLayout) | ||
|
||
self.retranslateUi(widgetNumberInput) | ||
QtCore.QMetaObject.connectSlotsByName(widgetNumberInput) | ||
|
||
def retranslateUi(self, widgetNumberInput): | ||
widgetNumberInput.setWindowTitle(QtGui.QApplication.translate("widgetNumberInput", "Form", None, QtGui.QApplication.UnicodeUTF8)) | ||
self.btnCalc.setToolTip(QtGui.QApplication.translate("widgetNumberInput", "Open number input dialog", None, QtGui.QApplication.UnicodeUTF8)) | ||
self.btnCalc.setText(QtGui.QApplication.translate("widgetNumberInput", "...", None, QtGui.QApplication.UnicodeUTF8)) | ||
|
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,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>widgetNumberInput</class> | ||
<widget class="QWidget" name="widgetNumberInput"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>189</width> | ||
<height>28</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
<property name="leftMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="topMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="rightMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="bottomMargin"> | ||
<number>2</number> | ||
</property> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<property name="spacing"> | ||
<number>2</number> | ||
</property> | ||
<item> | ||
<widget class="QDoubleSpinBox" name="spnValue"> | ||
<property name="decimals"> | ||
<number>6</number> | ||
</property> | ||
<property name="minimum"> | ||
<double>-99999999.999999001622200</double> | ||
</property> | ||
<property name="maximum"> | ||
<double>99999999.999999001622200</double> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="btnCalc"> | ||
<property name="toolTip"> | ||
<string>Open number input dialog</string> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |