mirror of
				https://github.com/RetroShare/RetroShare.git
				synced 2025-10-30 22:29:00 -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.DescriptiontextEdit ->setReadOnly(true); | ||||
|    | ||||
|   ui.typeEncrypted->setEnabled(false); | ||||
|   ui.typePrivate->setEnabled(false); | ||||
|    | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
|  | @ -94,7 +97,8 @@ void ChannelDetails::loadChannel() | |||
| 	if (!rsChannels) | ||||
| 	{ | ||||
| 		return; | ||||
| 	}	 | ||||
| 	} | ||||
|     uint32_t flags = 0;	 | ||||
| 
 | ||||
| 	std::list<ChannelInfo> channelList; | ||||
| 	std::list<ChannelInfo>::iterator it; | ||||
|  | @ -131,6 +135,17 @@ void ChannelDetails::loadChannel() | |||
| 	 | ||||
|     // Set Channel Description
 | ||||
|     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> | ||||
|     <x>0</x> | ||||
|     <y>0</y> | ||||
|     <width>436</width> | ||||
|     <height>355</height> | ||||
|     <width>455</width> | ||||
|     <height>408</height> | ||||
|    </rect> | ||||
|   </property> | ||||
|   <property name="windowTitle"> | ||||
|  | @ -86,7 +86,7 @@ | |||
|           <item row="3" column="1"> | ||||
|            <widget class="QLineEdit" name="IDline"/> | ||||
|           </item> | ||||
|           <item row="4" column="0" colspan="2"> | ||||
|           <item row="5" column="0" colspan="2"> | ||||
|            <widget class="QGroupBox" name="groupBox"> | ||||
|             <property name="title"> | ||||
|              <string>Channel Description</string> | ||||
|  | @ -95,6 +95,29 @@ | |||
|              <item row="0" column="0"> | ||||
|               <widget class="QTextEdit" name="DescriptiontextEdit"/> | ||||
|              </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> | ||||
|            </widget> | ||||
|           </item> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 defnax
						defnax