From 095995f3e3ce1663482195a1758809d4a6cd433f Mon Sep 17 00:00:00 2001 From: drbob Date: Sun, 1 Jun 2014 09:36:56 +0000 Subject: [PATCH] Added Posted Dialog back into GUI. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7395 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MainWindow.cpp | 6 +++--- retroshare-gui/src/gui/Posted/PostedDialog.h | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index 6ff4cea09..edf315b68 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -412,9 +412,9 @@ void MainWindow::initStackedPage() //notify.push_back(QPair(gxsforumDialog, action)); addPage(gxsforumDialog = new GxsForumsDialog(ui->stackPages), grp, ¬ify); - //PostedDialog *postedDialog = NULL; - //addPage(postedDialog = new PostedDialog(ui->stackPages), grp, ¬ify); - //postedDialog->setup(); + PostedDialog *postedDialog = NULL; + addPage(postedDialog = new PostedDialog(ui->stackPages), grp, ¬ify); + postedDialog->setup(); WikiDialog *wikiDialog = NULL; addPage(wikiDialog = new WikiDialog(ui->stackPages), grp, ¬ify); diff --git a/retroshare-gui/src/gui/Posted/PostedDialog.h b/retroshare-gui/src/gui/Posted/PostedDialog.h index 1289b7b15..1403ccfa7 100644 --- a/retroshare-gui/src/gui/Posted/PostedDialog.h +++ b/retroshare-gui/src/gui/Posted/PostedDialog.h @@ -30,6 +30,8 @@ #include "gui/Posted/PostedListDialog.h" #include "gui/Posted/PostedItem.h" +#define IMAGE_POSTED ":/images/wikibook_32.png" + class PostedDialog : public GxsCommentContainer { Q_OBJECT @@ -38,6 +40,11 @@ public: PostedDialog(QWidget *parent = 0) :GxsCommentContainer(parent) { return; } + virtual QIcon iconPixmap() const { return QIcon(IMAGE_POSTED) ; } //MainPage + virtual QString pageName() const { return tr("Posted") ; } //MainPage + virtual QString helpText() const { return ""; } //MainPage + + virtual GxsServiceDialog *createServiceDialog() { return new PostedListDialog(this);