From: <dos...@us...> - 2012-04-04 21:12:52
|
Revision: 4470 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4470&view=rev Author: doskabouter Date: 2012-04-04 21:12:44 +0000 (Wed, 04 Apr 2012) Log Message: ----------- - skybound.gecko now on 3.5 also - rework of configuration settings - added pageup/pagedown functionality Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIBookmark.cs trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.Designer.cs trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.cs trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.resx trunk/plugins/BrowseTheWeb/Source/Skybound.Gecko/Skybound.Gecko.csproj Added Paths: ----------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Settings.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj 2012-04-02 12:04:32 UTC (rev 4469) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/BrowseTheWeb.csproj 2012-04-04 21:12:44 UTC (rev 4470) @@ -145,6 +145,7 @@ <DesignTime>True</DesignTime> <DependentUpon>Resources.resx</DependentUpon> </Compile> + <Compile Include="Settings.cs" /> <Compile Include="Setup.cs"> <SubType>Form</SubType> </Compile> Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIBookmark.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIBookmark.cs 2012-04-02 12:04:32 UTC (rev 4469) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIBookmark.cs 2012-04-04 21:12:44 UTC (rev 4470) @@ -46,8 +46,6 @@ [SkinControlAttribute(3)] protected GUISortButtonControl btnSortBy = null; - private static string view = string.Empty; - public override int GetID { get @@ -67,27 +65,10 @@ protected override void OnPageLoad() { - string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config); - - view = "Large icons"; - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(dir + "\\MediaPortal.xml")) - { - view = xmlreader.GetValueAsString("btWeb", "bookmark", "Large icons"); - } - LoadFacade(Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\bookmarks.xml", ""); Bookmark.InitCachePath(); base.OnPageLoad(); } - protected override void OnPageDestroy(int new_windowId) - { - string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config); - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(dir + "\\MediaPortal.xml")) - { - xmlwriter.SetValue("btWeb", "bookmark", view); - } - base.OnPageDestroy(new_windowId); - } protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) { if (actionType == MediaPortal.GUI.Library.Action.ActionType.ACTION_SELECT_ITEM) @@ -112,32 +93,21 @@ if (control == btnViewAs) { - switch (view) - { - case "Small icons": - view = "Large icons"; - break; - case "Large icons": - view = "List view"; - break; - case "List view": - view = "Small icons"; - break; - } + Settings.Instance.View++; + if (Settings.Instance.View > GUIFacadeControl.Layout.LargeIcons) + Settings.Instance.View = GUIFacadeControl.Layout.List; string strLine = string.Empty; - switch (view) + facade.CurrentLayout = Settings.Instance.View; + switch (Settings.Instance.View) { - case "Small icons": - facade.CurrentLayout = GUIFacadeControl.Layout.SmallIcons; + case GUIFacadeControl.Layout.SmallIcons: strLine = GUILocalizeStrings.Get(100); break; - case "Large icons": - facade.CurrentLayout = GUIFacadeControl.Layout.LargeIcons; + case GUIFacadeControl.Layout.LargeIcons: strLine = GUILocalizeStrings.Get(417); break; - case "List view": - facade.CurrentLayout = GUIFacadeControl.Layout.List; + case GUIFacadeControl.Layout.List: strLine = GUILocalizeStrings.Get(101); break; } @@ -147,18 +117,7 @@ public void LoadFacade(string Path, string Folder) { - switch (view) - { - case "Small icons": - facade.CurrentLayout = GUIFacadeControl.Layout.SmallIcons; - break; - case "Large icons": - facade.CurrentLayout = GUIFacadeControl.Layout.LargeIcons; - break; - case "List view": - facade.CurrentLayout = GUIFacadeControl.Layout.List; - break; - } + facade.CurrentLayout = Settings.Instance.View; facade.Clear(); GUIListItem item = new GUIListItem(); Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2012-04-02 12:04:32 UTC (rev 4469) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2012-04-04 21:12:44 UTC (rev 4470) @@ -70,40 +70,15 @@ private int linkTime = 0; private System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer(); - private bool usehome = false; - private string homepage = string.Empty; - private int remoteTime = 0; - private string pluginName = "Browse Web"; - private bool blankBrowser = false; - private bool statusBar = true; - private bool osd = false; - private bool windowed = false; - private bool useMouse = false; - private bool zoomPage = false; - private bool zoomDomain = false; private string lastDomain = string.Empty; - private bool cacheThumbs = false; - private bool remote = false; - private string remote_confirm = string.Empty; - private string remote_bookmark = string.Empty; - private string remote_zoom_in = string.Empty; - private string remote_zoom_out = string.Empty; - private string remote_status = string.Empty; - - private bool useProxy = false; - private string Server = string.Empty; - private int Port = 8080; - - private float defaultZoom = 1.0f; private float zoom = 1.0f; - private float font = 1.0f; + private Settings settings = Settings.Instance; public static bool ParameterSupported = false; public static string Parameter = string.Empty; public static string loadFav = string.Empty; - private string lastUrl = string.Empty; #endregion @@ -127,7 +102,7 @@ } public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) { - strButtonText = pluginName; + strButtonText = settings.PluginName; strButtonImage = String.Empty; strButtonImageFocus = String.Empty; strPictureImage = @"hover_browsetheweb.png"; @@ -201,7 +176,7 @@ } #endregion - LoadSettings(); + TrySetProxy(); BookmarkXml.AddFolder(Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\bookmarks.xml", "Saved by MP"); @@ -245,7 +220,7 @@ protected override void OnPageLoad() { - GUIPropertyManager.SetProperty("#currentmodule", pluginName); + GUIPropertyManager.SetProperty("#currentmodule", settings.PluginName); try { @@ -255,7 +230,7 @@ GUIPropertyManager.SetProperty("#btWeb.linkid", ""); linkId = string.Empty; - if (useMouse) + if (settings.UseMouse) { MyLog.debug("Mouse support is enabled"); GUIGraphicsContext.MouseSupport = true; @@ -270,7 +245,7 @@ #region init browser webBrowser.Visible = true; - if (!useMouse) webBrowser.Enabled = false; + if (!settings.UseMouse) webBrowser.Enabled = false; else webBrowser.Enabled = true; webBrowser.Dock = System.Windows.Forms.DockStyle.None; @@ -285,17 +260,17 @@ webBrowser.DomKeyDown += new GeckoDomKeyEventHandler(webBrowser_DomKeyDown); webBrowser.DomClick += new GeckoDomEventHandler(webBrowser_DomClick); - if (statusBar) + if (settings.StatusBar) webBrowser.Size = new System.Drawing.Size(GUIGraphicsContext.form.Width, GUIGraphicsContext.form.Height - 100); else webBrowser.Size = new System.Drawing.Size(GUIGraphicsContext.form.Width, GUIGraphicsContext.form.Height); - MyLog.debug("set zoom size to " + font + "/" + zoom); + MyLog.debug("set zoom size to " + settings.FontZoom + "/" + zoom); - webBrowser.Window.TextZoom = font; + webBrowser.Window.TextZoom = settings.FontZoom; webBrowser.Zoom = zoom; - if (windowed) + if (settings.Windowed) { MyLog.debug("switch to windowed fullscreen mode"); GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_SWITCH_FULL_WINDOWED, 0, 0, 0, 0, 0, null); @@ -306,10 +281,10 @@ if (webBrowser.Document.Domain == string.Empty) { - if ((usehome) && (string.IsNullOrEmpty(loadFav))) + if ((settings.UseHome) && (string.IsNullOrEmpty(loadFav))) { - webBrowser.Navigate(homepage); - MyLog.debug("load home page " + homepage); + webBrowser.Navigate(settings.HomePage); + MyLog.debug("load home page " + settings.HomePage); } } @@ -329,7 +304,7 @@ timer.Tick += new EventHandler(timer_Tick); timer.Start(); - if (useMouse) + if (settings.UseMouse) GUIGraphicsContext.form.Controls["BrowseTheWeb"].Select(); } catch (Exception ex) @@ -345,12 +320,13 @@ { if (new_windowId != 54537688) { // not if you got favs - if (blankBrowser) + if (settings.BlankBrowser) { webBrowser.Navigate("about:blank"); MyLog.debug("blank on destroy"); } } + settings.SaveToXml(false); webBrowser.Visible = false; GUIGraphicsContext.form.Focus(); @@ -367,64 +343,16 @@ base.OnPageDestroy(new_windowId); } - private void LoadSettings() - { - string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config); - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(dir + "\\MediaPortal.xml")) - { - usehome = xmlreader.GetValueAsBool("btWeb", "usehome", true); - homepage = xmlreader.GetValueAsString("btWeb", "homepage", "http://team-mediaportal.com"); - remoteTime = xmlreader.GetValueAsInt("btWeb", "remotetime", 15); - pluginName = xmlreader.GetValueAsString("btWeb", "name", "Browse Web"); - blankBrowser = xmlreader.GetValueAsBool("btWeb", "blank", false); - statusBar = xmlreader.GetValueAsBool("btWeb", "status", true); - osd = xmlreader.GetValueAsBool("btWeb", "osd", true); - windowed = xmlreader.GetValueAsBool("btWeb", "window", false); - useMouse = xmlreader.GetValueAsBool("btWeb", "mouse", false); - - defaultZoom = (float)xmlreader.GetValueAsInt("btWeb", "zoom", 100) / 100; - zoom = defaultZoom; - font = (float)xmlreader.GetValueAsInt("btWeb", "font", 100) / 100; - zoomPage = xmlreader.GetValueAsBool("btWeb", "page", true); - zoomDomain = xmlreader.GetValueAsBool("btWeb", "domain", false); - - cacheThumbs = xmlreader.GetValueAsBool("btWeb", "cachethumbs", false); - - remote = xmlreader.GetValueAsBool("btWeb", "remote", false); - - remote_confirm = xmlreader.GetValueAsString("btWeb", "key_1", "ACTION_SELECT_ITEM"); - remote_bookmark = xmlreader.GetValueAsString("btWeb", "key_2", "ACTION_SHOW_INFO"); - remote_zoom_in = xmlreader.GetValueAsString("btWeb", "key_3", "ACTION_PAGE_DOWN"); - remote_zoom_out = xmlreader.GetValueAsString("btWeb", "key_4", "ACTION_PAGE_UP"); - remote_status = xmlreader.GetValueAsString("btWeb", "key_5", "ACTION_SHOW_GUI"); - - lastUrl = xmlreader.GetValueAsString("btWeb", "lastUrl", string.Empty); - - useProxy = xmlreader.GetValueAsBool("btWeb", "proxy", false); - Server = xmlreader.GetValueAsString("btWeb", "proxy_server", "127.0.0.1"); - Port = xmlreader.GetValueAsInt("btWeb", "proxy_port", 8888); - TrySetProxy(); - } - } - private void SaveSettings() - { - string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config); - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(dir + "\\MediaPortal.xml")) - { - xmlwriter.SetValue("btWeb", "lastUrl", lastUrl); - } - } - private void TrySetProxy() { try { - if (useProxy) + if (settings.UseProxy) MyLog.debug("use proxy settings"); else MyLog.debug("no proxy selected"); - SetProxy(Server, Port, useProxy); + SetProxy(settings.Server, settings.Port, settings.UseProxy); } catch (Exception ex) { @@ -446,12 +374,12 @@ private void timer_Tick(object sender, EventArgs e) { - if (useMouse) + if (settings.UseMouse) Cursor.Show(); if (linkId != string.Empty) { - if (osd) + if (settings.OSD) { osd_linkID.Visible = true; osd_linkID.BringToFront(); @@ -464,7 +392,7 @@ osd_linkID.Visible = false; } - if (linkTime > remoteTime) + if (linkTime > settings.RemoteTime) { linkId = string.Empty; linkTime = 0; @@ -487,7 +415,7 @@ GUIPropertyManager.SetProperty("#btWeb.linkid", linkId); #region remote diagnostic - if (remote) + if (settings.Remote) { if (action.wID != MediaPortal.GUI.Library.Action.ActionType.ACTION_KEY_PRESSED) GUIPropertyManager.SetProperty("#btWeb.status", DateTime.Now.ToLongTimeString() + " : " + @@ -498,13 +426,12 @@ } #endregion - string strAction = action.wID.ToString(); #region selectable buttons - if (strAction == remote_confirm) + if (action.wID == settings.Remote_Confirm) { if (!mouse.Visible) { - if (!useMouse) + if (!settings.UseMouse) { if (linkId != string.Empty) @@ -538,29 +465,37 @@ mouse.BringToFront(); } } - if (strAction == remote_bookmark) + if (action.wID == settings.Remote_Bookmark) { GUIWindowManager.ActivateWindow(54537688); return; } - if ((strAction == remote_zoom_in) || + if ((action.wID == settings.Remote_Zoom_In) || (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_MUSIC_FORWARD)) { OnZoomIn(); } - if ((strAction == remote_zoom_out) || + if ((action.wID == settings.Remote_Zoom_Out) || (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_MUSIC_REWIND)) { OnZoomOut(); } - if (strAction == remote_status) + if (action.wID == settings.Remote_Status) { - statusBar = !statusBar; - if (statusBar) + settings.StatusBar = !settings.StatusBar; + if (settings.StatusBar) webBrowser.Size = new System.Drawing.Size(GUIGraphicsContext.form.Width, GUIGraphicsContext.form.Height - 100); else webBrowser.Size = new System.Drawing.Size(GUIGraphicsContext.form.Width, GUIGraphicsContext.form.Height); } + if (action.wID == settings.Remote_PageUp) + { + OnPageUp(); + } + if (action.wID == settings.Remote_PageDown) + { + OnPageDown(); + } #endregion switch (action.wID) @@ -570,7 +505,7 @@ break; } case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_MOVE: - if (useMouse) + if (settings.UseMouse) { } @@ -590,7 +525,7 @@ } break; case MediaPortal.GUI.Library.Action.ActionType.ACTION_KEY_PRESSED: - if (!useMouse) + if (!settings.UseMouse) { linkTime = 0; MyLog.debug("action key press=" + action.m_key.KeyChar); @@ -622,24 +557,24 @@ OnEnterNewLink(); return; case MediaPortal.GUI.Library.Action.ActionType.ACTION_PAUSE: - webBrowser.Navigate(homepage); - MyLog.debug("load home page " + homepage); - if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "go to homepage"); + webBrowser.Navigate(settings.HomePage); + MyLog.debug("load home page " + settings.HomePage); + if (!settings.Remote) GUIPropertyManager.SetProperty("#btWeb.status", "go to homepage"); return; case MediaPortal.GUI.Library.Action.ActionType.ACTION_STOP: webBrowser.Navigate("about:blank"); - if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "Stop"); + if (!settings.Remote) GUIPropertyManager.SetProperty("#btWeb.status", "Stop"); return; case MediaPortal.GUI.Library.Action.ActionType.ACTION_PREV_ITEM: case MediaPortal.GUI.Library.Action.ActionType.ACTION_REWIND: webBrowser.GoBack(); - if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "go backward"); + if (!settings.Remote) GUIPropertyManager.SetProperty("#btWeb.status", "go backward"); MyLog.debug("navigate go back"); return; case MediaPortal.GUI.Library.Action.ActionType.ACTION_NEXT_ITEM: case MediaPortal.GUI.Library.Action.ActionType.ACTION_FORWARD: webBrowser.GoForward(); - if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "go forward"); + if (!settings.Remote) GUIPropertyManager.SetProperty("#btWeb.status", "go forward"); MyLog.debug("navigate go forward"); return; case MediaPortal.GUI.Library.Action.ActionType.ACTION_RECORD: @@ -675,7 +610,7 @@ private void webBrowser_DomKeyDown(object sender, GeckoDomKeyEventArgs e) { - if (useMouse) + if (settings.UseMouse) { //System.Diagnostics.Debug.WriteLine("DOM " + e.KeyCode.ToString()); @@ -706,7 +641,7 @@ } void webBrowser_DomClick(object sender, GeckoDomEventArgs e) { - if (useMouse) + if (settings.UseMouse) { // this is a workarround until i know what wrong on the links... GeckoWebBrowser g = (GeckoWebBrowser)sender; @@ -737,9 +672,9 @@ GUIGraphicsContext.form.Focus(); string selectedUrl = "http://"; - if (lastUrl != string.Empty) + if (settings.LastUrl != string.Empty) { - selectedUrl = lastUrl; + selectedUrl = settings.LastUrl; } if (ShowKeyboard(ref selectedUrl, false) == System.Windows.Forms.DialogResult.OK) @@ -749,15 +684,14 @@ webBrowser.Navigate(selectedUrl); MyLog.debug("navigate to " + selectedUrl); - lastUrl = selectedUrl; - SaveSettings(); + settings.LastUrl = selectedUrl; } else ShowAlert("Wrong link ?", " The link you entered seems to be not valid.", "Input:", selectedUrl); } webBrowser.Visible = true; - if (useMouse) + if (settings.UseMouse) GUIGraphicsContext.form.Controls["BrowseTheWeb"].Select(); } @@ -807,20 +741,20 @@ } webBrowser.Visible = true; - if (useMouse) + if (settings.UseMouse) GUIGraphicsContext.form.Controls["BrowseTheWeb"].Select(); } private void OnZoomIn() { if (zoom < 3) zoom += 0.1f; webBrowser.Zoom = zoom; - if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "Zoom set to " + (int)(zoom * 100)); + if (!settings.Remote) GUIPropertyManager.SetProperty("#btWeb.status", "Zoom set to " + (int)(zoom * 100)); } private void OnZoomOut() { if (zoom > 0.1f) zoom -= 0.1f; webBrowser.Zoom = zoom; - if (!remote) GUIPropertyManager.SetProperty("#btWeb.status", "Zoom set to " + (int)(zoom * 100)); + if (!settings.Remote) GUIPropertyManager.SetProperty("#btWeb.status", "Zoom set to " + (int)(zoom * 100)); } private void OnMoveLeft() { @@ -870,6 +804,34 @@ Cursor.Position = new Point(mouse.Location.X, mouse.Location.Y); } } + private void OnPageUp() + { + if (!mouse.Visible) + { + int height = webBrowser.Size.Height; + if (webBrowser.Window != null) ScrollTo(webBrowser.Window.ScrollX, webBrowser.Window.ScrollY - height + 100); + } + else + { + //not yet tested + mouse.Location = new Point(mouse.Location.X, mouse.Location.Y - 20); + Cursor.Position = new Point(mouse.Location.X, mouse.Location.Y); + } + } + private void OnPageDown() + { + if (!mouse.Visible) + { + int height = webBrowser.Size.Height; + if (webBrowser.Window != null) ScrollTo(webBrowser.Window.ScrollX, webBrowser.Window.ScrollY + height - 100); + } + else + { + //not yet tested + mouse.Location = new Point(mouse.Location.X, mouse.Location.Y - 20); + Cursor.Position = new Point(mouse.Location.X, mouse.Location.Y); + } + } private Bitmap CopyBitmap(Bitmap srcBitmap, Rectangle section) { @@ -917,7 +879,7 @@ GUIPropertyManager.SetProperty("#btWeb.status", str); #endregion - if (!useMouse) + if (!settings.UseMouse) { #region add links to page _htmlLinkNumbers.Clear(); @@ -1039,19 +1001,19 @@ } #region reset zoom - if (zoomPage) + if (settings.ZoomPage) { - webBrowser.Zoom = defaultZoom; - zoom = defaultZoom; + webBrowser.Zoom = settings.DefaultZoom; + zoom = settings.DefaultZoom; GUIPropertyManager.SetProperty("#btWeb.status", "Zoom set to " + (int)(zoom * 100)); } - if (zoomDomain) + if (settings.ZoomDomain) { if (lastDomain != webBrowser.Document.Domain) { { - webBrowser.Zoom = defaultZoom; - zoom = defaultZoom; + webBrowser.Zoom = settings.DefaultZoom; + zoom = settings.DefaultZoom; GUIPropertyManager.SetProperty("#btWeb.status", "Zoom set to " + (int)(zoom * 100)); } } Added: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Settings.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Settings.cs (rev 0) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Settings.cs 2012-04-04 21:12:44 UTC (rev 4470) @@ -0,0 +1,170 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using MediaPortal.Util; +using MediaPortal.Configuration; +using Action = MediaPortal.GUI.Library.Action; + +namespace BrowseTheWeb +{ + public class Settings + { + public bool UseHome { get; set; } + public string HomePage { get; set; } + public int RemoteTime { get; set; } + public string PluginName { get; set; } + public bool BlankBrowser { get; set; } + public bool StatusBar { get; set; } + public bool OSD { get; set; } + public bool Windowed { get; set; } + public bool UseMouse { get; set; } + + public int DefaultZoom_percentage { get; set; } + public int FontZoom_percentage { get; set; } + public float FontZoom { get { return FontZoom_percentage / 100; } } + public float DefaultZoom { get { return DefaultZoom_percentage / 100; } } + + public bool ZoomPage { get; set; } + public bool ZoomDomain { get; set; } + public bool UseThumbs { get; set; } + public bool CacheThumbs { get; set; } + public bool Remote { get; set; } + public Action.ActionType Remote_Confirm { get; set; } + public Action.ActionType Remote_Bookmark { get; set; } + public Action.ActionType Remote_Zoom_In { get; set; } + public Action.ActionType Remote_Zoom_Out { get; set; } + public Action.ActionType Remote_Status { get; set; } + public Action.ActionType Remote_PageUp { get; set; } + public Action.ActionType Remote_PageDown { get; set; } + + public static Action.ActionType Default_Remote_Confirm = Action.ActionType.ACTION_SELECT_ITEM; + public static Action.ActionType Default_Remote_Bookmark = Action.ActionType.ACTION_SHOW_INFO; + public static Action.ActionType Default_Remote_Zoom_In = Action.ActionType.ACTION_ZOOM_IN; + public static Action.ActionType Default_Remote_Zoom_Out = Action.ActionType.ACTION_ZOOM_OUT; + public static Action.ActionType Default_Remote_Status = Action.ActionType.ACTION_SHOW_GUI; + public static Action.ActionType Default_Remote_PageUp = Action.ActionType.ACTION_PAGE_UP; + public static Action.ActionType Default_Remote_PageDown = Action.ActionType.ACTION_PAGE_DOWN; + + public string LastUrl { get; set; } + public bool UseProxy { get; set; } + public string Server { get; set; } + public int Port { get; set; } + public GUIFacadeControl.Layout View { get; set; } + + private const string section = "btweb"; + + #region Singleton + private static Settings _Instance = null; + public static Settings Instance + { + get + { + if (_Instance == null) _Instance = new Settings(); + return _Instance; + } + } + private Settings() { LoadFromXml(); } + #endregion + + private void LoadFromXml() + { + string dir = Config.GetFolder(Config.Dir.Config); + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(dir + "\\MediaPortal.xml")) + { + UseHome = xmlreader.GetValueAsBool(section, "usehome", true); + HomePage = xmlreader.GetValueAsString(section, "homepage", "http://team-mediaportal.com"); + RemoteTime = xmlreader.GetValueAsInt(section, "remotetime", 15); + PluginName = xmlreader.GetValueAsString(section, "name", "Browse Web"); + BlankBrowser = xmlreader.GetValueAsBool(section, "blank", false); + StatusBar = xmlreader.GetValueAsBool(section, "status", true); + OSD = xmlreader.GetValueAsBool(section, "osd", true); + Windowed = xmlreader.GetValueAsBool(section, "window", false); + UseMouse = xmlreader.GetValueAsBool(section, "mouse", false); + + DefaultZoom_percentage = xmlreader.GetValueAsInt(section, "zoom", 100); // /100 + FontZoom_percentage = xmlreader.GetValueAsInt(section, "font", 100);// /100 + ZoomPage = xmlreader.GetValueAsBool(section, "page", true); + ZoomDomain = xmlreader.GetValueAsBool(section, "domain", false); + + UseThumbs = xmlreader.GetValueAsBool(section, "usethumbs", true); + CacheThumbs = xmlreader.GetValueAsBool(section, "cachethumbs", false); + + Remote = xmlreader.GetValueAsBool(section, "remote", false); + + Remote_Confirm = GetActionFromString(xmlreader, "remote_confirm", Default_Remote_Confirm); + Remote_Bookmark = GetActionFromString(xmlreader, "remote_bookmark", Default_Remote_Bookmark); + Remote_Zoom_In = GetActionFromString(xmlreader, "remote_zoom_in", Default_Remote_Zoom_In); + Remote_Zoom_Out = GetActionFromString(xmlreader, "remote_zoom_out", Default_Remote_Zoom_Out); + Remote_Status = GetActionFromString(xmlreader, "remote_status", Default_Remote_Status); + Remote_PageUp = GetActionFromString(xmlreader, "remote_pageup", Default_Remote_PageUp); + Remote_PageDown = GetActionFromString(xmlreader, "remote_pagedown", Default_Remote_PageDown); + + LastUrl = xmlreader.GetValueAsString(section, "lastUrl", string.Empty); + + UseProxy = xmlreader.GetValueAsBool(section, "proxy", false); + Server = xmlreader.GetValueAsString(section, "proxy_server", "127.0.0.1"); + Port = xmlreader.GetValueAsInt(section, "proxy_port", 8888); + string tmp = xmlreader.GetValueAsString(section, "bookmark", GUIFacadeControl.Layout.LargeIcons.ToString()); + tmp = tmp.Replace(" ", String.Empty);// for backwards compatibility + View = (GUIFacadeControl.Layout)Enum.Parse(typeof(GUIFacadeControl.Layout), tmp, true); + } + } + + private Action.ActionType GetActionFromString(MediaPortal.Profile.Settings xmlReader, string entry, Action.ActionType defaultAction) + { + return (Action.ActionType)Enum.Parse(typeof(Action.ActionType), xmlReader.GetValueAsString(section, entry, defaultAction.ToString()), true); + } + + public void SaveToXml(bool fromSetup) + { + string dir = Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config); + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(dir + "\\MediaPortal.xml")) + { + if (fromSetup) + { + xmlwriter.SetValueAsBool(section, "usehome", UseHome); + xmlwriter.SetValue(section, "homepage", HomePage); + xmlwriter.SetValue(section, "remotetime", RemoteTime); + xmlwriter.SetValue(section, "name", PluginName); + xmlwriter.SetValueAsBool(section, "blank", BlankBrowser); + xmlwriter.SetValueAsBool(section, "status", StatusBar); + xmlwriter.SetValueAsBool(section, "osd", OSD); + xmlwriter.SetValueAsBool(section, "window", Windowed); + xmlwriter.SetValueAsBool(section, "mouse", UseMouse); + + xmlwriter.SetValue(section, "zoom", DefaultZoom_percentage); + xmlwriter.SetValue(section, "font", FontZoom_percentage); + xmlwriter.SetValueAsBool(section, "page", ZoomPage); + xmlwriter.SetValueAsBool(section, "domain", ZoomDomain); + + xmlwriter.SetValueAsBool(section, "usethumbs", UseThumbs); + xmlwriter.SetValueAsBool(section, "cachethumbs", CacheThumbs); + + xmlwriter.SetValueAsBool(section, "remote", Remote); + xmlwriter.SetValue(section, "remote_confirm", Remote_Confirm); + xmlwriter.SetValue(section, "remote_bookmark", Remote_Bookmark); + xmlwriter.SetValue(section, "remote_zoom_in", Remote_Zoom_In); + xmlwriter.SetValue(section, "remote_zoom_out", Remote_Zoom_Out); + xmlwriter.SetValue(section, "remote_status", Remote_Status); + xmlwriter.SetValue(section, "remote_pageup", Remote_PageUp); + xmlwriter.SetValue(section, "remote_pagedown", Remote_PageDown); + + xmlwriter.SetValue(section, "bookmark", View); + + xmlwriter.SetValueAsBool(section, "proxy", UseProxy); + xmlwriter.SetValue(section, "proxy_server", Server); + xmlwriter.SetValue(section, "proxy_port", Port); + } + else + { + xmlwriter.SetValue(section, "bookmark", View); + xmlwriter.SetValue(section, "lastUrl", LastUrl); + } + } + } + + } +} Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.Designer.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.Designer.cs 2012-04-02 12:04:32 UTC (rev 4469) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/Setup.Designer.cs 2012-04-04 21:12:44 UTC (rev 4470) @@ -1,203 +1,207 @@ namespace BrowseTheWeb { - partial class Setup - { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; - - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) + partial class Setup { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; - #region Windows Form Designer generated code + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Setup)); - this.treeView1 = new System.Windows.Forms.TreeView(); - this.imageList1 = new System.Windows.Forms.ImageList(this.components); - this.btnSave = new System.Windows.Forms.Button(); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.titelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); - this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator(); - this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.btnCancel = new System.Windows.Forms.Button(); - this.txtLink = new System.Windows.Forms.Label(); - this.txtHome = new System.Windows.Forms.TextBox(); - this.chkHome = new System.Windows.Forms.CheckBox(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.groupBox5 = new System.Windows.Forms.GroupBox(); - this.chkMouse = new System.Windows.Forms.CheckBox(); - this.chkWindowed = new System.Windows.Forms.CheckBox(); - this.chkOSD = new System.Windows.Forms.CheckBox(); - this.chkStatus = new System.Windows.Forms.CheckBox(); - this.chkBlank = new System.Windows.Forms.CheckBox(); - this.txtName = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.txtRemote = new System.Windows.Forms.Label(); - this.trkRemote = new System.Windows.Forms.TrackBar(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.groupBox12 = new System.Windows.Forms.GroupBox(); - this.cmbBookmarkView = new System.Windows.Forms.ComboBox(); - this.groupBox7 = new System.Windows.Forms.GroupBox(); - this.chkThumbsOnVisit = new System.Windows.Forms.CheckBox(); - this.chkUseThumbs = new System.Windows.Forms.CheckBox(); - this.groupBox6 = new System.Windows.Forms.GroupBox(); - this.optNoZoom = new System.Windows.Forms.RadioButton(); - this.optZoomDomain = new System.Windows.Forms.RadioButton(); - this.optZoomPage = new System.Windows.Forms.RadioButton(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.txtFont = new System.Windows.Forms.Label(); - this.trkFont = new System.Windows.Forms.TrackBar(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.txtZoom = new System.Windows.Forms.Label(); - this.trkZoom = new System.Windows.Forms.TrackBar(); - this.tabPage3 = new System.Windows.Forms.TabPage(); - this.btnImportFF = new System.Windows.Forms.Button(); - this.btnImportIE = new System.Windows.Forms.Button(); - this.label7 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.tabPage5 = new System.Windows.Forms.TabPage(); - this.groupBox8 = new System.Windows.Forms.GroupBox(); - this.txtHttpPort = new System.Windows.Forms.TextBox(); - this.txtHttpServer = new System.Windows.Forms.TextBox(); - this.label6 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.chkProxy = new System.Windows.Forms.CheckBox(); - this.tabPage4 = new System.Windows.Forms.TabPage(); - this.btnDefault = new System.Windows.Forms.Button(); - this.groupBox11 = new System.Windows.Forms.GroupBox(); - this.label33 = new System.Windows.Forms.Label(); - this.label34 = new System.Windows.Forms.Label(); - this.cmbZoomOut = new System.Windows.Forms.ComboBox(); - this.label31 = new System.Windows.Forms.Label(); - this.label32 = new System.Windows.Forms.Label(); - this.cmbZoomIn = new System.Windows.Forms.ComboBox(); - this.groupBox10 = new System.Windows.Forms.GroupBox(); - this.label35 = new System.Windows.Forms.Label(); - this.cmbShowBookmarks = new System.Windows.Forms.ComboBox(); - this.label29 = new System.Windows.Forms.Label(); - this.label30 = new System.Windows.Forms.Label(); - this.label27 = new System.Windows.Forms.Label(); - this.label28 = new System.Windows.Forms.Label(); - this.label25 = new System.Windows.Forms.Label(); - this.label26 = new System.Windows.Forms.Label(); - this.label23 = new System.Windows.Forms.Label(); - this.label24 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.label14 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.groupBox9 = new System.Windows.Forms.GroupBox(); - this.cmbStatusBar = new System.Windows.Forms.ComboBox(); - this.label10 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.cmbConfirmLink = new System.Windows.Forms.ComboBox(); - this.chkRemote = new System.Windows.Forms.CheckBox(); - this.label15 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); - this.label18 = new System.Windows.Forms.Label(); - this.comboBox3 = new System.Windows.Forms.ComboBox(); - this.label19 = new System.Windows.Forms.Label(); - this.label20 = new System.Windows.Forms.Label(); - this.label21 = new System.Windows.Forms.Label(); - this.label22 = new System.Windows.Forms.Label(); - this.comboBox4 = new System.Windows.Forms.ComboBox(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.btnImportChr = new System.Windows.Forms.Button(); - this.contextMenuStrip1.SuspendLayout(); - this.tabControl1.SuspendLayout(); - this.tabPage1.SuspendLayout(); - this.groupBox5.SuspendLayout(); - this.groupBox4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trkRemote)).BeginInit(); - this.groupBox3.SuspendLayout(); - this.tabPage2.SuspendLayout(); - this.groupBox12.SuspendLayout(); - this.groupBox7.SuspendLayout(); - this.groupBox6.SuspendLayout(); - this.groupBox2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trkFont)).BeginInit(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trkZoom)).BeginInit(); - this.tabPage3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.tabPage5.SuspendLayout(); - this.groupBox8.SuspendLayout(); - this.tabPage4.SuspendLayout(); - this.groupBox11.SuspendLayout(); - this.groupBox10.SuspendLayout(); - this.groupBox9.SuspendLayout(); - this.SuspendLayout(); - // - // treeView1 - // - this.treeView1.AllowDrop = true; - this.treeView1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.treeView1.ImageIndex = 0; - this.treeView1.ImageList = this.imageList1; - this.treeView1.Location = new System.Drawing.Point(6, 34); - this.treeView1.Name = "treeView1"; - this.treeView1.SelectedImageIndex = 0; - this.treeView1.Size = new System.Drawing.Size(539, 313); - this.treeView1.TabIndex = 9; - this.treeView1.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView1_DragDrop); - this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect); - this.treeView1.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView1_DragEnter); - this.treeView1.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView1_ItemDrag); - this.treeView1.Click += new System.EventHandler(this.treeView1_Click); - // - // imageList1 - // - this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); - this.imageList1.TransparentColor = System.Drawing.Color.Transparent; - this.imageList1.Images.SetKeyName(0, "file-icon.png"); - this.imageList1.Images.SetKeyName(1, "folder-icon.png"); - this.imageList1.Images.SetKeyName(2, "fav-b-icon.png"); - // - // btnSave - // - this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnSave.Location = new System.Drawing.Point(12, 523); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(104, 38); - this.btnSave.TabIndex = 10; - this.btnSave.Text = "Save"; - this.btnSave.UseVisualStyleBackColor = true; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // contextMenuStrip1 - // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Setup)); + this.treeView1 = new System.Windows.Forms.TreeView(); + this.imageList1 = new System.Windows.Forms.ImageList(this.components); + this.btnOk = new System.Windows.Forms.Button(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.titelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator(); + this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.btnCancel = new System.Windows.Forms.Button(); + this.txtLink = new System.Windows.Forms.Label(); + this.txtHome = new System.Windows.Forms.TextBox(); + this.chkHome = new System.Windows.Forms.CheckBox(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.chkMouse = new System.Windows.Forms.CheckBox(); + this.chkWindowed = new System.Windows.Forms.CheckBox(); + this.chkOSD = new System.Windows.Forms.CheckBox(); + this.chkStatus = new System.Windows.Forms.CheckBox(); + this.chkBlank = new System.Windows.Forms.CheckBox(); + this.txtName = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.txtRemote = new System.Windows.Forms.Label(); + this.trkRemote = new System.Windows.Forms.TrackBar(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.groupBox12 = new System.Windows.Forms.GroupBox(); + this.cmbBookmarkView = new System.Windows.Forms.ComboBox(); + this.groupBox7 = new System.Windows.Forms.GroupBox(); + this.chkThumbsOnVisit = new System.Windows.Forms.CheckBox(); + this.chkUseThumbs = new System.Windows.Forms.CheckBox(); + this.groupBox6 = new System.Windows.Forms.GroupBox(); + this.optNoZoom = new System.Windows.Forms.RadioButton(); + this.optZoomDomain = new System.Windows.Forms.RadioButton(); + this.optZoomPage = new System.Windows.Forms.RadioButton(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.txtFont = new System.Windows.Forms.Label(); + this.trkFont = new System.Windows.Forms.TrackBar(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.txtZoom = new System.Windows.Forms.Label(); + this.trkZoom = new System.Windows.Forms.TrackBar(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.btnImportChr = new System.Windows.Forms.Button(); + this.btnImportFF = new System.Windows.Forms.Button(); + this.btnImportIE = new System.Windows.Forms.Button(); + this.label7 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.tabPage5 = new System.Windows.Forms.TabPage(); + this.groupBox8 = new System.Windows.Forms.GroupBox(); + this.txtHttpPort = new System.Windows.Forms.TextBox(); + this.txtHttpServer = new System.Windows.Forms.TextBox(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.chkProxy = new System.Windows.Forms.CheckBox(); + this.tabPage4 = new System.Windows.Forms.TabPage(); + this.btnDefault = new System.Windows.Forms.Button(); + this.groupBox11 = new System.Windows.Forms.GroupBox(); + this.cmbPageDown = new System.Windows.Forms.ComboBox(); + this.cmbPageUp = new System.Windows.Forms.ComboBox(); + this.label37 = new System.Windows.Forms.Label(); + this.label36 = new System.Windows.Forms.Label(); + this.label33 = new System.Windows.Forms.Label(); + this.label34 = new System.Windows.Forms.Label(); + this.cmbZoomOut = new System.Windows.Forms.ComboBox(); + this.label31 = new System.Windows.Forms.Label(); + this.label32 = new System.Windows.Forms.Label(); + this.cmbZoomIn = new System.Windows.Forms.ComboBox(); + this.groupBox10 = new System.Windows.Forms.GroupBox(); + this.label35 = new System.Windows.Forms.Label(); + this.cmbShowBookmarks = new System.Windows.Forms.ComboBox(); + this.label29 = new System.Windows.Forms.Label(); + this.label30 = new System.Windows.Forms.Label(); + this.label27 = new System.Windows.Forms.Label(); + this.label28 = new System.Windows.Forms.Label(); + this.label25 = new System.Windows.Forms.Label(); + this.label26 = new System.Windows.Forms.Label(); + this.label23 = new System.Windows.Forms.Label(); + this.label24 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.groupBox9 = new System.Windows.Forms.GroupBox(); + this.cmbStatusBar = new System.Windows.Forms.ComboBox(); + this.label10 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.cmbConfirmLink = new System.Windows.Forms.ComboBox(); + this.chkRemote = new System.Windows.Forms.CheckBox(); + this.label15 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.label19 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label22 = new System.Windows.Forms.Label(); + this.comboBox4 = new System.Windows.Forms.ComboBox(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.contextMenuStrip1.SuspendLayout(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.groupBox5.SuspendLayout(); + this.groupBox4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trkRemote)).BeginInit(); + this.groupBox3.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.groupBox12.SuspendLayout(); + this.groupBox7.SuspendLayout(); + this.groupBox6.SuspendLayout(); + this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trkFont)).BeginInit(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trkZoom)).BeginInit(); + this.tabPage3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.tabPage5.SuspendLayout(); + this.groupBox8.SuspendLayout(); + this.tabPage4.SuspendLayout(); + this.groupBox11.SuspendLayout(); + this.groupBox10.SuspendLayout(); + this.groupBox9.SuspendLayout(); + this.SuspendLayout(); + // + // treeView1 + // + this.treeView1.AllowDrop = true; + this.treeView1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.treeView1.ImageIndex = 0; + this.treeView1.ImageList = this.imageList1; + this.treeView1.Location = new System.Drawing.Point(6, 34); + this.treeView1.Name = "treeView1"; + this.treeView1.SelectedImageIndex = 0; + this.treeView1.Size = new System.Drawing.Size(539, 313); + this.treeView1.TabIndex = 9; + this.treeView1.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView1_ItemDrag); + this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect); + this.treeView1.Click += new System.EventHandler(this.treeView1_Click); + this.treeView1.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView1_DragDrop); + this.treeView1.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView1_DragEnter); + // + // imageList1 + // + this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); + this.imageList1.TransparentColor = System.Drawing.Color.Transparent; + this.imageList1.Images.SetKeyName(0, "file-icon.png"); + this.imageList1.Images.SetKeyName(1, "folder-icon.png"); + this.imageList1.Images.SetKeyName(2, "fav-b-icon.png"); + // + // btnOk + // + this.btnOk.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnOk.Location = new System.Drawing.Point(12, 523); + this.btnOk.Name = "btnOk"; + this.btnOk.Size = new System.Drawing.Size(104, 38); + this.btnOk.TabIndex = 10; + this.btnOk.Text = "OK"; + this.btnOk.UseVisualStyleBackColor = true; + this.btnOk.Click += new System.EventHandler(this.btnOk_Click); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.titelToolStripMenuItem, this.toolStripMenuItem4, this.toolStripMenuItem1, @@ -206,1172 +210,1232 @@ this.editToolStripMenuItem, this.toolStripMenuItem5, this.deleteToolStripMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(154, 142); - this.contextMenuStrip1.MouseLeave += new System.EventHandler(this.contextMenuStrip1_MouseLeave); - // - // titelToolStripMenuItem - // - this.titelToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.titelToolStripMenuItem.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.titelToolStripMenuItem.Name = "titelToolStripMenuItem"; - this.titelToolStripMenuItem.Size = new System.Drawing.Size(153, 24); - this.titelToolStripMenuItem.Text = "Titel"; - // - // toolStripMenuItem4 - // - this.toolStripMenuItem4.Name = "toolStripMenuItem4"; - this.toolStripMenuItem4.Size = new System.Drawing.Size(150, 6); - // - ... [truncated message content] |