diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-06-04 21:07:19 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-06-04 21:07:19 +0200 |
commit | 9c5706dc1f922ecd593ea57a9c499c0ca0311e78 (patch) | |
tree | 4a151628c9bd00f2682a137d416b3efe1b78974e /BoxerDockWidget.py | |
parent | ea5904139f80cb96400febcfb289a8fd4729da2c (diff) | |
download | freecad-boxer-9c5706dc1f922ecd593ea57a9c499c0ca0311e78.tar.gz freecad-boxer-9c5706dc1f922ecd593ea57a9c499c0ca0311e78.tar.bz2 freecad-boxer-9c5706dc1f922ecd593ea57a9c499c0ca0311e78.tar.xz freecad-boxer-9c5706dc1f922ecd593ea57a9c499c0ca0311e78.zip |
o Adding a special 'Fit all' button.
Diffstat (limited to 'BoxerDockWidget.py')
-rw-r--r-- | BoxerDockWidget.py | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/BoxerDockWidget.py b/BoxerDockWidget.py index 67dd59b..1d82898 100644 --- a/BoxerDockWidget.py +++ b/BoxerDockWidget.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'BoxerDockWidget.ui' # -# Created: Wed May 25 23:23:01 2016 +# Created: Tue May 31 00:39:43 2016 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! @@ -12,7 +12,7 @@ from PySide import QtCore, QtGui class Ui_BoxerDockWidget(object): def setupUi(self, BoxerDockWidget): BoxerDockWidget.setObjectName("BoxerDockWidget") - BoxerDockWidget.resize(499, 213) + BoxerDockWidget.resize(499, 522) self.dockWidgetContents = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) @@ -123,14 +123,34 @@ class Ui_BoxerDockWidget(object): self.generateButton.setMaximumSize(QtCore.QSize(484, 16777215)) self.generateButton.setObjectName("generateButton") self.verticalLayout.addWidget(self.generateButton) + self.line = QtGui.QFrame(self.dockWidgetContents) + self.line.setFrameShape(QtGui.QFrame.HLine) + self.line.setFrameShadow(QtGui.QFrame.Sunken) + self.line.setObjectName("line") + self.verticalLayout.addWidget(self.line) + self.horizontalLayout = QtGui.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.verticalLayout.addLayout(self.horizontalLayout) + self.fitViewButton = QtGui.QPushButton(self.dockWidgetContents) + self.fitViewButton.setObjectName("fitViewButton") + self.verticalLayout.addWidget(self.fitViewButton) + spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) + self.verticalLayout.addItem(spacerItem) BoxerDockWidget.setWidget(self.dockWidgetContents) self.retranslateUi(BoxerDockWidget) QtCore.QObject.connect(self.generateButton, QtCore.SIGNAL("clicked()"), BoxerDockWidget.generateClicked) + QtCore.QObject.connect(self.fitViewButton, QtCore.SIGNAL("clicked()"), BoxerDockWidget.fitAllClicked) QtCore.QMetaObject.connectSlotsByName(BoxerDockWidget) + BoxerDockWidget.setTabOrder(self.outerWidth, self.outerHeight) + BoxerDockWidget.setTabOrder(self.outerHeight, self.outerDepth) + BoxerDockWidget.setTabOrder(self.outerDepth, self.innerWidth) BoxerDockWidget.setTabOrder(self.innerWidth, self.innerHeight) BoxerDockWidget.setTabOrder(self.innerHeight, self.innerDepth) - BoxerDockWidget.setTabOrder(self.innerDepth, self.generateButton) + BoxerDockWidget.setTabOrder(self.innerDepth, self.notchSize) + BoxerDockWidget.setTabOrder(self.notchSize, self.thickness) + BoxerDockWidget.setTabOrder(self.thickness, self.generateButton) + BoxerDockWidget.setTabOrder(self.generateButton, self.fitViewButton) def retranslateUi(self, BoxerDockWidget): BoxerDockWidget.setWindowTitle(QtGui.QApplication.translate("BoxerDockWidget", "DockWidget", None, QtGui.QApplication.UnicodeUTF8)) @@ -142,4 +162,5 @@ class Ui_BoxerDockWidget(object): self.depthLabel.setText(QtGui.QApplication.translate("BoxerDockWidget", "Depth", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("BoxerDockWidget", "Thickness", None, QtGui.QApplication.UnicodeUTF8)) self.generateButton.setText(QtGui.QApplication.translate("BoxerDockWidget", "Generate", None, QtGui.QApplication.UnicodeUTF8)) + self.fitViewButton.setText(QtGui.QApplication.translate("BoxerDockWidget", "Fit all", None, QtGui.QApplication.UnicodeUTF8)) |