changed the layout of all Toasters to look like same

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3904 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-12-10 02:37:58 +00:00
parent e0a2883eaf
commit 224a44f79c
16 changed files with 238 additions and 273 deletions

View File

@ -155,6 +155,7 @@
<file>images/filerating5.png</file> <file>images/filerating5.png</file>
<file>images/fileshare16.png</file> <file>images/fileshare16.png</file>
<file>images/fileshare24.png</file> <file>images/fileshare24.png</file>
<file>images/fileshare32.png</file>
<file>images/fileshare48.png</file> <file>images/fileshare48.png</file>
<file>images/find.png</file> <file>images/find.png</file>
<file>images/find-16.png</file> <file>images/find-16.png</file>
@ -422,9 +423,7 @@
<file>images/toaster/chat.png</file> <file>images/toaster/chat.png</file>
<file>images/toaster/hangup.png</file> <file>images/toaster/hangup.png</file>
<file>images/toaster/pickup.png</file> <file>images/toaster/pickup.png</file>
<file>images/toaster/toaster-background.png</file> <file>images/toaster/backgroundtoaster.png</file>
<file>images/toaster/toaster-backrs3.png</file>
<file>images/toaster/toaster-backrs4.png</file>
<file>images/thumb-default-video.png</file> <file>images/thumb-default-video.png</file>
<file>images/user/add_user24.png</file> <file>images/user/add_user24.png</file>
<file>images/user/add_user48.png</file> <file>images/user/add_user48.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 804 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -140,9 +140,9 @@
<widget class="QLabel" name="lblTitle"> <widget class="QLabel" name="lblTitle">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>28</x> <x>30</x>
<y>1</y> <y>10</y>
<width>248</width> <width>241</width>
<height>20</height> <height>20</height>
</rect> </rect>
</property> </property>
@ -154,23 +154,26 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>4</x> <x>4</x>
<y>3</y> <y>10</y>
<width>16</width> <width>21</width>
<height>16</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap resource="../images.qrc">:/images/accepted16.png</pixmap> <pixmap resource="../images.qrc">:/images/rstray3.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QToolButton" name="spbClose"> <widget class="QToolButton" name="spbClose">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>279</x> <x>270</x>
<y>1</y> <y>10</y>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
</rect> </rect>
@ -205,7 +208,7 @@
<string/> <string/>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap resource="../images.qrc">:/images/finished_background.png</pixmap> <pixmap resource="../images.qrc">:/images/toaster/backgroundtoaster.png</pixmap>
</property> </property>
</widget> </widget>
<zorder>label_2</zorder> <zorder>label_2</zorder>
@ -221,6 +224,9 @@
</tabstops> </tabstops>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -27,7 +27,7 @@ MessageToaster::MessageToaster(const QString &name, const QString &title, const
/* connect buttons */ /* connect buttons */
connect(ui.closebtn, SIGNAL(clicked()), this, SLOT(hide())); connect(ui.closebtn, SIGNAL(clicked()), this, SLOT(hide()));
connect(ui.openmessagebtn, SIGNAL(clicked()), this, SLOT(openmessageClicked())); //connect(ui.openmessagebtn, SIGNAL(clicked()), this, SLOT(openmessageClicked()));
connect(ui.openmessagetoolButton, SIGNAL(clicked()), this, SLOT(openmessageClicked())); connect(ui.openmessagetoolButton, SIGNAL(clicked()), this, SLOT(openmessageClicked()));
/* set informations */ /* set informations */

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>304</width> <width>300</width>
<height>125</height> <height>100</height>
</rect> </rect>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
@ -25,168 +25,80 @@
<property name="windowTitle"> <property name="windowTitle">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <property name="autoFillBackground">
<property name="margin"> <bool>false</bool>
<number>0</number> </property>
<property name="styleSheet">
<string notr="true"/>
</property>
<widget class="QLabel" name="namelabel">
<property name="geometry">
<rect>
<x>150</x>
<y>0</y>
<width>16</width>
<height>16</height>
</rect>
</property> </property>
<property name="spacing"> <property name="text">
<number>0</number> <string/>
</property> </property>
<item row="0" column="0"> </widget>
<widget class="QFrame" name="frame"> <widget class="QLabel" name="label_2">
<property name="styleSheet"> <property name="geometry">
<string notr="true">QFrame#frame{ <rect>
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, <x>0</x>
stop:0 #FEFEFE, stop:1 #E8E8E8); <y>0</y>
<width>300</width>
border: 2px solid #CCCCCC;}</string> <height>100</height>
</property> </rect>
<property name="frameShape"> </property>
<enum>QFrame::StyledPanel</enum> <property name="text">
</property> <string/>
<property name="frameShadow"> </property>
<enum>QFrame::Raised</enum> <property name="pixmap">
</property> <pixmap resource="../images.qrc">:/images/toaster/backgroundtoaster.png</pixmap>
<widget class="QToolButton" name="openmessagetoolButton"> </property>
<property name="geometry"> </widget>
<rect> <widget class="QToolButton" name="openmessagetoolButton">
<x>10</x> <property name="geometry">
<y>30</y> <rect>
<width>61</width> <x>10</x>
<height>61</height> <y>30</y>
</rect> <width>61</width>
</property> <height>61</height>
<property name="maximumSize"> </rect>
<size> </property>
<width>64</width> <property name="maximumSize">
<height>64</height> <size>
</size> <width>64</width>
</property> <height>64</height>
<property name="text"> </size>
<string/> </property>
</property> <property name="text">
<property name="icon"> <string/>
<iconset resource="../images.qrc"> </property>
<normaloff>:/images/folder_inbox64.png</normaloff>:/images/folder_inbox64.png</iconset> <property name="icon">
</property> <iconset resource="../images.qrc">
<property name="iconSize"> <normaloff>:/images/folder_inbox64.png</normaloff>:/images/folder_inbox64.png</iconset>
<size> </property>
<width>64</width> <property name="iconSize">
<height>64</height> <size>
</size> <width>64</width>
</property> <height>64</height>
<property name="autoRaise"> </size>
<bool>true</bool> </property>
</property> <property name="autoRaise">
</widget> <bool>true</bool>
<widget class="QLineEdit" name="subjectline"> </property>
<property name="enabled"> </widget>
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>70</x>
<y>30</y>
<width>211</width>
<height>20</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: transparent;
border: none;
color: black;</string>
</property>
<property name="text">
<string>Subject</string>
</property>
</widget>
<widget class="QTextBrowser" name="contentBrowser">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>70</x>
<y>50</y>
<width>191</width>
<height>60</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: transparent;
border: none;</string>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="html">
<string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Message&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QToolButton" name="openmessagebtn">
<property name="geometry">
<rect>
<x>260</x>
<y>60</y>
<width>31</width>
<height>31</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>Play video</string>
</property>
<property name="whatsThis">
<string/>
</property>
<property name="accessibleName">
<string>Play button</string>
</property>
<property name="accessibleDescription">
<string>Play the downloaded video</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../images.qrc">
<normaloff>:/images/evolution.png</normaloff>:/images/evolution.png</iconset>
</property>
<property name="iconSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</widget>
</item>
</layout>
<widget class="QLabel" name="lblTitle"> <widget class="QLabel" name="lblTitle">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>28</x> <x>40</x>
<y>1</y> <y>10</y>
<width>121</width> <width>221</width>
<height>20</height> <height>16</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
@ -196,8 +108,8 @@ p, li { white-space: pre-wrap; }
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>4</x> <x>10</x>
<y>3</y> <y>10</y>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -215,8 +127,8 @@ p, li { white-space: pre-wrap; }
<widget class="QToolButton" name="closebtn"> <widget class="QToolButton" name="closebtn">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>279</x> <x>270</x>
<y>1</y> <y>10</y>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
</rect> </rect>
@ -238,37 +150,80 @@ p, li { white-space: pre-wrap; }
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../images.qrc">
<normaloff>:/images/delete.png</normaloff>:/images/delete.png</iconset> <normaloff>:/images/closenormal.png</normaloff>:/images/closenormal.png</iconset>
</property> </property>
<property name="autoRaise"> <property name="autoRaise">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="namelabel"> <widget class="QTextBrowser" name="contentBrowser">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>150</x> <x>80</x>
<y>0</y> <y>50</y>
<width>111</width> <width>201</width>
<height>21</height> <height>41</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="autoFillBackground">
<string/> <bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: transparent;
border: none;</string>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="html">
<string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Message&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLineEdit" name="subjectline">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>80</x>
<y>30</y>
<width>201</width>
<height>20</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: transparent;
border: none;
color: black;</string>
</property>
<property name="text">
<string>Subject</string>
</property> </property>
</widget> </widget>
<zorder>frame</zorder>
<zorder>lblTitle</zorder>
<zorder>label</zorder>
<zorder>closebtn</zorder>
<zorder>namelabel</zorder>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>openmessagebtn</tabstop>
<tabstop>closebtn</tabstop> <tabstop>closebtn</tabstop>
</tabstops> </tabstops>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -39,8 +39,8 @@ OnlineToaster::OnlineToaster(const std::string &peerId, const QString &name, con
ui.messageLabel->setText(name); ui.messageLabel->setText(name);
ui.pixmaplabel->setPixmap(avatar); ui.pixmaplabel->setPixmap(avatar);
WidgetBackgroundImage::setBackgroundImage(ui.windowFrame, ":images/toaster/toaster-backrs4.png", WidgetBackgroundImage::AdjustSize); WidgetBackgroundImage::setBackgroundImage(ui.windowFrame, ":images/toaster/backgroundtoaster.png", WidgetBackgroundImage::AdjustSize);
resize(184, 128); resize(300, 100);
play(); play();
} }

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>388</width> <width>300</width>
<height>168</height> <height>100</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout"> <layout class="QGridLayout">
@ -20,7 +20,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QFrame" name="windowFrame"> <widget class="QFrame" name="windowFrame">
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::StyledPanel</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Raised</enum> <enum>QFrame::Raised</enum>
@ -34,13 +34,25 @@
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
<layout class="QGridLayout"> <layout class="QGridLayout">
<property name="margin"> <property name="leftMargin">
<number>6</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<property name="spacing"> <property name="horizontalSpacing">
<number>6</number>
</property>
<property name="verticalSpacing">
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="2"> <item row="0" column="3">
<widget class="QPushButton" name="closeButton"> <widget class="QPushButton" name="closeButton">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
@ -56,7 +68,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../images.qrc">
<normaloff>:/images/close-down.png</normaloff>:/images/close-down.png</iconset> <normaloff>:/images/closenormal.png</normaloff>:/images/closenormal.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -69,50 +81,99 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="2">
<spacer> <spacer>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>225</width> <width>20</width>
<height>22</height> <height>22</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="../images.qrc">:/images/rstray3.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<pointsize>9</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>RetroShare</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<layout class="QGridLayout"> <layout class="QGridLayout">
<property name="leftMargin"> <property name="leftMargin">
<number>4</number> <number>6</number>
</property> </property>
<property name="topMargin"> <property name="topMargin">
<number>2</number> <number>2</number>
</property> </property>
<property name="rightMargin"> <property name="rightMargin">
<number>4</number> <number>6</number>
</property> </property>
<property name="bottomMargin"> <property name="bottomMargin">
<number>2</number>
</property>
<property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0" rowspan="3"> <property name="horizontalSpacing">
<number>9</number>
</property>
<property name="verticalSpacing">
<number>0</number>
</property>
<item row="1" column="1" rowspan="2">
<widget class="QLabel" name="messageLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="4">
<widget class="QLabel" name="pixmaplabel"> <widget class="QLabel" name="pixmaplabel">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>74</width> <width>70</width>
<height>74</height> <height>70</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>74</width> <width>70</width>
<height>74</height> <height>70</height>
</size> </size>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -133,19 +194,6 @@ border-radius: 4px;}
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>121</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="messageButton"> <widget class="QPushButton" name="messageButton">
<property name="font"> <property name="font">
<font> <font>
@ -161,15 +209,15 @@ border-radius: 4px;}
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="3" column="1">
<spacer> <spacer>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>121</width> <width>20</width>
<height>20</height> <height>10</height>
</size> </size>
</property> </property>
</spacer> </spacer>
@ -177,54 +225,14 @@ border-radius: 4px;}
</layout> </layout>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<layout class="QGridLayout">
<property name="topMargin">
<number>6</number>
</property>
<item row="0" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>81</width>
<height>18</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QLabel" name="messageLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>131</width>
<height>18</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="3" column="0">
<spacer> <spacer>
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>384</width> <width>100</width>
<height>61</height> <height>40</height>
</size> </size>
</property> </property>
</spacer> </spacer>
@ -235,14 +243,11 @@ border-radius: 4px;}
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>messageButton</tabstop>
<tabstop>closeButton</tabstop> <tabstop>closeButton</tabstop>
</tabstops> </tabstops>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
<include location="../images.qrc"/> <include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>