mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
Display the Channel Type on Channel Details
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3535 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
789ca4ff6b
commit
37b797a2b4
2 changed files with 42 additions and 4 deletions
|
@ -55,6 +55,9 @@ ChannelDetails::ChannelDetails(QWidget *parent, Qt::WFlags flags)
|
||||||
ui.IDline ->setReadOnly(true);
|
ui.IDline ->setReadOnly(true);
|
||||||
ui.DescriptiontextEdit ->setReadOnly(true);
|
ui.DescriptiontextEdit ->setReadOnly(true);
|
||||||
|
|
||||||
|
ui.typeEncrypted->setEnabled(false);
|
||||||
|
ui.typePrivate->setEnabled(false);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,6 +98,7 @@ void ChannelDetails::loadChannel()
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
uint32_t flags = 0;
|
||||||
|
|
||||||
std::list<ChannelInfo> channelList;
|
std::list<ChannelInfo> channelList;
|
||||||
std::list<ChannelInfo>::iterator it;
|
std::list<ChannelInfo>::iterator it;
|
||||||
|
@ -132,6 +136,17 @@ void ChannelDetails::loadChannel()
|
||||||
// Set Channel Description
|
// Set Channel Description
|
||||||
ui.DescriptiontextEdit->setText(QString::fromStdWString(ci.channelDesc));
|
ui.DescriptiontextEdit->setText(QString::fromStdWString(ci.channelDesc));
|
||||||
|
|
||||||
|
if (flags |= RS_DISTRIB_PRIVATE)
|
||||||
|
{
|
||||||
|
ui.typeEncrypted->setChecked(false);
|
||||||
|
ui.typePrivate->setChecked(true);
|
||||||
|
}
|
||||||
|
else if (flags |= RS_DISTRIB_ENCRYPTED)
|
||||||
|
{
|
||||||
|
ui.typeEncrypted->setChecked(true);
|
||||||
|
ui.typePrivate->setChecked(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>436</width>
|
<width>455</width>
|
||||||
<height>355</height>
|
<height>408</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QLineEdit" name="IDline"/>
|
<widget class="QLineEdit" name="IDline"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="2">
|
<item row="5" column="0" colspan="2">
|
||||||
<widget class="QGroupBox" name="groupBox">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Channel Description</string>
|
<string>Channel Description</string>
|
||||||
|
@ -95,6 +95,29 @@
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QTextEdit" name="DescriptiontextEdit"/>
|
<widget class="QTextEdit" name="DescriptiontextEdit"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
|
<property name="title">
|
||||||
|
<string>Type</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="typePrivate">
|
||||||
|
<property name="text">
|
||||||
|
<string>Restricted - Anyone can read, limited publishing (Private Publish Key)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="typeEncrypted">
|
||||||
|
<property name="text">
|
||||||
|
<string>Private - (Private Publish Key required to view Messages)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue