added for ShareManager and CreateForum stylesheet background images

little redesign CreateForum

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1527 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-08-13 13:35:18 +00:00
parent e56f29ce92
commit 129842f0a9
6 changed files with 272 additions and 242 deletions

View File

@ -56,7 +56,7 @@
#define IMAGE_FOLDERRED ":/images/folder_red.png" #define IMAGE_FOLDERRED ":/images/folder_red.png"
#define IMAGE_FOLDERYELLOW ":/images/folder_yellow.png" #define IMAGE_FOLDERYELLOW ":/images/folder_yellow.png"
#define IMAGE_FORUM ":/images/konversation16.png" #define IMAGE_FORUM ":/images/konversation16.png"
#define IMAGE_SUBSCRIBE ":/images/accepted16.png" #define IMAGE_SUBSCRIBE ":/images/edit_add24.png"
#define IMAGE_UNSUBSCRIBE ":/images/cancel.png" #define IMAGE_UNSUBSCRIBE ":/images/cancel.png"
#define IMAGE_INFO ":/images/info16.png" #define IMAGE_INFO ":/images/info16.png"
#define IMAGE_NEWFORUM ":/images/new_forum16.png" #define IMAGE_NEWFORUM ":/images/new_forum16.png"
@ -756,7 +756,7 @@ void ForumsDialog::markMsgAsRead()
void ForumsDialog::newforum() void ForumsDialog::newforum()
{ {
CreateForum *cf = new CreateForum(NULL, true); static CreateForum *cf = new CreateForum(this);
cf->show(); cf->show();
} }

View File

@ -20,6 +20,9 @@
<layout class="QGridLayout"> <layout class="QGridLayout">
<item row="0" column="0" colspan="4"> <item row="0" column="0" colspan="4">
<layout class="QGridLayout"> <layout class="QGridLayout">
<property name="horizontalSpacing">
<number>0</number>
</property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="piclabel"> <widget class="QLabel" name="piclabel">
<property name="minimumSize"> <property name="minimumSize">
@ -34,6 +37,9 @@
<height>48</height> <height>48</height>
</size> </size>
</property> </property>
<property name="styleSheet">
<string notr="true">background-image: url(:/images/connect/connectFriendBanner.png)v</string>
</property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
@ -44,12 +50,16 @@
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="styleSheet">
<string notr="true">background-image: url(:/images/connect/connectFriendBanner.png)</string>
</property>
<property name="text"> <property name="text">
<string>&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; <string>&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; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:9pt; 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:16pt; font-weight:600; color:#32cd32;&quot;&gt;Share Manager&lt;/span&gt;&lt;/p&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-family:'Sans Serif'; font-size:16pt; font-weight:600; color:#32cd32;&quot;&gt; Share Manager&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:16pt;&quot;&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Add a new Folder to Share with your Friends or remove a Shared Folder.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &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-family:'Sans Serif'; font-size:10pt;&quot;&gt; Add a new Folder to Share with your Friends or remove a Shared Folder.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -93,9 +103,6 @@ p, li { white-space: pre-wrap; }
<attribute name="verticalHeaderDefaultSectionSize"> <attribute name="verticalHeaderDefaultSectionSize">
<number>22</number> <number>22</number>
</attribute> </attribute>
<attribute name="verticalHeaderDefaultSectionSize">
<number>22</number>
</attribute>
<column> <column>
<property name="text"> <property name="text">
<string>Directory</string> <string>Directory</string>

View File

@ -28,7 +28,7 @@
/** Constructor */ /** Constructor */
CreateForum::CreateForum(QWidget *parent, bool isForum) CreateForum::CreateForum(QWidget *parent, bool isForum)
: QWidget(parent), mIsForum(isForum) : QDialog(parent), mIsForum(isForum)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */
ui.setupUi(this); ui.setupUi(this);

View File

@ -27,7 +27,7 @@
#include "ui_CreateForum.h" #include "ui_CreateForum.h"
class CreateForum : public QWidget class CreateForum : public QDialog
{ {
Q_OBJECT Q_OBJECT

View File

@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>CreateForum</class> <class>CreateForum</class>
<widget class="QWidget" name="CreateForum" > <widget class="QDialog" name="CreateForum">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>480</width> <width>490</width>
<height>428</height> <height>414</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -505,8 +506,48 @@
<iconset resource="../images.qrc"> <iconset resource="../images.qrc">
<normaloff>:/images/rstray3.png</normaloff>:/images/rstray3.png</iconset> <normaloff>:/images/rstray3.png</normaloff>:/images/rstray3.png</iconset>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QGridLayout" name="gridLayout_2">
<item> <item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<property name="horizontalSpacing">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="maximumSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-image: url(:/images/connect/connectFriendBanner.png)</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="../images.qrc">:/images/konversation64.png</pixmap>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_3">
<property name="styleSheet">
<string notr="true">background-image: url(:/images/connect/connectFriendBanner.png)</string>
</property>
<property name="text">
<string>&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:'DejaVu Sans'; font-size:9pt; 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-family:'Arial'; font-size:24pt; font-weight:600; color:#00ff00;&quot;&gt; Create a new Forum&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
@ -520,7 +561,7 @@
</item> </item>
</layout> </layout>
</item> </item>
<item> <item row="2" column="0">
<layout class="QVBoxLayout"> <layout class="QVBoxLayout">
<item> <item>
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
@ -534,7 +575,7 @@
</item> </item>
</layout> </layout>
</item> </item>
<item> <item row="3" column="0">
<widget class="QGroupBox" name="tyoeGroupBox"> <widget class="QGroupBox" name="tyoeGroupBox">
<property name="title"> <property name="title">
<string>Type:</string> <string>Type:</string>
@ -564,7 +605,7 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item> <item row="4" column="0">
<widget class="QGroupBox" name="msgGroupBox"> <widget class="QGroupBox" name="msgGroupBox">
<property name="title"> <property name="title">
<string>Allowed Messages</string> <string>Allowed Messages</string>
@ -587,7 +628,7 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item> <item row="6" column="0">
<layout class="QHBoxLayout"> <layout class="QHBoxLayout">
<item> <item>
<spacer> <spacer>
@ -609,19 +650,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer>
<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> <item>
<widget class="QPushButton" name="createButton"> <widget class="QPushButton" name="createButton">
<property name="text"> <property name="text">
@ -632,20 +660,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> </layout>
<spacer> </item>
<item row="5" column="0">
<widget class="Line" name="line">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0" > </widget>
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -200,6 +200,7 @@
<file>images/konversation.png</file> <file>images/konversation.png</file>
<file>images/konversation16.png</file> <file>images/konversation16.png</file>
<file>images/konversation128.png</file> <file>images/konversation128.png</file>
<file>images/konversation64.png</file>
<file>images/ksysguard.png</file> <file>images/ksysguard.png</file>
<file>images/ksysguard32.png</file> <file>images/ksysguard32.png</file>
<file>images/ktorrent.png</file> <file>images/ktorrent.png</file>