From: <Sil...@us...> - 2010-10-13 20:52:35
|
Revision: 3824 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3824&view=rev Author: SilentException Date: 2010-10-13 20:52:28 +0000 (Wed, 13 Oct 2010) Log Message: ----------- MyWorldMap: - changed handling of download exceptions (do not create new bitmap(0,0)! - argument exception) - default scroll factor of 5 - improvements of scroll factor Modified Paths: -------------- trunk/plugins/WorldMap/MAPS/BingAPI.cs trunk/plugins/WorldMap/MAPS/MapImages.cs trunk/plugins/WorldMap/Settings.cs trunk/plugins/WorldMap/WorldMap.cs trunk/plugins/WorldMap/WorldmapConfig.Designer.cs Modified: trunk/plugins/WorldMap/MAPS/BingAPI.cs =================================================================== --- trunk/plugins/WorldMap/MAPS/BingAPI.cs 2010-10-13 12:05:49 UTC (rev 3823) +++ trunk/plugins/WorldMap/MAPS/BingAPI.cs 2010-10-13 20:52:28 UTC (rev 3824) @@ -48,7 +48,7 @@ { // Set credentials using a valid Bing Maps Key //ApplicationId = BindAPIKey.Load(); - ApplicationId = new System.Resources.ResourceManager("WindowPlugins.GUITVSeries.Online_Parsing_Classes.APIKey", typeof(BingApi).Assembly).GetString("Key") + ApplicationId = new System.Resources.ResourceManager("MyWorldMap.MAPS.BingAPIKey", typeof(BingApi).Assembly).GetString("Key") }, Center = new Location { Modified: trunk/plugins/WorldMap/MAPS/MapImages.cs =================================================================== --- trunk/plugins/WorldMap/MAPS/MapImages.cs 2010-10-13 12:05:49 UTC (rev 3823) +++ trunk/plugins/WorldMap/MAPS/MapImages.cs 2010-10-13 20:52:28 UTC (rev 3824) @@ -41,17 +41,21 @@ } catch (WebException err) { - switch (err.Status) - { - case WebExceptionStatus.Timeout: - case WebExceptionStatus.ConnectFailure: - tmpImage = (Bitmap) Image.FromFile(MyWorldmap.MyWorldMap.SkinMediaFolder + "WMTilePlaceholder.jpeg"); - break; - default: - Log.Error("[MyWorldMap]: Download() error: {0}", err.ToString()); - tmpImage = new Bitmap(0, 0); // Empty image - break; - } + Log.Error("[MyWorldMap]: Download() error: {0}", err.ToString()); + tmpImage = (Bitmap)Image.FromFile(MyWorldmap.MyWorldMap.SkinMediaFolder + "WMTilePlaceholder.jpeg"); + /* + switch (err.Status) + { + case WebExceptionStatus.Timeout: + case WebExceptionStatus.ConnectFailure: + tmpImage = (Bitmap)Image.FromFile(MyWorldmap.MyWorldMap.SkinMediaFolder + "WMTilePlaceholder.jpeg"); + break; + default: + Log.Error("[MyWorldMap]: Download() error: {0}", err.ToString()); + tmpImage = new Bitmap(0, 0); // Empty image + break; + } + */ } Log.Debug("[MyWorldMap]: Downloaded image size = {0}x{1}", tmpImage.Width, tmpImage.Height); Modified: trunk/plugins/WorldMap/Settings.cs =================================================================== --- trunk/plugins/WorldMap/Settings.cs 2010-10-13 12:05:49 UTC (rev 3823) +++ trunk/plugins/WorldMap/Settings.cs 2010-10-13 20:52:28 UTC (rev 3824) @@ -71,7 +71,7 @@ : new BingApi(); DownLoadTimeOut = reader.GetValueAsInt(SectionName, ParmDownloadTimeOut, 5); - ScrollFactor = reader.GetValueAsInt(SectionName, ParmScrollFactor, 10); + ScrollFactor = reader.GetValueAsInt(SectionName, ParmScrollFactor, 5); ActionMoveUp = (Action.ActionType) Modified: trunk/plugins/WorldMap/WorldMap.cs =================================================================== --- trunk/plugins/WorldMap/WorldMap.cs 2010-10-13 12:05:49 UTC (rev 3823) +++ trunk/plugins/WorldMap/WorldMap.cs 2010-10-13 20:52:28 UTC (rev 3824) @@ -206,14 +206,14 @@ } if (action.wID == _settings.ActionMoveUp) { - CurrentLatitude += moveFactor; + CurrentLatitude += moveFactor / 1.5; if (CurrentLatitude > 90) CurrentLatitude = 90; RefreshScreen(); return; } if (action.wID == _settings.ActionMoveDown) { - CurrentLatitude -= moveFactor; + CurrentLatitude -= moveFactor / 1.5; if (CurrentLatitude < -90) CurrentLatitude = -90; RefreshScreen(); return; @@ -288,7 +288,7 @@ private static double Scroll(int zoom, int maxZoom) { - double moveFinalValue = 0.0000312 * ScrollFactor * Math.Pow(2, (maxZoom - zoom - 1)); + double moveFinalValue = 0.0000312 * ScrollFactor * Math.Pow(1.95, (maxZoom - zoom - 1 )); Log.Debug("[MyWorldMap]: ScrollFactor={0}, moveFinalValue={1}", ScrollFactor, moveFinalValue); return moveFinalValue; } Modified: trunk/plugins/WorldMap/WorldmapConfig.Designer.cs =================================================================== --- trunk/plugins/WorldMap/WorldmapConfig.Designer.cs 2010-10-13 12:05:49 UTC (rev 3823) +++ trunk/plugins/WorldMap/WorldmapConfig.Designer.cs 2010-10-13 20:52:28 UTC (rev 3824) @@ -28,444 +28,439 @@ /// </summary> private void InitializeComponent() { - this.tbConfig = new System.Windows.Forms.TabControl(); - this.tabSettings = new System.Windows.Forms.TabPage(); - this.cbGenerateActionLogEntries = new System.Windows.Forms.CheckBox(); - this.label2 = new System.Windows.Forms.Label(); - this.numericUpDownDownloadTimeout = new System.Windows.Forms.NumericUpDown(); - this.tabRemote = new System.Windows.Forms.TabPage(); - this.label20 = new System.Windows.Forms.Label(); - this.cmbToggleProvider = new System.Windows.Forms.ComboBox(); - this.label22 = new System.Windows.Forms.Label(); - this.cmbToggleView = new System.Windows.Forms.ComboBox(); - this.label16 = new System.Windows.Forms.Label(); - this.cmbZoomOut = new System.Windows.Forms.ComboBox(); - this.label15 = new System.Windows.Forms.Label(); - this.cmbZoomIn = new System.Windows.Forms.ComboBox(); - this.label14 = new System.Windows.Forms.Label(); - this.cmbMoveRight = new System.Windows.Forms.ComboBox(); - this.label13 = new System.Windows.Forms.Label(); - this.cmbMoveDown = new System.Windows.Forms.ComboBox(); - this.label12 = new System.Windows.Forms.Label(); - this.cmbMoveLeft = new System.Windows.Forms.ComboBox(); - this.label11 = new System.Windows.Forms.Label(); - this.cmbMoveUp = new System.Windows.Forms.ComboBox(); - this.tabAbout = new System.Windows.Forms.TabPage(); - this.linkDocs_Provider2 = new System.Windows.Forms.LinkLabel(); - this.linkDocs_Provider1 = new System.Windows.Forms.LinkLabel(); - this.labelVer_Provider2 = new System.Windows.Forms.Label(); - this.labelVer_Provider1 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.labelName_Provider2 = new System.Windows.Forms.Label(); - this.labelName_Provider1 = new System.Windows.Forms.Label(); - this.btnOk = new System.Windows.Forms.Button(); - this.btnCancel = new System.Windows.Forms.Button(); - this.label3 = new System.Windows.Forms.Label(); - this.numericUpDownScrollFactor = new System.Windows.Forms.NumericUpDown(); - this.tbConfig.SuspendLayout(); - this.tabSettings.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDownloadTimeout)).BeginInit(); - this.tabRemote.SuspendLayout(); - this.tabAbout.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownScrollFactor)).BeginInit(); - this.SuspendLayout(); - // - // tbConfig - // - this.tbConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbConfig.Controls.Add(this.tabSettings); - this.tbConfig.Controls.Add(this.tabRemote); - this.tbConfig.Controls.Add(this.tabAbout); - this.tbConfig.HotTrack = true; - this.tbConfig.Location = new System.Drawing.Point(1, 1); - this.tbConfig.Name = "tbConfig"; - this.tbConfig.SelectedIndex = 0; - this.tbConfig.Size = new System.Drawing.Size(682, 252); - this.tbConfig.TabIndex = 0; - // - // tabSettings - // - this.tabSettings.Controls.Add(this.numericUpDownScrollFactor); - this.tabSettings.Controls.Add(this.label3); - this.tabSettings.Controls.Add(this.cbGenerateActionLogEntries); - this.tabSettings.Controls.Add(this.label2); - this.tabSettings.Controls.Add(this.numericUpDownDownloadTimeout); - this.tabSettings.Location = new System.Drawing.Point(4, 22); - this.tabSettings.Name = "tabSettings"; - this.tabSettings.Padding = new System.Windows.Forms.Padding(3); - this.tabSettings.Size = new System.Drawing.Size(674, 226); - this.tabSettings.TabIndex = 3; - this.tabSettings.Text = "Settings"; - this.tabSettings.UseVisualStyleBackColor = true; - // - // cbGenerateActionLogEntries - // - this.cbGenerateActionLogEntries.AutoSize = true; - this.cbGenerateActionLogEntries.Location = new System.Drawing.Point(43, 132); - this.cbGenerateActionLogEntries.Name = "cbGenerateActionLogEntries"; - this.cbGenerateActionLogEntries.Size = new System.Drawing.Size(393, 17); - this.cbGenerateActionLogEntries.TabIndex = 23; - this.cbGenerateActionLogEntries.Text = "Generate log entries if a remote or keyboard action occurs (for debug reasons)"; - this.cbGenerateActionLogEntries.UseVisualStyleBackColor = true; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(40, 42); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(147, 13); - this.label2.TabIndex = 1; - this.label2.Text = "Download time out (seconds):"; - // - // numericUpDownDownloadTimeout - // - this.numericUpDownDownloadTimeout.Location = new System.Drawing.Point(243, 40); - this.numericUpDownDownloadTimeout.Maximum = new decimal(new int[] { - 120, + this.tbConfig = new System.Windows.Forms.TabControl(); + this.tabSettings = new System.Windows.Forms.TabPage(); + this.numericUpDownScrollFactor = new System.Windows.Forms.NumericUpDown(); + this.label3 = new System.Windows.Forms.Label(); + this.cbGenerateActionLogEntries = new System.Windows.Forms.CheckBox(); + this.label2 = new System.Windows.Forms.Label(); + this.numericUpDownDownloadTimeout = new System.Windows.Forms.NumericUpDown(); + this.tabRemote = new System.Windows.Forms.TabPage(); + this.label20 = new System.Windows.Forms.Label(); + this.cmbToggleProvider = new System.Windows.Forms.ComboBox(); + this.label22 = new System.Windows.Forms.Label(); + this.cmbToggleView = new System.Windows.Forms.ComboBox(); + this.label16 = new System.Windows.Forms.Label(); + this.cmbZoomOut = new System.Windows.Forms.ComboBox(); + this.label15 = new System.Windows.Forms.Label(); + this.cmbZoomIn = new System.Windows.Forms.ComboBox(); + this.label14 = new System.Windows.Forms.Label(); + this.cmbMoveRight = new System.Windows.Forms.ComboBox(); + this.label13 = new System.Windows.Forms.Label(); + this.cmbMoveDown = new System.Windows.Forms.ComboBox(); + this.label12 = new System.Windows.Forms.Label(); + this.cmbMoveLeft = new System.Windows.Forms.ComboBox(); + this.label11 = new System.Windows.Forms.Label(); + this.cmbMoveUp = new System.Windows.Forms.ComboBox(); + this.tabAbout = new System.Windows.Forms.TabPage(); + this.linkDocs_Provider2 = new System.Windows.Forms.LinkLabel(); + this.linkDocs_Provider1 = new System.Windows.Forms.LinkLabel(); + this.labelVer_Provider2 = new System.Windows.Forms.Label(); + this.labelVer_Provider1 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.labelName_Provider2 = new System.Windows.Forms.Label(); + this.labelName_Provider1 = new System.Windows.Forms.Label(); + this.btnOk = new System.Windows.Forms.Button(); + this.btnCancel = new System.Windows.Forms.Button(); + this.tbConfig.SuspendLayout(); + this.tabSettings.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownScrollFactor)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDownloadTimeout)).BeginInit(); + this.tabRemote.SuspendLayout(); + this.tabAbout.SuspendLayout(); + this.SuspendLayout(); + // + // tbConfig + // + this.tbConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbConfig.Controls.Add(this.tabSettings); + this.tbConfig.Controls.Add(this.tabRemote); + this.tbConfig.Controls.Add(this.tabAbout); + this.tbConfig.HotTrack = true; + this.tbConfig.Location = new System.Drawing.Point(1, 1); + this.tbConfig.Name = "tbConfig"; + this.tbConfig.SelectedIndex = 0; + this.tbConfig.Size = new System.Drawing.Size(682, 252); + this.tbConfig.TabIndex = 0; + // + // tabSettings + // + this.tabSettings.Controls.Add(this.numericUpDownScrollFactor); + this.tabSettings.Controls.Add(this.label3); + this.tabSettings.Controls.Add(this.cbGenerateActionLogEntries); + this.tabSettings.Controls.Add(this.label2); + this.tabSettings.Controls.Add(this.numericUpDownDownloadTimeout); + this.tabSettings.Location = new System.Drawing.Point(4, 22); + this.tabSettings.Name = "tabSettings"; + this.tabSettings.Padding = new System.Windows.Forms.Padding(3); + this.tabSettings.Size = new System.Drawing.Size(674, 226); + this.tabSettings.TabIndex = 3; + this.tabSettings.Text = "Settings"; + this.tabSettings.UseVisualStyleBackColor = true; + // + // numericUpDownScrollFactor + // + this.numericUpDownScrollFactor.Location = new System.Drawing.Point(243, 82); + this.numericUpDownScrollFactor.Maximum = new decimal(new int[] { + 20, 0, 0, 0}); - this.numericUpDownDownloadTimeout.Minimum = new decimal(new int[] { - 5, + this.numericUpDownScrollFactor.Minimum = new decimal(new int[] { + 1, 0, 0, 0}); - this.numericUpDownDownloadTimeout.Name = "numericUpDownDownloadTimeout"; - this.numericUpDownDownloadTimeout.Size = new System.Drawing.Size(44, 20); - this.numericUpDownDownloadTimeout.TabIndex = 0; - this.numericUpDownDownloadTimeout.Value = new decimal(new int[] { - 5, + this.numericUpDownScrollFactor.Name = "numericUpDownScrollFactor"; + this.numericUpDownScrollFactor.Size = new System.Drawing.Size(44, 20); + this.numericUpDownScrollFactor.TabIndex = 25; + this.numericUpDownScrollFactor.Value = new decimal(new int[] { + 10, 0, 0, 0}); - // - // tabRemote - // - this.tabRemote.Controls.Add(this.label20); - this.tabRemote.Controls.Add(this.cmbToggleProvider); - this.tabRemote.Controls.Add(this.label22); - this.tabRemote.Controls.Add(this.cmbToggleView); - this.tabRemote.Controls.Add(this.label16); - this.tabRemote.Controls.Add(this.cmbZoomOut); - this.tabRemote.Controls.Add(this.label15); - this.tabRemote.Controls.Add(this.cmbZoomIn); - this.tabRemote.Controls.Add(this.label14); - this.tabRemote.Controls.Add(this.cmbMoveRight); - this.tabRemote.Controls.Add(this.label13); - this.tabRemote.Controls.Add(this.cmbMoveDown); - this.tabRemote.Controls.Add(this.label12); - this.tabRemote.Controls.Add(this.cmbMoveLeft); - this.tabRemote.Controls.Add(this.label11); - this.tabRemote.Controls.Add(this.cmbMoveUp); - this.tabRemote.Location = new System.Drawing.Point(4, 22); - this.tabRemote.Name = "tabRemote"; - this.tabRemote.Padding = new System.Windows.Forms.Padding(3); - this.tabRemote.Size = new System.Drawing.Size(674, 226); - this.tabRemote.TabIndex = 1; - this.tabRemote.Text = "Remote"; - this.tabRemote.UseVisualStyleBackColor = true; - // - // label20 - // - this.label20.AutoSize = true; - this.label20.Location = new System.Drawing.Point(271, 46); - this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(82, 13); - this.label20.TabIndex = 17; - this.label20.Text = "Toggle Provider"; - // - // cmbToggleProvider - // - this.cmbToggleProvider.FormattingEnabled = true; - this.cmbToggleProvider.Location = new System.Drawing.Point(393, 43); - this.cmbToggleProvider.Name = "cmbToggleProvider"; - this.cmbToggleProvider.Size = new System.Drawing.Size(160, 21); - this.cmbToggleProvider.TabIndex = 16; - // - // label22 - // - this.label22.AutoSize = true; - this.label22.Location = new System.Drawing.Point(271, 19); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(66, 13); - this.label22.TabIndex = 13; - this.label22.Text = "Toggle View"; - // - // cmbToggleView - // - this.cmbToggleView.FormattingEnabled = true; - this.cmbToggleView.Location = new System.Drawing.Point(393, 16); - this.cmbToggleView.Name = "cmbToggleView"; - this.cmbToggleView.Size = new System.Drawing.Size(160, 21); - this.cmbToggleView.TabIndex = 12; - // - // label16 - // - this.label16.AutoSize = true; - this.label16.Location = new System.Drawing.Point(7, 154); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(51, 13); - this.label16.TabIndex = 11; - this.label16.Text = "ZoomOut"; - // - // cmbZoomOut - // - this.cmbZoomOut.FormattingEnabled = true; - this.cmbZoomOut.Location = new System.Drawing.Point(79, 151); - this.cmbZoomOut.Name = "cmbZoomOut"; - this.cmbZoomOut.Size = new System.Drawing.Size(160, 21); - this.cmbZoomOut.TabIndex = 10; - // - // label15 - // - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(7, 127); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(43, 13); - this.label15.TabIndex = 9; - this.label15.Text = "ZoomIn"; - // - // cmbZoomIn - // - this.cmbZoomIn.FormattingEnabled = true; - this.cmbZoomIn.Location = new System.Drawing.Point(79, 124); - this.cmbZoomIn.Name = "cmbZoomIn"; - this.cmbZoomIn.Size = new System.Drawing.Size(160, 21); - this.cmbZoomIn.TabIndex = 8; - // - // label14 - // - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(7, 100); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(59, 13); - this.label14.TabIndex = 7; - this.label14.Text = "MoveRight"; - // - // cmbMoveRight - // - this.cmbMoveRight.FormattingEnabled = true; - this.cmbMoveRight.Location = new System.Drawing.Point(79, 97); - this.cmbMoveRight.Name = "cmbMoveRight"; - this.cmbMoveRight.Size = new System.Drawing.Size(160, 21); - this.cmbMoveRight.TabIndex = 6; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(7, 46); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(62, 13); - this.label13.TabIndex = 5; - this.label13.Text = "MoveDown"; - // - // cmbMoveDown - // - this.cmbMoveDown.FormattingEnabled = true; - this.cmbMoveDown.Location = new System.Drawing.Point(79, 43); - this.cmbMoveDown.Name = "cmbMoveDown"; - this.cmbMoveDown.Size = new System.Drawing.Size(160, 21); - this.cmbMoveDown.TabIndex = 4; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(7, 73); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(52, 13); - this.label12.TabIndex = 3; - this.label12.Text = "MoveLeft"; - // - // cmbMoveLeft - // - this.cmbMoveLeft.FormattingEnabled = true; - this.cmbMoveLeft.Location = new System.Drawing.Point(79, 70); - this.cmbMoveLeft.Name = "cmbMoveLeft"; - this.cmbMoveLeft.Size = new System.Drawing.Size(160, 21); - this.cmbMoveLeft.TabIndex = 2; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(7, 19); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(48, 13); - this.label11.TabIndex = 1; - this.label11.Text = "MoveUp"; - // - // cmbMoveUp - // - this.cmbMoveUp.FormattingEnabled = true; - this.cmbMoveUp.Location = new System.Drawing.Point(79, 16); - this.cmbMoveUp.Name = "cmbMoveUp"; - this.cmbMoveUp.Size = new System.Drawing.Size(160, 21); - this.cmbMoveUp.TabIndex = 0; - // - // tabAbout - // - this.tabAbout.Controls.Add(this.linkDocs_Provider2); - this.tabAbout.Controls.Add(this.linkDocs_Provider1); - this.tabAbout.Controls.Add(this.labelVer_Provider2); - this.tabAbout.Controls.Add(this.labelVer_Provider1); - this.tabAbout.Controls.Add(this.label1); - this.tabAbout.Controls.Add(this.labelName_Provider2); - this.tabAbout.Controls.Add(this.labelName_Provider1); - this.tabAbout.Location = new System.Drawing.Point(4, 22); - this.tabAbout.Name = "tabAbout"; - this.tabAbout.Padding = new System.Windows.Forms.Padding(3); - this.tabAbout.Size = new System.Drawing.Size(674, 226); - this.tabAbout.TabIndex = 2; - this.tabAbout.Text = "About"; - this.tabAbout.UseVisualStyleBackColor = true; - // - // linkDocs_Provider2 - // - this.linkDocs_Provider2.AutoSize = true; - this.linkDocs_Provider2.Location = new System.Drawing.Point(272, 154); - this.linkDocs_Provider2.Name = "linkDocs_Provider2"; - this.linkDocs_Provider2.Size = new System.Drawing.Size(39, 13); - this.linkDocs_Provider2.TabIndex = 8; - this.linkDocs_Provider2.TabStop = true; - this.linkDocs_Provider2.Text = "doc-url"; - this.linkDocs_Provider2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkDocsProvider2LinkClicked); - // - // linkDocs_Provider1 - // - this.linkDocs_Provider1.AutoSize = true; - this.linkDocs_Provider1.Location = new System.Drawing.Point(272, 86); - this.linkDocs_Provider1.Name = "linkDocs_Provider1"; - this.linkDocs_Provider1.Size = new System.Drawing.Size(39, 13); - this.linkDocs_Provider1.TabIndex = 7; - this.linkDocs_Provider1.TabStop = true; - this.linkDocs_Provider1.Text = "doc-url"; - this.linkDocs_Provider1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkDocsProvider1LinkClicked); - // - // labelVer_Provider2 - // - this.labelVer_Provider2.AutoSize = true; - this.labelVer_Provider2.Location = new System.Drawing.Point(152, 154); - this.labelVer_Provider2.Name = "labelVer_Provider2"; - this.labelVer_Provider2.Size = new System.Drawing.Size(22, 13); - this.labelVer_Provider2.TabIndex = 6; - this.labelVer_Provider2.Text = "ver"; - // - // labelVer_Provider1 - // - this.labelVer_Provider1.AutoSize = true; - this.labelVer_Provider1.Location = new System.Drawing.Point(152, 86); - this.labelVer_Provider1.Name = "labelVer_Provider1"; - this.labelVer_Provider1.Size = new System.Drawing.Size(22, 13); - this.labelVer_Provider1.TabIndex = 5; - this.labelVer_Provider1.Text = "ver"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.Location = new System.Drawing.Point(260, 17); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(142, 20); - this.label1.TabIndex = 4; - this.label1.Text = "Map API providers "; - // - // labelName_Provider2 - // - this.labelName_Provider2.AutoSize = true; - this.labelName_Provider2.Location = new System.Drawing.Point(52, 154); - this.labelName_Provider2.Name = "labelName_Provider2"; - this.labelName_Provider2.Size = new System.Drawing.Size(28, 13); - this.labelName_Provider2.TabIndex = 2; - this.labelName_Provider2.Text = "Bing"; - // - // labelName_Provider1 - // - this.labelName_Provider1.AutoSize = true; - this.labelName_Provider1.Location = new System.Drawing.Point(52, 86); - this.labelName_Provider1.Name = "labelName_Provider1"; - this.labelName_Provider1.Size = new System.Drawing.Size(41, 13); - this.labelName_Provider1.TabIndex = 0; - this.labelName_Provider1.Text = "Google"; - // - // btnOk - // - this.btnOk.Location = new System.Drawing.Point(627, 259); - this.btnOk.Name = "btnOk"; - this.btnOk.Size = new System.Drawing.Size(42, 23); - this.btnOk.TabIndex = 1; - this.btnOk.Text = "&OK"; - this.btnOk.UseVisualStyleBackColor = true; - this.btnOk.Click += new System.EventHandler(this.BtnOkClick); - // - // btnCancel - // - this.btnCancel.Location = new System.Drawing.Point(569, 259); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(52, 23); - this.btnCancel.TabIndex = 2; - this.btnCancel.Text = "&Cancel"; - this.btnCancel.UseVisualStyleBackColor = true; - this.btnCancel.Click += new System.EventHandler(this.BtnCancelClick); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(40, 84); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(168, 13); - this.label3.TabIndex = 24; - this.label3.Text = "Scroll at max zoom factor (meters):"; - // - // numericUpDownScrollFactor - // - this.numericUpDownScrollFactor.Increment = new decimal(new int[] { - 5, + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(40, 84); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(168, 13); + this.label3.TabIndex = 24; + this.label3.Text = "Scroll at max zoom factor (meters):"; + // + // cbGenerateActionLogEntries + // + this.cbGenerateActionLogEntries.AutoSize = true; + this.cbGenerateActionLogEntries.Location = new System.Drawing.Point(43, 132); + this.cbGenerateActionLogEntries.Name = "cbGenerateActionLogEntries"; + this.cbGenerateActionLogEntries.Size = new System.Drawing.Size(393, 17); + this.cbGenerateActionLogEntries.TabIndex = 23; + this.cbGenerateActionLogEntries.Text = "Generate log entries if a remote or keyboard action occurs (for debug reasons)"; + this.cbGenerateActionLogEntries.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(40, 42); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(147, 13); + this.label2.TabIndex = 1; + this.label2.Text = "Download time out (seconds):"; + // + // numericUpDownDownloadTimeout + // + this.numericUpDownDownloadTimeout.Location = new System.Drawing.Point(243, 40); + this.numericUpDownDownloadTimeout.Maximum = new decimal(new int[] { + 120, 0, 0, 0}); - this.numericUpDownScrollFactor.Location = new System.Drawing.Point(243, 82); - this.numericUpDownScrollFactor.Maximum = new decimal(new int[] { - 1000, + this.numericUpDownDownloadTimeout.Minimum = new decimal(new int[] { + 5, 0, 0, 0}); - this.numericUpDownScrollFactor.Minimum = new decimal(new int[] { + this.numericUpDownDownloadTimeout.Name = "numericUpDownDownloadTimeout"; + this.numericUpDownDownloadTimeout.Size = new System.Drawing.Size(44, 20); + this.numericUpDownDownloadTimeout.TabIndex = 0; + this.numericUpDownDownloadTimeout.Value = new decimal(new int[] { 5, 0, 0, 0}); - this.numericUpDownScrollFactor.Name = "numericUpDownScrollFactor"; - this.numericUpDownScrollFactor.Size = new System.Drawing.Size(44, 20); - this.numericUpDownScrollFactor.TabIndex = 25; - this.numericUpDownScrollFactor.Value = new decimal(new int[] { - 10, - 0, - 0, - 0}); - // - // WorldmapConfig - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(681, 294); - this.Controls.Add(this.btnCancel); - this.Controls.Add(this.btnOk); - this.Controls.Add(this.tbConfig); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; - this.Name = "WorldmapConfig"; - this.Text = "MyWorldMap Configuration"; - this.Load += new System.EventHandler(this.WorldmapConfigLoad); - this.tbConfig.ResumeLayout(false); - this.tabSettings.ResumeLayout(false); - this.tabSettings.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDownloadTimeout)).EndInit(); - this.tabRemote.ResumeLayout(false); - this.tabRemote.PerformLayout(); - this.tabAbout.ResumeLayout(false); - this.tabAbout.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownScrollFactor)).EndInit(); - this.ResumeLayout(false); + // + // tabRemote + // + this.tabRemote.Controls.Add(this.label20); + this.tabRemote.Controls.Add(this.cmbToggleProvider); + this.tabRemote.Controls.Add(this.label22); + this.tabRemote.Controls.Add(this.cmbToggleView); + this.tabRemote.Controls.Add(this.label16); + this.tabRemote.Controls.Add(this.cmbZoomOut); + this.tabRemote.Controls.Add(this.label15); + this.tabRemote.Controls.Add(this.cmbZoomIn); + this.tabRemote.Controls.Add(this.label14); + this.tabRemote.Controls.Add(this.cmbMoveRight); + this.tabRemote.Controls.Add(this.label13); + this.tabRemote.Controls.Add(this.cmbMoveDown); + this.tabRemote.Controls.Add(this.label12); + this.tabRemote.Controls.Add(this.cmbMoveLeft); + this.tabRemote.Controls.Add(this.label11); + this.tabRemote.Controls.Add(this.cmbMoveUp); + this.tabRemote.Location = new System.Drawing.Point(4, 22); + this.tabRemote.Name = "tabRemote"; + this.tabRemote.Padding = new System.Windows.Forms.Padding(3); + this.tabRemote.Size = new System.Drawing.Size(674, 226); + this.tabRemote.TabIndex = 1; + this.tabRemote.Text = "Remote"; + this.tabRemote.UseVisualStyleBackColor = true; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.Location = new System.Drawing.Point(271, 46); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(82, 13); + this.label20.TabIndex = 17; + this.label20.Text = "Toggle Provider"; + // + // cmbToggleProvider + // + this.cmbToggleProvider.FormattingEnabled = true; + this.cmbToggleProvider.Location = new System.Drawing.Point(393, 43); + this.cmbToggleProvider.Name = "cmbToggleProvider"; + this.cmbToggleProvider.Size = new System.Drawing.Size(160, 21); + this.cmbToggleProvider.TabIndex = 16; + // + // label22 + // + this.label22.AutoSize = true; + this.label22.Location = new System.Drawing.Point(271, 19); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(66, 13); + this.label22.TabIndex = 13; + this.label22.Text = "Toggle View"; + // + // cmbToggleView + // + this.cmbToggleView.FormattingEnabled = true; + this.cmbToggleView.Location = new System.Drawing.Point(393, 16); + this.cmbToggleView.Name = "cmbToggleView"; + this.cmbToggleView.Size = new System.Drawing.Size(160, 21); + this.cmbToggleView.TabIndex = 12; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(7, 154); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(51, 13); + this.label16.TabIndex = 11; + this.label16.Text = "ZoomOut"; + // + // cmbZoomOut + // + this.cmbZoomOut.FormattingEnabled = true; + this.cmbZoomOut.Location = new System.Drawing.Point(79, 151); + this.cmbZoomOut.Name = "cmbZoomOut"; + this.cmbZoomOut.Size = new System.Drawing.Size(160, 21); + this.cmbZoomOut.TabIndex = 10; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(7, 127); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(43, 13); + this.label15.TabIndex = 9; + this.label15.Text = "ZoomIn"; + // + // cmbZoomIn + // + this.cmbZoomIn.FormattingEnabled = true; + this.cmbZoomIn.Location = new System.Drawing.Point(79, 124); + this.cmbZoomIn.Name = "cmbZoomIn"; + this.cmbZoomIn.Size = new System.Drawing.Size(160, 21); + this.cmbZoomIn.TabIndex = 8; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(7, 100); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(59, 13); + this.label14.TabIndex = 7; + this.label14.Text = "MoveRight"; + // + // cmbMoveRight + // + this.cmbMoveRight.FormattingEnabled = true; + this.cmbMoveRight.Location = new System.Drawing.Point(79, 97); + this.cmbMoveRight.Name = "cmbMoveRight"; + this.cmbMoveRight.Size = new System.Drawing.Size(160, 21); + this.cmbMoveRight.TabIndex = 6; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(7, 46); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(62, 13); + this.label13.TabIndex = 5; + this.label13.Text = "MoveDown"; + // + // cmbMoveDown + // + this.cmbMoveDown.FormattingEnabled = true; + this.cmbMoveDown.Location = new System.Drawing.Point(79, 43); + this.cmbMoveDown.Name = "cmbMoveDown"; + this.cmbMoveDown.Size = new System.Drawing.Size(160, 21); + this.cmbMoveDown.TabIndex = 4; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(7, 73); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(52, 13); + this.label12.TabIndex = 3; + this.label12.Text = "MoveLeft"; + // + // cmbMoveLeft + // + this.cmbMoveLeft.FormattingEnabled = true; + this.cmbMoveLeft.Location = new System.Drawing.Point(79, 70); + this.cmbMoveLeft.Name = "cmbMoveLeft"; + this.cmbMoveLeft.Size = new System.Drawing.Size(160, 21); + this.cmbMoveLeft.TabIndex = 2; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(7, 19); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(48, 13); + this.label11.TabIndex = 1; + this.label11.Text = "MoveUp"; + // + // cmbMoveUp + // + this.cmbMoveUp.FormattingEnabled = true; + this.cmbMoveUp.Location = new System.Drawing.Point(79, 16); + this.cmbMoveUp.Name = "cmbMoveUp"; + this.cmbMoveUp.Size = new System.Drawing.Size(160, 21); + this.cmbMoveUp.TabIndex = 0; + // + // tabAbout + // + this.tabAbout.Controls.Add(this.linkDocs_Provider2); + this.tabAbout.Controls.Add(this.linkDocs_Provider1); + this.tabAbout.Controls.Add(this.labelVer_Provider2); + this.tabAbout.Controls.Add(this.labelVer_Provider1); + this.tabAbout.Controls.Add(this.label1); + this.tabAbout.Controls.Add(this.labelName_Provider2); + this.tabAbout.Controls.Add(this.labelName_Provider1); + this.tabAbout.Location = new System.Drawing.Point(4, 22); + this.tabAbout.Name = "tabAbout"; + this.tabAbout.Padding = new System.Windows.Forms.Padding(3); + this.tabAbout.Size = new System.Drawing.Size(674, 226); + this.tabAbout.TabIndex = 2; + this.tabAbout.Text = "About"; + this.tabAbout.UseVisualStyleBackColor = true; + // + // linkDocs_Provider2 + // + this.linkDocs_Provider2.AutoSize = true; + this.linkDocs_Provider2.Location = new System.Drawing.Point(272, 154); + this.linkDocs_Provider2.Name = "linkDocs_Provider2"; + this.linkDocs_Provider2.Size = new System.Drawing.Size(39, 13); + this.linkDocs_Provider2.TabIndex = 8; + this.linkDocs_Provider2.TabStop = true; + this.linkDocs_Provider2.Text = "doc-url"; + this.linkDocs_Provider2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkDocsProvider2LinkClicked); + // + // linkDocs_Provider1 + // + this.linkDocs_Provider1.AutoSize = true; + this.linkDocs_Provider1.Location = new System.Drawing.Point(272, 86); + this.linkDocs_Provider1.Name = "linkDocs_Provider1"; + this.linkDocs_Provider1.Size = new System.Drawing.Size(39, 13); + this.linkDocs_Provider1.TabIndex = 7; + this.linkDocs_Provider1.TabStop = true; + this.linkDocs_Provider1.Text = "doc-url"; + this.linkDocs_Provider1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkDocsProvider1LinkClicked); + // + // labelVer_Provider2 + // + this.labelVer_Provider2.AutoSize = true; + this.labelVer_Provider2.Location = new System.Drawing.Point(152, 154); + this.labelVer_Provider2.Name = "labelVer_Provider2"; + this.labelVer_Provider2.Size = new System.Drawing.Size(22, 13); + this.labelVer_Provider2.TabIndex = 6; + this.labelVer_Provider2.Text = "ver"; + // + // labelVer_Provider1 + // + this.labelVer_Provider1.AutoSize = true; + this.labelVer_Provider1.Location = new System.Drawing.Point(152, 86); + this.labelVer_Provider1.Name = "labelVer_Provider1"; + this.labelVer_Provider1.Size = new System.Drawing.Size(22, 13); + this.labelVer_Provider1.TabIndex = 5; + this.labelVer_Provider1.Text = "ver"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(260, 17); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(142, 20); + this.label1.TabIndex = 4; + this.label1.Text = "Map API providers "; + // + // labelName_Provider2 + // + this.labelName_Provider2.AutoSize = true; + this.labelName_Provider2.Location = new System.Drawing.Point(52, 154); + this.labelName_Provider2.Name = "labelName_Provider2"; + this.labelName_Provider2.Size = new System.Drawing.Size(28, 13); + this.labelName_Provider2.TabIndex = 2; + this.labelName_Provider2.Text = "Bing"; + // + // labelName_Provider1 + // + this.labelName_Provider1.AutoSize = true; + this.labelName_Provider1.Location = new System.Drawing.Point(52, 86); + this.labelName_Provider1.Name = "labelName_Provider1"; + this.labelName_Provider1.Size = new System.Drawing.Size(41, 13); + this.labelName_Provider1.TabIndex = 0; + this.labelName_Provider1.Text = "Google"; + // + // btnOk + // + this.btnOk.Location = new System.Drawing.Point(627, 259); + this.btnOk.Name = "btnOk"; + this.btnOk.Size = new System.Drawing.Size(42, 23); + this.btnOk.TabIndex = 1; + this.btnOk.Text = "&OK"; + this.btnOk.UseVisualStyleBackColor = true; + this.btnOk.Click += new System.EventHandler(this.BtnOkClick); + // + // btnCancel + // + this.btnCancel.Location = new System.Drawing.Point(569, 259); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(52, 23); + this.btnCancel.TabIndex = 2; + this.btnCancel.Text = "&Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; + this.btnCancel.Click += new System.EventHandler(this.BtnCancelClick); + // + // WorldmapConfig + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(681, 294); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnOk); + this.Controls.Add(this.tbConfig); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Name = "WorldmapConfig"; + this.Text = "MyWorldMap Configuration"; + this.Load += new System.EventHandler(this.WorldmapConfigLoad); + this.tbConfig.ResumeLayout(false); + this.tabSettings.ResumeLayout(false); + this.tabSettings.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownScrollFactor)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownDownloadTimeout)).EndInit(); + this.tabRemote.ResumeLayout(false); + this.tabRemote.PerformLayout(); + this.tabAbout.ResumeLayout(false); + this.tabAbout.PerformLayout(); + this.ResumeLayout(false); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |