mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-01-01 00:30:30 -05:00
fix comments retroshare-gui/src/
retroshare-gui/src/TorControl/ retroshare-gui/src/Unused/ retroshare-gui/src/gui/ retroshare-gui/src/gui/WikiPoos/ retroshare-gui/src/gui/connect/ retroshare-gui/src/gui/elastic/ retroshare-gui/src/gui/feeds/ retroshare-gui/src/gui/gxs/ retroshare-gui/src/gui/help/ retroshare-gui/src/gui/msgs/ retroshare-gui/src/gui/plugins/ retroshare-gui/src/gui/profile/ retroshare-gui/src/gui/settings/ retroshare-gui/src/gui/statistics/ retroshare-gui/src/gui/statusbar/ retroshare-gui/src/gui/style/ retroshare-gui/src/gui/toaster/ retroshare-gui/src/gui/unfinished/ retroshare-gui/src/idle/ retroshare-gui/src/main.cpp retroshare-gui/src/retroshare-gui.pro retroshare-gui/src/retroshare-gui/ retroshare-gui/src/util/
This commit is contained in:
parent
92ae196d73
commit
ed5e2ca7a8
390 changed files with 1208 additions and 1204 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include "retroshare/rsevents.h"
|
||||
#include "retroshare/rstor.h"
|
||||
#include "ui_TorControlWindow.h"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/AboutDialog.cpp *
|
||||
* retroshare-gui/src/gui/AboutDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* Copyright (C) 2008 Unipro, Russia (http://ugene.unipro.ru) *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/AboutDialog.h *
|
||||
* retroshare-gui/src/gui/AboutDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* Copyright (C) 2008 Unipro, Russia (http://ugene.unipro.ru) *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/AboutWidget.cpp *
|
||||
* retroshare-gui/src/gui/AboutWidget.cpp *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* Copyright (C) 2008 Unipro, Russia (http://ugene.unipro.ru) *
|
||||
|
|
@ -417,7 +417,7 @@ void AWidget::mouseMoveEvent(QMouseEvent* e) {
|
|||
}
|
||||
|
||||
|
||||
void AWidget::calcWater(int npage, int density) {
|
||||
void AWidget::calcWater(int npage, int density) {
|
||||
int w = image1.width();
|
||||
int h = image1.height();
|
||||
int count = w + 1;
|
||||
|
|
@ -529,7 +529,7 @@ void AWidget::drawWater(QRgb* srcImage,QRgb* dstImage) {
|
|||
// T
|
||||
TBoard::TBoard(QWidget *parent) {
|
||||
Q_UNUSED(parent);
|
||||
|
||||
|
||||
setFocusPolicy(Qt::StrongFocus);
|
||||
isStarted = false;
|
||||
isWaitingAfterLine = false;
|
||||
|
|
@ -598,12 +598,12 @@ void TBoard::paintEvent(QPaintEvent *event) {
|
|||
QWidget::paintEvent(event);
|
||||
|
||||
QPainter painter(this);
|
||||
|
||||
|
||||
painter.setPen(Qt::black);
|
||||
painter.drawRect(frameRect());
|
||||
painter.drawRect(frameRect());
|
||||
QRect rect = boardRect();
|
||||
painter.fillRect(rect, Qt::white);
|
||||
|
||||
|
||||
if (isPaused) {
|
||||
painter.drawText(rect, Qt::AlignCenter, tr("Pause"));
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/AboutWidget.h *
|
||||
* retroshare-gui/src/gui/AboutWidget.h *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* Copyright (C) 2008 Unipro, Russia (http://ugene.unipro.ru) *
|
||||
|
|
@ -164,7 +164,7 @@ public:
|
|||
public slots:
|
||||
void start();
|
||||
void pause();
|
||||
|
||||
|
||||
signals:
|
||||
void scoreChanged(int score);
|
||||
void levelChanged(int level);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/ChatLobbyWidget.cpp *
|
||||
* retroshare-gui/src/gui/ChatLobbyWidget.cpp *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -78,12 +78,12 @@
|
|||
#define IMAGE_PUBLIC ":/icons/png/chats.png"
|
||||
#define IMAGE_PRIVATE ":/icons/png/chats-private.png"
|
||||
#define IMAGE_SIGNED ":/icons/png/chats-signed.png"
|
||||
#define IMAGE_SUBSCRIBE ":/icons/png/enter.png"
|
||||
#define IMAGE_SUBSCRIBE ":/icons/png/enter.png"
|
||||
#define IMAGE_UNSUBSCRIBE ":/icons/png/leave2.png"
|
||||
#define IMAGE_PEER_ENTERING ":images/user/add_user24.png"
|
||||
#define IMAGE_PEER_LEAVING ":images/user/remove_user24.png"
|
||||
#define IMAGE_TYPING ":icons/png/typing.png"
|
||||
#define IMAGE_MESSAGE ":images/chat.png"
|
||||
#define IMAGE_TYPING ":icons/png/typing.png"
|
||||
#define IMAGE_MESSAGE ":images/chat.png"
|
||||
#define IMAGE_AUTOSUBSCRIBE ":images/accepted16.png"
|
||||
#define IMAGE_COPYRSLINK ":/icons/png/copy.png"
|
||||
|
||||
|
|
@ -263,7 +263,7 @@ ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WindowFlags flags)
|
|||
).arg(QString::number(2*hbH), QString::number(hbH)) ;
|
||||
|
||||
registerHelpButton(ui.helpButton,help_str,"ChatLobbyDialog") ;
|
||||
|
||||
|
||||
int ltwH = misc::getFontSizeFactor("LobbyTreeWidget", 1.5).height();
|
||||
ui.lobbyTreeWidget->setIconSize(QSize(ltwH,ltwH));
|
||||
|
||||
|
|
@ -441,7 +441,7 @@ static void updateItem(QTreeWidget *treeWidget, QTreeWidgetItem *item, ChatLobby
|
|||
//TODO (Phenom): Add qproperty for these text colors in stylesheets
|
||||
// As palette is not updated by stylesheet
|
||||
QColor color = treeWidget->palette().color(QPalette::Active, QPalette::Text);
|
||||
|
||||
|
||||
if (!subscribed) {
|
||||
// Average between Base and Text colors
|
||||
QColor color2 = treeWidget->palette().color(QPalette::Active, QPalette::Base);
|
||||
|
|
@ -455,7 +455,7 @@ static void updateItem(QTreeWidget *treeWidget, QTreeWidgetItem *item, ChatLobby
|
|||
+QObject::tr("Participants:")+" "+QString::number(count)+"\n"
|
||||
+QObject::tr("Auto Subscribe:")+" "+(autoSubscribe? QObject::tr("enabled"): QObject::tr("disabled"))+"\n"
|
||||
+QObject::tr("Id:")+" "+QString::number(id,16) ;
|
||||
|
||||
|
||||
if(lobby_flags & RS_CHAT_LOBBY_FLAGS_PGP_SIGNED)
|
||||
{
|
||||
tooltipstr += QObject::tr("\nSecurity: no anonymous IDs") ;
|
||||
|
|
@ -468,7 +468,7 @@ static void updateItem(QTreeWidget *treeWidget, QTreeWidgetItem *item, ChatLobby
|
|||
|
||||
void ChatLobbyWidget::addChatPage(ChatLobbyDialog *d)
|
||||
{
|
||||
// check that the page does not already exist.
|
||||
// check that the page does not already exist.
|
||||
|
||||
if(_lobby_infos.find(d->id()) == _lobby_infos.end())
|
||||
{
|
||||
|
|
@ -538,7 +538,7 @@ void ChatLobbyWidget::updateDisplay()
|
|||
#endif
|
||||
|
||||
// now, do a nice display of lobbies
|
||||
|
||||
|
||||
RsPeerId vpid;
|
||||
std::list<ChatLobbyId>::const_iterator lobbyIt;
|
||||
|
||||
|
|
@ -547,7 +547,7 @@ void ChatLobbyWidget::updateDisplay()
|
|||
for(int p=0;p<4;++p)
|
||||
{
|
||||
QTreeWidgetItem *lobby_item =NULL;
|
||||
switch (p)
|
||||
switch (p)
|
||||
{
|
||||
case 0: lobby_item = privateSubLobbyItem; break;
|
||||
case 1: lobby_item = publicSubLobbyItem; break;
|
||||
|
|
@ -562,25 +562,25 @@ void ChatLobbyWidget::updateDisplay()
|
|||
|
||||
while (childIndex < childCnt) {
|
||||
QTreeWidgetItem *itemLoop = lobby_item->child(childIndex);
|
||||
if (itemLoop->type() == TYPE_LOBBY)
|
||||
if (itemLoop->type() == TYPE_LOBBY)
|
||||
{
|
||||
// check for visible lobby
|
||||
//
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < visibleLobbies.size(); ++i)
|
||||
if (itemLoop->data(COLUMN_DATA, ROLE_ID).toULongLong() == visibleLobbies[i].lobby_id)
|
||||
|
||||
for (i = 0; i < visibleLobbies.size(); ++i)
|
||||
if (itemLoop->data(COLUMN_DATA, ROLE_ID).toULongLong() == visibleLobbies[i].lobby_id)
|
||||
break;
|
||||
|
||||
if (i >= visibleLobbies.size())
|
||||
if (i >= visibleLobbies.size())
|
||||
{
|
||||
// Check for participating lobby with public level
|
||||
//
|
||||
for (lobbyIt = lobbies.begin(); lobbyIt != lobbies.end(); ++lobbyIt)
|
||||
for (lobbyIt = lobbies.begin(); lobbyIt != lobbies.end(); ++lobbyIt)
|
||||
if(itemLoop->data(COLUMN_DATA, ROLE_ID).toULongLong() == *lobbyIt)
|
||||
break;
|
||||
|
||||
if (lobbyIt == lobbies.end())
|
||||
if (lobbyIt == lobbies.end())
|
||||
{
|
||||
delete(lobby_item->takeChild(lobby_item->indexOfChild(itemLoop)));
|
||||
childCnt = lobby_item->childCount();
|
||||
|
|
@ -594,7 +594,7 @@ void ChatLobbyWidget::updateDisplay()
|
|||
|
||||
// Now add visible lobbies
|
||||
//
|
||||
for (uint32_t i = 0; i < visibleLobbies.size(); ++i)
|
||||
for (uint32_t i = 0; i < visibleLobbies.size(); ++i)
|
||||
{
|
||||
const VisibleChatLobbyRecord &lobby = visibleLobbies[i];
|
||||
|
||||
|
|
@ -660,15 +660,15 @@ void ChatLobbyWidget::updateDisplay()
|
|||
}
|
||||
|
||||
ChatLobbyFlags lobby_flags = lobby.lobby_flags ;
|
||||
|
||||
|
||||
QIcon icon;
|
||||
if (item == NULL)
|
||||
if (item == NULL)
|
||||
{
|
||||
item = new RSTreeWidgetItem(compareRole, TYPE_LOBBY);
|
||||
icon = (lobby.lobby_flags & RS_CHAT_LOBBY_FLAGS_PUBLIC) ? FilesDefs::getIconFromQtResourcePath(IMAGE_PUBLIC) : FilesDefs::getIconFromQtResourcePath(IMAGE_PRIVATE);
|
||||
lobby_item->addChild(item);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (item->data(COLUMN_DATA, ROLE_SUBSCRIBED).toBool() != subscribed) {
|
||||
|
|
@ -699,7 +699,7 @@ void ChatLobbyWidget::updateDisplay()
|
|||
|
||||
// Now add participating lobbies.
|
||||
//
|
||||
for (lobbyIt = lobbies.begin(); lobbyIt != lobbies.end(); ++lobbyIt)
|
||||
for (lobbyIt = lobbies.begin(); lobbyIt != lobbies.end(); ++lobbyIt)
|
||||
{
|
||||
ChatLobbyInfo lobby ;
|
||||
rsMsgs->getChatLobbyInfo(*lobbyIt,lobby) ;
|
||||
|
|
@ -727,10 +727,10 @@ void ChatLobbyWidget::updateDisplay()
|
|||
}
|
||||
|
||||
QIcon icon;
|
||||
|
||||
|
||||
ChatLobbyFlags lobby_flags = lobby.lobby_flags ;
|
||||
|
||||
if (item == NULL)
|
||||
|
||||
if (item == NULL)
|
||||
{
|
||||
item = new RSTreeWidgetItem(compareRole, TYPE_LOBBY);
|
||||
icon = (lobby.lobby_flags & RS_CHAT_LOBBY_FLAGS_PUBLIC) ? FilesDefs::getIconFromQtResourcePath(IMAGE_PUBLIC) : FilesDefs::getIconFromQtResourcePath(IMAGE_PRIVATE);
|
||||
|
|
@ -809,10 +809,10 @@ void ChatLobbyWidget::createIdentityAndSubscribe()
|
|||
|
||||
IdEditDialog dlg(this);
|
||||
dlg.setupNewId(false);
|
||||
|
||||
|
||||
if(flags & RS_CHAT_LOBBY_FLAGS_PGP_SIGNED) //
|
||||
dlg.enforceNoAnonIds() ;
|
||||
|
||||
|
||||
dlg.exec();
|
||||
// fetch new id
|
||||
std::list<RsGxsId> own_ids;
|
||||
|
|
@ -891,7 +891,7 @@ void ChatLobbyWidget::subscribeChatLobbyAtItem(QTreeWidgetItem *item)
|
|||
{
|
||||
IdEditDialog dlg(this);
|
||||
dlg.setupNewId(false);
|
||||
|
||||
|
||||
if(flags & RS_CHAT_LOBBY_FLAGS_PGP_SIGNED) //
|
||||
dlg.enforceNoAnonIds() ;
|
||||
dlg.exec();
|
||||
|
|
@ -903,11 +903,11 @@ void ChatLobbyWidget::subscribeChatLobbyAtItem(QTreeWidgetItem *item)
|
|||
else
|
||||
{
|
||||
rsMsgs->getDefaultIdentityForChatLobby(gxs_id);
|
||||
|
||||
|
||||
RsIdentityDetails idd ;
|
||||
if(!rsIdentity->getIdDetails(gxs_id,idd))
|
||||
return ;
|
||||
|
||||
|
||||
if( (flags & RS_CHAT_LOBBY_FLAGS_PGP_SIGNED) && !(idd.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED))
|
||||
{
|
||||
QMessageBox::warning(NULL,tr("Default identity is anonymous"),tr("You cannot join this chat room with your default identity, since it is anonymous and the chat room forbids it.")) ;
|
||||
|
|
@ -1032,7 +1032,7 @@ QTreeWidgetItem *ChatLobbyWidget::getTreeWidgetItem(ChatLobbyId id)
|
|||
while (childIndex < childCnt) {
|
||||
QTreeWidgetItem *itemLoop = lobby_item->child(childIndex);
|
||||
|
||||
if (itemLoop->type() == TYPE_LOBBY && itemLoop->data(COLUMN_DATA, ROLE_ID).toULongLong() == id)
|
||||
if (itemLoop->type() == TYPE_LOBBY && itemLoop->data(COLUMN_DATA, ROLE_ID).toULongLong() == id)
|
||||
return itemLoop ;
|
||||
|
||||
++childIndex ;
|
||||
|
|
@ -1043,7 +1043,7 @@ QTreeWidgetItem *ChatLobbyWidget::getTreeWidgetItem(ChatLobbyId id)
|
|||
void ChatLobbyWidget::updateTypingStatus(ChatLobbyId id)
|
||||
{
|
||||
QTreeWidgetItem *item = getTreeWidgetItem(id) ;
|
||||
|
||||
|
||||
if(item != NULL)
|
||||
{
|
||||
item->setIcon(COLUMN_NAME,FilesDefs::getIconFromQtResourcePath(IMAGE_TYPING)) ;
|
||||
|
|
@ -1055,7 +1055,7 @@ void ChatLobbyWidget::updateTypingStatus(ChatLobbyId id)
|
|||
void ChatLobbyWidget::updatePeerLeaving(ChatLobbyId id)
|
||||
{
|
||||
QTreeWidgetItem *item = getTreeWidgetItem(id) ;
|
||||
|
||||
|
||||
if(item != NULL)
|
||||
{
|
||||
item->setIcon(COLUMN_NAME,FilesDefs::getIconFromQtResourcePath(IMAGE_PEER_LEAVING)) ;
|
||||
|
|
@ -1067,7 +1067,7 @@ void ChatLobbyWidget::updatePeerLeaving(ChatLobbyId id)
|
|||
void ChatLobbyWidget::updatePeerEntering(ChatLobbyId id)
|
||||
{
|
||||
QTreeWidgetItem *item = getTreeWidgetItem(id) ;
|
||||
|
||||
|
||||
if(item != NULL)
|
||||
{
|
||||
item->setIcon(COLUMN_NAME,FilesDefs::getIconFromQtResourcePath(IMAGE_PEER_ENTERING)) ;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/ChatLobbyWidget.h *
|
||||
* retroshare-gui/src/gui/ChatLobbyWidget.h *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -107,7 +107,7 @@ protected slots:
|
|||
private slots:
|
||||
void filterColumnChanged(int);
|
||||
void filterItems(const QString &text);
|
||||
|
||||
|
||||
void setShowUserCountColumn(bool show);
|
||||
void setShowTopicColumn(bool show);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/FriendServer.cpp *
|
||||
* retroshare-gui/src/gui/FriendServer.cpp *
|
||||
* *
|
||||
* Copyright (c) 2021 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/NetworkView.h *
|
||||
* retroshare-gui/src/gui/NetworkView.h *
|
||||
* *
|
||||
* Copyright (c) 2008 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/FriendsDialog.cpp *
|
||||
* retroshare-gui/src/gui/FriendsDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/FriendsDialog.h *
|
||||
* retroshare-gui/src/gui/FriendsDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -44,7 +44,7 @@ public:
|
|||
NetworkTab = 2, /** Network page. */
|
||||
NetworkViewTab = 3, /** Network new graph. */
|
||||
BroadcastTab = 4 /** Old group chat page. */
|
||||
|
||||
|
||||
};
|
||||
|
||||
/** Default Constructor */
|
||||
|
|
@ -68,7 +68,7 @@ public:
|
|||
FriendServerControl *friendServerControl ;
|
||||
|
||||
IdDialog *idDialog;
|
||||
|
||||
|
||||
private slots:
|
||||
void addFriend();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/GenCertDialog.cpp *
|
||||
* retroshare-gui/src/gui/GenCertDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -53,7 +53,7 @@ class EntropyCollectorWidget: public QTextBrowser
|
|||
{
|
||||
public:
|
||||
explicit EntropyCollectorWidget(QProgressBar *pr,QWidget *p = NULL)
|
||||
: QTextBrowser(p)
|
||||
: QTextBrowser(p)
|
||||
{
|
||||
progress = pr ;
|
||||
setMouseTracking(true) ;
|
||||
|
|
@ -131,7 +131,7 @@ GenCertDialog::GenCertDialog(bool onlyGenerateIdentity, QWidget *parent)
|
|||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
|
||||
//ui.headerFrame->setHeaderImage(FilesDefs::getPixmapFromQtResourcePath(":/icons/svg/profile.svg"));
|
||||
//ui.headerFrame->setHeaderText(tr("Create a new profile"));
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ GenCertDialog::GenCertDialog(bool onlyGenerateIdentity, QWidget *parent)
|
|||
/* get all available pgp private certificates....
|
||||
* mark last one as default.
|
||||
*/
|
||||
|
||||
|
||||
//QMenu *menu = new QMenu(tr("Advanced options"));
|
||||
//menu->addAction(ui.adv_checkbox);
|
||||
//menu->addAction(ui.reuse_existing_node_CB);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/GenCertDialog.h *
|
||||
* retroshare-gui/src/gui/GenCertDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/GetStartedDialog.cpp *
|
||||
* retroshare-gui/src/gui/GetStartedDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2011 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -209,7 +209,7 @@ void GetStartedDialog::addFriends()
|
|||
void GetStartedDialog::inviteFriends()
|
||||
{
|
||||
if (RsAutoUpdatePage::eventsLocked() == true)
|
||||
{
|
||||
{
|
||||
std::cerr << "GetStartedDialog::inviteFriends() EventsLocked... waiting";
|
||||
std::cerr << std::endl;
|
||||
|
||||
|
|
@ -303,7 +303,7 @@ void GetStartedDialog::emailFeedback()
|
|||
void GetStartedDialog::emailSupport()
|
||||
{
|
||||
if (RsAutoUpdatePage::eventsLocked() == true)
|
||||
{
|
||||
{
|
||||
std::cerr << "GetStartedDialog::emailSupport() EventsLocked... waiting";
|
||||
std::cerr << std::endl;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/GetStartedDialog.h *
|
||||
* retroshare-gui/src/gui/GetStartedDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2011 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/HelpDialog.cpp *
|
||||
* retroshare-gui/src/gui/HelpDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/HelpDialog.h *
|
||||
* retroshare-gui/src/gui/HelpDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -29,7 +29,7 @@ namespace Ui {
|
|||
class HelpDialog;
|
||||
}
|
||||
|
||||
class HelpDialog : public QDialog
|
||||
class HelpDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/HomePage.cpp *
|
||||
* retroshare-gui/src/gui/HomePage.cpp *
|
||||
* *
|
||||
* Copyright (C) 2016 Defnax <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/HomePage.h *
|
||||
* retroshare-gui/src/gui/HomePage.h *
|
||||
* *
|
||||
* Copyright (C) 2016 Defnax <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public:
|
|||
private slots:
|
||||
void modifyReputation();
|
||||
void toggleAutoBanIdentities(bool b);
|
||||
|
||||
|
||||
static QString inviteMessage();
|
||||
void sendInvite();
|
||||
private :
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/LogoBar.cpp *
|
||||
* retroshare-gui/src/gui/LogoBar.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -39,7 +39,7 @@ void LogoBar::init() {
|
|||
setFrameShape(QFrame::NoFrame);
|
||||
|
||||
|
||||
|
||||
|
||||
//LogoButton
|
||||
_logoButton = new RetroStyleLabel(this);
|
||||
_logoButton->setPixmaps(
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/LogoBar.h *
|
||||
* retroshare-gui/src/gui/LogoBar.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -33,12 +33,12 @@ class QIcon;
|
|||
/**
|
||||
* logo bar inside the login window.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
class LogoBar : public QFrame {
|
||||
Q_OBJECT
|
||||
|
|
@ -69,7 +69,7 @@ private:
|
|||
void init();
|
||||
|
||||
|
||||
|
||||
|
||||
RetroStyleLabel * _logoButton;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/MainPage.cpp *
|
||||
* retroshare-gui/src/gui/MainPage.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -50,7 +50,7 @@ void MainPage::registerHelpButton(QToolButton *button, const QString& help_html_
|
|||
|
||||
if (mHelpBrowser == nullptr)
|
||||
mHelpBrowser = new FloatingHelpBrowser(this, button) ;
|
||||
|
||||
|
||||
int H = misc::getFontSizeFactor("HelpButton").height();
|
||||
button->setIconSize(QSize(H, H)) ;//Square Icon
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/MainWindow.cpp *
|
||||
* retroshare-gui/src/gui/MainWindow.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -692,7 +692,7 @@ void MainWindow::createMenuBar()
|
|||
actionMinimize->setShortcutContext(Qt::ApplicationShortcut);
|
||||
actionMinimize->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_M));
|
||||
actionMinimize->setShortcutVisibleInContextMenu(true);
|
||||
connect(actionMinimize,SIGNAL(triggered()),this,SLOT(minimizeWindow())) ;
|
||||
connect(actionMinimize,SIGNAL(triggered()),this,SLOT(minimizeWindow())) ;
|
||||
|
||||
actionCloseWindow = new QAction(tr("Close window"),this);
|
||||
actionCloseWindow->setShortcutContext(Qt::ApplicationShortcut);
|
||||
|
|
@ -1229,7 +1229,7 @@ void MainWindow::showWebinterface()
|
|||
WebuiPage::showWebui();
|
||||
}
|
||||
#endif // ENABLE_WEBUI
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** Shows Application window */
|
||||
#ifdef UNFINISHED
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/MainWindow.h *
|
||||
* retroshare-gui/src/gui/MainWindow.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -253,7 +253,7 @@ protected:
|
|||
MainWindow(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
|
||||
|
||||
void closeEvent(QCloseEvent *);
|
||||
|
||||
|
||||
/** Called when the user changes the UI translation. */
|
||||
virtual void retranslateUi();
|
||||
|
||||
|
|
@ -285,7 +285,7 @@ private slots:
|
|||
#endif
|
||||
//void servicePermission();
|
||||
|
||||
#ifdef UNFINISHED
|
||||
#ifdef UNFINISHED
|
||||
void showApplWindow();
|
||||
#endif
|
||||
|
||||
|
|
@ -307,7 +307,7 @@ private slots:
|
|||
|
||||
/** Called when user attempts to quit via quit button*/
|
||||
void doQuit();
|
||||
|
||||
|
||||
void updateTrayCombine();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/MessengerWindow.cpp *
|
||||
* retroshare-gui/src/gui/MessengerWindow.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -138,7 +138,7 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WindowFlags flags)
|
|||
button->setIcon(QIcon(":/icons/png/filesharing.png"));
|
||||
button->setToolTip(tr("Share files for your friends"));
|
||||
connect(button, SIGNAL(clicked()), this, SLOT(openShareManager()));
|
||||
ui.friendList->addToolButton(button);
|
||||
ui.friendList->addToolButton(button);
|
||||
button->setIconSize(QSize(27, 27));
|
||||
|
||||
// load settings
|
||||
|
|
@ -222,7 +222,7 @@ void MessengerWindow::openShareManager()
|
|||
|
||||
/** Loads own personal status message */
|
||||
void MessengerWindow::loadmystatusmessage()
|
||||
{
|
||||
{
|
||||
ui.messagelineEdit->setEditText( QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/MessengerWindow.h *
|
||||
* retroshare-gui/src/gui/MessengerWindow.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/NetworkDialog.cpp *
|
||||
* retroshare-gui/src/gui/NetworkDialog.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -61,7 +61,7 @@ NetworkDialog::NetworkDialog(QWidget */*parent*/)
|
|||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
|
||||
connect( ui.filterLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(filterItems(QString)));
|
||||
connect( ui.filterLineEdit, SIGNAL(filterChanged(int)), this, SLOT(filterColumnChanged(int)));
|
||||
|
||||
|
|
@ -191,7 +191,7 @@ void NetworkDialog::removeSelectedKeys()
|
|||
}
|
||||
if(!selected.empty())
|
||||
removeKeys(selected);
|
||||
|
||||
|
||||
updateDisplay();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/NetworkDialog.h *
|
||||
* retroshare-gui/src/gui/NetworkDialog.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -85,7 +85,7 @@ private slots:
|
|||
//void on_actionAddFriend_activated();
|
||||
//void on_actionExportKey_activated();
|
||||
//void on_actionCreate_New_Profile_activated();
|
||||
|
||||
|
||||
void filterColumnChanged(int);
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
#include <retroshare/rsdisc.h>
|
||||
#include <retroshare/rsmsgs.h>
|
||||
|
||||
bool pgpid_item_proxy::lessThan(const QModelIndex &left, const QModelIndex &right) const
|
||||
bool pgpid_item_proxy::lessThan(const QModelIndex &left, const QModelIndex &right) const
|
||||
{
|
||||
if(left.column() == pgpid_item_model::PGP_ITEM_MODEL_COLUMN_LAST_USED)
|
||||
return left.data(Qt::EditRole).toUInt() < right.data(Qt::EditRole).toUInt();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/NetworkView.cpp *
|
||||
* retroshare-gui/src/gui/NetworkView.cpp *
|
||||
* *
|
||||
* Copyright (c) 2008 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -168,7 +168,7 @@ void NetworkView::updateDisplay()
|
|||
// Put own id in queue, and empty the queue, treating all nodes.
|
||||
//
|
||||
while(!nodes_to_treat.empty())
|
||||
{
|
||||
{
|
||||
NodeInfo info(nodes_to_treat.back()) ;
|
||||
nodes_to_treat.pop_back() ;
|
||||
#ifdef DEBUG_NETWORKVIEW
|
||||
|
|
@ -199,7 +199,7 @@ void NetworkView::updateDisplay()
|
|||
case RS_TRUST_LVL_FULL:
|
||||
case RS_TRUST_LVL_ULTIMATE: auth = GraphWidget::ELASTIC_NODE_AUTH_FULL ; break;
|
||||
case RS_TRUST_LVL_UNKNOWN:
|
||||
case RS_TRUST_LVL_UNDEFINED:
|
||||
case RS_TRUST_LVL_UNDEFINED:
|
||||
case RS_TRUST_LVL_NEVER:
|
||||
default: auth = GraphWidget::ELASTIC_NODE_AUTH_UNKNOWN ; break ;
|
||||
}
|
||||
|
|
@ -241,7 +241,7 @@ void NetworkView::updateDisplay()
|
|||
{
|
||||
std::list<RsPgpId> friendList ;
|
||||
|
||||
if(rsDisc->getDiscPgpFriends(it->first,friendList))
|
||||
if(rsDisc->getDiscPgpFriends(it->first,friendList))
|
||||
for(std::list<RsPgpId>::const_iterator sit(friendList.begin()); sit != friendList.end(); ++sit)
|
||||
{
|
||||
#ifdef DEBUG_NETWORKVIEW
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/NetworkView.h *
|
||||
* retroshare-gui/src/gui/NetworkView.h *
|
||||
* *
|
||||
* Copyright (c) 2008 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
#include "ui_NetworkView.h"
|
||||
|
||||
|
||||
class NetworkView : public RsAutoUpdatePage
|
||||
class NetworkView : public RsAutoUpdatePage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/NewsFeed.cpp *
|
||||
* retroshare-gui/src/gui/NewsFeed.cpp *
|
||||
* *
|
||||
* Copyright (c) 2008 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -469,7 +469,7 @@ void NewsFeed::handleSecurityEvent(std::shared_ptr<const RsEvent> event)
|
|||
addFeedItemIfUnique(new PeerItem(this, NEWSFEED_PEERLIST, e.mSslId, PEER_TYPE_HELLO, false), true );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
RsFeedTypeFlags FeedItemType(RsFeedTypeFlags::RS_FEED_TYPE_NONE);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/NewsFeed.h *
|
||||
* retroshare-gui/src/gui/NewsFeed.h *
|
||||
* *
|
||||
* Copyright (c) 2008 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ void CircleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
|
|||
gradient.setColorAt(0.0f,Qt::lightGray) ;
|
||||
gradient.setColorAt(1.0f,Qt::darkGray) ;
|
||||
painter->setBrush(gradient);
|
||||
|
||||
|
||||
painter->setPen(Qt::NoPen);
|
||||
painter->setBrush(Qt::lightGray);
|
||||
painter->drawEllipse(-7, -7, 20, 20);
|
||||
|
|
@ -142,7 +142,7 @@ void CircleItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|||
update();
|
||||
QGraphicsItem::mousePressEvent(event);
|
||||
}
|
||||
void CircleItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
||||
void CircleItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
||||
{
|
||||
QMenu contextMnu ;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class CircleItem: public QObject, public QGraphicsItem
|
|||
|
||||
static CircleItem *_selected_node ;
|
||||
|
||||
const RsGroupMetaData& groupInfo() const { return _group_info ; }
|
||||
const RsGroupMetaData& groupInfo() const { return _group_info ; }
|
||||
signals:
|
||||
void itemChanged() ;
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ CircleWidget::CircleWidget(QString name/*=QString()*/
|
|||
ui->graphicsView->setEnabled(false);
|
||||
|
||||
ui->graphicsView->setAlignment(Qt::AlignLeft | Qt::AlignTop);
|
||||
|
||||
|
||||
ui->graphicsView->setRenderHints( QPainter::Antialiasing | QPainter::SmoothPixmapTransform );
|
||||
|
||||
setIsCurrent(false);
|
||||
|
|
@ -82,7 +82,7 @@ void CircleWidget::updateData(const RsGroupMetaData& gxs_group_info
|
|||
update();
|
||||
//}
|
||||
|
||||
if(!same_RsGxsCircleDetails(_circle_details , details))
|
||||
if(!same_RsGxsCircleDetails(_circle_details , details))
|
||||
{
|
||||
_circle_details=details;
|
||||
typedef std::set<RsGxsId>::iterator itUnknownPeers;
|
||||
|
|
@ -96,17 +96,17 @@ void CircleWidget::updateData(const RsGroupMetaData& gxs_group_info
|
|||
}
|
||||
|
||||
typedef std::set<RsPgpId>::const_iterator itAllowedPeers;
|
||||
for (itAllowedPeers it = _circle_details.mAllowedNodes.begin() ; it != _circle_details.mAllowedNodes.end() ; ++it )
|
||||
for (itAllowedPeers it = _circle_details.mAllowedNodes.begin() ; it != _circle_details.mAllowedNodes.end() ; ++it )
|
||||
{
|
||||
RsPgpId pgp_id = *it;
|
||||
emit askForPGPIdentityWidget(pgp_id);
|
||||
|
||||
// std::set<RsGxsId> gxs_id_list = it->second;
|
||||
// typedef std::set<RsGxsId>::const_iterator itGxsId;
|
||||
// for (itGxsId curs=gxs_id_list.begin(); curs != gxs_id_list.end(); ++curs)
|
||||
// for (itGxsId curs=gxs_id_list.begin(); curs != gxs_id_list.end(); ++curs)
|
||||
// {
|
||||
// RsGxsId gxs_id = *curs;
|
||||
// if(!gxs_id.isNull())
|
||||
// if(!gxs_id.isNull())
|
||||
// emit askForGXSIdentityWidget(gxs_id);
|
||||
// }
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class IdentityItem: public QObject, public QGraphicsItem
|
|||
static const int IMG_SIZE = 64;
|
||||
static IdentityItem *_selected_node ;
|
||||
|
||||
const RsGxsIdGroup& groupInfo() const { return _group_info ; }
|
||||
const RsGxsIdGroup& groupInfo() const { return _group_info ; }
|
||||
|
||||
public slots:
|
||||
void distantChat() ;
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
#include "retroshare/rsidentity.h"
|
||||
#include "retroshare/rsgxscircles.h"
|
||||
#include "retroshare/rsgxsflags.h"
|
||||
#include "retroshare/rsmsgs.h"
|
||||
#include "retroshare/rsids.h"
|
||||
#include "retroshare/rsmsgs.h"
|
||||
#include "retroshare/rsids.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <QMenu>
|
||||
|
|
@ -65,7 +65,7 @@ PeopleDialog::PeopleDialog(QWidget *parent)
|
|||
//mCirclesBroadcastBase = new RsGxsUpdateBroadcastBase(rsGxsCircles, this);
|
||||
//connect(mCirclesBroadcastBase, SIGNAL(fillDisplay(bool)), this, SLOT(updateCirclesDisplay(bool)));
|
||||
|
||||
|
||||
|
||||
tabWidget->removeTab(1);
|
||||
//hide circle flow widget not functional yet
|
||||
pictureFlowWidgetExternal->hide();
|
||||
|
|
@ -441,7 +441,7 @@ void PeopleDialog::iw_AddButtonClickedExt()
|
|||
if (dest)
|
||||
{
|
||||
QMenu contextMnu( this );
|
||||
|
||||
|
||||
QMenu *mnu = contextMnu.addMenu(FilesDefs::getIconFromQtResourcePath(":/icons/png/circles.png"),tr("Invite to Circle")) ;
|
||||
|
||||
std::map<RsGxsGroupId, CircleWidget*>::iterator itCurs;
|
||||
|
|
@ -455,10 +455,10 @@ void PeopleDialog::iw_AddButtonClickedExt()
|
|||
action->setData(QString::fromStdString(curs->groupInfo().mGroupId.toStdString())
|
||||
+ ";" + QString::fromStdString(dest->groupInfo().mMeta.mGroupId.toStdString()));
|
||||
}
|
||||
|
||||
|
||||
std::list<RsGxsId> own_identities ;
|
||||
rsIdentity->getOwnIds(own_identities) ;
|
||||
|
||||
|
||||
if(own_identities.size() <= 1)
|
||||
{
|
||||
QAction *action = contextMnu.addAction(FilesDefs::getIconFromQtResourcePath(":/icons/png/chats.png"), tr("Chat with this person"), this, SLOT(chatIdentity()));
|
||||
|
|
@ -486,20 +486,20 @@ void PeopleDialog::iw_AddButtonClickedExt()
|
|||
action->setData(QString::fromStdString((*it).toStdString()) + ";" + QString::fromStdString(dest->groupInfo().mMeta.mGroupId.toStdString())) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QAction *actionsendmsg = contextMnu.addAction(FilesDefs::getIconFromQtResourcePath(":/icons/mail/write-mail.png"), tr("Send message"), this, SLOT(sendMessage()));
|
||||
actionsendmsg->setData( QString::fromStdString(dest->groupInfo().mMeta.mGroupId.toStdString()));
|
||||
|
||||
|
||||
QAction *actionsendinvite = contextMnu.addAction(FilesDefs::getIconFromQtResourcePath(":/icons/mail/write-mail.png"), tr("Send invite"), this, SLOT(sendInvite()));
|
||||
actionsendinvite->setData( QString::fromStdString(dest->groupInfo().mMeta.mGroupId.toStdString()));
|
||||
|
||||
|
||||
contextMnu.addSeparator();
|
||||
|
||||
|
||||
QAction *actionaddcontact = contextMnu.addAction(FilesDefs::getIconFromQtResourcePath(""), tr("Add to Contacts"), this, SLOT(addtoContacts()));
|
||||
actionaddcontact->setData( QString::fromStdString(dest->groupInfo().mMeta.mGroupId.toStdString()));
|
||||
|
||||
|
||||
contextMnu.addSeparator();
|
||||
|
||||
|
||||
QAction *actionDetails = contextMnu.addAction(FilesDefs::getIconFromQtResourcePath(":/images/info16.png"), tr("Person details"), this, SLOT(personDetails()));
|
||||
actionDetails->setData( QString::fromStdString(dest->groupInfo().mMeta.mGroupId.toStdString()));
|
||||
|
||||
|
|
@ -599,11 +599,11 @@ void PeopleDialog::chatIdentity()
|
|||
|
||||
RsGxsId from_gxs_id = RsGxsId(idList.at(0).toStdString());
|
||||
RsGxsId gxs_id = RsGxsId(idList.at(1).toStdString());
|
||||
|
||||
|
||||
uint32_t error_code ;
|
||||
|
||||
DistantChatPeerId dpid ;
|
||||
|
||||
|
||||
if(!rsMsgs->initiateDistantChatConnexion(RsGxsId(gxs_id), from_gxs_id, dpid,error_code))
|
||||
QMessageBox::information(NULL, tr("Distant chat cannot work"), QString("%1 %2: %3").arg(tr("Distant chat refused with this person.")).arg(tr("Error code")).arg(error_code)) ;
|
||||
|
||||
|
|
@ -629,7 +629,7 @@ void PeopleDialog::sendMessage()
|
|||
nMsgDialog->activateWindow();
|
||||
|
||||
/* window will destroy itself! */
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -642,11 +642,11 @@ void PeopleDialog::sendInvite()
|
|||
QString data = action->data().toString();
|
||||
|
||||
RsGxsId gxs_id = RsGxsId(data.toStdString());;
|
||||
|
||||
|
||||
MessageComposer::sendInvite(gxs_id,false);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -656,7 +656,7 @@ void PeopleDialog::addtoContacts()
|
|||
qobject_cast<QAction *>(QObject::sender());
|
||||
if (action) {
|
||||
QString data = action->data().toString();
|
||||
|
||||
|
||||
RsGxsId gxs_id = RsGxsId(data.toStdString());;
|
||||
|
||||
rsIdentity->setAsRegularContact(RsGxsId(gxs_id),true);
|
||||
|
|
@ -672,7 +672,7 @@ void PeopleDialog::personDetails()
|
|||
QString data = action->data().toString();
|
||||
|
||||
RsGxsId gxs_id = RsGxsId(data.toStdString());
|
||||
|
||||
|
||||
if (RsGxsGroupId(gxs_id).isNull()) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -1075,7 +1075,7 @@ void PeopleDialog::pf_dropEventOccursInt(QDropEvent *event)
|
|||
dlg.addMember(idDropped->keyId(), idDropped->idtype(), idDropped->nickname(), QIcon(QPixmap::fromImage(idDropped->avatar())) );
|
||||
atLeastOne = true;
|
||||
}//if (idDropped->havePGPDetail())
|
||||
|
||||
|
||||
}//if (idDropped)
|
||||
}//else (cirDropped)
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ AlbumDialog::AlbumDialog(const RsPhotoAlbum& album, TokenQueue* photoQueue, RsPh
|
|||
ui(new Ui::AlbumDialog), mRsPhoto(rs_Photo), mPhotoShareQueue(photoQueue), mAlbum(album), mPhotoSelected(NULL)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
||||
ui->headerFrame->setHeaderImage(FilesDefs::getPixmapFromQtResourcePath(":/images/kview_64.png"));
|
||||
ui->headerFrame->setHeaderText(tr("Album"));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* retroshare-gui/src/gui/PhotoShare/AlbumGroupDialog.cpp *
|
||||
* retroshare-gui/src/gui/PhotoShare/AlbumGroupDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2020 by Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
const uint32_t AlbumCreateEnabledFlags = (
|
||||
const uint32_t AlbumCreateEnabledFlags = (
|
||||
GXS_GROUP_FLAGS_NAME |
|
||||
GXS_GROUP_FLAGS_ICON |
|
||||
GXS_GROUP_FLAGS_DESCRIPTION |
|
||||
|
|
@ -169,7 +169,7 @@ bool AlbumGroupDialog::service_loadGroup(const RsGxsGenericGroupData *data, Mode
|
|||
|
||||
const RsPhotoAlbum& group = *pgroup;
|
||||
description = QString::fromUtf8(group.mDescription.c_str());
|
||||
|
||||
|
||||
if (group.mThumbnail.mData) {
|
||||
QPixmap pixmap;
|
||||
if (GxsIdDetails::loadPixmapFromData(group.mThumbnail.mData, group.mThumbnail.mSize, pixmap,GxsIdDetails::ORIGINAL)) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class gridIndex
|
|||
|
||||
gridIndex(int in_row, int in_column)
|
||||
:row(in_row), column(in_column) { return; }
|
||||
|
||||
|
||||
bool operator<(const gridIndex &other) const
|
||||
{
|
||||
if (row == other.row)
|
||||
|
|
@ -43,7 +43,7 @@ class gridIndex
|
|||
}
|
||||
return (row < other.row);
|
||||
}
|
||||
|
||||
|
||||
int row, column;
|
||||
};
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ PhotoItem *PhotoDrop::getSelectedPhotoItem()
|
|||
|
||||
|
||||
|
||||
void PhotoDrop::resizeEvent ( QResizeEvent * event )
|
||||
void PhotoDrop::resizeEvent ( QResizeEvent * event )
|
||||
{
|
||||
/* calculate the preferred number of columns for the PhotoItems */
|
||||
reorderPhotos();
|
||||
|
|
@ -184,7 +184,7 @@ void PhotoDrop::reorderPhotos()
|
|||
PhotoItem *item = dynamic_cast<PhotoItem *>(litem->widget());
|
||||
if (item)
|
||||
{
|
||||
|
||||
|
||||
int selectedRow;
|
||||
int selectedColumn;
|
||||
int rowSpan;
|
||||
|
|
@ -195,10 +195,10 @@ void PhotoDrop::reorderPhotos()
|
|||
std::cerr << " layoutIdx: " << i;
|
||||
std::cerr << " item pos(" << selectedRow << ", " << selectedColumn;
|
||||
std::cerr << ")" << std::endl;
|
||||
|
||||
|
||||
gridIndex idx(selectedRow, selectedColumn);
|
||||
photoItems[idx] = item;
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -207,7 +207,7 @@ void PhotoDrop::reorderPhotos()
|
|||
}
|
||||
}
|
||||
|
||||
pit = photoItems.begin();
|
||||
pit = photoItems.begin();
|
||||
if (pit == photoItems.end())
|
||||
{
|
||||
std::cerr << "PhotoDrop::reorderPhotos() No PhotoItems.";
|
||||
|
|
@ -246,7 +246,7 @@ void PhotoDrop::reorderPhotos()
|
|||
{
|
||||
glayout->removeWidget(pit->second);
|
||||
}
|
||||
|
||||
|
||||
for(pit = photoItems.begin(), i = 0; pit != photoItems.end(); ++pit, ++i)
|
||||
{
|
||||
int row = i / mColumns;
|
||||
|
|
@ -279,7 +279,7 @@ void PhotoDrop::moveLeft()
|
|||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
int count = alayout->count();
|
||||
if ((!mSelected) || (count < 2))
|
||||
{
|
||||
|
|
@ -366,7 +366,7 @@ void PhotoDrop::moveRight()
|
|||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
int count = alayout->count();
|
||||
if ((!mSelected) || (count < 2))
|
||||
{
|
||||
|
|
@ -448,7 +448,7 @@ void PhotoDrop::checkMoveButtons()
|
|||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
int count = alayout->count();
|
||||
if ((!mSelected) || (count < 2))
|
||||
{
|
||||
|
|
@ -535,7 +535,7 @@ void PhotoDrop::clearPhotos()
|
|||
mSelected = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void PhotoDrop::dragEnterEvent(QDragEnterEvent *event)
|
||||
|
|
@ -590,7 +590,7 @@ void PhotoDrop::dropEvent(QDropEvent *event)
|
|||
if (event->mimeData()->hasUrls())
|
||||
{
|
||||
std::cerr << "PhotoDrop::dropEvent() Urls:" << std::endl;
|
||||
|
||||
|
||||
QList<QUrl> urls = event->mimeData()->urls();
|
||||
QList<QUrl>::iterator uit;
|
||||
for (uit = urls.begin(); uit != urls.end(); ++uit)
|
||||
|
|
@ -648,7 +648,7 @@ void PhotoDrop::addPhotoItem(PhotoItem *item)
|
|||
|
||||
mPhotos.insert(item);
|
||||
layout()->addWidget(item);
|
||||
|
||||
|
||||
//checkMoveButtons();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/PluginManager.cpp *
|
||||
* retroshare-gui/src/gui/PluginManager.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <QDebug>
|
||||
|
||||
#include <QWidget> //a strange thing: it compiles without this header, but
|
||||
#include <QWidget> //a strange thing: it compiles without this header, but
|
||||
//then segfaults in some place
|
||||
|
||||
#include <QApplication>
|
||||
|
|
@ -50,10 +50,10 @@ RsApplication::dataDirectory() + "/plugins" ;
|
|||
}
|
||||
|
||||
//=============================================================================
|
||||
|
||||
void
|
||||
|
||||
void
|
||||
PluginManager::defaultLoad( )
|
||||
{
|
||||
{
|
||||
qDebug() << " " << "Default load started" ;
|
||||
|
||||
QDir workDir(baseFolder);
|
||||
|
|
@ -62,7 +62,7 @@ PluginManager::defaultLoad( )
|
|||
{
|
||||
QString em= tr("base folder %1 doesn't exist, default load failed")
|
||||
.arg( baseFolder );
|
||||
emit errorAppeared( em );
|
||||
emit errorAppeared( em );
|
||||
return ;
|
||||
}
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ PluginManager::defaultLoad( )
|
|||
|
||||
qDebug() << " " << "can load this plugins: " << currAvailable ;
|
||||
|
||||
//===
|
||||
//===
|
||||
foreach(QString pluginFileName, currAvailable)
|
||||
{
|
||||
QString fullfn( workDir.absoluteFilePath( pluginFileName ) );
|
||||
|
|
@ -114,7 +114,7 @@ PluginManager::readPluginInformation(QString fullFileName, QString& pluginName)
|
|||
}
|
||||
else
|
||||
{
|
||||
//do not emit anything, cuz error message already was sent
|
||||
//do not emit anything, cuz error message already was sent
|
||||
//from loadPluginInterface(..)
|
||||
return 1; //this means, some rrror appeared
|
||||
}
|
||||
|
|
@ -122,7 +122,7 @@ PluginManager::readPluginInformation(QString fullFileName, QString& pluginName)
|
|||
|
||||
//=============================================================================
|
||||
|
||||
PluginInterface*
|
||||
PluginInterface*
|
||||
PluginManager::loadPluginInterface(QString fileName)
|
||||
{
|
||||
QString errorMessage = "Default Error Message" ;
|
||||
|
|
@ -134,16 +134,16 @@ PluginManager::loadPluginInterface(QString fileName)
|
|||
{
|
||||
//qDebug() << " " << "loaded..." ;
|
||||
plugin = qobject_cast<PluginInterface*> (pluginObject) ;
|
||||
|
||||
|
||||
if (plugin)
|
||||
{
|
||||
errorMessage = "No error" ;
|
||||
errorMessage = "No error" ;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMessage = "Cast to 'PluginInterface*' failed";
|
||||
errorMessage = "Cast to 'PluginInterface*' failed";
|
||||
emit errorAppeared( errorMessage );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -158,12 +158,12 @@ PluginManager::loadPluginInterface(QString fileName)
|
|||
//=============================================================================
|
||||
|
||||
PluginManager:: ~PluginManager()
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
||||
void
|
||||
void
|
||||
PluginManager::acceptPlugin(QString fileName, QString pluginName)
|
||||
{
|
||||
qDebug() << " " << "accepting plugin " << pluginName;
|
||||
|
|
@ -179,7 +179,7 @@ PluginManager::acceptPlugin(QString fileName, QString pluginName)
|
|||
|
||||
//=============================================================================
|
||||
|
||||
QWidget*
|
||||
QWidget*
|
||||
PluginManager::pluginWidget(QString pluginName)
|
||||
{
|
||||
QWidget* result = 0;
|
||||
|
|
@ -217,30 +217,30 @@ PluginManager::pluginWidget(QString pluginName)
|
|||
QString em = tr("Error: no plugin with name '%1' found")
|
||||
.arg(pluginName);
|
||||
emit errorAppeared( em );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
||||
QWidget*
|
||||
QWidget*
|
||||
PluginManager::getViewWidget(QWidget* parent )
|
||||
{
|
||||
if (viewWidget)
|
||||
return viewWidget;
|
||||
|
||||
|
||||
//=== else, create the viewWidget and return it
|
||||
//
|
||||
viewWidget = new PluginManagerWidget();
|
||||
|
||||
|
||||
foreach(QString pn, names)
|
||||
{
|
||||
qDebug() << " " << "reg new plg " << pn;
|
||||
viewWidget->registerNewPlugin( pn );
|
||||
}
|
||||
|
||||
|
||||
connect(this , SIGNAL( errorAppeared(QString) ) ,
|
||||
viewWidget, SLOT( acceptErrorMessage( QString)));
|
||||
|
||||
|
||||
connect(viewWidget, SIGNAL( destroyed() ) ,
|
||||
this , SLOT( viewWidgetDestroyed( )));
|
||||
|
||||
|
|
@ -249,8 +249,8 @@ PluginManager::getViewWidget(QWidget* parent )
|
|||
|
||||
connect(viewWidget, SIGNAL( removeRequested( QString ) ),
|
||||
this , SLOT( removePlugin(QString )));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
qDebug() << " PluginManager::getViewWidget done";
|
||||
|
|
@ -262,15 +262,15 @@ PluginManager::getViewWidget(QWidget* parent )
|
|||
|
||||
void
|
||||
PluginManager::viewWidgetDestroyed(QObject* obj )
|
||||
{
|
||||
{
|
||||
qDebug() << " PluginManager::viewWidgetDestroyed is here";
|
||||
|
||||
|
||||
viewWidget = 0;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
||||
void
|
||||
void
|
||||
PluginManager::removePlugin(QString pluginName)
|
||||
{
|
||||
QWidget* result = 0;
|
||||
|
|
@ -309,9 +309,9 @@ void
|
|||
PluginManager::installPlugin(QString fileName)
|
||||
{
|
||||
qDebug() << " " << "PluginManager::installPlugin is here" ;
|
||||
|
||||
|
||||
if (!QFile::exists( fileName) )
|
||||
{
|
||||
{
|
||||
QString em = tr("Error (installation): plugin file %1 doesn't exist")
|
||||
.arg( fileName );
|
||||
|
||||
|
|
@ -333,7 +333,7 @@ PluginManager::installPlugin(QString fileName)
|
|||
{
|
||||
acceptPlugin(newFileName, pn);
|
||||
}
|
||||
} //
|
||||
} //
|
||||
else
|
||||
{
|
||||
QString em = tr("Error: can't copy %1 to %2")
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/PluginManager.h *
|
||||
* retroshare-gui/src/gui/PluginManager.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -71,7 +71,7 @@ public:
|
|||
//! PluginManager provides ablolutely no control over returned widget;
|
||||
//! the application should delete it, like all other widgets
|
||||
QWidget* pluginWidget(QString pluginName);
|
||||
|
||||
|
||||
//! returns last error appeared;
|
||||
|
||||
//! Sorry, doesn't work in current implementation
|
||||
|
|
@ -93,7 +93,7 @@ public slots:
|
|||
//! Processes plugin remove request
|
||||
|
||||
//! 'Remove' means that plugin file (so or dll) will be physically deleted
|
||||
//! from 'plugins' folder.
|
||||
//! from 'plugins' folder.
|
||||
void removePlugin(QString pluginName);
|
||||
|
||||
signals:
|
||||
|
|
@ -116,7 +116,7 @@ signals:
|
|||
|
||||
protected:
|
||||
PluginManagerWidget* viewWidget;
|
||||
|
||||
|
||||
QStringList fileNames;
|
||||
QStringList names;
|
||||
|
||||
|
|
@ -139,7 +139,7 @@ protected:
|
|||
|
||||
PluginInterface* loadPluginInterface(QString fileName ) ;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/PluginManagerWidget.cpp *
|
||||
* retroshare-gui/src/gui/PluginManagerWidget.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -41,7 +41,7 @@ PluginFrame::PluginFrame( QString pluginName, QWidget * parent)
|
|||
:QFrame(parent)
|
||||
{
|
||||
plgName = pluginName;
|
||||
|
||||
|
||||
// labels
|
||||
labelsLay = new QVBoxLayout() ;
|
||||
nameLabel = new QLabel();
|
||||
|
|
@ -100,37 +100,37 @@ PluginFrame::getPluginName()
|
|||
|
||||
PluginManagerWidget::PluginManagerWidget(QWidget * parent)
|
||||
:QFrame(parent)
|
||||
{
|
||||
qDebug() << " " << "PluginManagerWidget::PluginManagerWidget here";
|
||||
{
|
||||
qDebug() << " " << "PluginManagerWidget::PluginManagerWidget here";
|
||||
|
||||
mainLayout = new QVBoxLayout(this);
|
||||
|
||||
//===
|
||||
installPluginLayout = new QHBoxLayout();
|
||||
installPluginButton = new QPushButton();
|
||||
|
||||
|
||||
installPluginButton->setText(tr("Install New Plugin..."));
|
||||
connect( installPluginButton, SIGNAL( clicked() ),
|
||||
this , SLOT( installPluginButtonClicked() ) );
|
||||
installPluginLayout->addWidget(installPluginButton);
|
||||
installPluginSpacer = new QSpacerItem(283, 20,
|
||||
installPluginSpacer = new QSpacerItem(283, 20,
|
||||
QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
installPluginLayout->addItem(installPluginSpacer);
|
||||
|
||||
mainLayout->addLayout( installPluginLayout );
|
||||
|
||||
|
||||
//===
|
||||
pluginFramesContainer = new QFrame();
|
||||
pluginFramesLayout = new QVBoxLayout(pluginFramesContainer);
|
||||
|
||||
|
||||
mainLayout->addWidget(pluginFramesContainer);
|
||||
|
||||
|
||||
//===
|
||||
errorsConsole = new QTextEdit();
|
||||
|
||||
|
||||
mainLayout->addWidget( errorsConsole );
|
||||
|
||||
qDebug() << " " << "PluginManagerWidget::PluginManagerWidget done";
|
||||
|
||||
qDebug() << " " << "PluginManagerWidget::PluginManagerWidget done";
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
@ -145,13 +145,13 @@ PluginManagerWidget::~PluginManagerWidget()
|
|||
void
|
||||
PluginManagerWidget::registerNewPlugin(QString pluginName)
|
||||
{
|
||||
qDebug() << " " << "PluginManagerWidget::registerNewPlugin "<< pluginName;
|
||||
qDebug() << " " << "PluginManagerWidget::registerNewPlugin "<< pluginName;
|
||||
|
||||
PluginFrame* pf = new PluginFrame(pluginName, pluginFramesContainer) ;
|
||||
|
||||
|
||||
connect( pf , SIGNAL( needToRemove(QString)),
|
||||
this, SIGNAL( removeRequested(QString) ) );
|
||||
|
||||
|
||||
pluginFramesLayout->addWidget(pf);
|
||||
}
|
||||
|
||||
|
|
@ -188,12 +188,12 @@ PluginManagerWidget::removePluginFrame(QString pluginName)
|
|||
// normally unreachable place
|
||||
QString em = tr("Widget for plugin %1 not found on plugins frame")
|
||||
.arg( pluginName ) ;
|
||||
acceptErrorMessage( em );
|
||||
acceptErrorMessage( em );
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
||||
void
|
||||
void
|
||||
PluginManagerWidget::acceptErrorMessage(QString errorMessage)
|
||||
{
|
||||
errorsConsole->append( errorMessage );
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/PluginManagerWidget.h *
|
||||
* retroshare-gui/src/gui/PluginManagerWidget.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -34,7 +34,7 @@ class QSpacerItem;
|
|||
class QTextEdit;
|
||||
|
||||
//=============================================================================
|
||||
|
||||
|
||||
class PluginFrame : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
@ -47,7 +47,7 @@ public:
|
|||
|
||||
signals:
|
||||
void needToRemove(QString pluginName);
|
||||
|
||||
|
||||
protected slots:
|
||||
void removeButtonClicked();
|
||||
|
||||
|
|
@ -70,10 +70,10 @@ protected:
|
|||
//! GUI representation of the PluginManager class
|
||||
|
||||
//! This is something like GUI for PluginManager class. Or you can think
|
||||
//! about PluginManagerWidget as a view, and a PluginManager as a model.
|
||||
//! about PluginManagerWidget as a view, and a PluginManager as a model.
|
||||
//! Instances should be created only by PluginManager class; maybe later i'll
|
||||
//! hide constructor in some way. Parent (or somebody else) can delete it.
|
||||
//! Widget itself can be used anywere, in some 'settings' dialogs.
|
||||
//! Widget itself can be used anywere, in some 'settings' dialogs.
|
||||
class PluginManagerWidget: public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
@ -93,7 +93,7 @@ public slots:
|
|||
void acceptErrorMessage(QString errorMessage);
|
||||
|
||||
protected slots:
|
||||
|
||||
|
||||
protected:
|
||||
QVBoxLayout* mainLayout;
|
||||
QFrame* pluginFramesContainer;
|
||||
|
|
@ -108,7 +108,7 @@ protected:
|
|||
protected slots:
|
||||
void installPluginButtonClicked();
|
||||
};
|
||||
|
||||
|
||||
//=============================================================================
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/PluginsPage.cpp *
|
||||
* retroshare-gui/src/gui/PluginsPage.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -42,20 +42,20 @@
|
|||
#include "PluginsPage.h"
|
||||
#include "PluginManager.h"
|
||||
|
||||
//==============================================================================
|
||||
//==============================================================================
|
||||
|
||||
PluginsPage::PluginsPage(QWidget *parent )
|
||||
// :QGroupBox(parent) // this is for toy applications, do not remove
|
||||
:MainPage(parent) // this for real retroshare app
|
||||
{
|
||||
//===
|
||||
//===
|
||||
pluginManager = new PluginManager();
|
||||
connect( pluginManager, SIGNAL( newPluginRegistered(QString) ),
|
||||
this , SLOT( pluginRegistered(QString) ) );
|
||||
|
||||
|
||||
//=== create some gui elements =====
|
||||
pluginPageLayout = new QVBoxLayout(this);
|
||||
|
||||
|
||||
// this->setTitle("RetroShare plugins");
|
||||
|
||||
pluginTabs = new QTabWidget(this) ;
|
||||
|
|
@ -73,8 +73,8 @@ PluginsPage::PluginsPage(QWidget *parent )
|
|||
pmLay->addItem(pmSpacer);
|
||||
|
||||
pluginTabs->addTab( pmFrame, "Manager" ) ;
|
||||
|
||||
|
||||
|
||||
|
||||
pluginManager->defaultLoad( ) ;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/PluginsPage.h *
|
||||
* retroshare-gui/src/gui/PluginsPage.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ PhotoView::PhotoView(QWidget *parent)
|
|||
ui->setupUi(this);
|
||||
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
|
||||
connect(ui->shareButton, SIGNAL(clicked()), this, SLOT(copyMessageLink()));
|
||||
}
|
||||
|
||||
|
|
@ -49,21 +49,21 @@ PhotoView::~PhotoView()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
void PhotoView::setPixmap(const QPixmap& pixmap)
|
||||
void PhotoView::setPixmap(const QPixmap& pixmap)
|
||||
{
|
||||
ui->photoLabel->setPixmap(pixmap);
|
||||
this->adjustSize();
|
||||
}
|
||||
|
||||
void PhotoView::setTitle(const QString& text)
|
||||
void PhotoView::setTitle(const QString& text)
|
||||
{
|
||||
ui->titleLabel->setText(text);
|
||||
}
|
||||
|
||||
void PhotoView::setName(const RsGxsId& authorID)
|
||||
void PhotoView::setName(const RsGxsId& authorID)
|
||||
{
|
||||
ui->nameLabel->setId(authorID);
|
||||
|
||||
|
||||
RsIdentityDetails idDetails ;
|
||||
rsIdentity->getIdDetails(authorID,idDetails);
|
||||
|
||||
|
|
@ -71,21 +71,21 @@ void PhotoView::setName(const RsGxsId& authorID)
|
|||
|
||||
if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL))
|
||||
pixmap = GxsIdDetails::makeDefaultIcon(authorID,GxsIdDetails::SMALL);
|
||||
|
||||
|
||||
ui->avatarWidget->setPixmap(pixmap);
|
||||
}
|
||||
|
||||
void PhotoView::setTime(const QString& text)
|
||||
void PhotoView::setTime(const QString& text)
|
||||
{
|
||||
ui->timeLabel->setText(text);
|
||||
}
|
||||
|
||||
void PhotoView::setGroupId(const RsGxsGroupId &groupId)
|
||||
void PhotoView::setGroupId(const RsGxsGroupId &groupId)
|
||||
{
|
||||
mGroupId = groupId;
|
||||
}
|
||||
|
||||
void PhotoView::setMessageId(const RsGxsMessageId& messageId)
|
||||
void PhotoView::setMessageId(const RsGxsMessageId& messageId)
|
||||
{
|
||||
mMessageId = messageId ;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
#include "retroshare/rswiki.h"
|
||||
#include <iostream>
|
||||
|
||||
const uint32_t PostedCreateEnabledFlags = (
|
||||
const uint32_t PostedCreateEnabledFlags = (
|
||||
GXS_GROUP_FLAGS_NAME |
|
||||
GXS_GROUP_FLAGS_ICON |
|
||||
GXS_GROUP_FLAGS_DESCRIPTION |
|
||||
|
|
@ -154,7 +154,7 @@ bool PostedGroupDialog::service_loadGroup(const RsGxsGenericGroupData *data, Mod
|
|||
|
||||
const RsPostedGroup& group = *pgroup;
|
||||
description = QString::fromUtf8(group.mDescription.c_str());
|
||||
|
||||
|
||||
if (group.mGroupImage.mData)
|
||||
{
|
||||
QPixmap pixmap;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/QuikStartWizard.cpp *
|
||||
* retroshare-gui/src/gui/QuikStartWizard.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Affero General Public License *
|
||||
|
|
@ -47,27 +47,27 @@ QuickStartWizard::QuickStartWizard(QWidget *parent) :
|
|||
ui.headerFrame->setHeaderText("RetroShare");
|
||||
|
||||
ui.pagesWizard->setCurrentIndex(0);
|
||||
|
||||
|
||||
loadNetwork();
|
||||
loadShare();
|
||||
loadGeneral();
|
||||
|
||||
|
||||
|
||||
// ui.checkBoxF2FRouting->setChecked(true) ;
|
||||
// ui.checkBoxF2FRouting->setEnabled(false) ;
|
||||
|
||||
|
||||
connect( ui.netModeComboBox, SIGNAL( activated(int) ), this, SLOT( toggleUPnP() ) );
|
||||
// connect( ui.checkBoxTunnelConnection, SIGNAL( toggled( bool ) ), this, SLOT( toggleTunnelConnection(bool) ) );
|
||||
|
||||
|
||||
// bool b = rsPeers->getAllowTunnelConnection() ;
|
||||
// ui.checkBoxTunnelConnection->setChecked(b) ;
|
||||
|
||||
|
||||
QHeaderView_setSectionResizeModeColumn(ui.shareddirList->horizontalHeader(), 0, QHeaderView::Stretch);
|
||||
QHeaderView_setSectionResizeModeColumn(ui.shareddirList->horizontalHeader(), 2, QHeaderView::Interactive);
|
||||
|
||||
|
||||
ui.shareddirList->horizontalHeader()->resizeSection( 0, 360 );
|
||||
ui.shareddirList->horizontalHeader()->setStretchLastSection(false);
|
||||
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifndef Q_OS_WIN
|
||||
ui.checkBoxRunRetroshareAtSystemStartup->setVisible(false);
|
||||
|
|
@ -148,7 +148,7 @@ void QuickStartWizard::on_pushButtonConnectionNext_clicked()
|
|||
vs_dht = RS_VS_DHT_OFF;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
RsPeerDetails detail;
|
||||
if (!rsPeers->getPeerDetails(rsPeers->getOwnId(), detail))
|
||||
|
|
@ -159,7 +159,7 @@ void QuickStartWizard::on_pushButtonConnectionNext_clicked()
|
|||
{
|
||||
rsPeers->setVisState(rsPeers->getOwnId(), vs_disc, vs_dht);
|
||||
}
|
||||
|
||||
|
||||
rsConfig->SetMaxDataRates( ui.doubleSpinBoxDownloadSpeed->value(), ui.doubleSpinBoxUploadSpeed->value() );
|
||||
|
||||
ui.pagesWizard->setCurrentIndex(2);
|
||||
|
|
@ -215,7 +215,7 @@ void QuickStartWizard::on_pushButtonSystemFinish_clicked()
|
|||
#endif
|
||||
|
||||
saveChanges();
|
||||
|
||||
|
||||
close();
|
||||
}
|
||||
|
||||
|
|
@ -407,7 +407,7 @@ QuickStartWizard::loadGeneral()
|
|||
|
||||
ui.checkBoxStartMinimized->setChecked(Settings->getStartMinimized());
|
||||
ui.checkBoxQuit->setChecked(Settings->value("doQuit", false).toBool());
|
||||
|
||||
|
||||
ui.rbtPageOnToolBar->setChecked(Settings->getPageButtonLoc());
|
||||
ui.rbtPageOnListItem->setChecked(!Settings->getPageButtonLoc());
|
||||
|
||||
|
|
@ -484,7 +484,7 @@ void QuickStartWizard::loadNetwork()
|
|||
netIndex = 3; // NONE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ui.discoveryComboBox->setCurrentIndex(netIndex);
|
||||
|
||||
int dlrate = 0;
|
||||
|
|
@ -532,7 +532,7 @@ void QuickStartWizard::saveChanges()
|
|||
netMode = RS_NETMODE_UPNP;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
rsPeers->setNetworkMode(ownId, netMode);
|
||||
|
||||
/* Check if vis has changed */
|
||||
|
|
@ -558,7 +558,7 @@ void QuickStartWizard::saveChanges()
|
|||
vs_dht = RS_VS_DHT_OFF;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if ((vs_disc != detail.vs_disc) || (vs_dht != detail.vs_dht))
|
||||
{
|
||||
rsPeers->setVisState(ownId, vs_disc, vs_dht);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/QuikStartWizard.h *
|
||||
* retroshare-gui/src/gui/QuikStartWizard.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -27,17 +27,17 @@
|
|||
#include "ui_QuickStartWizard.h"
|
||||
|
||||
|
||||
class QuickStartWizard : public QDialog
|
||||
class QuickStartWizard : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(QuickStartWizard)
|
||||
|
||||
|
||||
public:
|
||||
explicit QuickStartWizard(QWidget *parent = 0);
|
||||
virtual ~QuickStartWizard();
|
||||
|
||||
|
||||
void loadNetwork();
|
||||
void loadShare();
|
||||
void loadShare();
|
||||
void loadGeneral();
|
||||
|
||||
protected:
|
||||
|
|
@ -46,7 +46,7 @@ protected:
|
|||
|
||||
private:
|
||||
Ui::QuickStartWizard ui;
|
||||
|
||||
|
||||
bool messageBoxOk(QString);
|
||||
|
||||
private Q_SLOTS:
|
||||
|
|
@ -67,7 +67,7 @@ private Q_SLOTS:
|
|||
void on_pushButtonConnectionExit_clicked();
|
||||
void on_pushButtonConnectionNext_clicked();
|
||||
void on_pushButtonConnectionBack_clicked();
|
||||
|
||||
|
||||
void updateFlags(bool);
|
||||
void saveChanges();
|
||||
//void toggleUPnP();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RSHumanReadableDelegate.h *
|
||||
* retroshare-gui/src/gui/RSHumanReadableDelegate.h *
|
||||
* *
|
||||
* Copyright (c) 2010 Cyril Soler <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -18,19 +18,19 @@
|
|||
* *
|
||||
*******************************************************************************/
|
||||
|
||||
/** Use this class for displaying dates and sizes in a readable format, while allowing to read the
|
||||
/** Use this class for displaying dates and sizes in a readable format, while allowing to read the
|
||||
* real size in the column.
|
||||
*
|
||||
* To use:
|
||||
*
|
||||
* - in the QABstractItemView constructor, do a
|
||||
* - in the QABstractItemView constructor, do a
|
||||
*
|
||||
* myView->setItemDelegateForColumn(SR_SIZE_COL,new RSHumanReadableSizeDelegate()) ;
|
||||
*
|
||||
* - each field must be filled with a string that allows a proper sorting based on lexicographic
|
||||
* order. For Sizes, use this:
|
||||
*
|
||||
* myView->setText(SR_SIZE_COL, QString("%1").arg(dir.count,(int)15,(int)10));
|
||||
* myView->setText(SR_SIZE_COL, QString("%1").arg(dir.count,(int)15,(int)10));
|
||||
*
|
||||
* Note: there's no .cpp file, because the code here is really simple.
|
||||
*/
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
class RSHumanReadableDelegate: public QAbstractItemDelegate
|
||||
{
|
||||
public:
|
||||
virtual QSize sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const
|
||||
virtual QSize sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const
|
||||
{
|
||||
return QSize(50,17) ;
|
||||
}
|
||||
|
|
@ -56,28 +56,28 @@ class RSHumanReadableDelegate: public QAbstractItemDelegate
|
|||
QPalette::ColorGroup cg = option.state & QStyle::State_Enabled ? QPalette::Normal : QPalette::Disabled;
|
||||
QVariant value = index.data(Qt::ForegroundRole);
|
||||
|
||||
if(value.isValid() && qvariant_cast<QColor>(value).isValid())
|
||||
if(value.isValid() && qvariant_cast<QColor>(value).isValid())
|
||||
option.palette.setColor(QPalette::Text, qvariant_cast<QColor>(value));
|
||||
|
||||
// select pen color
|
||||
if(option.state & QStyle::State_Selected)
|
||||
painter->setPen(option.palette.color(cg, QPalette::HighlightedText));
|
||||
else
|
||||
else
|
||||
painter->setPen(option.palette.color(cg, QPalette::Text));
|
||||
|
||||
// draw the background color
|
||||
if(option.showDecorationSelected && (option.state & QStyle::State_Selected))
|
||||
// draw the background color
|
||||
if(option.showDecorationSelected && (option.state & QStyle::State_Selected))
|
||||
{
|
||||
if(cg == QPalette::Normal && !(option.state & QStyle::State_Active))
|
||||
if(cg == QPalette::Normal && !(option.state & QStyle::State_Active))
|
||||
cg = QPalette::Inactive;
|
||||
|
||||
painter->fillRect(option.rect, option.palette.brush(cg, QPalette::Highlight));
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
value = index.data(Qt::BackgroundRole);
|
||||
|
||||
if(value.isValid() && qvariant_cast<QColor>(value).isValid())
|
||||
if(value.isValid() && qvariant_cast<QColor>(value).isValid())
|
||||
painter->fillRect(option.rect, qvariant_cast<QColor>(value));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RemoteDirModel.cpp *
|
||||
* retroshare-gui/src/gui/RemoteDirModel.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -334,7 +334,7 @@ QString RetroshareDirModel::getGroupsString(FileStorageFlags flags,const std::li
|
|||
RsGroupInfo group_info ;
|
||||
|
||||
for(std::list<RsNodeGroupId>::const_iterator it(group_ids.begin());it!=group_ids.end();)
|
||||
if(rsPeers->getGroupInfo(*it,group_info))
|
||||
if(rsPeers->getGroupInfo(*it,group_info))
|
||||
{
|
||||
groups_str += GroupDefs::name(group_info) ;
|
||||
|
||||
|
|
@ -671,7 +671,7 @@ QString FlatStyle_RDM::computeDirectoryPath(const DirDetails& details) const
|
|||
}
|
||||
while(det->parent != NULL);
|
||||
#endif
|
||||
|
||||
|
||||
return dir ;
|
||||
}
|
||||
|
||||
|
|
@ -1417,7 +1417,7 @@ void RetroshareDirModel::getFileInfoFromIndexList(const QModelIndexList& list, s
|
|||
std::cerr << "Path: " << details.path << std::endl;
|
||||
#endif
|
||||
// Note: for directories, the returned hash, is the peer id, so if we collect
|
||||
// dirs, we need to be a bit more conservative for the
|
||||
// dirs, we need to be a bit more conservative for the
|
||||
|
||||
if(already_in.find(details.hash.toStdString()+details.name) == already_in.end())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RemoteDirModel.h *
|
||||
* retroshare-gui/src/gui/RemoteDirModel.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -219,7 +219,7 @@ class TreeStyle_RDM: public RetroshareDirModel
|
|||
//
|
||||
class FlatStyle_RDM: public RetroshareDirModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FlatStyle_RDM(bool mode);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RetroshareLink.cpp *
|
||||
* retroshare-gui/src/gui/RetroshareLink.cpp *
|
||||
* *
|
||||
* Copyright (c) 2009 Cyril Soler <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RetroshareLink.h *
|
||||
* retroshare-gui/src/gui/RetroshareLink.h *
|
||||
* *
|
||||
* Copyright (c) 2009 Cyril Soler <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RsAutoUpdatePage.cpp *
|
||||
* retroshare-gui/src/gui/RsAutoUpdatePage.cpp *
|
||||
* *
|
||||
* Copyright (c) 2009 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RsGUIEventManager.cpp *
|
||||
* retroshare-gui/src/gui/RsGUIEventManager.cpp *
|
||||
* *
|
||||
* Copyright (c) 2010 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/RsGUIEventManager.h *
|
||||
* retroshare-gui/src/gui/RsGUIEventManager.h *
|
||||
* *
|
||||
* Copyright (c) 2010 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/SearchTreeWidget.cpp *
|
||||
* retroshare-gui/src/gui/SearchTreeWidget.cpp *
|
||||
* *
|
||||
* Copyright (c) 2008 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -68,7 +68,7 @@ QMimeData * SearchTreeWidget::mimeData ( const QList<QTreeWidgetItem *> items )
|
|||
|
||||
|
||||
|
||||
QStringList SearchTreeWidget::mimeTypes () const
|
||||
QStringList SearchTreeWidget::mimeTypes () const
|
||||
{
|
||||
QStringList list;
|
||||
list.push_back("application/x-rsfilelist");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/SearchTreeWidget.h *
|
||||
* retroshare-gui/src/gui/SearchTreeWidget.h *
|
||||
* *
|
||||
* Copyright (c) 2008 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -40,13 +40,13 @@
|
|||
class SearchTreeWidget : public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
public:
|
||||
SearchTreeWidget(QWidget *parent = 0);
|
||||
|
||||
protected:
|
||||
virtual QMimeData * mimeData ( const QList<QTreeWidgetItem *> items ) const;
|
||||
virtual QStringList mimeTypes () const;
|
||||
virtual QStringList mimeTypes () const;
|
||||
virtual Qt::DropActions supportedDropActions () const;
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/ServicePermissionDialog.cpp *
|
||||
* retroshare-gui/src/gui/ServicePermissionDialog.cpp *
|
||||
* *
|
||||
* Copyright (c) 2013 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -36,7 +36,7 @@ ServicePermissionDialog::ServicePermissionDialog() :
|
|||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
Settings->loadWidgetInformation(this);
|
||||
|
||||
|
||||
ui->headerFrame->setHeaderImage(FilesDefs::getPixmapFromQtResourcePath(":/images/user/servicepermissions64.png"));
|
||||
ui->headerFrame->setHeaderText(tr("Service Permissions"));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/ServicePermissionDialog.h *
|
||||
* retroshare-gui/src/gui/ServicePermissionDialog.h *
|
||||
* *
|
||||
* Copyright (c) 2013 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/ShareManager.cpp *
|
||||
* retroshare-gui/src/gui/ShareManager.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/ShareManager.h *
|
||||
* retroshare-gui/src/gui/ShareManager.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/SoundManager.cpp *
|
||||
* retroshare-gui/src/gui/SoundManager.cpp *
|
||||
* *
|
||||
* Copyright (c) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/SoundManager.h *
|
||||
* retroshare-gui/src/gui/SoundManager.h *
|
||||
* *
|
||||
* Copyright (c) 2012 Retroshare Team <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/StartDialog.cpp *
|
||||
* retroshare-gui/src/gui/StartDialog.cpp *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -45,7 +45,7 @@ StartDialog::StartDialog(QWidget *parent)
|
|||
#endif
|
||||
|
||||
Settings->loadWidgetInformation(this);
|
||||
|
||||
|
||||
/* Put the Login dialog in the screen center */
|
||||
const QRect screen = RsApplication::primaryScreenGeometry();
|
||||
this->move( screen.center() - this->rect().center() );
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/StartDialog.h *
|
||||
* retroshare-gui/src/gui/StartDialog.h *
|
||||
* *
|
||||
* Copyright (c) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/CustomFrame.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/CustomFrame.cpp *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/CustomFrame.h *
|
||||
* retroshare-gui/src/gui/TheWire/CustomFrame.h *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseAddDialog.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/PulseAddDialog.cpp *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -71,7 +71,7 @@ void PulseAddDialog::setGroup(RsWireGroup &group)
|
|||
{
|
||||
ui.label_groupName->setText(QString::fromStdString(group.mMeta.mGroupName));
|
||||
ui.label_idName->setText(QString::fromStdString(group.mMeta.mAuthorId.toStdString()));
|
||||
|
||||
|
||||
if (group.mHeadshot.mData )
|
||||
{
|
||||
QPixmap pixmap;
|
||||
|
|
@ -92,7 +92,7 @@ void PulseAddDialog::setGroup(RsWireGroup &group)
|
|||
ui.headshot->setPixmap(pixmap);
|
||||
ui.topheadshot->setPixmap(pixmap);
|
||||
}
|
||||
|
||||
|
||||
mGroup = group;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseAddDialog.h *
|
||||
* retroshare-gui/src/gui/TheWire/PulseAddDialog.h *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseMessage.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/PulseMessage.cpp *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseMessage.h *
|
||||
* retroshare-gui/src/gui/TheWire/PulseMessage.h *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -30,7 +30,7 @@ class PulseMessage : public QWidget, private Ui::PulseMessage
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PulseMessage(QWidget *parent);
|
||||
PulseMessage(QWidget *parent);
|
||||
|
||||
void setup(RsWirePulseSPtr pulse);
|
||||
void setMessage(QString msg);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseReply.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/PulseReply.cpp *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -111,7 +111,7 @@ void PulseReply::setRepublishesString(QString repub)
|
|||
|
||||
void PulseReply::setRepliesString(QString reply)
|
||||
{
|
||||
label_replies->setText(reply);
|
||||
label_replies->setText(reply);
|
||||
}
|
||||
|
||||
void PulseReply::setPulseStatus(PulseStatus status)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseReply.h *
|
||||
* retroshare-gui/src/gui/TheWire/PulseReply.h *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -54,7 +54,7 @@ protected:
|
|||
virtual void setRepublishesString(QString repub) override;
|
||||
virtual void setRepliesString(QString reply) override;
|
||||
|
||||
//
|
||||
//
|
||||
virtual void setReferenceString(QString ref) override;
|
||||
virtual void setPulseStatus(PulseStatus status) override;
|
||||
// PulseDataInterface ===========
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseReplySeperator.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/PulseReplySeperator.cpp *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseReplySeperator.h *
|
||||
* retroshare-gui/src/gui/TheWire/PulseReplySeperator.h *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseTopLevel.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/PulseTopLevel.cpp *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -107,7 +107,7 @@ void PulseTopLevel::setRepliesString(QString reply)
|
|||
label_extra_replies->setText(BoldString(reply));
|
||||
label_replies->setText(reply);
|
||||
}
|
||||
|
||||
|
||||
void PulseTopLevel::setPulseStatus(PulseStatus status)
|
||||
{
|
||||
widget_replies->setVisible(true); // this is only reachable if we have ORIG so show always.
|
||||
|
|
@ -148,7 +148,7 @@ void PulseTopLevel::setReferenceString(QString ref)
|
|||
toolButton_followParent->setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void PulseTopLevel::mousePressEvent(QMouseEvent */*event*/)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseTopLevel.h *
|
||||
* retroshare-gui/src/gui/TheWire/PulseTopLevel.h *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -53,7 +53,7 @@ protected:
|
|||
virtual void setRepublishesString(QString repub) override;
|
||||
virtual void setRepliesString(QString reply) override;
|
||||
|
||||
//
|
||||
//
|
||||
virtual void setReferenceString(QString ref) override;
|
||||
virtual void setPulseStatus(PulseStatus status) override;
|
||||
// PulseDataInterface ===========
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseViewGroup.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/PulseViewGroup.cpp *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseViewGroup.h *
|
||||
* retroshare-gui/src/gui/TheWire/PulseViewGroup.h *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseViewItem.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/PulseViewItem.cpp *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -331,8 +331,8 @@ void PulseDataItem::showPulse()
|
|||
{
|
||||
QPixmap pixmap;
|
||||
if (GxsIdDetails::loadPixmapFromData(
|
||||
mPulse->mGroupPtr->mHeadshot.mData,
|
||||
mPulse->mGroupPtr->mHeadshot.mSize,
|
||||
mPulse->mGroupPtr->mHeadshot.mData,
|
||||
mPulse->mGroupPtr->mHeadshot.mSize,
|
||||
pixmap,GxsIdDetails::ORIGINAL))
|
||||
{
|
||||
headshotOkay = true;
|
||||
|
|
@ -344,7 +344,7 @@ void PulseDataItem::showPulse()
|
|||
setGroupName("GroupName UNKNOWN");
|
||||
}
|
||||
|
||||
if (!headshotOkay)
|
||||
if (!headshotOkay)
|
||||
{
|
||||
// default.
|
||||
QPixmap pixmap = FilesDefs::getPixmapFromQtResourcePath(":/icons/png/posted.png").scaled(50,50);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/PulseViewItem.h *
|
||||
* retroshare-gui/src/gui/TheWire/PulseViewItem.h *
|
||||
* *
|
||||
* Copyright (c) 2020-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -73,7 +73,7 @@ protected:
|
|||
virtual void setRepublishesString(QString repub) = 0;
|
||||
virtual void setRepliesString(QString reply) = 0;
|
||||
|
||||
//
|
||||
//
|
||||
virtual void setReferenceString(QString ref) = 0;
|
||||
virtual void setPulseStatus(PulseStatus status) = 0;
|
||||
};
|
||||
|
|
@ -134,7 +134,7 @@ protected:
|
|||
void setRepublishes(uint32_t count);
|
||||
void setReplies(uint32_t count);
|
||||
|
||||
//
|
||||
//
|
||||
void setReference(uint32_t flags, RsGxsGroupId groupId, std::string groupName);
|
||||
|
||||
// DATA.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/WireDialog.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/WireDialog.cpp *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -138,7 +138,7 @@ WireDialog::~WireDialog()
|
|||
{
|
||||
// save settings
|
||||
processSettings(false);
|
||||
|
||||
|
||||
clearTwitterView();
|
||||
std::cerr << "WireDialog::~WireDialog()" << std::endl;
|
||||
delete(mWireQueue);
|
||||
|
|
@ -360,14 +360,14 @@ void WireDialog::updateGroups(std::vector<RsWireGroup>& groups)
|
|||
{
|
||||
// grab own groups.
|
||||
// setup Chooser too.
|
||||
mOwnGroups.push_back(it);
|
||||
mOwnGroups.push_back(it);
|
||||
QPixmap pixmap;
|
||||
if (it.mHeadshot.mData)
|
||||
{
|
||||
if (GxsIdDetails::loadPixmapFromData( it.mHeadshot.mData,it.mHeadshot.mSize,pixmap,GxsIdDetails::ORIGINAL))
|
||||
pixmap = pixmap.scaled(32,32);
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
// default.
|
||||
pixmap = FilesDefs::getPixmapFromQtResourcePath(":/icons/wire.png").scaled(32,32);
|
||||
|
|
@ -691,7 +691,7 @@ void WireDialog::postTestTwitterView()
|
|||
clearTwitterView();
|
||||
std::cerr << "WireDialog::postTestTwitterView()" << std::endl;
|
||||
|
||||
addTwitterView(new PulseTopLevel(NULL,RsWirePulseSPtr()));
|
||||
addTwitterView(new PulseTopLevel(NULL,RsWirePulseSPtr()));
|
||||
addTwitterView(new PulseReply(NULL,RsWirePulseSPtr()));
|
||||
addTwitterView(new PulseReply(NULL,RsWirePulseSPtr()));
|
||||
addTwitterView(new PulseReply(NULL,RsWirePulseSPtr()));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/WireDialog.h *
|
||||
* retroshare-gui/src/gui/TheWire/WireDialog.h *
|
||||
* *
|
||||
* Copyright (c) 2012-2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/WireGroupDialog.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/WireGroupDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2020 by Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
const uint32_t WireCreateEnabledFlags = (
|
||||
const uint32_t WireCreateEnabledFlags = (
|
||||
GXS_GROUP_FLAGS_NAME |
|
||||
GXS_GROUP_FLAGS_ICON |
|
||||
// GXS_GROUP_FLAGS_DESCRIPTION |
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/WireGroupDialog.h *
|
||||
* retroshare-gui/src/gui/TheWire/WireGroupDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2020 by Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ void WireGroupExtra::setUp()
|
|||
connect(ui.pushButton_masthead, SIGNAL(clicked() ), this , SLOT(addMasthead()));
|
||||
|
||||
int desired_height = ui.pushButton_masthead->height() + ui.removeButton->height() + ui.lineEdit_Tagline->height();
|
||||
int desired_width = 3/1.0 * desired_height + ui.lineEdit_Tagline->width();
|
||||
int desired_width = 3/1.0 * desired_height + ui.lineEdit_Tagline->width();
|
||||
|
||||
ui.label_masthead->setFixedSize(desired_width, desired_height);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/WireGroupItem.cpp *
|
||||
* retroshare-gui/src/gui/TheWire/WireGroupItem.cpp *
|
||||
* *
|
||||
* Copyright (c) 2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -102,7 +102,7 @@ void WireGroupItem::setup()
|
|||
QPixmap pixmap = FilesDefs::getPixmapFromQtResourcePath(":/icons/wire.png").scaled(32,32, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
label_headshot->setPixmap(pixmap);
|
||||
}
|
||||
|
||||
|
||||
RsIdentityDetails idDetails ;
|
||||
rsIdentity->getIdDetails(mGroup.mMeta.mAuthorId,idDetails);
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ void WireGroupItem::setSelected(bool on)
|
|||
{
|
||||
mSelected = on;
|
||||
// set color too
|
||||
if (mSelected)
|
||||
if (mSelected)
|
||||
{
|
||||
setBackground(QColor (65, 159, 217));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/TheWire/WireGroupItem.h *
|
||||
* retroshare-gui/src/gui/TheWire/WireGroupItem.h *
|
||||
* *
|
||||
* Copyright (c) 2020 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include "ui_TrustView.h"
|
||||
#include <retroshare-gui/RsAutoUpdatePage.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/WikiPoos/WikiAddDialog.cpp *
|
||||
* retroshare-gui/src/gui/WikiPoos/WikiAddDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2012 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -82,4 +82,4 @@ void WikiAddDialog::clearDialog()
|
|||
ui.lineEdit_Name->setText(QString("title"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/WikiPoos/WikiAddDialog.h *
|
||||
* retroshare-gui/src/gui/WikiPoos/WikiAddDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2012 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/WikiPoos/WikiDialog.h *
|
||||
* retroshare-gui/src/gui/WikiPoos/WikiDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2012 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/WikiPoos/WikiEditDialog.cpp *
|
||||
* retroshare-gui/src/gui/WikiPoos/WikiEditDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2012 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
@ -162,7 +162,7 @@ void WikiEditDialog::historySelected()
|
|||
return;
|
||||
}
|
||||
QTreeWidgetItem *item = *(selected.begin());
|
||||
|
||||
|
||||
RsGxsGrpMsgIdPair newSnapshot = mThreadMsgIdPair;
|
||||
std::string pageId = item->data(WET_DATA_COLUMN, WET_ROLE_PAGEID).toString().toStdString();
|
||||
newSnapshot.second = RsGxsMessageId(pageId);
|
||||
|
|
@ -223,14 +223,14 @@ void WikiEditDialog::updateHistoryItem(QTreeWidgetItem *item, bool isLatest)
|
|||
else if ((!mOldHistoryEnabled) && (!isLatest))
|
||||
{
|
||||
isSelectable = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (isSelectable)
|
||||
{
|
||||
std::cerr << "WikiEditDialog::updateHistoryItem() isSelectable";
|
||||
std::cerr << std::endl;
|
||||
|
||||
item->setFlags(Qt::ItemIsSelectable |
|
||||
item->setFlags(Qt::ItemIsSelectable |
|
||||
Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
|
||||
|
||||
if (mHistoryMergeMode)
|
||||
|
|
@ -242,7 +242,7 @@ void WikiEditDialog::updateHistoryItem(QTreeWidgetItem *item, bool isLatest)
|
|||
{
|
||||
item->setData(WET_COL_PAGEID, Qt::CheckStateRole, Qt::Unchecked);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -719,7 +719,7 @@ void WikiEditDialog::loadBaseHistory(const uint32_t &token)
|
|||
std::cerr << "\tThreadId: " << page.mMeta.mThreadId;
|
||||
std::cerr << " ParentId: " << page.mMeta.mParentId;
|
||||
std::cerr << std::endl;
|
||||
|
||||
|
||||
GxsIdRSTreeWidgetItem *modItem = new GxsIdRSTreeWidgetItem(mThreadCompareRole, GxsIdDetails::ICON_TYPE_AVATAR);
|
||||
modItem->setData(WET_DATA_COLUMN, WET_ROLE_ORIGPAGEID, QString::fromStdString(page.mMeta.mOrigMsgId.toStdString()));
|
||||
modItem->setData(WET_DATA_COLUMN, WET_ROLE_PAGEID, QString::fromStdString(page.mMeta.mMsgId.toStdString()));
|
||||
|
|
@ -733,7 +733,7 @@ void WikiEditDialog::loadBaseHistory(const uint32_t &token)
|
|||
QString sort;
|
||||
sort = qtime.toString("yyyyMMdd_hhmmss");
|
||||
text = qtime.toString("dd/MM/yy hh:mm");
|
||||
|
||||
|
||||
modItem->setText(WET_COL_DATE, text);
|
||||
modItem->setData(WET_COL_DATE, WET_ROLE_SORT, sort);
|
||||
}
|
||||
|
|
@ -797,7 +797,7 @@ void WikiEditDialog::loadEditTreeData(const uint32_t &token)
|
|||
{
|
||||
QTreeWidgetItem *item = ui.treeWidget_History->topLevelItem(nIndex);
|
||||
|
||||
/* index by MsgId --> ONLY For Wiki Thread Head Items... SPECIAL HACK FOR HERE! */
|
||||
/* index by MsgId --> ONLY For Wiki Thread Head Items... SPECIAL HACK FOR HERE! */
|
||||
RsGxsMessageId msgId ( item->data(WET_DATA_COLUMN, WET_ROLE_PAGEID).toString().toStdString() );
|
||||
items[msgId] = item;
|
||||
}
|
||||
|
|
@ -806,7 +806,7 @@ void WikiEditDialog::loadEditTreeData(const uint32_t &token)
|
|||
for(vit = snapshots.begin(); vit != snapshots.end(); ++vit)
|
||||
{
|
||||
RsWikiSnapshot &snapshot = *vit;
|
||||
|
||||
|
||||
std::cerr << "Result: PageTitle: " << snapshot.mMeta.mMsgName;
|
||||
std::cerr << " GroupId: " << snapshot.mMeta.mGroupId;
|
||||
std::cerr << std::endl;
|
||||
|
|
@ -846,7 +846,7 @@ void WikiEditDialog::loadEditTreeData(const uint32_t &token)
|
|||
QString sort;
|
||||
sort = qtime.toString("yyyyMMdd_hhmmss");
|
||||
text = qtime.toString("dd/MM/yy hh:mm");
|
||||
|
||||
|
||||
modItem->setText(WET_COL_DATE, text);
|
||||
modItem->setData(WET_COL_DATE, WET_ROLE_SORT, sort);
|
||||
}
|
||||
|
|
@ -895,7 +895,7 @@ void WikiEditDialog::loadRequest(const TokenQueue *queue, const TokenRequest &re
|
|||
{
|
||||
std::cerr << "WikiEditDialog::loadRequest()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
|
||||
if (queue == mWikiQueue)
|
||||
{
|
||||
switch(req.mUserType)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/WikiPoos/WikiEditDialog.h *
|
||||
* retroshare-gui/src/gui/WikiPoos/WikiEditDialog.h *
|
||||
* *
|
||||
* Copyright (C) 2012 Robert Fernie <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* gui/connect/ConfCertDialog.cpp *
|
||||
* retroshare-gui/src/gui/connect/ConfCertDialog.cpp *
|
||||
* *
|
||||
* Copyright (C) 2006 Crypton <retroshare.project@gmail.com> *
|
||||
* *
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue