mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 16:35:21 -04:00
update code to get Wiki / Wire and PhotoShare compiling again
This commit is contained in:
parent
a9f24c85a0
commit
d748278637
12 changed files with 105 additions and 27 deletions
|
@ -103,6 +103,12 @@
|
|||
#ifdef RS_USE_WIKI
|
||||
#include "gui/WikiPoos/WikiDialog.h"
|
||||
#endif
|
||||
#ifdef RS_USE_WIRE
|
||||
#include "gui/TheWire/WireDialog.h"
|
||||
#endif
|
||||
#ifdef RS_USE_PHOTO
|
||||
#include "gui/PhotoShare/PhotoShare.h"
|
||||
#endif
|
||||
#include "gui/Posted/PostedDialog.h"
|
||||
#include "gui/statistics/StatisticsWindow.h"
|
||||
|
||||
|
@ -423,6 +429,17 @@ void MainWindow::initStackedPage()
|
|||
addPage(wikiDialog = new WikiDialog(ui->stackPages), grp, ¬ify);
|
||||
#endif
|
||||
|
||||
#ifdef RS_USE_WIRE
|
||||
WireDialog *wireDialog = NULL;
|
||||
addPage(wireDialog = new WireDialog(ui->stackPages), grp, ¬ify);
|
||||
#endif
|
||||
|
||||
#ifdef RS_USE_PHOTO
|
||||
PhotoShare *photoDialog = NULL;
|
||||
addPage(photoDialog = new PhotoShare(ui->stackPages), grp, ¬ify);
|
||||
#endif
|
||||
|
||||
|
||||
std::cerr << "Looking for interfaces in existing plugins:" << std::endl;
|
||||
for(int i = 0;i<rsPlugins->nbPlugins();++i)
|
||||
{
|
||||
|
|
|
@ -61,7 +61,7 @@ void AlbumDialog::setUp()
|
|||
|
||||
|
||||
QPixmap qtn;
|
||||
GxsIdDetails::loadPixmapFromData(mAlbum.mThumbnail.data, mAlbum.mThumbnail.size, mAlbum.mThumbnail.type.c_str(),qtn);
|
||||
GxsIdDetails::loadPixmapFromData(mAlbum.mThumbnail.data, mAlbum.mThumbnail.size,qtn, GxsIdDetails::ORIGINAL);
|
||||
|
||||
if(mAlbum.mThumbnail.size != 0)
|
||||
{
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
#include "util/TokenQueue.h"
|
||||
#include "PhotoShareItemHolder.h"
|
||||
|
||||
#define IMAGE_PHOTO ":/images/lphoto.png"
|
||||
|
||||
namespace Ui {
|
||||
class PhotoShare;
|
||||
}
|
||||
|
@ -51,6 +53,10 @@ public:
|
|||
PhotoShare(QWidget *parent = 0);
|
||||
~PhotoShare();
|
||||
|
||||
virtual QIcon iconPixmap() const { return QIcon(IMAGE_PHOTO) ; }
|
||||
virtual QString pageName() const { return tr("Photo Albums") ; }
|
||||
virtual QString helpText() const { return ""; }
|
||||
|
||||
void notifySelection(PhotoShareItem* selection);
|
||||
|
||||
private slots:
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "gui/TheWire/PulseItem.h"
|
||||
#include "gui/TheWire/PulseAddDialog.h"
|
||||
|
||||
#define IMAGE_WIRE ":/images/kgames.png"
|
||||
|
||||
class WireDialog : public MainPage, public PulseHolder
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -38,6 +40,10 @@ class WireDialog : public MainPage, public PulseHolder
|
|||
public:
|
||||
WireDialog(QWidget *parent = 0);
|
||||
|
||||
virtual QIcon iconPixmap() const { return QIcon(IMAGE_WIRE) ; }
|
||||
virtual QString pageName() const { return tr("The Wire") ; }
|
||||
virtual QString helpText() const { return ""; }
|
||||
|
||||
virtual void deletePulseItem(PulseItem *, uint32_t type);
|
||||
virtual void notifySelection(PulseItem *item, int ptype);
|
||||
|
||||
|
|
|
@ -436,8 +436,8 @@ void WikiDialog::requestWikiPage(const RsGxsGrpMsgIdPair &msgId)
|
|||
uint32_t token;
|
||||
|
||||
GxsMsgReq msgIds;
|
||||
std::vector<RsGxsMessageId> &vect_msgIds = msgIds[msgId.first];
|
||||
vect_msgIds.push_back(msgId.second);
|
||||
std::set<RsGxsMessageId> &set_msgIds = msgIds[msgId.first];
|
||||
set_msgIds.insert(msgId.second);
|
||||
|
||||
mWikiQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, WIKIDIALOG_WIKI_PAGE);
|
||||
}
|
||||
|
@ -698,10 +698,10 @@ void WikiDialog::updateDisplay(bool complete)
|
|||
requestGroupMeta();
|
||||
} else {
|
||||
/* Update all groups of changed messages */
|
||||
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > msgIds;
|
||||
std::map<RsGxsGroupId, std::set<RsGxsMessageId> > msgIds;
|
||||
getAllMsgIds(msgIds);
|
||||
|
||||
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >::iterator msgIt;
|
||||
std::map<RsGxsGroupId, std::set<RsGxsMessageId> >::iterator msgIt;
|
||||
for (msgIt = msgIds.begin(); msgIt != msgIds.end(); ++msgIt) {
|
||||
wikiGroupChanged(QString::fromStdString(msgIt->first.toStdString()));
|
||||
}
|
||||
|
|
|
@ -622,8 +622,8 @@ void WikiEditDialog::requestPage(const RsGxsGrpMsgIdPair &msgId)
|
|||
opts.mReqType = GXS_REQUEST_TYPE_MSG_DATA;
|
||||
|
||||
GxsMsgReq msgIds;
|
||||
std::vector<RsGxsMessageId> &vect_msgIds = msgIds[msgId.first];
|
||||
vect_msgIds.push_back(msgId.second);
|
||||
std::set<RsGxsMessageId> &set_msgIds = msgIds[msgId.first];
|
||||
set_msgIds.insert(msgId.second);
|
||||
|
||||
uint32_t token;
|
||||
mWikiQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, WIKIEDITDIALOG_PAGE);
|
||||
|
|
|
@ -114,6 +114,11 @@ CONFIG += gxscircles
|
|||
#CONFIG += framecatcher
|
||||
#CONFIG += blogs
|
||||
|
||||
## To enable unfinished services
|
||||
#CONFIG += wikipoos
|
||||
#CONFIG += gxsthewire
|
||||
#CONFIG += gxsphotoshare
|
||||
|
||||
DEFINES += RS_RELEASE_VERSION
|
||||
RCC_DIR = temp/qrc
|
||||
UI_DIR = temp/ui
|
||||
|
@ -342,6 +347,7 @@ openbsd-* {
|
|||
wikipoos {
|
||||
PRE_TARGETDEPS *= $$OUT_PWD/../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
||||
LIBS *= $$OUT_PWD/../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
||||
LIBS *= -lglib-2.0
|
||||
}
|
||||
|
||||
# Tor controller
|
||||
|
@ -1144,7 +1150,8 @@ unfinished_services {
|
|||
|
||||
|
||||
gxsphotoshare {
|
||||
#DEFINES += RS_USE_PHOTOSHARE
|
||||
#DEFINES += RS_USE_PHOTOSHARE # to enable in unfinished.
|
||||
DEFINES += RS_USE_PHOTO # enable in MainWindow
|
||||
|
||||
HEADERS += \
|
||||
gui/PhotoShare/PhotoDrop.h \
|
||||
|
@ -1189,6 +1196,7 @@ gxsphotoshare {
|
|||
|
||||
|
||||
wikipoos {
|
||||
DEFINES += RS_USE_WIKI
|
||||
|
||||
DEPENDPATH += ../../supportlibs/pegmarkdown
|
||||
INCLUDEPATH += ../../supportlibs/pegmarkdown
|
||||
|
@ -1215,6 +1223,8 @@ wikipoos {
|
|||
|
||||
gxsthewire {
|
||||
|
||||
DEFINES += RS_USE_WIRE
|
||||
|
||||
HEADERS += gui/TheWire/PulseItem.h \
|
||||
gui/TheWire/WireDialog.h \
|
||||
gui/TheWire/PulseAddDialog.h \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue