Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First shot at base algorithm for inserting holding tabs.
- Loading branch information
Showing
5 changed files
with
645 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>TaskPanel</class> | ||
<widget class="QWidget" name="TaskPanel"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>352</width> | ||
<height>387</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Holding Tabs</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout_2"> | ||
<item row="1" column="0"> | ||
<widget class="QToolBox" name="toolBox"> | ||
<property name="frameShape"> | ||
<enum>QFrame::NoFrame</enum> | ||
</property> | ||
<property name="currentIndex"> | ||
<number>0</number> | ||
</property> | ||
<widget class="QWidget" name="holdingTabs"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>334</width> | ||
<height>340</height> | ||
</rect> | ||
</property> | ||
<attribute name="label"> | ||
<string>Holding Tabs</string> | ||
</attribute> | ||
<layout class="QFormLayout" name="formLayout"> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="lCount"> | ||
<property name="text"> | ||
<string>Count</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="0"> | ||
<widget class="QLabel" name="lWidth"> | ||
<property name="text"> | ||
<string>Width</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="5" column="0" colspan="2"> | ||
<widget class="QListWidget" name="lwHoldingTabs"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p>List of holding tabs calculated by the paremeters entered above. You can un-check tabs you don't want to be inserted.</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="QSpinBox" name="sbCount"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p>Enter the number of tabs you wish to have.</p><p><br/></p><p>Note that sometimes it's necessary to enter a larger than desired count number and disable the ones tabs you don't want in order to get the holding tab layout you want.</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="1"> | ||
<widget class="QDoubleSpinBox" name="dsbWidth"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p>Width of each tab.</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="lHeight"> | ||
<property name="text"> | ||
<string>Height</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QDoubleSpinBox" name="dsbHeight"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p>The height of the holding tab measured from the bottom of the path. By default this is set to the (estimated) height of the path.</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="0"> | ||
<widget class="QLabel" name="lAngle"> | ||
<property name="enabled"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="text"> | ||
<string>Angle</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="1"> | ||
<widget class="QDoubleSpinBox" name="dsbAngle"> | ||
<property name="enabled"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p>Angle of tab walls.</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
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
Oops, something went wrong.