Ignore:
Timestamp:
Jun 24, 2010, 10:55:44 AM (12 years ago)
Author:
Paul Lelgemann
Message:

o Simplified peer-to-peer settings: overlay and DHT type are now selected by architecture

Location:
trunk/CrypPlugins/P2PEditor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/P2PEditor/P2PEditorSettings.cs

    r1672 r1696  
    187187        }
    188188
    189         [TaskPane("overlay_caption", "overlay_tooltip", GroupExpert, 2, false, DisplayLevel.Expert,
    190             ControlType.ComboBox, new[] {"FullMeshOverlay", "ChordOverlay"})]
    191         public int Overlay
    192         {
    193             get { return (int) _settings.Overlay; }
    194             set
    195             {
    196                 if ((P2POverlayType) value != _settings.Overlay)
    197                 {
    198                     _settings.Overlay = (P2POverlayType) value;
    199                     OnPropertyChanged("Overlay");
    200                     HasChanges = true;
    201                 }
    202             }
    203         }
    204 
    205         [TaskPane("dht_caption", "dht_tooltip", GroupExpert, 3, false, DisplayLevel.Expert,
    206             ControlType.ComboBox, new[] {"FullMeshDHT", "ChordDHT"})]
    207         public int Dht
    208         {
    209             get { return (int) _settings.Dht; }
    210             set
    211             {
    212                 if ((P2PDHTType) value != _settings.Dht)
    213                 {
    214                     _settings.Dht = (P2PDHTType) value;
    215                     OnPropertyChanged("Dht");
     189        [TaskPane("architecture_caption", "architecture_tooltip", GroupExpert, 2, false, DisplayLevel.Expert,
     190            ControlType.ComboBox, new[] { "FullMesh", "Chord" })]
     191        public int Architecture
     192        {
     193            get { return (int)_settings.Architecture; }
     194            set
     195            {
     196                if ((P2PArchitecture)value != _settings.Architecture)
     197                {
     198                    _settings.Architecture = (P2PArchitecture)value;
     199                    OnPropertyChanged("Architecture");
    216200                    HasChanges = true;
    217201                }
  • trunk/CrypPlugins/P2PEditor/Resources/Attributes.Designer.cs

    r1611 r1696  
    6262       
    6363        /// <summary>
     64        ///   Looks up a localized string similar to Architecture.
     65        /// </summary>
     66        internal static string architecture_caption {
     67            get {
     68                return ResourceManager.GetString("architecture_caption", resourceCulture);
     69            }
     70        }
     71       
     72        /// <summary>
     73        ///   Looks up a localized string similar to Architecture of the P2P network..
     74        /// </summary>
     75        internal static string architecture_tooltip {
     76            get {
     77                return ResourceManager.GetString("architecture_tooltip", resourceCulture);
     78            }
     79        }
     80       
     81        /// <summary>
    6482        ///   Looks up a localized string similar to Bootstrapper type.
    6583        /// </summary>
     
    89107       
    90108        /// <summary>
    91         ///   Looks up a localized string similar to DHT type.
    92         /// </summary>
    93         internal static string dht_caption {
    94             get {
    95                 return ResourceManager.GetString("dht_caption", resourceCulture);
    96             }
    97         }
    98        
    99         /// <summary>
    100         ///   Looks up a localized string similar to DHT type.
    101         /// </summary>
    102         internal static string dht_tooltip {
    103             get {
    104                 return ResourceManager.GetString("dht_tooltip", resourceCulture);
    105             }
    106         }
    107        
    108         /// <summary>
    109109        ///   Looks up a localized string similar to Job list refresh interval (seconds).
    110110        /// </summary>
     
    220220            get {
    221221                return ResourceManager.GetString("onnectOnStartup_tooltip", resourceCulture);
    222             }
    223         }
    224        
    225         /// <summary>
    226         ///   Looks up a localized string similar to Overlay type.
    227         /// </summary>
    228         internal static string overlay_caption {
    229             get {
    230                 return ResourceManager.GetString("overlay_caption", resourceCulture);
    231             }
    232         }
    233        
    234         /// <summary>
    235         ///   Looks up a localized string similar to Overlay type.
    236         /// </summary>
    237         internal static string overlay_tooltip {
    238             get {
    239                 return ResourceManager.GetString("overlay_tooltip", resourceCulture);
    240222            }
    241223        }
  • trunk/CrypPlugins/P2PEditor/Resources/Attributes.resx

    r1611 r1696  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
     120  <data name="architecture_caption" xml:space="preserve">
     121    <value>Architecture</value>
     122  </data>
     123  <data name="architecture_tooltip" xml:space="preserve">
     124    <value>Architecture of the P2P network.</value>
     125  </data>
    120126  <data name="bootstrapper_caption" xml:space="preserve">
    121127    <value>Bootstrapper type</value>
     
    127133    <value>Connect on startup</value>
    128134  </data>
    129   <data name="dht_caption" xml:space="preserve">
    130     <value>DHT type</value>
    131   </data>
    132   <data name="dht_tooltip" xml:space="preserve">
    133     <value>DHT type</value>
    134   </data>
    135135  <data name="distributedJobListRefreshInterval_caption" xml:space="preserve">
    136136    <value>Job list refresh interval (seconds)</value>
     
    172172    <value>Establish a connection to the peer-to-peer network during CrypTool startup.</value>
    173173  </data>
    174   <data name="overlay_caption" xml:space="preserve">
    175     <value>Overlay type</value>
    176   </data>
    177   <data name="overlay_tooltip" xml:space="preserve">
    178     <value>Overlay type</value>
    179   </data>
    180174  <data name="start_caption" xml:space="preserve">
    181175    <value>Connect</value>
Note: See TracChangeset for help on using the changeset viewer.