diff --git a/retroshare-gui/src/gui/HomePage.cpp b/retroshare-gui/src/gui/HomePage.cpp index 3003f7e3e..104f7af1d 100644 --- a/retroshare-gui/src/gui/HomePage.cpp +++ b/retroshare-gui/src/gui/HomePage.cpp @@ -24,6 +24,7 @@ #include "gui/notifyqt.h" #include "gui/msgs/MessageComposer.h" +#include "gui/connect/ConnectFriendWizard.h" #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) #include @@ -48,6 +49,8 @@ HomePage::HomePage(QWidget *parent) : updateOwnCert(); + connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addFriend())); + QAction *CopyAction = new QAction(QIcon(),tr("Copy your Cert to Clipboard"), this); connect(CopyAction, SIGNAL(triggered()), this, SLOT(copyCert())); @@ -135,3 +138,11 @@ void HomePage::saveCert() ts << ui->userCertEdit->document()->toPlainText(); } +/** Add a Friends Text Certificate */ +void HomePage::addFriend() +{ + ConnectFriendWizard connwiz (this); + + connwiz.setStartId(ConnectFriendWizard::Page_Text); + connwiz.exec (); +} diff --git a/retroshare-gui/src/gui/HomePage.h b/retroshare-gui/src/gui/HomePage.h index 2fadff7bf..74be89afd 100644 --- a/retroshare-gui/src/gui/HomePage.h +++ b/retroshare-gui/src/gui/HomePage.h @@ -53,7 +53,7 @@ private slots: void runEmailClient(); void copyCert(); void saveCert(); - + void addFriend(); private: Ui::HomePage *ui; diff --git a/retroshare-gui/src/gui/HomePage.ui b/retroshare-gui/src/gui/HomePage.ui index 39c0dd846..def156c79 100644 --- a/retroshare-gui/src/gui/HomePage.ui +++ b/retroshare-gui/src/gui/HomePage.ui @@ -6,49 +6,34 @@ 0 0 - 771 - 560 + 886 + 584 Form - - - - - - 0 - - - 0 - - - 0 - - - 0 - - + + + + + + 0 + 0 + + + + + + + :/images/logo/logo_splash.png + + + Qt::AlignCenter + - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 20 - 268 - - - - - + 9 @@ -59,7 +44,7 @@ 2 - + @@ -80,7 +65,7 @@ - + @@ -112,7 +97,7 @@ - + @@ -122,6 +107,9 @@ + + + QPlainTextEdit::NoWrap @@ -138,36 +126,25 @@ - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 20 - 288 - - - - - - - - - - - :/images/logo/logo_splash.png - - - Qt::AlignCenter - + + + + + 0 + + + 0 + + + 0 + + + 0 + + - + @@ -184,6 +161,53 @@ private and secure decentralized commmunication platform. + + + + + + + + + + + 11 + + + + + + + You get certificate from your friend? + + + + + + + Add friends certificate + + + + :/icons/png/invite.png:/icons/png/invite.png + + + + 24 + 24 + + + + Qt::ToolButtonTextBesideIcon + + + false + + + + + + diff --git a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss index 02f1a06b0..6b92ec2f6 100644 --- a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss +++ b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss @@ -681,3 +681,8 @@ HomePage QPlainTextEdit#friendCertEdit { background: white; } +HomePage QFrame#addframe{ + border: 2px solid #0099cc; + border-radius: 6px; + background: white; +}