Refactor, fixes and maximized option for title tab (#40)

* move definitions of switcher structs to separate files

* remove useless comment

* cleanup and silence warnings

* add generic switch

* removed delay on main thread startup as it served no purpose

* clean up ultility.hpp

* do not save switchStr to file as it could cause issues when scenes are renamed

* rename sceneRoundTrip to sceneSequence

* add option to switch if window is maximized to title tab
This commit is contained in:
WarmUpTill
2020-09-25 21:42:58 +02:00
committed by GitHub
parent 1559d437ec
commit dd63ff846c
40 changed files with 1266 additions and 981 deletions

View File

@@ -1246,14 +1246,21 @@
<item>
<widget class="QCheckBox" name="fullscreenCheckBox">
<property name="text">
<string>only if fullscreen</string>
<string>if fullscreen</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="maximizedCheckBox">
<property name="text">
<string>if maximized</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="focusCheckBox">
<property name="text">
<string>only if focused</string>
<string>if focused</string>
</property>
</widget>
</item>
@@ -3359,7 +3366,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="sceneRoundTripTab">
<widget class="QWidget" name="sceneSequenceTab">
<attribute name="title">
<string notr="true">Sequence</string>
</attribute>
@@ -3374,7 +3381,7 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="sceneRoundTripScenes1">
<widget class="QComboBox" name="sceneSequenceScenes1">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
@@ -3397,7 +3404,7 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="sceneRoundTripScenes2">
<widget class="QComboBox" name="sceneSequenceScenes2">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
@@ -3420,7 +3427,7 @@
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="sceneRoundTripSpinBox">
<widget class="QDoubleSpinBox" name="sceneSequenceSpinBox">
<property name="suffix">
<string/>
</property>
@@ -3430,7 +3437,7 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="sceneRoundTripDelayUnits"/>
<widget class="QComboBox" name="sceneSequenceDelayUnits"/>
</item>
<item>
<widget class="QLabel" name="label_17">
@@ -3440,7 +3447,7 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="sceneRoundTripTransitions"/>
<widget class="QComboBox" name="sceneSequenceTransitions"/>
</item>
<item>
<spacer name="horizontalSpacer_9">
@@ -3465,7 +3472,7 @@
</widget>
</item>
<item>
<widget class="QListWidget" name="sceneRoundTrips">
<widget class="QListWidget" name="sceneSequences">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
@@ -3480,7 +3487,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QPushButton" name="sceneRoundTripAdd">
<widget class="QPushButton" name="sceneSequenceAdd">
<property name="maximumSize">
<size>
<width>22</width>
@@ -3496,7 +3503,7 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="sceneRoundTripRemove">
<widget class="QPushButton" name="sceneSequenceRemove">
<property name="maximumSize">
<size>
<width>22</width>
@@ -3551,7 +3558,7 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="sceneRoundTripUp">
<widget class="QPushButton" name="sceneSequenceUp">
<property name="maximumSize">
<size>
<width>22</width>
@@ -3574,7 +3581,7 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="sceneRoundTripDown">
<widget class="QPushButton" name="sceneSequenceDown">
<property name="maximumSize">
<size>
<width>22</width>
@@ -3627,14 +3634,14 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_28">
<item>
<widget class="QPushButton" name="sceneRoundTripSave">
<widget class="QPushButton" name="sceneSequenceSave">
<property name="text">
<string>Save Round Trips to file</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="sceneRoundTripLoad">
<widget class="QPushButton" name="sceneSequenceLoad">
<property name="text">
<string>Load Round Trips from file</string>
</property>