diff --git a/retroshare-gui/src/gui/MainWindow.ui b/retroshare-gui/src/gui/MainWindow.ui index 8f8c15adb..743d7a070 100644 --- a/retroshare-gui/src/gui/MainWindow.ui +++ b/retroshare-gui/src/gui/MainWindow.ui @@ -1052,7 +1052,7 @@ toolBar_2 - Qt::LeftToolBarArea + Qt::LeftToolBarArea|Qt::RightToolBarArea LeftToolBarArea diff --git a/retroshare-gui/src/gui/NetworkDialog.cpp b/retroshare-gui/src/gui/NetworkDialog.cpp index 8538b5146..e2d0e0c52 100644 --- a/retroshare-gui/src/gui/NetworkDialog.cpp +++ b/retroshare-gui/src/gui/NetworkDialog.cpp @@ -103,7 +103,7 @@ NetworkDialog::NetworkDialog(QWidget *parent) QTreeWidgetItem * headerItem = ui.connecttreeWidget->headerItem(); headerItem->setTextAlignment(0, Qt::AlignHCenter | Qt::AlignVCenter); headerItem->setTextAlignment(1, Qt::AlignHCenter | Qt::AlignVCenter); - headerItem->setTextAlignment(2, Qt::AlignHCenter | Qt::AlignVCenter); + headerItem->setTextAlignment(2, Qt::AlignHCenter | Qt::AlignVCenter); headerItem->setTextAlignment(3, Qt::AlignHCenter | Qt::AlignVCenter); headerItem->setTextAlignment(4, Qt::AlignHCenter | Qt::AlignVCenter); headerItem->setTextAlignment(5, Qt::AlignHCenter | Qt::AlignVCenter); @@ -126,6 +126,13 @@ NetworkDialog::NetworkDialog(QWidget *parent) setLogInfo(tr("Welcome to RetroShare."), QString::fromUtf8("blue")); + QMenu *menu = new QMenu("View"); + menu->addAction(ui.actionTabsright); + menu->addAction(ui.actionTabswest); + menu->addAction(ui.actionTabssouth); + menu->addAction(ui.actionTabsnorth); + ui.viewButton->setMenu(menu); + /* Hide platform specific features */ #ifdef Q_WS_WIN @@ -583,3 +590,23 @@ void NetworkDialog::displayInfoLogMenu(const QPoint& pos) { // XXX: Why mapToGlobal() is not enough? myLogMenu.exec(mapToGlobal(pos)+QPoint(0,320)); } + +void NetworkDialog::on_actionTabsright_activated() +{ + ui.networkTab->setTabPosition(QTabWidget::East); +} + +void NetworkDialog::on_actionTabsnorth_activated() +{ + ui.networkTab->setTabPosition(QTabWidget::North); +} + +void NetworkDialog::on_actionTabssouth_activated() +{ + ui.networkTab->setTabPosition(QTabWidget::South); +} + +void NetworkDialog::on_actionTabswest_activated() +{ + ui.networkTab->setTabPosition(QTabWidget::West); +} diff --git a/retroshare-gui/src/gui/NetworkDialog.h b/retroshare-gui/src/gui/NetworkDialog.h index ad9e6f537..c240f7ac4 100644 --- a/retroshare-gui/src/gui/NetworkDialog.h +++ b/retroshare-gui/src/gui/NetworkDialog.h @@ -17,30 +17,30 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. - ****************************************************************/ - - -#ifndef _CONNECTIONSDIALOG_H -#define _CONNECTIONSDIALOG_H - -#include + ****************************************************************/ + + +#ifndef _CONNECTIONSDIALOG_H +#define _CONNECTIONSDIALOG_H + +#include //#include - -#include "mainpage.h" -#include "ui_NetworkDialog.h" + +#include "mainpage.h" +#include "ui_NetworkDialog.h" #include "connect/ConnectDialog.h" - -class NetworkDialog : public MainPage -{ - Q_OBJECT - -public: - /** Default Constructor */ - NetworkDialog(QWidget *parent = 0); - /** Default Destructor */ + +class NetworkDialog : public MainPage +{ + Q_OBJECT + +public: + /** Default Constructor */ + NetworkDialog(QWidget *parent = 0); + /** Default Destructor */ void showpeerdetails(std::string id); @@ -48,52 +48,58 @@ public slots: void insertConnect(); std::string loadneighbour(); /* void loadneighbour(); */ - void setLogInfo(QString info, QColor color=QApplication::palette().color(QPalette::WindowText)); + void setLogInfo(QString info, QColor color=QApplication::palette().color(QPalette::WindowText)); private slots: - + void makeFriend() ; void denyFriend() ; void deleteCert() ; - void peerdetails(); - /** Create the context popup menu and it's submenus */ + void peerdetails(); + /** Create the context popup menu and it's submenus */ void connecttreeWidgetCostumPopupMenu( QPoint point ); - /** Called when user clicks "Load Cert" to choose location of a Cert file */ - void loadcert(); + /** Called when user clicks "Load Cert" to choose location of a Cert file */ + void loadcert(); void authneighbour(); void addneighbour(); - void on_actionClearLog_triggered(); + void on_actionClearLog_triggered(); void displayInfoLogMenu(const QPoint& pos); + + void on_actionTabsright_activated(); + void on_actionTabsnorth_activated(); + void on_actionTabssouth_activated(); + void on_actionTabswest_activated(); + private: QTreeWidgetItem *getCurrentNeighbour(); - /** Define the popup menus for the Context menu */ - QMenu* contextMnu; - /** Defines the actions for the context menu */ - QAction* peerdetailsAct; - QAction* denyFriendAct; - QAction* deleteCertAct; - QAction* makefriendAct; + /** Define the popup menus for the Context menu */ + QMenu* contextMnu; + /** Defines the actions for the context menu */ + QAction* peerdetailsAct; + QAction* denyFriendAct; + QAction* deleteCertAct; + QAction* makefriendAct; QAction* authAct; - QAction* loadcertAct; - + QAction* loadcertAct; + /* connection dialog */ ConnectDialog *connectdialog; QTreeWidget *connecttreeWidget; class NetworkView *networkview; - - /** Qt Designer generated object */ - Ui::NetworkDialog ui; -}; - -#endif - + + /** Qt Designer generated object */ + Ui::NetworkDialog ui; +}; + +#endif + diff --git a/retroshare-gui/src/gui/NetworkDialog.ui b/retroshare-gui/src/gui/NetworkDialog.ui index bbd7ceaf4..129606e7c 100644 --- a/retroshare-gui/src/gui/NetworkDialog.ui +++ b/retroshare-gui/src/gui/NetworkDialog.ui @@ -85,6 +85,13 @@ p, li { white-space: pre-wrap; } + + + + View + + + @@ -231,6 +238,26 @@ p, li { white-space: pre-wrap; } Clear + + + Set Tabs Right + + + + + Set Tabs North + + + + + Set Tabs South + + + + + Set Tabs Left + +