* redesign SharedFiles dialog with Tabs

* Set Font Size for MainWindow ToolBar to 9

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@958 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-01-28 01:24:41 +00:00
parent 3012683143
commit ba6260d9cb
4 changed files with 93 additions and 137 deletions

View File

@ -64,7 +64,7 @@
#include <iomanip> #include <iomanip>
#include <unistd.h> #include <unistd.h>
#define FONT QFont(tr("Arial"), 8) #define FONT QFont(tr("Arial"), 9)
/* Images for toolbar icons */ /* Images for toolbar icons */
#define IMAGE_NETWORK ":/images/retrosharelogo1.png" #define IMAGE_NETWORK ":/images/retrosharelogo1.png"

View File

@ -67,7 +67,7 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent)
connect(ui.checkButton, SIGNAL(clicked()), this, SLOT(forceCheck())); connect(ui.checkButton, SIGNAL(clicked()), this, SLOT(forceCheck()));
connect(ui.frameButton, SIGNAL(toggled(bool)), this, SLOT(showFrame(bool))); //connect(ui.frameButton, SIGNAL(toggled(bool)), this, SLOT(showFrame(bool)));
connect( ui.localDirTreeView, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( shareddirtreeWidgetCostumPopupMenu( QPoint ) ) ); connect( ui.localDirTreeView, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( shareddirtreeWidgetCostumPopupMenu( QPoint ) ) );
@ -464,7 +464,7 @@ void SharedFilesDialog::shareddirtreeWidgetCostumPopupMenu( QPoint point )
/** /**
Toggles the Lokal TreeView on and off, changes toggle button text Toggles the Lokal TreeView on and off, changes toggle button text
*/
void SharedFilesDialog::showFrame(bool show) void SharedFilesDialog::showFrame(bool show)
{ {
if (show) { if (show) {
@ -478,5 +478,5 @@ void SharedFilesDialog::showFrame(bool show)
ui.frameButton->setToolTip(tr("Show Lokal Directories")); ui.frameButton->setToolTip(tr("Show Lokal Directories"));
ui.frameButton->setIcon(QIcon(tr(":images/show_toolbox_frame.png"))); ui.frameButton->setIcon(QIcon(tr(":images/show_toolbox_frame.png")));
} }
} }*/

View File

@ -59,7 +59,7 @@ private slots:
void downloadRemoteSelected(); void downloadRemoteSelected();
// void addMsgRemoteSelected(); // void addMsgRemoteSelected();
void showFrame(bool show); //void showFrame(bool show);
// void recommendfile(); // void recommendfile();

View File

@ -487,27 +487,18 @@
<property name="contextMenuPolicy" > <property name="contextMenuPolicy" >
<enum>Qt::NoContextMenu</enum> <enum>Qt::NoContextMenu</enum>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" name="gridLayout_3" >
<item row="0" column="0" colspan="3" > <property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" colspan="2" >
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<item> <item>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="leftMargin" > <property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<property name="topMargin" > <property name="spacing" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number> <number>6</number>
</property> </property>
<item row="0" column="0" > <item row="0" column="0" >
@ -537,7 +528,7 @@ p, li { white-space: pre-wrap; }
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>271</width> <width>271</width>
<height>20</height> <height>20</height>
@ -561,95 +552,88 @@ p, li { white-space: pre-wrap; }
</item> </item>
</layout> </layout>
</item> </item>
<item row="1" column="0" > <item row="1" column="0" colspan="2" >
<layout class="QGridLayout" > <widget class="QTabWidget" name="filestabWidget" >
<property name="horizontalSpacing" > <property name="currentIndex" >
<number>0</number> <number>0</number>
</property> </property>
<property name="verticalSpacing" > <widget class="QWidget" name="tab" >
<number>0</number> <property name="geometry" >
</property> <rect>
<item row="0" column="0" > <x>0</x>
<widget class="QPushButton" name="frameButton" > <y>0</y>
<property name="minimumSize" > <width>526</width>
<size> <height>322</height>
<width>14</width> </rect>
<height>31</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>14</width>
<height>31</height>
</size>
</property>
<property name="text" >
<string/>
</property>
<property name="icon" >
<iconset resource="images.qrc" >:/images/hide_toolbox_frame.png</iconset>
</property>
<property name="iconSize" >
<size>
<width>14</width>
<height>31</height>
</size>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>14</width>
<height>321</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1" colspan="2" >
<widget class="QSplitter" name="splitter" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="handleWidth" >
<number>5</number>
</property>
<widget class="QFrame" name="frame" >
<property name="frameShape" >
<enum>QFrame::StyledPanel</enum>
</property> </property>
<property name="frameShadow" > <attribute name="title" >
<enum>QFrame::Raised</enum> <string>Friends Share</string>
</attribute>
<attribute name="icon" >
<iconset resource="images.qrc" >
<normaloff>:/images/fileshare16.png</normaloff>:/images/fileshare16.png</iconset>
</attribute>
<layout class="QGridLayout" name="gridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QTreeView" name="remoteDirTreeView" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>4</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="dragEnabled" >
<bool>true</bool>
</property>
<property name="dragDropMode" >
<enum>QAbstractItemView::DragOnly</enum>
</property>
<property name="alternatingRowColors" >
<bool>false</bool>
</property>
<property name="autoExpandDelay" >
<number>0</number>
</property>
<property name="itemsExpandable" >
<bool>true</bool>
</property>
<property name="sortingEnabled" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>526</width>
<height>300</height>
</rect>
</property> </property>
<layout class="QGridLayout" > <attribute name="title" >
<property name="leftMargin" > <string>My Shared Files</string>
<number>0</number> </attribute>
</property> <attribute name="icon" >
<property name="topMargin" > <iconset resource="images.qrc" >
<number>0</number> <normaloff>:/images/folder16.png</normaloff>:/images/folder16.png</iconset>
</property> </attribute>
<property name="rightMargin" > <layout class="QGridLayout" name="gridLayout_2" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<property name="horizontalSpacing" > <property name="horizontalSpacing" >
<number>0</number> <number>0</number>
</property> </property>
<property name="verticalSpacing" > <property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0" > <item row="0" column="0" >
@ -685,38 +669,9 @@ p, li { white-space: pre-wrap; }
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QTreeView" name="remoteDirTreeView" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>4</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="dragEnabled" >
<bool>true</bool>
</property>
<property name="dragDropMode" >
<enum>QAbstractItemView::DragOnly</enum>
</property>
<property name="alternatingRowColors" >
<bool>false</bool>
</property>
<property name="autoExpandDelay" >
<number>0</number>
</property>
<property name="itemsExpandable" >
<bool>true</bool>
</property>
<property name="sortingEnabled" >
<bool>true</bool>
</property>
</widget>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2" > <item row="2" column="0" >
<widget class="QPushButton" name="downloadButton" > <widget class="QPushButton" name="downloadButton" >
<property name="minimumSize" > <property name="minimumSize" >
<size> <size>
@ -737,16 +692,17 @@ p, li { white-space: pre-wrap; }
<string>Download</string> <string>Download</string>
</property> </property>
<property name="icon" > <property name="icon" >
<iconset resource="images.qrc" >:/images/download16.png</iconset> <iconset resource="images.qrc" >
<normaloff>:/images/download16.png</normaloff>:/images/download16.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2" > <item row="2" column="1" >
<spacer> <spacer>
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0" >
<size> <size>
<width>391</width> <width>391</width>
<height>20</height> <height>20</height>