mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 17:36:19 -05:00
Added Allowed Messages Information for each Forum if its a Anonymous or Authenticated Forum
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1974 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5807dcd2fe
commit
e2c863199e
@ -54,6 +54,9 @@ ForumDetails::ForumDetails(QWidget *parent, Qt::WFlags flags)
|
|||||||
ui.postline ->setReadOnly(true);
|
ui.postline ->setReadOnly(true);
|
||||||
ui.IDline ->setReadOnly(true);
|
ui.IDline ->setReadOnly(true);
|
||||||
ui.DescriptiontextEdit ->setReadOnly(true);
|
ui.DescriptiontextEdit ->setReadOnly(true);
|
||||||
|
|
||||||
|
ui.radioButton_authd->setEnabled(false);
|
||||||
|
ui.radioButton_anonymous->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -105,29 +108,43 @@ void ForumDetails::loadDialog()
|
|||||||
for(it = forumList.begin(); it != forumList.end(); it++)
|
for(it = forumList.begin(); it != forumList.end(); it++)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Set Forum Name
|
// Set Forum Name
|
||||||
ui.nameline->setText(QString::fromStdWString(fi.forumName));
|
ui.nameline->setText(QString::fromStdWString(fi.forumName));
|
||||||
|
|
||||||
// Set Popularity
|
// Set Popularity
|
||||||
{
|
{
|
||||||
std::ostringstream out;
|
std::ostringstream out;
|
||||||
out << it->pop;
|
out << it->pop;
|
||||||
ui.popline -> setText(QString::fromStdString(out.str()));
|
ui.popline -> setText(QString::fromStdString(out.str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Last Post Date
|
// Set Last Post Date
|
||||||
{
|
{
|
||||||
QDateTime qtime;
|
QDateTime qtime;
|
||||||
qtime.setTime_t(it->lastPost);
|
qtime.setTime_t(it->lastPost);
|
||||||
QString timestamp = qtime.toString("yyyy-MM-dd hh:mm:ss");
|
QString timestamp = qtime.toString("yyyy-MM-dd hh:mm:ss");
|
||||||
ui.postline -> setText(timestamp);
|
ui.postline -> setText(timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Forum ID
|
// Set Forum ID
|
||||||
ui.IDline->setText(QString::fromStdString(fi.forumId));
|
ui.IDline->setText(QString::fromStdString(fi.forumId));
|
||||||
|
|
||||||
// Set Forum Description
|
// Set Forum Description
|
||||||
ui.DescriptiontextEdit->setText(QString::fromStdWString(fi.forumDesc));
|
ui.DescriptiontextEdit->setText(QString::fromStdWString(fi.forumDesc));
|
||||||
|
|
||||||
|
|
||||||
|
if (fi.forumFlags & RS_DISTRIB_AUTHEN_REQ)
|
||||||
|
{
|
||||||
|
ui.radioButton_authd->setChecked(true);
|
||||||
|
ui.radioButton_anonymous->setChecked(false);
|
||||||
|
}
|
||||||
|
if (fi.forumFlags & RS_DISTRIB_AUTHEN_ANON)
|
||||||
|
{
|
||||||
|
ui.radioButton_authd->setChecked(false);
|
||||||
|
ui.radioButton_anonymous->setChecked(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>427</width>
|
<width>436</width>
|
||||||
<height>348</height>
|
<height>355</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="icon">
|
<attribute name="icon">
|
||||||
<iconset resource="../images.qrc">
|
<iconset resource="../images.qrc">
|
||||||
<normaloff>:/images/konversation16.png</normaloff>:/images/konversation16.png</iconset>
|
<normaloff>:/images/info16.png</normaloff>:/images/info16.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Forum Details</string>
|
<string>Forum Details</string>
|
||||||
@ -103,6 +103,56 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QWidget" name="Seite">
|
||||||
|
<attribute name="icon">
|
||||||
|
<iconset resource="../images.qrc">
|
||||||
|
<normaloff>:/images/encrypted22.png</normaloff>:/images/encrypted22.png</iconset>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Security</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
|
<property name="title">
|
||||||
|
<string>Allowed Messages</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QRadioButton" name="radioButton_authd">
|
||||||
|
<property name="text">
|
||||||
|
<string>Authemticated Messages</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QRadioButton" name="radioButton_anonymous">
|
||||||
|
<property name="text">
|
||||||
|
<string>Anonymous Messages</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>358</width>
|
||||||
|
<height>172</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
Loading…
Reference in New Issue
Block a user