Skip to content
Permalink
Browse files

Added vertical straight rebar icon

  • Loading branch information...
amrit3701 committed Jul 23, 2017
1 parent 901d3ea commit fca5da2fee3781fe11bc2a557382f56c5afcb3dc
Showing with 668 additions and 1 deletion.
  1. +3 −1 StraightRebar.py
  2. 0 icons/{StraightRebar.svg → StraightRebarH.svg}
  3. +665 −0 icons/StraightRebarV.svg
@@ -78,7 +78,7 @@ def __init__(self, Rebar = None):
self.form.PickSelectedFace.setCheckable(True)
self.form.PickSelectedFace.toggle()
self.form.PickSelectedFace.clicked.connect(lambda: getSelectedFace(self))
self.form.image.setPixmap(QtGui.QPixmap(os.path.split(os.path.abspath(__file__))[0] + "/icons/StraightRebar.svg"))
self.form.image.setPixmap(QtGui.QPixmap(os.path.split(os.path.abspath(__file__))[0] + "/icons/StraightRebarH.svg"))
self.form.orientation.currentIndexChanged.connect(self.changeOrientation)
self.form.coverAlong.currentIndexChanged.connect(self.changeCoverAlong)
self.Rebar = Rebar
@@ -88,11 +88,13 @@ def __init__(self, Rebar = None):
def changeOrientation(self):
orientation = self.form.orientation.currentText()
if orientation == "Horizontal":
self.form.image.setPixmap(QtGui.QPixmap(os.path.split(os.path.abspath(__file__))[0] + "/icons/StraightRebarH.svg"))
self.form.r_sideCoverLabel.setText("Right Side Cover")
self.form.l_sideCoverLabel.setText("Left Side Cover")
self.form.coverAlong.clear()
self.form.coverAlong.addItems(["Bottom Side", "Top Side"])
else:
self.form.image.setPixmap(QtGui.QPixmap(os.path.split(os.path.abspath(__file__))[0] + "/icons/StraightRebarV.svg"))
self.form.r_sideCoverLabel.setText("Top Side Cover")
self.form.l_sideCoverLabel.setText("Bottom Side Cover")
self.form.coverAlong.clear()
File renamed without changes.

0 comments on commit fca5da2

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