Added a startup wizard.

This commit is contained in:
Jim Evins
2016-03-27 17:06:53 -04:00
parent 9a92c2a064
commit 5b21e8a23f
10 changed files with 326 additions and 28 deletions
+7 -1
View File
@@ -225,11 +225,14 @@
</item>
<item row="1" column="0">
<widget class="QPushButton" name="changeProductButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Select another product for this gLabels project.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">text-align:left; padding:3px;</string>
</property>
<property name="text">
<string>Select another product</string>
<string>Change product</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
@@ -268,6 +271,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Select horizontal or vertical orientation.</string>
</property>
<property name="iconSize">
<size>
<width>32</width>
+1 -1
View File
@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string>gLabels - Select Product</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
+165
View File
@@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>StartupWizard</class>
<widget class="QDialog" name="StartupWizard">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>339</width>
<height>218</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>gLabels - Startup Wizard</string>
</property>
<property name="windowOpacity">
<double>0.000000000000000</double>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="titleLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>319</width>
<height>53</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>53</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">padding:8px;</string>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:24pt; font-weight:600;&quot;&gt;gLabels &lt;/span&gt;&lt;span style=&quot; font-size:16pt; color:#909090;&quot;&gt;Label Designer&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QCommandLinkButton" name="newProjectButton">
<property name="minimumSize">
<size>
<width>319</width>
<height>59</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>59</height>
</size>
</property>
<property name="text">
<string>New Project</string>
</property>
<property name="description">
<string>Create a new blank gLabels project</string>
</property>
</widget>
</item>
<item>
<widget class="QCommandLinkButton" name="openProjectButton">
<property name="minimumSize">
<size>
<width>319</width>
<height>59</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>59</height>
</size>
</property>
<property name="text">
<string>Open Project</string>
</property>
<property name="description">
<string>Open an existing gLabels project</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources>
<include location="../images.qrc"/>
</resources>
<connections>
<connection>
<sender>newProjectButton</sender>
<signal>clicked()</signal>
<receiver>StartupWizard</receiver>
<slot>onNewProjectButtonClicked()</slot>
<hints>
<hint type="sourcelabel">
<x>291</x>
<y>102</y>
</hint>
<hint type="destinationlabel">
<x>338</x>
<y>108</y>
</hint>
</hints>
</connection>
<connection>
<sender>openProjectButton</sender>
<signal>clicked()</signal>
<receiver>StartupWizard</receiver>
<slot>onOpenProjectButtonClicked()</slot>
<hints>
<hint type="sourcelabel">
<x>312</x>
<y>170</y>
</hint>
<hint type="destinationlabel">
<x>338</x>
<y>169</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>onNewProjectButtonClicked()</slot>
<slot>onOpenProjectButtonClicked()</slot>
</slots>
</ui>