mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
added help strings to posted, channels, forums
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7525 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
49cc42ae7d
commit
0fb8ff8829
9 changed files with 162 additions and 130 deletions
|
@ -46,6 +46,18 @@ UserNotify *PostedDialog::getUserNotify(QObject *parent)
|
||||||
return new PostedUserNotify(rsPosted, parent);
|
return new PostedUserNotify(rsPosted, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString PostedDialog::getHelpString() const
|
||||||
|
{
|
||||||
|
QString hlp_str = tr("<h1><img width=\"32\" src=\":/images/64px_help.png\"> Posted</h1> \
|
||||||
|
<p>The posted service allows you to share internet links, that spread among Retroshare nodes like forums and \
|
||||||
|
channels</p> \
|
||||||
|
<p>Links can be commented by subscribed users. A promotion system also gives the opportunity to \
|
||||||
|
enlight important links.</p> \
|
||||||
|
<p>There is no restriction on which links are shared. Be careful when clicking on them.</p>") ;
|
||||||
|
|
||||||
|
return hlp_str ;
|
||||||
|
}
|
||||||
|
|
||||||
QString PostedDialog::text(TextType type)
|
QString PostedDialog::text(TextType type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
|
@ -45,6 +45,7 @@ public:
|
||||||
virtual UserNotify *getUserNotify(QObject *parent);
|
virtual UserNotify *getUserNotify(QObject *parent);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
virtual QString getHelpString() const ;
|
||||||
virtual RetroShareLink::enumType getLinkType() { return RetroShareLink::TYPE_UNKNOWN; }
|
virtual RetroShareLink::enumType getLinkType() { return RetroShareLink::TYPE_UNKNOWN; }
|
||||||
virtual GroupFrameSettings::Type groupFrameSettingsType() { return GroupFrameSettings::Posted; }
|
virtual GroupFrameSettings::Type groupFrameSettingsType() { return GroupFrameSettings::Posted; }
|
||||||
|
|
||||||
|
|
|
@ -102,6 +102,10 @@ GxsGroupFrameDialog::GxsGroupFrameDialog(RsGxsIfaceHelper *ifaceImpl, QWidget *p
|
||||||
QList<int> sizes;
|
QList<int> sizes;
|
||||||
sizes << 300 << width(); // Qt calculates the right sizes
|
sizes << 300 << width(); // Qt calculates the right sizes
|
||||||
ui->splitter->setSizes(sizes);
|
ui->splitter->setSizes(sizes);
|
||||||
|
|
||||||
|
#ifndef UNFINISHED
|
||||||
|
ui->todoPushButton->hide();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsGroupFrameDialog::~GxsGroupFrameDialog()
|
GxsGroupFrameDialog::~GxsGroupFrameDialog()
|
||||||
|
@ -115,6 +119,8 @@ GxsGroupFrameDialog::~GxsGroupFrameDialog()
|
||||||
|
|
||||||
void GxsGroupFrameDialog::initUi()
|
void GxsGroupFrameDialog::initUi()
|
||||||
{
|
{
|
||||||
|
registerHelpButton(ui->helpButton, getHelpString()) ;
|
||||||
|
|
||||||
ui->titleBarPixmap->setPixmap(QPixmap(icon(ICON_NAME)));
|
ui->titleBarPixmap->setPixmap(QPixmap(icon(ICON_NAME)));
|
||||||
ui->titleBarLabel->setText(text(TEXT_NAME));
|
ui->titleBarLabel->setText(text(TEXT_NAME));
|
||||||
|
|
||||||
|
|
|
@ -71,13 +71,15 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GxsGroupFrameDialog(RsGxsIfaceHelper *ifaceImpl, QWidget *parent = 0);
|
GxsGroupFrameDialog(RsGxsIfaceHelper *ifaceImpl, QWidget *parent = 0);
|
||||||
~GxsGroupFrameDialog();
|
virtual ~GxsGroupFrameDialog();
|
||||||
|
|
||||||
bool navigate(const RsGxsGroupId groupId, const RsGxsMessageId& msgId);
|
bool navigate(const RsGxsGroupId groupId, const RsGxsMessageId& msgId);
|
||||||
|
|
||||||
// Callback for all Loads.
|
// Callback for all Loads.
|
||||||
virtual void loadRequest(const TokenQueue *queue, const TokenRequest &req);
|
virtual void loadRequest(const TokenQueue *queue, const TokenRequest &req);
|
||||||
|
|
||||||
|
virtual QString getHelpString() const =0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void showEvent(QShowEvent *event);
|
virtual void showEvent(QShowEvent *event);
|
||||||
virtual void updateDisplay(bool complete);
|
virtual void updateDisplay(bool complete);
|
||||||
|
|
|
@ -6,50 +6,19 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>732</width>
|
<width>619</width>
|
||||||
<height>420</height>
|
<height>420</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<property name="leftMargin">
|
<item>
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QSplitter" name="splitter">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<widget class="QFrame" name="frame">
|
|
||||||
<property name="baseSize">
|
|
||||||
<size>
|
|
||||||
<width>300</width>
|
|
||||||
<height>300</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::NoFrame</enum>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout">
|
|
||||||
<property name="leftMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QFrame" name="titleBarFrame">
|
<widget class="QFrame" name="titleBarFrame">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::Box</enum>
|
<enum>QFrame::Box</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -57,16 +26,7 @@
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<property name="leftMargin">
|
<property name="margin">
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
@ -129,10 +89,31 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="helpButton">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../images.qrc">
|
||||||
|
<normaloff>:/images/64px_help.png</normaloff>:/images/64px_help.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="autoRaise">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item>
|
||||||
|
<widget class="QSplitter" name="splitter">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
<widget class="GroupTreeWidget" name="groupTreeWidget" native="true">
|
<widget class="GroupTreeWidget" name="groupTreeWidget" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
@ -141,9 +122,6 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="RSTabWidget" name="messageTabWidget">
|
<widget class="RSTabWidget" name="messageTabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>-1</number>
|
<number>-1</number>
|
||||||
|
|
|
@ -38,6 +38,22 @@ GxsChannelDialog::~GxsChannelDialog()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString GxsChannelDialog::getHelpString() const
|
||||||
|
{
|
||||||
|
QString hlp_str = tr("<h1><img width=\"32\" src=\":/images/64px_help.png\"> Channels</h1> \
|
||||||
|
<p>Channels allow you to post data (e.g. movies, music) that will spread in the network</p> \
|
||||||
|
<p>You can see the channels your friends are subscribed to, and you automatically forward subscribed channels to \
|
||||||
|
your friends. This promotes good channels in the network.</p>\
|
||||||
|
<p>Only the channel's creator can post on that channel. Other peers \
|
||||||
|
in the network can only read from it, unless the channel is private. You can however share \
|
||||||
|
the posting rights or the reading rights with friend Retroshare nodes.</p>\
|
||||||
|
<p>Channels can be made anonymous, or attached to a Retroshare identity so that readers can contact you if needed.\
|
||||||
|
Enable \"Allow Comments\" if you want to let users comment on your posts.</p>\
|
||||||
|
") ;
|
||||||
|
|
||||||
|
return hlp_str ;
|
||||||
|
}
|
||||||
|
|
||||||
UserNotify *GxsChannelDialog::getUserNotify(QObject *parent)
|
UserNotify *GxsChannelDialog::getUserNotify(QObject *parent)
|
||||||
{
|
{
|
||||||
return new GxsChannelUserNotify(rsGxsChannels, parent);
|
return new GxsChannelUserNotify(rsGxsChannels, parent);
|
||||||
|
|
|
@ -45,6 +45,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
virtual RetroShareLink::enumType getLinkType() { return RetroShareLink::TYPE_CHANNEL; }
|
virtual RetroShareLink::enumType getLinkType() { return RetroShareLink::TYPE_CHANNEL; }
|
||||||
virtual GroupFrameSettings::Type groupFrameSettingsType() { return GroupFrameSettings::Channel; }
|
virtual GroupFrameSettings::Type groupFrameSettingsType() { return GroupFrameSettings::Channel; }
|
||||||
|
virtual QString getHelpString() const ;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void toggleAutoDownload();
|
void toggleAutoDownload();
|
||||||
|
|
|
@ -36,6 +36,21 @@ GxsForumsDialog::~GxsForumsDialog()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString GxsForumsDialog::getHelpString() const
|
||||||
|
{
|
||||||
|
QString hlp_str = tr(
|
||||||
|
"<h1><img width=\"32\" src=\":/images/64px_help.png\"> Forums</h1> \
|
||||||
|
<p>Retroshare Forums look like internet forums, but they work in a decentralized way</p> \
|
||||||
|
<p>You see forums your friends are subscribed to, and you forward subscribed forums to \
|
||||||
|
your friends. This automatically promotes interesting forums in the network.</p> \
|
||||||
|
<p>Forums are either Authenticated (<img src=\":/images/konv_message2.png\" width=\"12\"/>) \
|
||||||
|
or anonymous (<img src=\":/images/konversation.png\" width=\"12\"/>). The former \
|
||||||
|
class is more resistant to spamming because posts are \
|
||||||
|
cryptographically signed using a Retroshare pseudo-identity.</p>") ;
|
||||||
|
|
||||||
|
return hlp_str ;
|
||||||
|
}
|
||||||
|
|
||||||
UserNotify *GxsForumsDialog::getUserNotify(QObject *parent)
|
UserNotify *GxsForumsDialog::getUserNotify(QObject *parent)
|
||||||
{
|
{
|
||||||
return new GxsForumUserNotify(rsGxsForums, parent);
|
return new GxsForumUserNotify(rsGxsForums, parent);
|
||||||
|
|
|
@ -41,6 +41,7 @@ public:
|
||||||
virtual UserNotify *getUserNotify(QObject *parent);
|
virtual UserNotify *getUserNotify(QObject *parent);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
virtual QString getHelpString() const ;
|
||||||
virtual RetroShareLink::enumType getLinkType() { return RetroShareLink::TYPE_FORUM; }
|
virtual RetroShareLink::enumType getLinkType() { return RetroShareLink::TYPE_FORUM; }
|
||||||
virtual GroupFrameSettings::Type groupFrameSettingsType() { return GroupFrameSettings::Forum; }
|
virtual GroupFrameSettings::Type groupFrameSettingsType() { return GroupFrameSettings::Forum; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue