Added a basic ThemeWizard, added more images, updated SettingsForm

bzr-revno: 19
This commit is contained in:
Raoul Snyman 2008-10-17 13:29:36 +00:00
parent ad11730e87
commit da9c26a6d5
11 changed files with 467 additions and 80 deletions

View File

@ -59,8 +59,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>90</width> <width>268</width>
<height>545</height> <height>542</height>
</rect> </rect>
</property> </property>
</widget> </widget>
@ -99,8 +99,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>90</width> <width>268</width>
<height>545</height> <height>542</height>
</rect> </rect>
</property> </property>
</widget> </widget>
@ -261,7 +261,7 @@
<item> <item>
<widget class="QToolBox" name="MediaToolBox" > <widget class="QToolBox" name="MediaToolBox" >
<property name="currentIndex" > <property name="currentIndex" >
<number>2</number> <number>4</number>
</property> </property>
<property name="tabSpacing" > <property name="tabSpacing" >
<number>0</number> <number>0</number>
@ -271,7 +271,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>457</width> <width>237</width>
<height>652</height> <height>652</height>
</rect> </rect>
</property> </property>
@ -466,7 +466,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>457</width> <width>237</width>
<height>652</height> <height>652</height>
</rect> </rect>
</property> </property>
@ -579,7 +579,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>457</width> <width>237</width>
<height>652</height> <height>652</height>
</rect> </rect>
</property> </property>
@ -692,7 +692,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>457</width> <width>237</width>
<height>652</height> <height>652</height>
</rect> </rect>
</property> </property>
@ -724,8 +724,21 @@
<property name="toolTip" > <property name="toolTip" >
<string>Load Video</string> <string>Load Video</string>
</property> </property>
<property name="statusTip" >
<string>Load a video</string>
</property>
<property name="text" > <property name="text" >
<string>LI</string> <string>Load Video</string>
</property>
<property name="icon" >
<iconset resource="../images/openlp-2.qrc" >
<normaloff>:/videos/video_load.png</normaloff>:/videos/video_load.png</iconset>
</property>
<property name="iconSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
@ -739,7 +752,13 @@
</property> </property>
<property name="icon" > <property name="icon" >
<iconset resource="../images/openlp-2.qrc" > <iconset resource="../images/openlp-2.qrc" >
<normaloff>:/songs/song_delete.png</normaloff>:/songs/song_delete.png</iconset> <normaloff>:/videos/video_delete.png</normaloff>:/videos/video_delete.png</iconset>
</property>
<property name="iconSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property> </property>
<property name="autoRaise" > <property name="autoRaise" >
<bool>true</bool> <bool>true</bool>
@ -825,7 +844,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>457</width> <width>237</width>
<height>652</height> <height>652</height>
</rect> </rect>
</property> </property>
@ -836,6 +855,141 @@
<iconset resource="../images/openlp-2.qrc" > <iconset resource="../images/openlp-2.qrc" >
<normaloff>:/media/media_image.png</normaloff>:/media/media_image.png</iconset> <normaloff>:/media/media_image.png</normaloff>:/media/media_image.png</iconset>
</attribute> </attribute>
<layout class="QVBoxLayout" name="ImagesLayout" >
<property name="spacing" >
<number>0</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QWidget" native="1" name="ImagesToolbar" >
<layout class="QHBoxLayout" name="ImagesToolbarLayout" >
<property name="spacing" >
<number>0</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QToolButton" name="ImagesLoadItem" >
<property name="toolTip" >
<string>Load Video</string>
</property>
<property name="statusTip" >
<string>Load a video</string>
</property>
<property name="text" >
<string>Load Image</string>
</property>
<property name="icon" >
<iconset resource="../images/openlp-2.qrc" >
<normaloff>:/images/image_load.png</normaloff>:/images/image_load.png</iconset>
</property>
<property name="iconSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="ImagesDeleteItem" >
<property name="toolTip" >
<string>Remove Video</string>
</property>
<property name="text" >
<string>Delete Image</string>
</property>
<property name="icon" >
<iconset resource="../images/openlp-2.qrc" >
<normaloff>:/images/image_delete.png</normaloff>:/images/image_delete.png</iconset>
</property>
<property name="iconSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="autoRaise" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="ImagesLine" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="ImagesLiveItem" >
<property name="toolTip" >
<string>Go Live!</string>
</property>
<property name="text" >
<string/>
</property>
<property name="icon" >
<iconset resource="../images/openlp-2.qrc" >
<normaloff>:/system/system_live.png</normaloff>:/system/system_live.png</iconset>
</property>
<property name="iconSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="autoRaise" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="ImagesAddItem" >
<property name="toolTip" >
<string>Add to Order of Service</string>
</property>
<property name="text" >
<string/>
</property>
<property name="icon" >
<iconset resource="../images/openlp-2.qrc" >
<normaloff>:/system/system_add.png</normaloff>:/system/system_add.png</iconset>
</property>
<property name="iconSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="autoRaise" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="ImagesToolbarSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>105</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QTableWidget" name="ImagesList" />
</item>
</layout>
</widget> </widget>
</widget> </widget>
</item> </item>

View File

@ -1,85 +1,208 @@
<ui version="4.0" > <ui version="4.0" >
<class>Dialog</class> <class>SettingsDialog</class>
<widget class="QDialog" name="Dialog" > <widget class="QDialog" name="SettingsDialog" >
<property name="geometry" > <property name="geometry" >
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>599</width> <width>607</width>
<height>409</height> <height>344</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
<string>Settings</string> <string>Settings</string>
</property> </property>
<widget class="QDialogButtonBox" name="buttonBox" > <layout class="QVBoxLayout" name="SettingsLayout" >
<property name="geometry" > <property name="spacing" >
<rect> <number>8</number>
<x>430</x>
<y>370</y>
<width>160</width>
<height>28</height>
</rect>
</property> </property>
<property name="maximumSize" > <property name="margin" >
<size> <number>8</number>
<width>341</width>
<height>16777215</height>
</size>
</property> </property>
<property name="orientation" > <item>
<enum>Qt::Horizontal</enum> <widget class="QTabWidget" name="SettingsTabWidget" >
</property> <property name="currentIndex" >
<property name="standardButtons" > <number>0</number>
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property>
</property> <widget class="QWidget" name="ThemesTab" >
</widget> <attribute name="title" >
<widget class="QTabWidget" name="tabWidget" > <string>Themes</string>
<property name="geometry" > </attribute>
<rect> <layout class="QHBoxLayout" name="ThemesTabLayout" >
<x>10</x> <property name="spacing" >
<y>10</y> <number>8</number>
<width>581</width> </property>
<height>351</height> <property name="margin" >
</rect> <number>8</number>
</property> </property>
<property name="currentIndex" > <item>
<number>0</number> <widget class="QGroupBox" name="DefaultGroupBox" >
</property> <property name="title" >
<widget class="QWidget" name="ThemesTab" > <string>Default theme</string>
<property name="geometry" > </property>
<rect> <layout class="QVBoxLayout" name="DefaultGroupBoxLayout" >
<x>0</x> <property name="spacing" >
<y>0</y> <number>8</number>
<width>577</width> </property>
<height>323</height> <property name="margin" >
</rect> <number>8</number>
</property> </property>
<attribute name="title" > <item>
<string>Tab 1</string> <widget class="QComboBox" name="DefaultComboBox" >
</attribute> <item>
</widget> <property name="text" >
<widget class="QWidget" name="DisplayTab" > <string>African Sunset</string>
<property name="geometry" > </property>
<rect> </item>
<x>0</x> <item>
<y>0</y> <property name="text" >
<width>577</width> <string>Snowy Mountains</string>
<height>323</height> </property>
</rect> </item>
</property> <item>
<attribute name="title" > <property name="text" >
<string>Tab 2</string> <string>Wilderness</string>
</attribute> </property>
</widget> </item>
</widget> </widget>
</item>
<item>
<widget class="QListView" name="DefaultListView" />
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="LevelGroupBox" >
<property name="title" >
<string>Theme level</string>
</property>
<layout class="QFormLayout" name="formLayout" >
<property name="labelAlignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="formAlignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="horizontalSpacing" >
<number>8</number>
</property>
<property name="verticalSpacing" >
<number>8</number>
</property>
<property name="margin" >
<number>8</number>
</property>
<item row="0" column="0" >
<widget class="QRadioButton" name="radioButton" >
<property name="text" >
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QRadioButton" name="radioButton_2" >
<property name="text" >
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QRadioButton" name="radioButton_3" >
<property name="text" >
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="DisplayTab" >
<attribute name="title" >
<string>Display</string>
</attribute>
</widget>
<widget class="QWidget" name="GeneralTab" >
<attribute name="title" >
<string>General</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QWidget" native="1" name="ButtonsBar" >
<layout class="QHBoxLayout" name="ButtonsLayout" >
<property name="spacing" >
<number>0</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<spacer name="ButtonsSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="ButtonsBox" >
<property name="maximumSize" >
<size>
<width>341</width>
<height>16777215</height>
</size>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget> </widget>
<resources/> <resources>
<include location="../images/openlp-2.qrc" />
</resources>
<connections> <connections>
<connection> <connection>
<sender>buttonBox</sender> <sender>ButtonsBox</sender>
<signal>accepted()</signal> <signal>accepted()</signal>
<receiver>Dialog</receiver> <receiver>SettingsDialog</receiver>
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
@ -93,9 +216,9 @@
</hints> </hints>
</connection> </connection>
<connection> <connection>
<sender>buttonBox</sender> <sender>ButtonsBox</sender>
<signal>rejected()</signal> <signal>rejected()</signal>
<receiver>Dialog</receiver> <receiver>SettingsDialog</receiver>
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >

View File

@ -0,0 +1,95 @@
<ui version="4.0" >
<class>ThemeWizard</class>
<widget class="QWizard" name="ThemeWizard" >
<property name="windowModality" >
<enum>Qt::ApplicationModal</enum>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>576</width>
<height>397</height>
</rect>
</property>
<property name="windowTitle" >
<string>Theme Wizard</string>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<property name="wizardStyle" >
<enum>QWizard::ModernStyle</enum>
</property>
<property name="options" >
<set>QWizard::DisabledBackButtonOnLastPage|QWizard::IndependentPages|QWizard::NoBackButtonOnStartPage|QWizard::NoCancelButton</set>
</property>
<widget class="QWizardPage" name="WelcomePage" >
<property name="title" >
<string>Welcome</string>
</property>
<property name="subTitle" >
<string/>
</property>
<widget class="QLabel" name="WelcomeLabel" >
<property name="geometry" >
<rect>
<x>20</x>
<y>100</y>
<width>341</width>
<height>31</height>
</rect>
</property>
<property name="text" >
<string>Welcome to the Theme Wizard. This wizard will guide you through the process of creating a new theme.</string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QWizardPage" name="NamePage" >
<property name="title" >
<string>Theme Name</string>
</property>
<property name="subTitle" >
<string>Choose a name for your theme</string>
</property>
<widget class="QLabel" name="NameLabel" >
<property name="geometry" >
<rect>
<x>100</x>
<y>130</y>
<width>91</width>
<height>17</height>
</rect>
</property>
<property name="text" >
<string>Theme Name:</string>
</property>
</widget>
<widget class="QLineEdit" name="NameEdit" >
<property name="geometry" >
<rect>
<x>200</x>
<y>127</y>
<width>261</width>
<height>22</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWizardPage" name="BackgroundPage" >
<property name="title" >
<string>Select Background</string>
</property>
<property name="subTitle" >
<string>Select a background type and configure your background</string>
</property>
</widget>
</widget>
<resources>
<include location="../images/openlp-2.qrc" />
</resources>
<connections/>
</ui>

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

View File

@ -5,6 +5,21 @@
<file>song_export.png</file> <file>song_export.png</file>
<file>song_new.png</file> <file>song_new.png</file>
</qresource> </qresource>
<qresource prefix="wizards" >
<file>wizard_importbible.bmp</file>
</qresource>
<qresource prefix="presentations" >
<file>presentation_delete.png</file>
<file>presentation_load.png</file>
</qresource>
<qresource prefix="videos" >
<file>video_delete.png</file>
<file>video_load.png</file>
</qresource>
<qresource prefix="images" >
<file>image_delete.png</file>
<file>image_load.png</file>
</qresource>
<qresource prefix="services" > <qresource prefix="services" >
<file>service_bottom.png</file> <file>service_bottom.png</file>
<file>service_down.png</file> <file>service_down.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB