|
From: <tim...@us...> - 2009-04-15 12:00:25
|
Revision: 2796
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=2796&view=rev
Author: timmyt81
Date: 2009-04-15 12:00:18 +0000 (Wed, 15 Apr 2009)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/MyDailyComics/ComicStrip.cs
trunk/plugins/MyDailyComics/HTML/MyHtmlParser.cs
trunk/plugins/MyDailyComics/MyDailyComics.cs
trunk/plugins/MyDailyComics/MyDailyComics.csproj
trunk/plugins/MyDailyComics/MyDailyComics.sln
trunk/plugins/MyDailyComics/MyDailyComics.suo
trunk/plugins/MyDailyComics/MyXmlReader.cs
trunk/plugins/MyDailyComics/Properties/AssemblyInfo.cs
Added Paths:
-----------
trunk/plugins/MyDailyComics/StarterProjectForTesting/
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Program.cs
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/AssemblyInfo.cs
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.Designer.cs
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.resx
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.Designer.cs
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.settings
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.csproj
trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.idc
trunk/plugins/MyDailyComics/gui/
trunk/plugins/MyDailyComics/gui/Setup.Designer.cs
trunk/plugins/MyDailyComics/gui/Setup.cs
trunk/plugins/MyDailyComics/gui/Setup.resx
trunk/plugins/MyDailyComics/images/
trunk/plugins/MyDailyComics/images/Hover Images helper.psd
trunk/plugins/MyDailyComics/images/Hover Images.psd
trunk/plugins/MyDailyComics/images/Hover Replicant.psd
trunk/plugins/MyDailyComics/images/SetupIcon.ico
trunk/plugins/MyDailyComics/images/banner_template.psd
trunk/plugins/MyDailyComics/images/cog.png
trunk/plugins/MyDailyComics/images/comic_404.gif
trunk/plugins/MyDailyComics/images/comic_empty.gif
trunk/plugins/MyDailyComics/images/comics_logo.psd
trunk/plugins/MyDailyComics/images/date.png
trunk/plugins/MyDailyComics/images/emoticon_happy.png
trunk/plugins/MyDailyComics/images/flags/
trunk/plugins/MyDailyComics/images/flags/de.png
trunk/plugins/MyDailyComics/images/flags/us.png
trunk/plugins/MyDailyComics/images/information.png
trunk/plugins/MyDailyComics/model/
trunk/plugins/MyDailyComics/model/Config.cs
trunk/plugins/MyDailyComics/util/
trunk/plugins/MyDailyComics/util/ComicHelper.cs
trunk/plugins/MyDailyComics/util/Constants.cs
trunk/plugins/MyDailyComics/util/Encoding.cs
trunk/plugins/MyDailyComics/util/KeyValues.cs
trunk/plugins/MyDailyComics/util/Log.cs
trunk/plugins/MyDailyComics/util/MediaPortalHelper.cs
trunk/plugins/MyDailyComics/util/MyLogger.cs
trunk/plugins/MyDailyComics/util/Placeholder.cs
trunk/plugins/MyDailyComics/util/Section.cs
trunk/plugins/MyDailyComics/util/SectionHandler.cs
trunk/plugins/MyDailyComics/util/XmlHelper.cs
Modified: trunk/plugins/MyDailyComics/ComicStrip.cs
===================================================================
--- trunk/plugins/MyDailyComics/ComicStrip.cs 2009-04-15 11:54:36 UTC (rev 2795)
+++ trunk/plugins/MyDailyComics/ComicStrip.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -26,36 +26,48 @@
using System;
using System.Collections.Generic;
using System.Text;
+using System.Xml;
+using System.IO;
+using System.Drawing;
namespace MyDailyComics
{
public class ComicStrip
{
+ #region Variables & Constants
private string _id=String.Empty;
private string _name = String.Empty;
private string _url = String.Empty;
- private string _banner = String.Empty;
+ private string _banner = string.Empty;
private bool _enabled;
private string _lang = String.Empty;
private string _startsWith = String.Empty;
private string _endsWith = String.Empty;
// new in v0.2.0
- private string _type = string.Empty;
- private string _firstRelease = string.Empty;
- private string _lastRelease = string.Empty;
+ private string _type = TYPE_DATE;
+ private string _urltype = URLTYPE_IMAGE;
+ private string _firstRelease = string.Empty; //not working yet
+ private string _lastRelease = string.Empty; //not working yet
/* constants */
public const string TYPE_DATE = "date";
public const string TYPE_NUMERIC = "numeric";
+ public const string URLTYPE_IMAGE = "image";
+ public const string URLTYPE_WEBPAGE = "webpage";
+ #endregion
- public string Id
+ #region Constructor
+ public ComicStrip() { }
+
+ public ComicStrip(string name)
{
- get { return _id; }
- set { _id = value; }
+ Name = name;
}
+ #endregion
+ #region Getter / Setter
public string Name
{
get { return _name; }
@@ -79,12 +91,18 @@
get { return _enabled; }
set { _enabled = value; }
}
+
public string Language
{
get { return _lang; }
set { _lang = value; }
}
+ public Image LanguageIcon
+ {
+ get{ return Properties.Resources.ger;}
+ }
+
public string StartsWith
{
get { return _startsWith; }
@@ -103,6 +121,12 @@
set { _type = value; }
}
+ public string UrlType
+ {
+ get { return _urltype; }
+ set { _urltype = value; }
+ }
+
public string FirstRelease
{
get { return _firstRelease; }
@@ -115,10 +139,212 @@
set { _lastRelease = value; }
}
+ #endregion
+
+ #region Overrides
public override string ToString()
{
//return "Comic with Id=" + Id + ", Name=" + Name + " and Url=" + Url;
return Name;
}
+ #endregion
+
+ #region XML
+ public string generateXmlOutput()
+ {
+ MemoryStream ms = new MemoryStream();
+ XmlTextWriter xmlWriter = new XmlTextWriter(ms, null);
+
+ XmlDocument doc = new XmlDocument();
+ XmlNode root = doc.CreateElement("comic");
+
+ XmlElement elemName = doc.CreateElement("name");
+ elemName.InnerText = Name;
+ root.AppendChild(elemName);
+
+ XmlElement elemUrl = doc.CreateElement("url");
+ elemUrl.InnerText = Url;
+ root.AppendChild(elemUrl);
+
+ XmlElement elemEnabled = doc.CreateElement("enabled");
+ elemEnabled.InnerText = Enabled.ToString().ToLowerInvariant();
+ root.AppendChild(elemEnabled);
+
+ if (Banner.Length > 0)
+ {
+ XmlElement elemBanner = doc.CreateElement("banner");
+ elemBanner.InnerText = Banner;
+ root.AppendChild(elemBanner);
+ }
+ if (Language.Length > 0)
+ {
+ XmlElement elemLanguage = doc.CreateElement("language");
+ elemLanguage.InnerText = Language.ToLowerInvariant();
+ root.AppendChild(elemLanguage);
+ }
+
+ XmlElement elemType = doc.CreateElement("type");
+ elemType.InnerText = Type;
+ root.AppendChild(elemType);
+
+ XmlElement elemUrlType = doc.CreateElement("urltype");
+ elemUrlType.InnerText = UrlType;
+ root.AppendChild(elemUrlType);
+ if (StartsWith.Length > 0)
+ {
+ XmlElement elemStartsWith = doc.CreateElement("startswith");
+ elemStartsWith.InnerText = StartsWith;
+ root.AppendChild(elemStartsWith);
+ }
+ if (EndsWith.Length > 0)
+ {
+ XmlElement elemEndsWith = doc.CreateElement("endswith");
+ elemEndsWith.InnerText = EndsWith;
+ root.AppendChild(elemEndsWith);
+ }
+ doc.AppendChild(root);
+
+ xmlWriter.Formatting = Formatting.Indented;
+ doc.WriteContentTo(xmlWriter);
+ xmlWriter.Flush();
+
+ //debug write content to console for debug
+ ms.Seek(0, SeekOrigin.Begin);
+ StreamReader sr1 = new StreamReader(ms);
+ Console.Out.Write(sr1.ReadToEnd());
+
+ ms.Seek(0, SeekOrigin.Begin);
+ // create a reader to read the contents of
+ // the memory stream (file)
+ StreamReader sr = new StreamReader(ms);
+ // return the formatted string to caller
+ return sr.ReadToEnd();
+ }
+
+ public void updateFromXml(string xmltext)
+ {
+ XmlDocument doc = new XmlDocument();
+ doc.LoadXml((xmltext));
+ XmlNode xnod = doc.DocumentElement;
+ XmlNode xnodWorking;
+ if (xnod.HasChildNodes)
+ {
+ xnodWorking = xnod.FirstChild;
+ while (xnodWorking != null)
+ {
+ switch (xnodWorking.Name)
+ {
+ case "name":
+ this.Name = xnodWorking.InnerText;
+ break;
+
+ case "url":
+ this.Url = xnodWorking.InnerText;
+ break;
+
+ case "banner":
+ this.Banner = xnodWorking.InnerText;
+ break;
+
+ case "enabled":
+ string enabled = xnodWorking.InnerText;
+ this.Enabled = (enabled == true.ToString().ToLowerInvariant());
+ break;
+
+ case "language":
+ this.Language = xnodWorking.InnerText;
+ break;
+
+ case "startswith":
+ this.StartsWith = xnodWorking.InnerText;
+ break;
+
+ case "endswith":
+ this.EndsWith = xnodWorking.InnerText;
+ break;
+
+ case "type":
+ this.Type = xnodWorking.InnerText;
+ break;
+
+ case "urltype":
+ this.UrlType = xnodWorking.InnerText;
+ break;
+ }
+
+ xnodWorking = xnodWorking.NextSibling;
+ }
+ }
+ }
+ #endregion
+
+ //private static void HandleXmlChilds(XmlNode xnod, ComicStrip comic)
+ //{
+ // XmlNode xnodWorking;
+ // if (xnod.HasChildNodes)
+ // {
+ // xnodWorking = xnod.FirstChild;
+ // while (xnodWorking != null)
+ // {
+ // switch (xnodWorking.Name)
+ // {
+ // case "name":
+ // comic.Name = xnodWorking.InnerText;
+ // break;
+
+ // case "url":
+ // comic.Url = xnodWorking.InnerText;
+ // break;
+
+ // case "banner":
+ // comic.Banner = xnodWorking.InnerText;
+ // break;
+
+ // case "enabled":
+ // string enabled = xnodWorking.InnerText;
+ // comic.Enabled = (enabled == "1");
+ // break;
+
+ // case "language":
+ // comic.Language = xnodWorking.InnerText;
+ // break;
+
+ // case "startswith":
+ // comic.StartsWith = xnodWorking.InnerText;
+ // break;
+
+ // case "endswith":
+ // comic.EndsWith = xnodWorking.InnerText;
+ // break;
+
+ // case "type":
+ // comic.Type = xnodWorking.InnerText;
+ // break;
+ // }
+
+ // xnodWorking = xnodWorking.NextSibling;
+ // }
+ // }
+
+ //}
+
+ //public string serialize()
+ //{
+ // System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(new Object().GetType());
+ // MemoryStream ms = new MemoryStream();
+ // XmlTextWriter xmlWriter = new XmlTextWriter(ms, Encoding.UTF8);
+ // xmlWriter.Formatting = Formatting.Indented;
+ // xmlWriter.
+ // x.Serialize(xmlWriter, Name);
+ // //x.Serialize(xmlWriter, Url);
+ // xmlWriter.Flush();
+
+ // ms.Seek(0, SeekOrigin.Begin);
+ // // create a reader to read the contents of
+ // // the memory stream (file)
+ // StreamReader sr = new StreamReader(ms);
+ // // return the formatted string to caller
+ // return sr.ReadToEnd();
+ //}
}
}
Modified: trunk/plugins/MyDailyComics/HTML/MyHtmlParser.cs
===================================================================
--- trunk/plugins/MyDailyComics/HTML/MyHtmlParser.cs 2009-04-15 11:54:36 UTC (rev 2795)
+++ trunk/plugins/MyDailyComics/HTML/MyHtmlParser.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -38,6 +38,8 @@
string result = String.Empty;
ParseHTML parse = new ParseHTML();
string page = sendRequest(html_url);
+ if (page == null)
+ return string.Empty;
parse.Source = page;
while (!parse.Eof())
{
Modified: trunk/plugins/MyDailyComics/MyDailyComics.cs
===================================================================
--- trunk/plugins/MyDailyComics/MyDailyComics.cs 2009-04-15 11:54:36 UTC (rev 2795)
+++ trunk/plugins/MyDailyComics/MyDailyComics.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -25,7 +25,6 @@
using System;
using System.Windows.Forms;
using MediaPortal.GUI.Library;
-//using MediaPortal.Dialogs;
using System.Collections;
using System.Drawing;
using MediaPortal.Drawing;
@@ -34,10 +33,11 @@
using MyDailyComics.HTML;
using System.Net;
using System.IO;
+using MyDailyComics.util;
namespace MyDailyComics
{
- public class MyDailyComics : GUIWindow, ISetupForm
+ public class DailyComics : GUIWindow, ISetupForm
{
#region GUI Controls
@@ -53,7 +53,6 @@
#endregion
#region Constants & Variables
-
private DateTime _date = DateTime.Today;
private ComicStrip[] _comics;
private ComicStrip _currentComic;
@@ -65,13 +64,14 @@
#endregion
- public MyDailyComics()
+ #region Constructor
+ public DailyComics()
{
InitPlugin();
}
+ #endregion
#region ISetupForm Members
-
// Returns the name of the plugin which is shown in the plugin menu
public string PluginName()
{
@@ -93,7 +93,8 @@
// show the setup dialog
public void ShowPlugin()
{
- //MessageBox.Show("Nothing to configure, this is just an example");
+ gui.Setup frmSetup = new gui.Setup();
+ frmSetup.ShowDialog();
}
// Indicates whether plugin can be enabled/disabled
@@ -117,7 +118,7 @@
// indicates if a plugin has it's own setup screen
public bool HasSetup()
{
- return false;
+ return true;
}
/// <summary>
@@ -135,56 +136,35 @@
public bool GetHome(out string strButtonText, out string strButtonImage,
out string strButtonImageFocus, out string strPictureImage)
{
- strButtonText = _title;
+ strButtonText = Title;
strButtonImage = String.Empty;
strButtonImageFocus = String.Empty;
- strPictureImage = String.Empty; //TODO create icon
+ strPictureImage = @"hover_my daily comics.png"; //TODO create icon
return true;
}
public override int GetID
{
- get
- {
- return 7676;
- }
- set
- {
- }
+ get { return 7676; }
+ set { }
}
#endregion
#region GUIWindow Members
-
public override bool Init()
{
- _imageDirectory = Config.GetSubFolder(Config.Dir.Thumbs, @"MyDailyComics");
- if (Directory.Exists(_imageDirectory) == false)
- {
- try
- {
- Directory.CreateDirectory(_imageDirectory);
- }
- catch (Exception)
- {
- //Log.Error("Unable to create thumb directory {0}", _imageDirectory);
- _imageDirectory = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);
- }
- }
- _imageDirectory += "/";
- Log.Info("MyComics: thumb Dir: {0}", _imageDirectory);
-
+ Log.Debug("Plugin loaded, version " + util.Constants.getVersion());
return Load(GUIGraphicsContext.Skin + @"\MyDailyComics.xml");
}
-
protected override void OnPageLoad()
{
base.OnPageLoad();
InitComicSelectButtonControl();
InitDateSelectButtonControl();
- ShowComic(_currentComic, _date);
+ ShowComic(SelectedComic, SelectedDate);
+ GUIButtonControl.FocusControl(GetID, btnComic.GetID);
}
protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
@@ -196,8 +176,8 @@
{
GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_ITEM_SELECTED, GetID, 0, controlId, 0, 0, null);
OnMessage(msg);
- _date = DateTime.Parse(msg.Label);
- ShowComic(_currentComic, _date);
+ SelectedDate = DateTime.Parse(msg.Label);
+ ShowComic(SelectedComic, SelectedDate);
GUIControl.FocusControl(GetID, btnDate.GetID);
}
if (control == btnComic)
@@ -207,29 +187,51 @@
foreach (ComicStrip comic in _comics)
{
if (comic.Name.Equals(msg.Label))
- _currentComic = comic;
+ SelectedComic = comic;
}
- ShowComic(_currentComic, _date);
+ ShowComic(SelectedComic, SelectedDate);
GUIControl.FocusControl(GetID, btnComic.GetID);
}
RestoreButtons();
}
+ #endregion
+ #region Getter / Setter
+ public DateTime SelectedDate
+ {
+ get { return _date; }
+ set { _date = value; }
+ }
+
+ public ComicStrip SelectedComic
+ {
+ get { return _currentComic; }
+ set { _currentComic = value; }
+ }
+
+ public string Title
+ {
+ get { return _title; }
+ set { _title = value; }
+ }
#endregion
#region Function Implementations
-
private void InitPlugin()
{
- //load xml file with comics
+ // init configuration
+ model.Config conf = new model.Config();
+ conf.Init();
+ Title = conf.PluginName;
+ GUIPropertyManager.SetProperty("#title", Title);
+
+ // load comics xml
MyXmlReader reader = new MyXmlReader();
ArrayList alComics = new ArrayList();
- reader.parseXml("comics.xml", alComics);
- _title = reader.GetTitle();
- GUIPropertyManager.SetProperty("#title", _title);
- prepareArrayList(alComics);
- _currentComic = _comics[0];
+ reader.parseXml(conf.XmlLocation, alComics,true);
+ _comics = ComicHelper.Instance.prepareArrayList(alComics);
+ SelectedComic = _comics[0];
}
/// <summary>
@@ -259,18 +261,6 @@
}
}
- private void prepareArrayList(ArrayList alComics)
- {
- _comics = new ComicStrip[alComics.Count];
- int count = 0;
- IEnumerator e = alComics.GetEnumerator();
- while (e.MoveNext())
- {
- _comics[count] = (ComicStrip)e.Current;
- count++;
- }
- }
-
private void BackupButtons()
{
_selectedComicIndex = btnComic.SelectedItem;
@@ -290,43 +280,9 @@
{
imgComic.Visible = false;
//btnChangeComic.Label = comic.Name;
- string tmp_url;
- //if (comic.Url.EndsWith(".html"))
- if (comic.StartsWith.Length>0)
- {
- MyHtmlParser parser = new MyHtmlParser();
- tmp_url = decryptUrl(comic, dt);
- tmp_url = parser.parse(tmp_url, comic.StartsWith, comic.EndsWith);
- }
- else
- {
- tmp_url = decryptUrl(comic, dt);
- }
- imgComic.SetFileName(tmp_url);
- imgComic.KeepAspectRatio = true;
- imgComic.Refresh();
- imgComic.Visible = true;
- ShowBanner(comic);
- }
- }
+ string tmp_url = ComicHelper.Instance.getComicUrl(comic, dt);
- private void ShowComic(ComicStrip comic)
- {
- using (WaitCursor cursor = new WaitCursor())
- lock (this)
- {
- imgComic.Visible = false;
- string tmp_url = string.Empty;
- if (comic.Url.EndsWith(".html", StringComparison.OrdinalIgnoreCase))
- {
- MyHtmlParser parser = new MyHtmlParser();
- //tmp_url = parseUrl(comic.Url, dt);
- tmp_url = parser.parse(tmp_url, comic.StartsWith, comic.EndsWith);
- }
- else
- {
- //tmp_url = parseUrl(comic.Url, dt);
- }
+ Log.Debug("trying to show url: " + tmp_url);
imgComic.SetFileName(tmp_url);
imgComic.KeepAspectRatio = true;
imgComic.Refresh();
@@ -341,105 +297,13 @@
if (comic.Banner.Length > 0)
{
//imgBanner.SetFileName(comic.Banner);
- string localName = DownloadBanner(comic.Banner);
+ string localName = ComicHelper.Instance.DownloadBanner(comic.Banner);
imgBanner.SetFileName(localName);
imgBanner.KeepAspectRatio = true;
imgBanner.Refresh();
imgBanner.Visible = true;
}
}
-
- //private void ShowOnlineBanner(string url)
- //{
- // string picUri = url;
-
- // // Die Anforderung erstellen.
- // WebRequest requestPic = WebRequest.Create(picUri);
-
- // // Die Antworten abrufen.
- // // Hierf\xFCr ist besonders dann sehr viel Zeit erforderlich,
- // // wenn die Datei gro\xDF ist, da die gesamte Antwort abgerufen wird.
- // WebResponse responsePic = requestPic.GetResponse();
-
- // // Den Antwort-Stream lesen.
- // Image downloadedImage = Image.FromStream(responsePic.GetResponseStream());
-
- // // Das Bild anzeigen.
- // imgBanner.MemoryImage = downloadedImage;
- // //picBox.Image = downloadedImage;
- //}
-
- private string DownloadBanner(string url)
- {
- string[] splits = url.Split('/');
- string localFileName = splits[splits.Length - 1];
- string localFilePath = _imageDirectory + localFileName;
-
- Log.Debug("MyComics: localFilePath="+localFilePath);
- if (!File.Exists(localFilePath))
- {
- WebClient client = new WebClient();
- // Download durchf\xFChren.
- client.DownloadFile(url, localFilePath);
- }
- return localFilePath;
- }
-
- /// <summary>
- /// decrypts a URL of a comic
- /// </summary>
- /// <param name="comic">Comic to decrypt</param>
- /// <param name="dt">if type is date, give the DateTime to parse. if type is numeric, give null</param>
- /// <returns></returns>
- private string decryptUrl(ComicStrip comic, DateTime dt)
- {
- string ret = string.Empty;
-
- if (comic.Type.Equals(ComicStrip.TYPE_NUMERIC, StringComparison.OrdinalIgnoreCase))
- {
- // numeric type
- Log.Debug("Comic is numeric type");
- // get field "lastrelease"
- long lastRelease = 0;
-
- try
- {
- lastRelease = long.Parse(comic.LastRelease);
- }
- catch (Exception ex)
- {
- Log.Debug(ex.ToString());
- throw new Exception("Invalid format in field <lastrelease> of comic '" + comic.ToString() + "'");
- }
- string replaceSrc = string.Empty;
- string replaceDst = string.Empty;
- int startIdx = 0;
-
- Log.Debug("url = " + comic.Url);
- while ((startIdx = comic.Url.IndexOf('#', startIdx)) > 0)
- {
- replaceSrc += "#";
- replaceDst += "0";
- startIdx++;
- }
- Log.Debug("replace str = " + replaceSrc);
-
- ret = comic.Url.Replace(replaceSrc, lastRelease.ToString(replaceDst));
- Log.Debug("URL = " + ret);
- }
- else
- {
- string url = comic.Url;
- url = url.Replace("[yy]", dt.ToString("yy"));
- url = url.Replace("[yyyy]", dt.ToString("yyyy"));
- url = url.Replace("[MM]", dt.ToString("MM"));
- url = url.Replace("[dd]", dt.ToString("dd"));
- ret = url;
- }
-
- return ret;
- }
-
#endregion
}
}
Modified: trunk/plugins/MyDailyComics/MyDailyComics.csproj
===================================================================
--- trunk/plugins/MyDailyComics/MyDailyComics.csproj 2009-04-15 11:54:36 UTC (rev 2795)
+++ trunk/plugins/MyDailyComics/MyDailyComics.csproj 2009-04-15 12:00:18 UTC (rev 2796)
@@ -14,7 +14,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
- <OutputPath>c:\mediaportal\plugins\windows\</OutputPath>
+ <OutputPath>bin\debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@@ -22,48 +22,79 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
- <OutputPath>c:\mediaportal\plugins\windows\</OutputPath>
+ <OutputPath>bin\release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Core, Version=0.2.3.0, Culture=neutral, processorArchitecture=x86">
+ <Reference Include="Core, Version=1.0.0.29788, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
- <HintPath>c:\MediaPortal\Core.dll</HintPath>
- <Private>False</Private>
+ <HintPath>dll\Core.dll</HintPath>
</Reference>
+ <Reference Include="Dialogs, Version=1.0.0.29798, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>dll\Dialogs.dll</HintPath>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
- <Reference Include="Utils, Version=2.2.2.0, Culture=neutral, processorArchitecture=x86">
+ <Reference Include="Utils, Version=2.2.6.29782, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
- <HintPath>c:\MediaPortal\Utils.dll</HintPath>
- <Private>False</Private>
+ <HintPath>dll\Utils.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ComicStrip.cs" />
+ <Compile Include="gui\Setup.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="gui\Setup.Designer.cs">
+ <DependentUpon>Setup.cs</DependentUpon>
+ </Compile>
<Compile Include="HTML\Attribute.cs" />
<Compile Include="HTML\AttributeList.cs" />
<Compile Include="HTML\Parse.cs" />
<Compile Include="HTML\ParseHTML.cs" />
+ <Compile Include="util\Log.cs" />
+ <Compile Include="model\Config.cs" />
<Compile Include="MyDailyComics.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="HTML\MyHtmlParser.cs" />
<Compile Include="MyXmlReader.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <Compile Include="util\ComicHelper.cs" />
+ <Compile Include="util\Constants.cs" />
+ <Compile Include="util\MediaPortalHelper.cs" />
+ <Compile Include="util\Placeholder.cs" />
+ <Compile Include="util\XmlHelper.cs" />
</ItemGroup>
<ItemGroup>
- <Content Include="comics.xml" />
- <Content Include="skin\BlueTwo wide\MyDailyComics.xml" />
- <Content Include="skin\BlueTwo\MyDailyComics.xml" />
+ <None Include="images\comic_empty.gif" />
+ <None Include="images\comic_404.gif" />
+ <None Include="Properties\DataSources\ComicStrip.datasource" />
+ <None Include="images\flags\us.png" />
+ <None Include="images\flags\de.png" />
+ <Content Include="images\SetupIcon.ico" />
</ItemGroup>
<ItemGroup>
- <None Include="copy.bat" />
+ <EmbeddedResource Include="gui\Setup.resx">
+ <DependentUpon>Setup.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <SubType>Designer</SubType>
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ </EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Modified: trunk/plugins/MyDailyComics/MyDailyComics.sln
===================================================================
--- trunk/plugins/MyDailyComics/MyDailyComics.sln 2009-04-15 11:54:36 UTC (rev 2795)
+++ trunk/plugins/MyDailyComics/MyDailyComics.sln 2009-04-15 12:00:18 UTC (rev 2796)
@@ -1,8 +1,10 @@
Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
+# Visual C# Express 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyDailyComics", "MyDailyComics.csproj", "{10EA3ECE-BE4B-40DE-BF30-EF73503DF630}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Starter", "StarterProjectForTesting\Starter\Starter.csproj", "{EC930FFC-7051-40E5-9CD0-C3C7535F3CFB}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -13,6 +15,10 @@
{10EA3ECE-BE4B-40DE-BF30-EF73503DF630}.Debug|Any CPU.Build.0 = Debug|Any CPU
{10EA3ECE-BE4B-40DE-BF30-EF73503DF630}.Release|Any CPU.ActiveCfg = Release|Any CPU
{10EA3ECE-BE4B-40DE-BF30-EF73503DF630}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EC930FFC-7051-40E5-9CD0-C3C7535F3CFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EC930FFC-7051-40E5-9CD0-C3C7535F3CFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EC930FFC-7051-40E5-9CD0-C3C7535F3CFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EC930FFC-7051-40E5-9CD0-C3C7535F3CFB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Modified: trunk/plugins/MyDailyComics/MyDailyComics.suo
===================================================================
(Binary files differ)
Modified: trunk/plugins/MyDailyComics/MyXmlReader.cs
===================================================================
--- trunk/plugins/MyDailyComics/MyXmlReader.cs 2009-04-15 11:54:36 UTC (rev 2795)
+++ trunk/plugins/MyDailyComics/MyXmlReader.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -40,7 +40,7 @@
return _title;
}
- public void parseXml(string pathToXml, ArrayList alComics)
+ public void parseXml(string pathToXml, ArrayList alComics, bool onlyLoadEnabled)
{
XmlTextReader reader = new XmlTextReader(pathToXml);
ComicStrip comic = new ComicStrip();
@@ -55,8 +55,6 @@
{
case "comic":
comic = new ComicStrip();
- reader.MoveToNextAttribute();
- comic.Id = reader.Value;
break;
case "name":
@@ -73,7 +71,7 @@
case "enabled":
string enabled = reader.ReadInnerXml();
- comic.Enabled = (enabled == "1");
+ comic.Enabled = (enabled == true.ToString().ToLowerInvariant());
break;
case "language":
@@ -96,6 +94,10 @@
comic.Type = reader.ReadInnerXml();
break;
+ case "urltype":
+ comic.UrlType = reader.ReadInnerXml();
+ break;
+
case "firstrelease":
comic.FirstRelease = reader.ReadInnerXml();
break;
@@ -111,8 +113,15 @@
case XmlNodeType.EndElement:
if (reader.Name.Equals("comic"))
{
- if (comic.Enabled)
+ if (onlyLoadEnabled)
{
+ if (comic.Enabled)
+ {
+ alComics.Add(comic);
+ }
+ }
+ else
+ {
alComics.Add(comic);
}
}
@@ -120,6 +129,8 @@
}
}
+ reader.Close();
+ reader = null;
}
}
Modified: trunk/plugins/MyDailyComics/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/MyDailyComics/Properties/AssemblyInfo.cs 2009-04-15 11:54:36 UTC (rev 2795)
+++ trunk/plugins/MyDailyComics/Properties/AssemblyInfo.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -1,4 +1,30 @@
-using System.Reflection;
+#region Copyright (C) 2005-2009 Team MediaPortal
+
+/*
+ * Copyright (C) 2005-2009 Team MediaPortal
+ * http://www.team-mediaportal.com
+ *
+ * This Program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This Program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Make; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+#endregion
+
+#region Content
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -10,7 +36,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("TimmyT")]
[assembly: AssemblyProduct("MyDailyComics")]
-[assembly: AssemblyCopyright("")]
+[assembly: AssemblyCopyright("http://dev.thomasblank.ch")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -31,4 +57,22 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.5.*")]
+#endregion
+
+[assembly: AssemblyVersion("0.2.0.0")]
+
+/*
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * * C H A N G E L O G * *
+ *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Version Date Description
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * 0.1.4.0 2009-01-06 update plugin for MediaPortal 1.0
+ * 0.1.3.0 2008-03-27 new assemblyinfo file, replicant hover image
+ *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ */
+
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Program.cs
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Program.cs (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Program.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace Starter
+{
+ static class Program
+ {
+ /// <summary>
+ /// Der Haupteinstiegspunkt für die Anwendung.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new MyDailyComics.gui.Setup());
+ }
+ }
+}
\ No newline at end of file
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/AssemblyInfo.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Allgemeine Informationen über eine Assembly werden über die folgenden
+// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
+// die mit einer Assembly verknüpft sind.
+[assembly: AssemblyTitle("Starter")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Starter")]
+[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
+// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
+// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
+[assembly: ComVisible(false)]
+
+// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
+[assembly: Guid("f9c3386f-2eee-48e9-9eed-04777bc48035")]
+
+// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
+//
+// Hauptversion
+// Nebenversion
+// Buildnummer
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.Designer.cs
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.Designer.cs (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.Designer.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// Dieser Code wurde von einem Tool generiert.
+// Laufzeitversion:2.0.50727.42
+//
+// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
+// der Code neu generiert wird.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Starter.Properties
+{
+
+
+ /// <summary>
+ /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
+ /// </summary>
+ // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse
+ // über ein Tool wie ResGen oder Visual Studio automatisch generiert.
+ // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
+ // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Starter.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
+ /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.resx
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.resx (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Resources.resx 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.Designer.cs
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.Designer.cs (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.Designer.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Starter.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.settings
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.settings (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Properties/Settings.settings 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.csproj
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.csproj (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.csproj 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,74 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{EC930FFC-7051-40E5-9CD0-C3C7535F3CFB}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Starter</RootNamespace>
+ <AssemblyName>Starter</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\MyDailyComics.csproj">
+ <Project>{10EA3ECE-BE4B-40DE-BF30-EF73503DF630}</Project>
+ <Name>MyDailyComics</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.idc
===================================================================
--- trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.idc (rev 0)
+++ trunk/plugins/MyDailyComics/StarterProjectForTesting/Starter/Starter.idc 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1 @@
+<Configurations active="Default"><Configuration name="Default"><Command val=""></Command><RunMode val="a host path through a shared folder"></RunMode><ShareFolders val=""></ShareFolders><RemoteDebugMonitor val="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86\msvsmon.exe"></RemoteDebugMonitor><MonitorName val="VMDebug"></MonitorName><VirtualMachine val=""></VirtualMachine><StartMode val="No"></StartMode><TerminationMode val="No operation"></TerminationMode><CopyFiles val=""></CopyFiles><PreCommandLine val=""></PreCommandLine><PostCommandLine val=""></PostCommandLine></Configuration></Configurations>
Added: trunk/plugins/MyDailyComics/gui/Setup.Designer.cs
===================================================================
--- trunk/plugins/MyDailyComics/gui/Setup.Designer.cs (rev 0)
+++ trunk/plugins/MyDailyComics/gui/Setup.Designer.cs 2009-04-15 12:00:18 UTC (rev 2796)
@@ -0,0 +1,1122 @@
+namespace MyDailyComics.gui
+{
+ 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)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #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.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel();
+ this.openFileDialogXml = new System.Windows.Forms.OpenFileDialog();
+ this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
+ this.tabctrlMain = new System.Windows.Forms.TabControl();
+ this.tabComics = new System.Windows.Forms.TabPage();
+ this.groupBox7 = new System.Windows.Forms.GroupBox();
+ this.lnkComicUrl = new System.Windows.Forms.LinkLabel();
+ this.btnTest = new System.Windows.Forms.Button();
+ this.btnMoveRight = new System.Windows.Forms.Button();
+ this.picComic = new System.Windows.Forms.PictureBox();
+ this.dtpDate = new System.Windows.Forms.DateTimePicker();
+ this.btnMoveLeft = new System.Windows.Forms.Button();
+ this.groupBox6 = new System.Windows.Forms.GroupBox();
+ this.tabControl1 = new System.Windows.Forms.TabControl();
+ this.tabEasy = new System.Windows.Forms.TabPage();
+ this.label7 = new System.Windows.Forms.Label();
+ this.btnBrowseForBanner = new System.Windows.Forms.Button();
+ this.label6 =...
[truncated message content] |