diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index d6e3beeea..979bdc959 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -40,6 +40,7 @@ #include "GenCertDialog.h" #include "gui/connect/ConnectFriendWizard.h" +#include "gui/forums/CreateForum.h" #include @@ -100,7 +101,9 @@ PeersDialog::PeersDialog(QWidget *parent) connect( ui.avatartoolButton, SIGNAL(clicked()), SLOT(getAvatar())); connect( ui.mypersonalstatuslabel, SIGNAL(clicked()), SLOT(statusmessage())); - + connect( ui.actionSet_your_Avatar, SIGNAL(triggered()), this, SLOT(getAvatar())); + connect( ui.actionSet_your_Personal_Message, SIGNAL(triggered()), this, SLOT(statusmessage())); + ui.peertabWidget->addTab(new ProfileWidget(),QString(tr("Profile"))); ui.peertreeWidget->setColumnCount(4); @@ -177,6 +180,12 @@ PeersDialog::PeersDialog(QWidget *parent) menu->addAction(ui.actionAdd_Friend); menu->addSeparator(); menu->addAction(ui.actionCreate_new_Profile); + menu->addSeparator(); + menu->addAction(ui.actionCreate_New_Forum); + menu->addAction(ui.actionCreate_New_Channel); + menu->addAction(ui.actionSet_your_Avatar); + menu->addAction(ui.actionSet_your_Personal_Message); + ui.menupushButton->setMenu(menu); @@ -1380,6 +1389,26 @@ void PeersDialog::on_actionCreate_new_Profile_activated() } +void PeersDialog::on_actionCreate_New_Forum_activated() +{ + static CreateForum *cf = new CreateForum(this); + cf->show(); + +} + +void PeersDialog::on_actionCreate_New_Channel_activated() +{ + CreateForum *cf = new CreateForum(NULL, false); + + cf->setWindowTitle(tr("Create a new Channel")); + cf->ui.labelicon->setPixmap(QPixmap(":/images/add_channel64.png")); + QString titleStr("%1"); + cf->ui.textlabelcreatforums->setText( titleStr.arg( tr("New Channel") ) ) ; + cf->show(); + +} + /** Loads own personal status */ void PeersDialog::loadmypersonalstatus() { diff --git a/retroshare-gui/src/gui/PeersDialog.h b/retroshare-gui/src/gui/PeersDialog.h index f7de48241..852df02ce 100644 --- a/retroshare-gui/src/gui/PeersDialog.h +++ b/retroshare-gui/src/gui/PeersDialog.h @@ -123,7 +123,9 @@ class PeersDialog : public RsAutoUpdatePage void getAvatar(); void on_actionAdd_Friend_activated(); - void on_actionCreate_new_Profile_activated(); + void on_actionCreate_new_Profile_activated(); + void on_actionCreate_New_Forum_activated(); + void on_actionCreate_New_Channel_activated(); void loadmypersonalstatus(); diff --git a/retroshare-gui/src/gui/PeersDialog.ui b/retroshare-gui/src/gui/PeersDialog.ui index 678ba49c1..03bb55042 100644 --- a/retroshare-gui/src/gui/PeersDialog.ui +++ b/retroshare-gui/src/gui/PeersDialog.ui @@ -661,9 +661,6 @@ background: white;} 200 - - 200 - Person @@ -1150,6 +1147,60 @@ background: white;} Create new Profile + + + + :/images/new_forum16.png:/images/new_forum16.png + + + Create New Forum + + + Create new Forum + + + F + + + + + + :/images/add_channel24.png:/images/add_channel24.png + + + Create New Channel + + + Create new Channel + + + C + + + + + + :/images/add_image24.png:/images/add_image24.png + + + Add your Avatar Picture + + + A + + + + + + :/images/message-news.png:/images/message-news.png + + + Set your Personal Message + + + Set your Personal Message + + diff --git a/retroshare-gui/src/gui/feeds/ChanMsgItem.ui b/retroshare-gui/src/gui/feeds/ChanMsgItem.ui index 538f05eca..8828173fe 100644 --- a/retroshare-gui/src/gui/feeds/ChanMsgItem.ui +++ b/retroshare-gui/src/gui/feeds/ChanMsgItem.ui @@ -6,8 +6,8 @@ 0 0 - 435 - 205 + 515 + 207 @@ -65,15 +65,18 @@ border-radius: 10px;} - 120 - 90 + 156 + 107 - :/images/no-preview.png + :/images/thumb-default-video.png + + + true @@ -277,6 +280,7 @@ p, li { white-space: pre-wrap; } + diff --git a/retroshare-gui/src/gui/forums/CreateForumMsg.cpp b/retroshare-gui/src/gui/forums/CreateForumMsg.cpp index fa7ccd57e..b88cadcb4 100644 --- a/retroshare-gui/src/gui/forums/CreateForumMsg.cpp +++ b/retroshare-gui/src/gui/forums/CreateForumMsg.cpp @@ -323,7 +323,7 @@ void CreateForumMsg::addAttachment(std::string filePath) { SubFileItem *file = new SubFileItem(filePath); //file-> - ui.vboxLayout->addWidget(file, 1, 0); + ui.verticalLayout->addWidget(file, 1, 0); //when the file is local or is finished hashing, call the fileHashingFinished method to send a chat message if (file->getState() == SFI_STATE_LOCAL) { diff --git a/retroshare-gui/src/gui/forums/CreateForumMsg.ui b/retroshare-gui/src/gui/forums/CreateForumMsg.ui index 138c7b9d7..4de35a3a1 100644 --- a/retroshare-gui/src/gui/forums/CreateForumMsg.ui +++ b/retroshare-gui/src/gui/forums/CreateForumMsg.ui @@ -2,12 +2,15 @@ CreateForumMsg + + Qt::NonModal + 0 0 - 441 - 353 + 482 + 406 @@ -17,135 +20,234 @@ :/images/rstray3.png:/images/rstray3.png + + QToolBar#toolBar{background-image: url(:/images/connect/connectFriendBanner.png)} + Qt::ToolButtonTextUnderIcon - + + + 0 + + + 0 + - - - - - - - Forum - - - - - - - false - - - - + + + + + QFrame::NoFrame + + + QFrame::Raised + + + + 6 + + + 6 + + + + + + + Forum + + + + + + + false + + + + + + + + + + + Forum Post Subject + + + + + + + + + + - - - - - - Forum Post Subject - - - - - - - + + + + + 16777215 + 48 + + + + QFrame#frame_2{ +background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, +stop:0 #FEFEFE, stop:1 #E8E8E8); + +border: 1px solid #CCCCCC;} + + + QFrame::Raised + + + + 6 + + + + + + + + + :/images/add-share24.png:/images/add-share24.png + + + + 24 + 24 + + + + + + + + + + + + :/smileys/smile.png:/smileys/smile.png + + + + 24 + 24 + + + + + + + + Sign Message + + + + :/images/pgp.png:/images/pgp.png + + + + 24 + 24 + + + + true + + + + + + + Qt::Horizontal + + + + 40 + 15 + + + + + + - - - - - - Forum Post - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Sign Message - - - true - - - - - - - - - - - :/images/add-share24.png:/images/add-share24.png - - - - 24 - 24 - - - - - - - - - - - - :/smileys/smile.png:/smileys/smile.png - - - - 24 - 24 - - - - - - - - + + + + QFrame::NoFrame + + + QFrame::Raised + + + + 6 + + + 6 + + + + + Forum Post + + + + + + + + + + + + true + + + + + 0 + 0 + 460 + 60 + + + + + 0 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + - - - - - 16777215 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - diff --git a/retroshare-gui/src/gui/images.qrc b/retroshare-gui/src/gui/images.qrc index 1124ba7ed..8101876be 100644 --- a/retroshare-gui/src/gui/images.qrc +++ b/retroshare-gui/src/gui/images.qrc @@ -1,6 +1,6 @@ - images/no-preview.png + images/pgp.png images/rs_wizard.png images/about.png images/irkick.png @@ -365,6 +365,7 @@ images/toaster/toaster-background.png images/toaster/toaster-backrs3.png images/toaster/toaster-backrs4.png + images/thumb-default-video.png images/user/add_user24.png images/user/friends24.png images/user/identity16.png diff --git a/retroshare-gui/src/gui/images/no-preview.png b/retroshare-gui/src/gui/images/no-preview.png deleted file mode 100644 index a30474c86..000000000 Binary files a/retroshare-gui/src/gui/images/no-preview.png and /dev/null differ diff --git a/retroshare-gui/src/gui/images/pgp.png b/retroshare-gui/src/gui/images/pgp.png new file mode 100644 index 000000000..1d9a89252 Binary files /dev/null and b/retroshare-gui/src/gui/images/pgp.png differ diff --git a/retroshare-gui/src/gui/images/thumb-default-archive.png b/retroshare-gui/src/gui/images/thumb-default-archive.png new file mode 100644 index 000000000..d82190eae Binary files /dev/null and b/retroshare-gui/src/gui/images/thumb-default-archive.png differ diff --git a/retroshare-gui/src/gui/images/thumb-default-audio.png b/retroshare-gui/src/gui/images/thumb-default-audio.png new file mode 100644 index 000000000..4fb22e167 Binary files /dev/null and b/retroshare-gui/src/gui/images/thumb-default-audio.png differ diff --git a/retroshare-gui/src/gui/images/thumb-default-docs.png b/retroshare-gui/src/gui/images/thumb-default-docs.png new file mode 100644 index 000000000..4877605d2 Binary files /dev/null and b/retroshare-gui/src/gui/images/thumb-default-docs.png differ diff --git a/retroshare-gui/src/gui/images/thumb-default-images.png b/retroshare-gui/src/gui/images/thumb-default-images.png new file mode 100644 index 000000000..45cc46ce4 Binary files /dev/null and b/retroshare-gui/src/gui/images/thumb-default-images.png differ diff --git a/retroshare-gui/src/gui/images/thumb-default-iso.png b/retroshare-gui/src/gui/images/thumb-default-iso.png new file mode 100644 index 000000000..ae111df82 Binary files /dev/null and b/retroshare-gui/src/gui/images/thumb-default-iso.png differ diff --git a/retroshare-gui/src/gui/images/thumb-default-video.png b/retroshare-gui/src/gui/images/thumb-default-video.png new file mode 100644 index 000000000..f9e0c27cb Binary files /dev/null and b/retroshare-gui/src/gui/images/thumb-default-video.png differ