Skip to content

Commit

Permalink
Add: UI buttons for Up and Left buttons, connect slots.
Browse files Browse the repository at this point in the history
  • Loading branch information
yestalgia committed Jan 5, 2025
1 parent bda1d82 commit 86ffbe5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ui/src/fixturegroupeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ FixtureGroupEditor::FixtureGroupEditor(FixtureGroup* grp, Doc* doc, QWidget* par

connect(m_rightButton, SIGNAL(clicked()),
this, SLOT(slotRightClicked()));
connect(m_leftButton, SIGNAL(clicked()),
this, SLOT(slotLeftClicked()));
connect(m_downButton, SIGNAL(clicked()),
this, SLOT(slotDownClicked()));
connect(m_upButton, SIGNAL(clicked()),
this, SLOT(slotUpClicked())),
connect(m_removeButton, SIGNAL(clicked()),
this, SLOT(slotRemoveFixtureClicked()));

Expand Down
40 changes: 37 additions & 3 deletions ui/src/fixturegroupeditor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</property>
</widget>
</item>
<item row="3" column="6">
<item row="5" column="6">
<widget class="QToolButton" name="m_removeButton">
<property name="toolTip">
<string>Remove selected fixture/head</string>
Expand Down Expand Up @@ -138,7 +138,7 @@
<item row="1" column="6">
<widget class="QToolButton" name="m_rightButton">
<property name="toolTip">
<string>Add/replace fixtures to current row, starting from selected cell</string>
<string>Add/replace fixtures to current row, going right starting from selected cell</string>
</property>
<property name="icon">
<iconset resource="qlcui.qrc">
Expand All @@ -153,9 +153,26 @@
</widget>
</item>
<item row="2" column="6">
<widget class="QToolButton" name="m_leftbutton">
<property name="toolTip">
<string>Add/replace fixtures to current row, going backwards starting from selected cell</string>
</property>
<property name="icon">
<iconset resource="qlcui.qrc">
<normaloff>:/back.png</normaloff>:/back.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item row="3" column="6">
<widget class="QToolButton" name="m_downButton">
<property name="toolTip">
<string>Add/replace fixtures to current column, starting from selected cell</string>
<string>Add/replace fixtures to current column, going down starting from selected cell</string>
</property>
<property name="icon">
<iconset resource="qlcui.qrc">
Expand All @@ -169,6 +186,23 @@
</property>
</widget>
</item>
<item row="4" column="6">
<widget class="QToolButton" name="m_upButton">
<property name="toolTip">
<string>Add/replace fixtures to current column, going up starting from selected cell</string>
</property>
<property name="icon">
<iconset resource="qlcui.qrc">
<normaloff>:/up.png</normaloff>:/up.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0" colspan="7">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
Expand Down

0 comments on commit 86ffbe5

Please sign in to comment.