Skip to content
Permalink
Browse files

Added pop up image from BentShape rebar

  • Loading branch information...
amrit3701 committed Aug 9, 2017
1 parent 388c280 commit b7ad0889efa07415dba2551a85a78ab407c2796d
Showing with 859 additions and 35 deletions.
  1. +2 −0 BentShapeRebar.py
  2. +64 −35 BentShapeRebar.ui
  3. +793 −0 icons/BentShapeRebarDetailed.svg
@@ -29,6 +29,7 @@
from Rebarfunc import *
from PySide.QtCore import QT_TRANSLATE_NOOP
from RebarDistribution import runRebarDistribution, removeRebarDistribution
from PopUpImage import showPopUpImageDialog
import FreeCAD
import FreeCADGui
import ArchCommands
@@ -112,6 +113,7 @@ def __init__(self, Rebar = None):
self.form.PickSelectedFace.clicked.connect(lambda: getSelectedFace(self))
self.form.orientation.currentIndexChanged.connect(self.getOrientation)
#self.form.image.setPixmap(QtGui.QPixmap(os.path.split(os.path.abspath(__file__))[0] + "/icons/LShapeRebarBR.svg"))
self.form.toolButton.clicked.connect(lambda: showPopUpImageDialog(os.path.split(os.path.abspath(__file__))[0] + "/icons/BentShapeRebarDetailed.svg"))
self.Rebar = Rebar
self.SelectedObj = None
self.FaceName = None
@@ -37,18 +37,29 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="heading">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Fill all the values</string>
</property>
</widget>
<item row="6" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="customSpacing">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Custom Spacing</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeCustomSpacing">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Remove Spacing</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="0">
<layout class="QFormLayout" name="formLayout">
@@ -65,7 +76,7 @@
<item row="1" column="1">
<widget class="Gui::InputField" name="frontCover">
<property name="text">
<string>20 mm</string>
<string>20 </string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -82,7 +93,7 @@
<item row="2" column="1">
<widget class="Gui::InputField" name="l_sideCover">
<property name="text">
<string>20 mm</string>
<string>20</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -92,7 +103,7 @@
<item row="4" column="1">
<widget class="Gui::InputField" name="bottomCover">
<property name="text">
<string>20 mm</string>
<string>20</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -109,7 +120,7 @@
<item row="5" column="1">
<widget class="Gui::InputField" name="topCover">
<property name="text">
<string>20 mm</string>
<string>20</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -185,7 +196,7 @@
<bool>false</bool>
</property>
<property name="text">
<string>50 mm</string>
<string>50</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -195,7 +206,7 @@
<item row="9" column="1">
<widget class="Gui::InputField" name="diameter">
<property name="text">
<string>8 mm</string>
<string>8</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -222,7 +233,7 @@
<item row="3" column="1">
<widget class="Gui::InputField" name="r_sideCover">
<property name="text">
<string>20 mm</string>
<string>20</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -239,7 +250,7 @@
<item row="6" column="1">
<widget class="Gui::InputField" name="bentLength">
<property name="text">
<string>50 mm</string>
<string>20</string>
</property>
<property name="unit" stdset="0">
<string notr="true"/>
@@ -272,32 +283,50 @@
</item>
</layout>
</item>
<item row="0" column="0" alignment="Qt::AlignHCenter">
<widget class="QLabel" name="image">
<item row="4" column="0">
<widget class="QLabel" name="heading">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string/>
<string>Fill all the values</string>
</property>
</widget>
</item>
<item row="6" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="customSpacing">
<property name="enabled">
<bool>false</bool>
</property>
<item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="image">
<property name="text">
<string>Custom Spacing</string>
<string>image</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeCustomSpacing">
<item alignment="Qt::AlignTop">
<widget class="QToolButton" name="toolButton">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>50</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777214</height>
</size>
</property>
<property name="text">
<string>Remove Spacing</string>
<string>...</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonIconOnly</enum>
</property>
</widget>
</item>

0 comments on commit b7ad088

Please sign in to comment.
You can’t perform that action at this time.