From ba6260d9cbeed9930950ec343135964023b18d43 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 28 Jan 2009 01:24:41 +0000 Subject: [PATCH] * 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 --- retroshare-gui/src/gui/MainWindow.cpp | 2 +- retroshare-gui/src/gui/SharedFilesDialog.cpp | 6 +- retroshare-gui/src/gui/SharedFilesDialog.h | 2 +- retroshare-gui/src/gui/SharedFilesDialog.ui | 220 ++++++++----------- 4 files changed, 93 insertions(+), 137 deletions(-) diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index 7b54c0f32..0b8bbdb3d 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -64,7 +64,7 @@ #include #include -#define FONT QFont(tr("Arial"), 8) +#define FONT QFont(tr("Arial"), 9) /* Images for toolbar icons */ #define IMAGE_NETWORK ":/images/retrosharelogo1.png" diff --git a/retroshare-gui/src/gui/SharedFilesDialog.cpp b/retroshare-gui/src/gui/SharedFilesDialog.cpp index 3cc8078ee..c2d145890 100644 --- a/retroshare-gui/src/gui/SharedFilesDialog.cpp +++ b/retroshare-gui/src/gui/SharedFilesDialog.cpp @@ -67,7 +67,7 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent) 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 ) ) ); @@ -464,7 +464,7 @@ void SharedFilesDialog::shareddirtreeWidgetCostumPopupMenu( QPoint point ) /** Toggles the Lokal TreeView on and off, changes toggle button text - */ + void SharedFilesDialog::showFrame(bool show) { if (show) { @@ -478,5 +478,5 @@ void SharedFilesDialog::showFrame(bool show) ui.frameButton->setToolTip(tr("Show Lokal Directories")); ui.frameButton->setIcon(QIcon(tr(":images/show_toolbox_frame.png"))); } -} +}*/ diff --git a/retroshare-gui/src/gui/SharedFilesDialog.h b/retroshare-gui/src/gui/SharedFilesDialog.h index b62108d51..0e89245ff 100644 --- a/retroshare-gui/src/gui/SharedFilesDialog.h +++ b/retroshare-gui/src/gui/SharedFilesDialog.h @@ -59,7 +59,7 @@ private slots: void downloadRemoteSelected(); // void addMsgRemoteSelected(); - void showFrame(bool show); + //void showFrame(bool show); // void recommendfile(); diff --git a/retroshare-gui/src/gui/SharedFilesDialog.ui b/retroshare-gui/src/gui/SharedFilesDialog.ui index 515f1edf3..eaa3abffb 100644 --- a/retroshare-gui/src/gui/SharedFilesDialog.ui +++ b/retroshare-gui/src/gui/SharedFilesDialog.ui @@ -487,27 +487,18 @@ Qt::NoContextMenu - - + + + 0 + + - + 0 - - 0 - - - 0 - - - 0 - - - 6 - - + 6 @@ -537,7 +528,7 @@ p, li { white-space: pre-wrap; } Qt::Horizontal - + 271 20 @@ -561,95 +552,88 @@ p, li { white-space: pre-wrap; } - - - + + + 0 - - 0 - - - - - - 14 - 31 - - - - - 14 - 31 - - - - - - - :/images/hide_toolbox_frame.png - - - - 14 - 31 - - - - true - - - true - - - - - - - Qt::Vertical - - - - 14 - 321 - - - - - - - - - - Qt::Horizontal - - - 5 - - - - QFrame::StyledPanel + + + + 0 + 0 + 526 + 322 + - - QFrame::Raised + + Friends Share + + + + :/images/fileshare16.png:/images/fileshare16.png + + + + 0 + + + 0 + + + + + + 4 + 0 + + + + Qt::CustomContextMenu + + + true + + + QAbstractItemView::DragOnly + + + false + + + 0 + + + true + + + true + + + + + + + + + 0 + 0 + 526 + 300 + - - - 0 - - - 0 - - - 0 - - - 0 - + + My Shared Files + + + + :/images/folder16.png:/images/folder16.png + + 0 - + 0 @@ -685,38 +669,9 @@ p, li { white-space: pre-wrap; } - - - - 4 - 0 - - - - Qt::CustomContextMenu - - - true - - - QAbstractItemView::DragOnly - - - false - - - 0 - - - true - - - true - - - + @@ -737,16 +692,17 @@ p, li { white-space: pre-wrap; } Download - :/images/download16.png + + :/images/download16.png:/images/download16.png - + Qt::Horizontal - + 391 20