diff --git a/retroshare-gui/src/gui/FriendsDialog.cpp b/retroshare-gui/src/gui/FriendsDialog.cpp index f2da31f00..25d654da8 100644 --- a/retroshare-gui/src/gui/FriendsDialog.cpp +++ b/retroshare-gui/src/gui/FriendsDialog.cpp @@ -173,6 +173,12 @@ FriendsDialog::FriendsDialog(QWidget *parent) // // ui.menutoolButton->setMenu(menu); + QToolButton *addFriendButton = new QToolButton(this); + addFriendButton->setIcon(QIcon(":/images/user/add_user24.png")); + addFriendButton->setToolTip(tr("Add Friend")); + connect(addFriendButton, SIGNAL(clicked()), this, SLOT(addFriend())); + ui.friendList->addToolButton(addFriendButton); + setAcceptDrops(true); ui.lineEdit->setAcceptDrops(false); ui.hashBox->setDropWidget(this); diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index f2817c0e8..ba3be3119 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -229,21 +229,6 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags) applicationWindow->hide(); #endif - /** Left Side ToolBar**/ - connect(actionAdd_Friend, SIGNAL(triggered() ), this , SLOT( addFriend() ) ); - connect(actionAdd_Share, SIGNAL(triggered() ), this , SLOT( openShareManager() ) ); - connect(actionOptions, SIGNAL(triggered()), this, SLOT( showSettings()) ); -// connect(actionMessenger, SIGNAL(triggered()), this, SLOT( showMessengerWindow()) ); - connect(actionServicePermissions, SIGNAL(triggered()), this, SLOT(servicePermission())); - - actionMessenger->setVisible(false); - - connect(actionAbout, SIGNAL(triggered()), this, SLOT( showabout()) ); - //connect(actionColor, SIGNAL(triggered()), this, SLOT( setStyle()) ); - - /** adjusted quit behaviour: trigger a warning that can be switched off in the saved - config file RetroShare.conf */ - connect(actionQuit, SIGNAL(triggered()), this, SLOT(doQuit())); QList > notify; @@ -255,8 +240,6 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags) action = createPageAction(QIcon(IMAGE_NEWSFEED), tr("News feed"), grp)); notify.push_back(QPair(newsFeed, action)); -// stackPages->add(networkDialog = new NetworkDialog(stackPages), -// createPageAction(QIcon(IMAGE_NETWORK2), tr("Network"), grp)); stackPages->add(friendsDialog = new FriendsDialog(stackPages), action = createPageAction(QIcon(IMAGE_PEERS), tr("Network"), grp)); @@ -270,9 +253,6 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags) stackPages->add(circlesDialog = new CirclesDialog(stackPages), createPageAction(QIcon(IMAGE_CIRCLES ), tr("Circles"), grp)); notify.push_back(QPair(circlesDialog, action)); -// stackPages->add(searchDialog = new SearchDialog(stackPages), -// createPageAction(QIcon(IMAGE_SEARCH), tr("Search"), grp)); - stackPages->add(transfersDialog = new TransfersDialog(stackPages), action = createPageAction(QIcon(IMAGE_TRANSFERS), tr("File sharing"), grp)); notify.push_back(QPair(transfersDialog, action)); @@ -356,6 +336,11 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags) addAction(new QAction(QIcon(IMAGE_UNFINISHED), tr("Unfinished"), toolBar), SLOT(showApplWindow())); #endif + addAction(new QAction(QIcon(IMAGE_OPTIONS), tr("Options"), toolBar), SLOT(showSettings())); + addAction(new QAction(QIcon(IMAGE_ABOUT), tr("About"), toolBar), SLOT(showabout())); + addAction(new QAction(QIcon(IMAGE_QUIT), tr("Quit"), toolBar), SLOT(doQuit())); + + stackPages->setCurrentIndex(Settings->getLastPageInMainWindow()); /** StatusBar section ********/ diff --git a/retroshare-gui/src/gui/MainWindow.ui b/retroshare-gui/src/gui/MainWindow.ui index 9255b555b..b880d232f 100644 --- a/retroshare-gui/src/gui/MainWindow.ui +++ b/retroshare-gui/src/gui/MainWindow.ui @@ -15,7 +15,16 @@ - + + 0 + + + 0 + + + 0 + + 0 @@ -38,26 +47,6 @@ false - - - Qt::CustomContextMenu - - - LeftToolBarArea - - - false - - - - - - - - - - - diff --git a/retroshare-gui/src/gui/common/FriendList.ui b/retroshare-gui/src/gui/common/FriendList.ui index d1d78da1e..a9503f12c 100644 --- a/retroshare-gui/src/gui/common/FriendList.ui +++ b/retroshare-gui/src/gui/common/FriendList.ui @@ -14,7 +14,16 @@ 0 - + + 0 + + + 0 + + + 0 + + 0 @@ -29,7 +38,16 @@ 3 - + + 2 + + + 2 + + + 2 + + 2 @@ -55,8 +73,8 @@ - 32 - 16 + 24 + 24