Added Posted Dialog back into GUI.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7395 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2014-06-01 09:36:56 +00:00
parent 8d721c7a95
commit 095995f3e3
2 changed files with 10 additions and 3 deletions

View File

@ -412,9 +412,9 @@ void MainWindow::initStackedPage()
//notify.push_back(QPair<MainPage*, QAction*>(gxsforumDialog, action)); //notify.push_back(QPair<MainPage*, QAction*>(gxsforumDialog, action));
addPage(gxsforumDialog = new GxsForumsDialog(ui->stackPages), grp, &notify); addPage(gxsforumDialog = new GxsForumsDialog(ui->stackPages), grp, &notify);
//PostedDialog *postedDialog = NULL; PostedDialog *postedDialog = NULL;
//addPage(postedDialog = new PostedDialog(ui->stackPages), grp, &notify); addPage(postedDialog = new PostedDialog(ui->stackPages), grp, &notify);
//postedDialog->setup(); postedDialog->setup();
WikiDialog *wikiDialog = NULL; WikiDialog *wikiDialog = NULL;
addPage(wikiDialog = new WikiDialog(ui->stackPages), grp, &notify); addPage(wikiDialog = new WikiDialog(ui->stackPages), grp, &notify);

View File

@ -30,6 +30,8 @@
#include "gui/Posted/PostedListDialog.h" #include "gui/Posted/PostedListDialog.h"
#include "gui/Posted/PostedItem.h" #include "gui/Posted/PostedItem.h"
#define IMAGE_POSTED ":/images/wikibook_32.png"
class PostedDialog : public GxsCommentContainer class PostedDialog : public GxsCommentContainer
{ {
Q_OBJECT Q_OBJECT
@ -38,6 +40,11 @@ public:
PostedDialog(QWidget *parent = 0) PostedDialog(QWidget *parent = 0)
:GxsCommentContainer(parent) { return; } :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() virtual GxsServiceDialog *createServiceDialog()
{ {
return new PostedListDialog(this); return new PostedListDialog(this);