diff --git a/.gitignore b/.gitignore index 4e93df9c..cb494b07 100644 --- a/.gitignore +++ b/.gitignore @@ -306,3 +306,4 @@ CampusAppWP8/packages/ZXing.Net.0.11.0.1/lib/windows8-native+javascript/ZXing.pr CampusAppWP8/packages/ZXing.Net.0.11.0.1/lib/windows8-native+javascript/ZXing.winmd CampusAppWP8/packages/ZXing.Net.0.11.0.1/lib/wp8/zxing.wp8.0.XML CampusAppWP8/packages/ZXing.Net.0.11.0.1/lib/wp8/zxing.wp8.0.dll +work/.svn/ diff --git a/CampusAppWP8/CampusAppDLL/CampusAppDLL.csproj b/CampusAppWP8/CampusAppDLL/CampusAppDLL.csproj new file mode 100644 index 00000000..ac3271f3 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/CampusAppDLL.csproj @@ -0,0 +1,64 @@ + + + + + Debug + AnyCPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303} + Library + Properties + CampusAppDLL + CampusAppDLL + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppDLL/Model/Campusmap/CBMainMapModel.cs b/CampusAppWP8/CampusAppDLL/Model/Campusmap/CBMainMapModel.cs new file mode 100644 index 00000000..9f6684a4 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Model/Campusmap/CBMainMapModel.cs @@ -0,0 +1,45 @@ +//----------------------------------------------------------------------------- +// +// Company copyright tag. +// +// fiedlchr +// 13.08.2013 +//----------------------------------------------------------------------------- +using CampusAppDLL.Model.GeoDb; +using CampusAppDLL.Utility; + +namespace CampusAppDLL.Model.Campusmap +{ + + /// + /// Class for the MapModel of the mainCampus of cottbus + /// + public class CBMainMapModel : MapModel + { + /// Variable for the identify of the campus. + private static readonly string Campus = "1"; + + /// + /// Initializes a new instance of the class. + /// + public CBMainMapModel(string xmlFilePath) : base(xmlFilePath) + { + } + + /// Loads the spatial./. + /// Stubbfel, 19.08.2013. + protected override void LoadSpatials(string xmlFilePath) + { + SpsModel model = XmlManager.DeserializationFileToModel(xmlFilePath); + + this.Spatial = new SpsModel(); + foreach (PlaceModel place in model.Places) + { + if (Campus.Equals(place.ParentId) || Campus.Equals(place.PlaceId)) + { + this.Spatial.Places.Add(place); + } + } + } + } +} diff --git a/CampusAppWP8/CampusAppDLL/Model/Campusmap/MapModel.cs b/CampusAppWP8/CampusAppDLL/Model/Campusmap/MapModel.cs new file mode 100644 index 00000000..50edaf3c --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Model/Campusmap/MapModel.cs @@ -0,0 +1,48 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 24.06.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Model.Campusmap +{ + using CampusAppDLL.Model.GeoDb; + using System; + + /// + /// This Class manage the properties of a Map + /// + public class MapModel + { + #region Constructors + + /// + /// Initializes a new instance of the class. + /// + public MapModel(string xmlFilePath) + { + this.LoadSpatials(xmlFilePath); + } + + #endregion + + #region Property + + /// Gets or sets the spatial of the map. + /// The spatial. + public SpsModel Spatial { get; set; } + + #endregion + + #region Methods + + /// Loads the spatial./ + /// Stubbfel, 19.08.2013. + protected virtual void LoadSpatials(string xmlFilePath) + { + } + + #endregion + } +} diff --git a/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceInformation.cs b/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceInformation.cs new file mode 100644 index 00000000..f23d4124 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceInformation.cs @@ -0,0 +1,26 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 19.08.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Model.GeoDb +{ + using System.Xml.Serialization; + + /// Information about the place. + /// Stubbfel, 19.08.2013. + public class PlaceInformation + { + /// Gets or sets the name of the information. + /// The name of the information. + [XmlElement("placeInformationName")] + public string InformationName { get; set; } + + /// Gets or sets the information value. + /// The information value. + [XmlText] + public string InformationValue { get; set; } + } +} diff --git a/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceModel.cs b/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceModel.cs new file mode 100644 index 00000000..8e0a0d20 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceModel.cs @@ -0,0 +1,47 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 08.08.2013 +//---------------------------------------------------------------------- + +namespace CampusAppDLL.Model.GeoDb +{ + using System.Collections.ObjectModel; + using System.Xml.Serialization; + + /// + /// Model for a place of the SPSService + /// + public class PlaceModel + { + /// + /// Gets or sets the placeId + /// + [XmlAttribute("id")] + public string PlaceId { get; set; } + + /// + /// Gets or sets the id of the "parent" of a place + /// + [XmlAttribute("parentId")] + public string ParentId { get; set; } + + /// + /// Gets or sets the ReferencePoint of a place + /// + [XmlAttribute("refpoint")] + public string RefPoint { get; set; } + + /// Gets or sets the information. + /// The information. + [XmlElement("placeInformation")] + public ObservableCollection Informations { get; set; } + + /// Gets or sets the services. + /// The services. + [XmlElement("placeService")] + public ObservableCollection Services { get; set; } + } +} diff --git a/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceService.cs b/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceService.cs new file mode 100644 index 00000000..7e17403c --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Model/GeoDb/PlaceService.cs @@ -0,0 +1,32 @@ +//----------------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 19.08.2013 +//----------------------------------------------------------------------------- + +namespace CampusAppDLL.Model.GeoDb +{ + using System.Xml.Serialization; + + /// Place service. + /// Stubbfel, 19.08.2013. + public class PlaceService + { + /// Gets or sets the name of the service. + /// The name of the service. + [XmlAttribute("placeServiceName")] + public string ServiceName { get; set; } + + /// Gets or sets the SAP of an service. + /// The sap. + [XmlElement("sap")] + public string SAP { get; set; } + + /// Gets or sets the request for a place. + /// The request. + [XmlElement("request")] + public string Request { get; set; } + } +} diff --git a/CampusAppWP8/CampusAppDLL/Model/GeoDb/SpsModel.cs b/CampusAppWP8/CampusAppDLL/Model/GeoDb/SpsModel.cs new file mode 100644 index 00000000..4fa4bb86 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Model/GeoDb/SpsModel.cs @@ -0,0 +1,87 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 08.08.2013 +//---------------------------------------------------------------------- + +namespace CampusAppDLL.Model.GeoDb +{ + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + using System.Xml.Serialization; + + /// + /// Model for a xml-response of the SPSService + /// + [XmlRoot("root")] + public class SpsModel + { + /// Initializes a new instance of the SpsModel class. + /// Stubbfel, 20.08.2013. + public SpsModel() + { + this.Places = new ObservableCollection(); + } + + /// + /// Gets or sets a list of places + /// + [XmlElement("place")] + public ObservableCollection Places { get; set; } + + /// Gets places by information. + /// Stubbfel, 19.08.2013. + /// The query. + /// (Optional) the ignore cases. + /// (Optional) name of the information. + /// The places by information. + public List GetPlacesByInformation(string query, bool ignoreCases = true, string informationName = null) + { + string querryLow = string.Empty; + IEnumerable resultplaces = null; + + // select correct statement + if (ignoreCases && informationName == null) + { + querryLow = query.ToLower(); + resultplaces = from place in this.Places + from info in place.Informations + where info.InformationValue.ToLower().Contains(querryLow) + select place; + } + else if (ignoreCases && informationName != null) + { + querryLow = query.ToLower(); + resultplaces = from place in this.Places + from info in place.Informations + where info.InformationValue.ToLower().Contains(querryLow) && info.InformationName.Equals(informationName) + select place; + } + else if (!ignoreCases && informationName == null) + { + resultplaces = from place in this.Places + from info in place.Informations + where info.InformationValue.Contains(querryLow) + select place; + } + else if (!ignoreCases && informationName != null) + { + resultplaces = from place in this.Places + from info in place.Informations + where info.InformationValue.Contains(querryLow) && info.InformationName.Equals(informationName) + select place; + } + + // null assert + if (resultplaces == null) + { + return null; + } + + return resultplaces.ToList(); + } + } +} diff --git a/CampusAppWP8/CampusAppDLL/Properties/AssemblyInfo.cs b/CampusAppWP8/CampusAppDLL/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..7597545e --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +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("CampusAppDLL")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CampusAppDLL")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[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("883d352f-0864-47db-8a04-f5eee0800a6d")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CampusAppWP8/CampusAppDLL/Utility/Logger.cs b/CampusAppWP8/CampusAppDLL/Utility/Logger.cs new file mode 100644 index 00000000..a3ca7f02 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Utility/Logger.cs @@ -0,0 +1,35 @@ +//-------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 03.05.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Utility +{ + using System; + + /// + /// This Class creates logs for the app + /// + public class Logger + { + /// + /// Method log a Exception + /// + /// exception which has to log + public static void LogException(Exception exception) + { + // Console.WriteLine(exception); + } + + /// + /// Log a message. + /// + /// to be logged message + public static void LogMsg(string msg) + { + // Console.WriteLine(msg); + } + } +} diff --git a/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFMessage.cs b/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFMessage.cs new file mode 100644 index 00000000..30a9fd4d --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFMessage.cs @@ -0,0 +1,154 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 21.08.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Utility.NDEF +{ + using System.Collections.Generic; + using System.IO; + + /// Ndef message. + /// Stubbfel, 21.08.2013. + public class NDEFMessage + { + #region Members + + /// The records. + private List records; + + #endregion + + #region constructors + + /// Initializes a new instance of the NDEFMessage class. + /// Stubbfel, 21.08.2013. + /// The content. + /// The type. + /// (Optional) the tnf. + public NDEFMessage(string content, TYPEVAL type, NDEFRecord.TNFVAL tnf = NDEFRecord.TNFVAL.WKT) + { + this.records = new List(); + float recordsCount = (float)content.Length / NDEFRecord.MaxRecordPayLoad; + NDEFRecord tmpRecord = null; + string praefix = NDEFMessage.GetPraefix(type); + + for (int i = 0; recordsCount > 0; i++) + { + tmpRecord = new NDEFShortRecord(); + tmpRecord.Type = type; + tmpRecord.TNF = tnf; + tmpRecord.PayloadPraefix = praefix; + int recordsize = 255; + if (content.Length < (i + 1) * recordsize) + { + recordsize = content.Length - (i * recordsize); + } + + tmpRecord.Payload = content.Substring(i * 255, recordsize); + if (i == 0) + { + tmpRecord.MB = NDEFRecord.NDEFFlags.MBSET; + } + + this.records.Add(tmpRecord); + recordsCount--; + } + + this.records[this.records.IndexOf(tmpRecord)].ME = NDEFRecord.NDEFFlags.MESET; + } + + /// Initializes a new instance of the NDEFMessage class. + /// Stubbfel, 21.08.2013. + /// The array. + public NDEFMessage(byte[] array) + { + this.records = new List(); + + NDEFRecord tmpRecord = null; + for (int i = 0; i < array.Length; i += tmpRecord.RecordSize) + { + tmpRecord = new NDEFShortRecord(array, i); + + this.records.Add(tmpRecord); + } + } + + #endregion + + #region enum + + /// Values that represent TYPEVAL. + /// Stubbfel, 21.08.2013. + public enum TYPEVAL + { + /// An enum constant representing the empty option. + EMPTY = 0x00, + + /// An enum constant representing the URL option. + URL = 0x55, + + /// An enum constant representing the text option. + TEXT = 0x54, + } + + #endregion + + #region Methods + /// Gets a praefix. + /// Stubbfel, 21.08.2013. + /// The type. + /// The praefix. + public static string GetPraefix(TYPEVAL type) + { + string praefix = string.Empty; + + switch (type) + { + case TYPEVAL.TEXT: + praefix = "\x02" + "de"; + break; + case TYPEVAL.URL: + praefix = "\x01"; + break; + default: + break; + } + + return praefix; + } + + /// Gets the content. + /// Stubbfel, 21.08.2013. + /// The content. + public string GetContent() + { + string result = string.Empty; + + foreach (NDEFRecord record in this.records) + { + result += record.Payload; + } + + return result; + } + + /// Converts this object to a byte array. + /// Stubbfel, 21.08.2013. + /// This object as a byte[]. + public byte[] ToByteArray() + { + MemoryStream ms = new MemoryStream(); + foreach (NDEFRecord record in this.records) + { + ms.Write(record.ToByteArray(), 0, record.RecordSize); + } + + return ms.ToArray(); + } + + #endregion + } +} diff --git a/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFRecord.cs b/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFRecord.cs new file mode 100644 index 00000000..ca7e1fc5 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFRecord.cs @@ -0,0 +1,188 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 21.08.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Utility.NDEF +{ + using System.IO; + using System.Text; + + /// Ndef record of a NDEFMessage. + /// Stubbfel, 21.08.2013. + public abstract class NDEFRecord + { + #region Members + + /// The maximum record pay load. + public const int MaxRecordPayLoad = 255; + + /// Size of the type. + protected const byte TypeSize = 0x01; + + #endregion + + #region Constructors + /// Initializes a new instance of the NDEFRecord class. + /// Stubbfel, 21.08.2013. + public NDEFRecord() + { + } + + /// Initializes a new instance of the NDEFRecord class. + /// Stubbfel, 21.08.2013. + /// The array. + /// (Optional) zero-based index of the. + public NDEFRecord(byte[] array, int index = 0) + { + this.FormatFlags = array[index]; + } + + #endregion + + #region enum + + /// Values that represent NDEFFlags. + /// Stubbfel, 21.08.2013. + public enum NDEFFlags + { + /// An Enum constant representing the UNSET option. + UNSET = 0x00, + + /// An Enum constant representing the Message begin option. + MBSET = 0x80, + + /// An Enum constant representing the Message end option. + MESET = 0x40, + + /// An Enum constant representing the CHUNK FLAG option. + CFSET = 0x20, + + /// An Enum constant representing the Short Record set option. + SRSET = 0x10, + + /// An Enum constant representing the ID length option. + ILSET = 0x08, + + /// An enum constant representing the tnfset option. + TNFSET = 0x03 + } + + /// Values that represent TNFVAL. + /// Stubbfel, 21.08.2013. + public enum TNFVAL + { + /// An enum constant representing the empty option. + EMPTY = 0x00, + + /// An enum constant representing the Well-Know-Type option. + WKT = 0x01, + + /// An enum constant representing the MediaType option. + MEDIATYPE = 0x02, + + /// An enum constant representing the URI option. + URI = 0x03, + + /// An enum constant representing the NFCE option. + NFCE = 0x04, + + /// An enum constant representing the unknow option. + unknow = 0x05, + + /// An enum constant representing the unchanged option. + UNCHANGED = 0x06, + + /// An enum constant representing the reserved option. + RESERVED = 0x07 + } + + #endregion + + #region Properties + /// Gets or sets the MBFlag. + /// The MBFlag. + public NDEFFlags MB { get; set; } + + /// Gets or sets MEFlag. + /// The MEFlag . + public NDEFFlags ME { get; set; } + + /// Gets or sets the CFFlag. + /// The CFFlag. + public NDEFFlags CF { get; set; } + + /// Gets or sets the SRFlag. + /// The SRFlag. + public NDEFFlags SR { get; set; } + + /// Gets or sets the ILFlag. + /// The ILFlag. + public NDEFFlags IL { get; set; } + + /// Gets or sets the TNFField. + /// The TNFField. + public TNFVAL TNF { get; set; } + + /// Gets or sets the type. + /// The type. + public NDEFMessage.TYPEVAL Type { get; set; } + + /// Gets or sets the format flags. + /// The format flags. + public byte FormatFlags + { + get + { + return (byte)((byte)this.TNF | ((byte)this.MB) | ((byte)this.ME) | ((byte)this.CF) | ((byte)this.SR) | ((byte)this.IL)); + } + + protected set + { + this.TNF = (TNFVAL)(value & (byte)NDEFFlags.TNFSET); + this.MB = (NDEFFlags)(value & (byte)NDEFFlags.MBSET); + this.ME = (NDEFFlags)(value & (byte)NDEFFlags.MESET); + this.CF = (NDEFFlags)(value & (byte)NDEFFlags.CFSET); + this.SR = (NDEFFlags)(value & (byte)NDEFFlags.SRSET); + this.IL = (NDEFFlags)(value & (byte)NDEFFlags.ILSET); + } + } + + /// Gets or sets the payload. + /// The payload. + public string Payload { get; set; } + + /// Gets the size of the record. + /// The size of the record. + public int RecordSize + { + get + { + return this.HeaderSize + this.Payload.Length + this.PayloadPraefix.Length; + } + } + + /// Gets or sets the payload praefix. + /// The payload praefix. + public string PayloadPraefix { get; set; } + + /// Gets or sets the size of the header. + /// The size of the header. + protected int HeaderSize { get; set; } + + #endregion + + #region Methods + + /// Converts the record to a byte array. + /// Stubbfel, 21.08.2013. + /// This object as a byte[]. + public abstract byte[] ToByteArray(); + + #endregion + } +} + +// End of Utility\NDEF\NDEFRecord.cs diff --git a/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFShortRecord.cs b/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFShortRecord.cs new file mode 100644 index 00000000..bb108ddd --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Utility/NDEF/NDEFShortRecord.cs @@ -0,0 +1,63 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 21.08.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Utility.NDEF +{ + using System.Text; + + /// Ndef short record. + /// Stubbfel, 21.08.2013. + public class NDEFShortRecord : NDEFRecord + { + /// Initializes a new instance of the NDEFShortRecord class. + /// Stubbfel, 21.08.2013. + public NDEFShortRecord() + { + this.HeaderSize = 4; + this.SR = NDEFFlags.SRSET; + this.IL = NDEFFlags.UNSET; + this.CF = NDEFFlags.UNSET; + } + + /// Initializes a new instance of the NDEFShortRecord class. + /// Stubbfel, 21.08.2013. + /// The array. + /// (Optional) zero-based index of the. + public NDEFShortRecord(byte[] array, int index = 0) + : base(array) + { + this.HeaderSize = 4; + this.Type = (NDEFMessage.TYPEVAL)array[index + 3]; + this.PayloadPraefix = NDEFMessage.GetPraefix(this.Type); + int payLoadSize = array[index + 2] - this.PayloadPraefix.Length; + this.Payload = Encoding.UTF8.GetString(array, index + this.HeaderSize + this.PayloadPraefix.Length, payLoadSize); + } + + /// Converts this NDEFShortRecord to a byte array. + /// Stubbfel, 21.08.2013. + /// This object as a byte[]. + public override byte[] ToByteArray() + { + byte[] payloadAr = Encoding.UTF8.GetBytes(this.PayloadPraefix + this.Payload); + byte[] array = new byte[payloadAr.Length + this.HeaderSize]; + + array[0] = this.FormatFlags; + array[1] = NDEFRecord.TypeSize; + array[2] = (byte)(Payload.Length + this.PayloadPraefix.Length); + array[3] = (byte)this.Type; + + int i = this.HeaderSize; + foreach (byte b in payloadAr) + { + array[i] = b; + i++; + } + + return array; + } + } +} diff --git a/CampusAppWP8/CampusAppDLL/Utility/StringManager.cs b/CampusAppWP8/CampusAppDLL/Utility/StringManager.cs new file mode 100644 index 00000000..ff708949 --- /dev/null +++ b/CampusAppWP8/CampusAppDLL/Utility/StringManager.cs @@ -0,0 +1,59 @@ +//----------------------------------------------------------------------- +// +// Company copyright tag. +// +// stubbfel +// 06.06.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Utility +{ + using System.Text.RegularExpressions; + + /// + /// Class provides some special StringMethods + /// + public static class StringManager + { + #region Members + + /// + /// Patter for Html-Tags + /// + private static readonly string HtmlTagPattern = "<.*?>"; + + #endregion + + #region Methods + + /// + /// Method removes Html-Tag of a String + /// + /// String with Html-Tags + /// String without Html-Tags + public static string StripHTML(string inputString) + { + return Regex.Replace(inputString, HtmlTagPattern, string.Empty); + } + + /// + /// Method add an Newline to a string + /// + /// input string + /// input string + newline + public static string AddNewLine(string str) + { + return str.ToString() + "\n"; + } + + /// + /// Method remove(TrimEND!) an Newline to a string + /// + /// input string + /// input string - newline +// Company copyright tag. +// +// stubbfel +// 18.06.2013 +//---------------------------------------------------------------------- +namespace CampusAppDLL.Utility +{ + using System.IO; + using System.Xml.Linq; + using System.Xml.Serialization; + + /// + /// Class provides some Xml-methods + /// + public class XmlManager + { + /// + /// Method deserialization a string to a Model + /// + /// the model + /// the XmlString + /// name of the RootTag + /// return the deserialization of the model + public static T DeserializationToModel(string xmlString, string validRootName) + { + XmlSerializer serializer = new XmlSerializer(typeof(T)); + XDocument document = XDocument.Parse(xmlString); + if (!document.Root.Name.ToString().Equals(validRootName)) + { + XElement content = document.Root; + document = new XDocument(); + document.Add(new XElement(validRootName, content)); + } + + T model = (T)serializer.Deserialize(document.CreateReader()); + return model; + } + + /// Deserialization a xml file to a model. + /// Stubbfel, 20.08.2013. + /// Generic type parameter. + /// Path to the a XmlFile. + /// model of the XmlFile. + public static T DeserializationFileToModel(string xmlFilePath) + { + XmlSerializer serializer = new XmlSerializer(typeof(T)); + XDocument document = XDocument.Load(xmlFilePath); + T model = (T)serializer.Deserialize(document.CreateReader()); + return model; + } + + /// + /// Method serializes a model to a string. + /// + /// type of the model + /// model object + /// serialized string + public static string SerializationToString(T model) + { + string retValue = string.Empty; + + XmlSerializerNamespaces ns = new XmlSerializerNamespaces(); + ns.Add(string.Empty, string.Empty); + + XmlSerializer serializer = new XmlSerializer(typeof(T)); + TextWriter writer = new StringWriter(); + + serializer.Serialize(writer, model, ns); + + retValue = writer.ToString(); + + if (retValue.StartsWith(""); + retValue = retValue.Substring(endTag + 2); + + if (retValue.StartsWith("\r\n") == true) + { + retValue = retValue.Substring(2); + } + } + + return retValue; + } + } +} diff --git a/CampusAppWP8/CampusAppW8.sln b/CampusAppWP8/CampusAppW8.sln new file mode 100644 index 00000000..8403729e --- /dev/null +++ b/CampusAppWP8/CampusAppW8.sln @@ -0,0 +1,146 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CampusAppWP8", "CampusAppWP8\CampusAppWP8.csproj", "{120B88CC-F3F0-4C5A-A3FD-C26E835338CC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CampusAppWStore8", "CampussAppWStore8\CampusAppWStore8.csproj", "{E49420AA-3023-42EF-8255-67B1F5E52B43}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CampusAppWPortalLib8", "CampusAppWPortalLib8\CampusAppWPortalLib8.csproj", "{67D80BE2-0FB7-44C8-A495-7D44FC2AC262}" +EndProject +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "IconCreator", "IconCreator\IconCreator.pyproj", "{78E8DC22-F4E1-42D9-BA04-93EA031C630C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CampusAppDLL", "CampusAppDLL\CampusAppDLL.csproj", "{E4EC5B95-06FC-4304-97E2-9E3F9B980303}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|Mixed Platforms = Release|Mixed Platforms + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.ActiveCfg = Debug|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Build.0 = Debug|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Deploy.0 = Debug|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Mixed Platforms.Build.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Mixed Platforms.Deploy.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Win32.ActiveCfg = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Win32.Build.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Win32.Deploy.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x64.ActiveCfg = Debug|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.ActiveCfg = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Build.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Deploy.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Build.0 = Release|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Deploy.0 = Release|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.ActiveCfg = Release|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Build.0 = Release|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Deploy.0 = Release|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Mixed Platforms.Build.0 = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Mixed Platforms.Deploy.0 = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Win32.ActiveCfg = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Win32.Build.0 = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Win32.Deploy.0 = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x64.ActiveCfg = Release|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.ActiveCfg = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Build.0 = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Deploy.0 = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|ARM.ActiveCfg = Debug|ARM + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|ARM.Build.0 = Debug|ARM + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|ARM.Deploy.0 = Debug|ARM + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Mixed Platforms.Build.0 = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Mixed Platforms.Deploy.0 = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Win32.ActiveCfg = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Win32.Build.0 = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|Win32.Deploy.0 = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|x64.ActiveCfg = Debug|x64 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|x64.Build.0 = Debug|x64 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|x64.Deploy.0 = Debug|x64 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|x86.ActiveCfg = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|x86.Build.0 = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Debug|x86.Deploy.0 = Debug|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Any CPU.Build.0 = Release|Any CPU + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Any CPU.Deploy.0 = Release|Any CPU + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|ARM.ActiveCfg = Release|ARM + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|ARM.Build.0 = Release|ARM + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|ARM.Deploy.0 = Release|ARM + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Mixed Platforms.Build.0 = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Mixed Platforms.Deploy.0 = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Win32.ActiveCfg = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Win32.Build.0 = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|Win32.Deploy.0 = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|x64.ActiveCfg = Release|x64 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|x64.Build.0 = Release|x64 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|x64.Deploy.0 = Release|x64 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|x86.ActiveCfg = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|x86.Build.0 = Release|x86 + {E49420AA-3023-42EF-8255-67B1F5E52B43}.Release|x86.Deploy.0 = Release|x86 + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|Any CPU.Build.0 = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|ARM.ActiveCfg = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|Win32.ActiveCfg = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|x64.ActiveCfg = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Debug|x86.ActiveCfg = Debug|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|Any CPU.ActiveCfg = Release|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|Any CPU.Build.0 = Release|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|ARM.ActiveCfg = Release|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|Win32.ActiveCfg = Release|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|x64.ActiveCfg = Release|Any CPU + {67D80BE2-0FB7-44C8-A495-7D44FC2AC262}.Release|x86.ActiveCfg = Release|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Debug|ARM.ActiveCfg = Debug|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Debug|Win32.ActiveCfg = Debug|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Debug|x64.ActiveCfg = Debug|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Debug|x86.ActiveCfg = Debug|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Release|ARM.ActiveCfg = Release|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Release|Win32.ActiveCfg = Release|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Release|x64.ActiveCfg = Release|Any CPU + {78E8DC22-F4E1-42D9-BA04-93EA031C630C}.Release|x86.ActiveCfg = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|ARM.ActiveCfg = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|Win32.ActiveCfg = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|x64.ActiveCfg = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Debug|x86.ActiveCfg = Debug|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|Any CPU.Build.0 = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|ARM.ActiveCfg = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|Win32.ActiveCfg = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|x64.ActiveCfg = Release|Any CPU + {E4EC5B95-06FC-4304-97E2-9E3F9B980303}.Release|x86.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/CampusAppWP8/CampusAppWP8.sln b/CampusAppWP8/CampusAppWP8.sln deleted file mode 100644 index 6413a5ed..00000000 --- a/CampusAppWP8/CampusAppWP8.sln +++ /dev/null @@ -1,38 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CampusAppWP8", "CampusAppWP8\CampusAppWP8.csproj", "{120B88CC-F3F0-4C5A-A3FD-C26E835338CC}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.ActiveCfg = Debug|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Build.0 = Debug|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Deploy.0 = Debug|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.ActiveCfg = Debug|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Build.0 = Debug|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Deploy.0 = Debug|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Build.0 = Release|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Deploy.0 = Release|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.ActiveCfg = Release|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Build.0 = Release|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Deploy.0 = Release|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.ActiveCfg = Release|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Build.0 = Release|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/CampusAppWP8/CampusAppWP8/App.xaml.cs b/CampusAppWP8/CampusAppWP8/App.xaml.cs index ac1bc700..55c47531 100644 --- a/CampusAppWP8/CampusAppWP8/App.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/App.xaml.cs @@ -2,6 +2,7 @@ using CampusAppWP8.Resources; using CampusAppWP8.Utility; using Microsoft.Phone.Controls; +using Microsoft.Phone.Net.NetworkInformation; using Microsoft.Phone.Shell; using System; using System.Diagnostics; @@ -140,7 +141,27 @@ namespace CampusAppWP8 /// private void LoadSettings() { + if (Debugger.IsAttached) + { + Settings.AppSetting.DevMode = true; + } + else + { + Settings.AppSetting.DevMode = false; + } + this.UserSettingsLoaded(); + + Settings.AppSetting.UniNetwork = Utilities.IsUniNetworkAvailable(); + if (!Settings.AppSetting.UniNetwork) + { + Settings.AppSetting.WifiEnable = Utilities.IsWifiAvailable(); + } + else + { + Settings.AppSetting.WifiEnable = true; + } + if (Settings.AppSetting.GeoWatchEnable) { Thread thread = new Thread(new ThreadStart(Utilities.DetermineAndStoreCurrentPosition)); diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/current_position_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/current_position_159.png new file mode 100644 index 00000000..47ed68d2 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/current_position_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/exams_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/exams_159.png new file mode 100644 index 00000000..6ada1ad4 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/exams_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/person_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/person_159.png new file mode 100644 index 00000000..c2163d6f Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/person_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/search_place_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/search_place_159.png new file mode 100644 index 00000000..2b8797ca Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/DarkTheme/search_place_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/current_position_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/current_position_159.png new file mode 100644 index 00000000..47ed68d2 Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/current_position_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/exams_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/exams_159.png new file mode 100644 index 00000000..cc4f541d Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/exams_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/person_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/person_159.png new file mode 100644 index 00000000..c9bd664b Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/person_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/search_place_159.png b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/search_place_159.png new file mode 100644 index 00000000..2b8797ca Binary files /dev/null and b/CampusAppWP8/CampusAppWP8/Assets/Icons/LightTheme/search_place_159.png differ diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj index e08e73dc..0fa040ea 100644 --- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj +++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj @@ -100,16 +100,26 @@ + + + + + + + + + + @@ -173,6 +183,12 @@ + + Exams.xaml + + + PersonPage.xaml + @@ -349,6 +365,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -393,6 +413,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -452,18 +476,24 @@ + + + + + + @@ -478,11 +508,13 @@ + + @@ -541,10 +573,12 @@ ..\packages\ZXing.Net.0.11.0.1\lib\wp8\zxing.wp8.0.dll - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs new file mode 100644 index 00000000..6bcaebe2 --- /dev/null +++ b/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs @@ -0,0 +1,203 @@ +// +// Company copyright tag. +// +// stubbfel +// 02.09.2013 +//---------------------------------------------------------------------- +namespace CampusAppWP8.Pages.Exams +{ + using System.Linq; + using System.Windows; + using System.Windows.Controls; + using System.Windows.Navigation; + using CampusAppWP8.Feed.Exams; + using CampusAppWP8.File.Exams; + using CampusAppWP8.Resources; + using CampusAppWP8.Utility; + using CampusAppWP8.Utility.Lui.MessageBoxes; + using Microsoft.Phone.Controls; + + /// class of ExamsPage. + /// Stubbfel, 02.09.2013. + public partial class Exams : PhoneApplicationPage + { + /// The feed. + private ExamFeed feed; + + /// The exam file. + private ExamFile file; + + /// Initializes a new instance of the Exams class. + /// Stubbfel, 02.09.2013. + public Exams() + { + this.InitializeComponent(); + this.InitializeFeed(); + } + + /// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird. + /// Stubbfel, 02.09.2013. + /// Ein Objekt, das die Ereignisdaten enthält. + protected override void OnNavigatedTo(NavigationEventArgs e) + { + base.OnNavigatedTo(e); + if (this.feed == null) + { + this.InitializeFeed(); + } + + this.ProgressBar.Visibility = System.Windows.Visibility.Visible; + this.feed.LoadData(Utilities.getLoadModus()); + } + + /// + /// Wird aufgerufen, wenn eine Seite nicht mehr die aktive Seite in einem Frame ist. + /// + /// Stubbfel, 02.09.2013. + /// Ein Objekt, das die Ereignisdaten enthält. + protected override void OnNavigatedFrom(NavigationEventArgs e) + { + if (NavigationMode.Back == e.NavigationMode) + { + App.SaveToIsolatedStorage(Constants.ExamPageModelKey, -1); + this.feed.SaveData(); + } + else + { + App.SaveToIsolatedStorage(Constants.ExamPageModelKey, this.ExamPivot.SelectedIndex); + } + } + + /// Method initialize the Feed. + /// Stubbfel, 02.09.2013. + private void InitializeFeed() + { + this.feed = new ExamFeed(); + this.feed.OnLoaded += new ExamFeed.OnIO(this.FeedIsReady); + this.feed.OnFailedWeb += new ExamFeed.OnFailed(this.FeedIsFailWeb); + this.feed.OnFailedFile += new ExamFeed.OnFailed(this.FeedIsFailFile); + } + + /// Method will be execute if the feed is ready. + /// Stubbfel, 02.09.2013. + private void FeedIsReady() + { + this.SetupExamList(); + this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed; + } + + /// Executes the PDF reader operation. + /// Stubbfel, 03.09.2013. + private void LaunchPDFReader() + { + this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed; + this.file.SaveAndLaunchFile(); + } + + /// Sets up the exam list. + /// Stubbfel, 02.09.2013. + private void SetupExamList() + { + var bachelorList = from exam in this.feed.Model.Exams + where exam.DegreeNumber.Equals(((int)CampusAppWP8.Model.Setting.UserProfilModel.DegreeType.BACHELOR).ToString()) + orderby exam.CourseText, exam.Version + select exam; + + var masterList = from exam in this.feed.Model.Exams + where exam.DegreeNumber.Equals(((int)CampusAppWP8.Model.Setting.UserProfilModel.DegreeType.MASTER).ToString()) + orderby exam.CourseText, exam.Version + select exam; + + var diplomaList = from exam in this.feed.Model.Exams + where exam.DegreeNumber.Equals(((int)CampusAppWP8.Model.Setting.UserProfilModel.DegreeType.DIPLOM).ToString()) + orderby exam.CourseText, exam.Version + select exam; + + this.BachelorPanel.ItemsSource = bachelorList; + this.MasterPanel.ItemsSource = masterList; + this.DiplomaPanel.ItemsSource = diplomaList; + this.ExamPivot.SelectedIndex = this.CalcSelectedIndex(); + } + + /// Calculates the selected index. + /// Stubbfel, 02.09.2013. + /// The calculated selected index. + private int CalcSelectedIndex() + { + int result = App.LoadFromIsolatedStorage(Constants.ExamPageModelKey); + if (result < 0 || result > 2) + { + Model.Setting.UserProfilModel.DegreeType degree = Settings.UserProfil.Degree; + + switch (degree) + { + case Model.Setting.UserProfilModel.DegreeType.BACHELOR: + result = 0; + break; + case Model.Setting.UserProfilModel.DegreeType.MASTER: + result = 1; + break; + case Model.Setting.UserProfilModel.DegreeType.DIPLOM: + result = 2; + break; + default: + result = 0; + break; + } + } + + return result; + } + + /// Method will be execute if the feed is failed. + /// Stubbfel, 02.09.2013. + private void FeedIsFailWeb() + { + MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb); + this.feed.ForceReadFile(); + } + + /// Method will be execute if the feed is failed. + /// Stubbfel, 02.09.2013. + private void FeedIsFailFile() + { + MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile); + this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed; + } + + /// Event handler. Called by Button for click events. + /// Stubbfel, 03.09.2013. + /// Source of the event. + /// Routed event information. + private void Button_Click(object sender, RoutedEventArgs e) + { + Button button = sender as Button; + if (button == null) + { + return; + } + + string url = button.Tag as string; + if (url == null) + { + return; + } + + // create filename + string[] filenames = url.Split('/'); + string filename = url; + + if (filenames.Length > 0) + { + filename = filenames[filenames.Length - 1]; + } + + this.file = new ExamFile(filename, url); + this.file.OnLoaded += new ExamFile.OnIO(this.LaunchPDFReader); + this.file.OnFailedWeb += new ExamFile.OnFailed(this.FeedIsFailWeb); + this.file.OnFailedFile += new ExamFile.OnFailed(this.FeedIsFailFile); + this.file.LoadData(); + this.ProgressBar.Visibility = System.Windows.Visibility.Visible; + } + } +} \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs index a29a037d..df00699e 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs @@ -63,6 +63,7 @@ namespace CampusAppWP8.Pages.Lecture #region methods #region protected + /// /// Methods overrides the OnNavigatedFrom-Method /// diff --git a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs index 30ff8fa0..4cac9c3a 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs @@ -14,6 +14,7 @@ namespace CampusAppWP8.Pages.Links using CampusAppWP8.Resources; using CampusAppWP8.Utility.Lui.MessageBoxes; using Microsoft.Phone.Controls; + using CampusAppWP8.Utility; /// /// Class for the LinkPage @@ -66,8 +67,8 @@ namespace CampusAppWP8.Pages.Links this.InitializeFeeds(); this.ProgressBar.Visibility = System.Windows.Visibility.Visible; this.loadingFeeds = 2; - this.commonLinkFeed.LoadData(); - this.clubLinkFeed.LoadData(); + this.commonLinkFeed.LoadData(Utilities.getLoadModus()); + this.clubLinkFeed.LoadData(Utilities.getLoadModus()); } /// diff --git a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml index b663f264..2cbda005 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml +++ b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml @@ -59,8 +59,13 @@ - + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs index 4f85b351..228ffcb9 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs @@ -8,6 +8,7 @@ namespace CampusAppWP8.Pages.Mensa { using System; + using System.Threading; using System.Windows; using System.Windows.Navigation; using CampusAppWP8.Feed.GeoApi; @@ -15,7 +16,8 @@ namespace CampusAppWP8.Pages.Mensa using CampusAppWP8.Resources; using CampusAppWP8.Utility.Lui.MessageBoxes; using Microsoft.Phone.Controls; - using System.Threading; + using Microsoft.Phone.Shell; + using CampusAppWP8.Utility; /// /// Class for the MensaPage @@ -64,6 +66,24 @@ namespace CampusAppWP8.Pages.Mensa public MensaPage() { this.InitializeComponent(); + ApplicationBarMenuItem menuItem1 = ApplicationBar.MenuItems[0] as ApplicationBarMenuItem; + ApplicationBarMenuItem menuItem2 = ApplicationBar.MenuItems[1] as ApplicationBarMenuItem; + ApplicationBarMenuItem menuItem3 = ApplicationBar.MenuItems[2] as ApplicationBarMenuItem; + + if (menuItem1 != null) + { + menuItem1.Text = AppResources.Campus_CBMain; + } + + if (menuItem2 != null) + { + menuItem2.Text = AppResources.Campus_CBSouth; + } + + if (menuItem3 != null) + { + menuItem3.Text = AppResources.Campus_SFBMain; + } } #endregion @@ -89,10 +109,14 @@ namespace CampusAppWP8.Pages.Mensa /// Arguments of navigation protected override void OnNavigatedFrom(NavigationEventArgs e) { - this.feed.SaveData(this.refreshed); + if (this.feed != null) + { + this.feed.SaveData(this.refreshed); + } } #endregion + #region private /// @@ -115,8 +139,11 @@ namespace CampusAppWP8.Pages.Mensa /// private void SpsApiIsFail() { - MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorCampusLoc); - this.InitializeFeed(Settings.UserProfil.DefaultCampus); + if (this.Dispatcher != null) + { + this.Dispatcher.BeginInvoke(new Action(() => MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorCampusLoc))); + this.Dispatcher.BeginInvoke(new Action(() => this.InitializeFeed(Settings.UserProfil.DefaultCampus))); + } } /// @@ -150,7 +177,7 @@ namespace CampusAppWP8.Pages.Mensa } else { - this.feed.LoadData(); + this.feed.LoadData(Utilities.getLoadModus()); } } @@ -159,9 +186,9 @@ namespace CampusAppWP8.Pages.Mensa /// private void InitializeFeed() { - if (Settings.AppSetting.GeoWatchEnable) + if (Settings.AppSetting.GeoWatchEnable && Settings.AppSetting.UniNetwork) { - Thread thread = new Thread(new ThreadStart( this.DeterminCurrentCampusAndLoadFeed)); + Thread thread = new Thread(new ThreadStart(this.DeterminCurrentCampusAndLoadFeed)); thread.Start(); } else @@ -202,6 +229,7 @@ namespace CampusAppWP8.Pages.Mensa /// private void SetupMensaPivot() { + this.MensaPivot.Title = AppResources.MensaApp_Title + " (" + this.feed.Title + ")"; this.MensaPivot.ItemsSource = this.feed.Model.Menus; this.MensaPivot.SelectedIndex = this.selectedIndex; } @@ -252,6 +280,36 @@ namespace CampusAppWP8.Pages.Mensa this.refreshed = true; } + /// Event handler. Called by ApplicationBarMenuItem for click events. + /// Stubbfel, 26.08.2013. + /// button object. + /// Event information. + private void ApplicationBarMenuItem_Click(object sender, EventArgs e) + { + this.ProgressBar.Visibility = System.Windows.Visibility.Visible; + this.InitializeFeed(CampusAppWP8.Model.Setting.UserProfilModel.Campus.CB_MAIN); + } + + /// Event handler. Called by ApplicationBarMenuItem2 for click events. + /// Stubbfel, 26.08.2013. + /// button object. + /// Event information. + private void ApplicationBarMenuItem2_Click(object sender, EventArgs e) + { + this.ProgressBar.Visibility = System.Windows.Visibility.Visible; + this.InitializeFeed(CampusAppWP8.Model.Setting.UserProfilModel.Campus.CB_SOUTH); + } + + /// Event handler. Called by ApplicationBarMenuItem3 for click events. + /// Stubbfel, 26.08.2013. + /// button object. + /// Event information. + private void ApplicationBarMenuItem3_Click(object sender, EventArgs e) + { + this.ProgressBar.Visibility = System.Windows.Visibility.Visible; + this.InitializeFeed(CampusAppWP8.Model.Setting.UserProfilModel.Campus.SFB_MAIN); + } + #endregion #endregion diff --git a/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs index 7a8b5e57..b48619c2 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs @@ -15,6 +15,7 @@ namespace CampusAppWP8.Pages.News using CampusAppWP8.Utility.Lui.MessageBoxes; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; + using CampusAppWP8.Utility; /// /// Overview page of all news. @@ -48,7 +49,7 @@ namespace CampusAppWP8.Pages.News NewsIndexPage.newsFeed.OnLoaded += new NewsFeed.OnIO(this.SetupNewsPageList); NewsIndexPage.newsFeed.OnFailedWeb += new NewsFeed.OnFailed(this.FeedIsFailWeb); NewsIndexPage.newsFeed.OnFailedFile += new NewsFeed.OnFailed(this.FeedIsFailFile); - NewsIndexPage.newsFeed.LoadData(); + NewsIndexPage.newsFeed.LoadData(Utilities.getLoadModus()); } /// @@ -88,6 +89,20 @@ namespace CampusAppWP8.Pages.News base.OnNavigatedTo(e); } + /// + /// Methods overrides the OnNavigatedFrom-Method + /// + /// some NavigationEventArgs + protected override void OnNavigatedFrom(NavigationEventArgs e) + { + if (NavigationMode.Back == e.NavigationMode) + { + // delete all models + NewsIndexPage.newsFeed.SaveData(); + } + + base.OnNavigatedFrom(e); + } /// /// Is called after the RSS feeds are loaded into the newsFeed model. /// If there was no feed information set to the UI, the feed list diff --git a/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs index 16d28f4a..ab256c91 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs @@ -15,6 +15,7 @@ namespace CampusAppWP8.Pages.Openinghours using CampusAppWP8.Resources; using CampusAppWP8.Utility.Lui.MessageBoxes; using Microsoft.Phone.Controls; + using CampusAppWP8.Utility; /// /// Opening hours page. @@ -51,7 +52,7 @@ namespace CampusAppWP8.Pages.Openinghours this.feed.OnLoaded += new OpeninghoursFeed.OnIO(this.FeedIsReady); this.feed.OnFailedWeb += new OpeninghoursFeed.OnFailed(this.FeedIsFailedWeb); this.feed.OnFailedFile += new OpeninghoursFeed.OnFailed(this.FeedIsFailedFile); - this.feed.LoadData(); + this.feed.LoadData(Utilities.getLoadModus()); } this.isNewInstance = true; diff --git a/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml new file mode 100644 index 00000000..42be8898 --- /dev/null +++ b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs new file mode 100644 index 00000000..42f82e7f --- /dev/null +++ b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Navigation; +using Microsoft.Phone.Controls; +using Microsoft.Phone.Shell; + +namespace CampusAppWP8.Pages.Person +{ + public partial class PersonPage : PhoneApplicationPage + { + public PersonPage() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml index 970f9b5d..82e30fd7 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml +++ b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml @@ -30,12 +30,16 @@ + - + + + + diff --git a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs index a7d851b7..a3406e04 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Pages.Setting { this.InitializeComponent(); GeoWatchToggle.IsChecked = Settings.AppSetting.GeoWatchEnable; + OnlyWiFiToggle.IsChecked = Settings.AppSetting.OnlyWifi; } /// @@ -33,6 +34,7 @@ namespace CampusAppWP8.Pages.Setting if (NavigationMode.Back == e.NavigationMode) { Settings.AppSetting.GeoWatchEnable = GeoWatchToggle.IsChecked.Value; + Settings.AppSetting.OnlyWifi = OnlyWiFiToggle.IsChecked.Value; } } } diff --git a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml index c1d2c3ee..4ec8dd6e 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml +++ b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml @@ -23,117 +23,168 @@ - + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + - - - - - - + + + + + + + - - - - - - + - + + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + + - - - - - - - + - - - - - - + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - + + + + + + + - - - - - - + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs index 4bbdc8da..8b57e6a7 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs @@ -44,14 +44,22 @@ namespace CampusAppWP8.Pages menuItem2.Text = AppResources.Setting_ApplAppBarTitle; } - if (menuItem3 != null) + if (Settings.AppSetting.DevMode) { - menuItem3.Text = "Nfc"; - } + if (menuItem3 != null) + { + menuItem3.Text = "Nfc"; + } - if (menuItem4 != null) + if (menuItem4 != null) + { + menuItem4.Text = "QR-Reader"; + } + } + else { - menuItem4.Text = "QR-Reader"; + ApplicationBar.MenuItems.RemoveAt(ApplicationBar.MenuItems.Count - 1); + ApplicationBar.MenuItems.RemoveAt(ApplicationBar.MenuItems.Count - 1); } if (!Settings.AppSetting.InitApp) @@ -78,45 +86,70 @@ namespace CampusAppWP8.Pages private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e) { // Switch the placement of the buttons based on an orientation change. - if (this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight) + if (this.Orientation == PageOrientation.LandscapeLeft) { - OpenHoursAppButton.SetValue(Grid.RowProperty, 0); - OpenHoursAppButton.SetValue(Grid.ColumnProperty, 3); - OpenHoursAppButtonText.Text = AppResources.OpenHoursApp_Title; - - OSAAppButton.SetValue(Grid.RowProperty, 1); - OSAAppButton.SetValue(Grid.ColumnProperty, 3); - - LinkAppButton.SetValue(Grid.RowProperty, 2); - LinkAppButton.SetValue(Grid.ColumnProperty, 3); - - ContentPanel.Margin = new Thickness(12, -24, 0, 0); - - HomeworkAppButtonText.Text = AppResources.HomeworkApp_Title; - ContentPanel.RowDefinitions[3].Height = GridLength.Auto; - ContentPanel.ColumnDefinitions[3].Width = new GridLength(1, GridUnitType.Star); + this.ContentPanel.Margin = new Thickness(24, -24, 76, 0); + this.AppTitle.Margin = new Thickness(12, 17, 0, 28); + this.MoveGridToLandscape(); + } + else if (this.Orientation == PageOrientation.LandscapeRight) + { + this.ContentPanel.Margin = new Thickness(76, -24, 24, 0); + this.AppTitle.Margin = new Thickness(64, 17, 0, 28); + this.MoveGridToLandscape(); } else { - // If not in portrait, move buttonList content to visible row and column. - ContentPanel.Margin = new Thickness(12, 0, 12, 12); - OpenHoursAppButton.SetValue(Grid.RowProperty, 3); - OpenHoursAppButton.SetValue(Grid.ColumnProperty, 0); - OpenHoursAppButtonText.Text = AppResources.OpenHoursApp_Title2; - - OSAAppButton.SetValue(Grid.RowProperty, 3); - OSAAppButton.SetValue(Grid.ColumnProperty, 1); - - LinkAppButton.SetValue(Grid.RowProperty, 3); - LinkAppButton.SetValue(Grid.ColumnProperty, 2); - - HomeworkAppButtonText.Text = AppResources.HomeworkApp_Title2; - - ContentPanel.RowDefinitions[3].Height = new GridLength(1, GridUnitType.Star); - ContentPanel.ColumnDefinitions[3].Width = GridLength.Auto; + this.ContentPanel.Margin = new Thickness(12, 0, 12, 12); + this.AppTitle.Margin = new Thickness(12, 17, 0, 28); + this.MoveToPortrait(); } } + /// Move to Portrait format. + /// Stubbfel, 27.08.2013. + private void MoveToPortrait() + { + bool test = this.Row0.Children.Remove(this.OpenHoursAppButton); + if (!test) + { + return; + } + + this.Row3.Children.Add(this.OpenHoursAppButton); + this.OpenHoursAppButton.SetValue(Grid.ColumnProperty, 0); + + this.Row1.Children.Remove(this.OSAAppButton); + this.Row3.Children.Add(this.OSAAppButton); + this.OSAAppButton.SetValue(Grid.ColumnProperty, 1); + + this.Row2.Children.Remove(this.LinkAppButton); + this.Row3.Children.Add(this.LinkAppButton); + this.LinkAppButton.SetValue(Grid.ColumnProperty, 2); + } + + /// Move Grid to landscape format. + /// Stubbfel, 27.08.2013. + private void MoveGridToLandscape() + { + bool test = this.Row3.Children.Remove(this.OpenHoursAppButton); + if (!test) + { + return; + } + + this.Row0.Children.Add(this.OpenHoursAppButton); + this.OpenHoursAppButton.SetValue(Grid.ColumnProperty, 3); + + this.Row3.Children.Remove(this.OSAAppButton); + this.Row1.Children.Add(this.OSAAppButton); + this.OSAAppButton.SetValue(Grid.ColumnProperty, 3); + + this.Row3.Children.Remove(this.LinkAppButton); + this.Row2.Children.Add(this.LinkAppButton); + this.LinkAppButton.SetValue(Grid.ColumnProperty, 3); + } + /// /// Method Navigate to /// diff --git a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs index 2e548d4f..63523e6f 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs @@ -14,6 +14,7 @@ namespace CampusAppWP8.Pages.StudentCouncil using CampusAppWP8.Resources; using CampusAppWP8.Utility.Lui.MessageBoxes; using Microsoft.Phone.Controls; + using CampusAppWP8.Utility; /// /// Class for the StudentCouncilPage @@ -59,7 +60,7 @@ namespace CampusAppWP8.Pages.StudentCouncil } this.ProgressBar.Visibility = System.Windows.Visibility.Visible; - this.feed.LoadData(); + this.feed.LoadData(Utilities.getLoadModus()); } /// diff --git a/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs b/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs index 7b79160f..9cb9bff8 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs +++ b/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs @@ -222,6 +222,24 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Prüfungsordnungen ähnelt. + /// + public static string ExaminationApp_Header { + get { + return ResourceManager.GetString("ExaminationApp_Header", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Prüfungs- ordnungen ähnelt. + /// + public static string ExaminationApp_Title { + get { + return ResourceManager.GetString("ExaminationApp_Title", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Fakultät ähnelt. /// @@ -681,6 +699,24 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Personensuche ähnelt. + /// + public static string PersonApp_Header { + get { + return ResourceManager.GetString("PersonApp_Header", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Personen ähnelt. + /// + public static string PersonApp_Title { + get { + return ResourceManager.GetString("PersonApp_Title", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Die primäre Kamera steht nicht zur Verfügung. ähnelt. /// @@ -771,6 +807,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Nur mit Wlan laden ähnelt. + /// + public static string Setting_AppOnlyWifi { + get { + return ResourceManager.GetString("Setting_AppOnlyWifi", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Mitarbeiter ähnelt. /// diff --git a/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx b/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx index db84d97c..72626477 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx +++ b/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx @@ -416,4 +416,19 @@ vorlesen + + Nur mit Wlan laden + + + Prüfungs- ordnungen + + + Prüfungsordnungen + + + Personensuche + + + Personen + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Resources/Constants.Designer.cs b/CampusAppWP8/CampusAppWP8/Resources/Constants.Designer.cs index ad0aba17..d4c18d60 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/Constants.Designer.cs +++ b/CampusAppWP8/CampusAppWP8/Resources/Constants.Designer.cs @@ -60,6 +60,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die DevMode ähnelt. + /// + public static string AppSetting_DevMode { + get { + return ResourceManager.GetString("AppSetting_DevMode", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die AppSetting.GeoWatchEnable ähnelt. /// @@ -78,6 +87,78 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die OnlyWifi ähnelt. + /// + public static string AppSetting_OnlyWifi { + get { + return ResourceManager.GetString("AppSetting_OnlyWifi", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die UniNet ähnelt. + /// + public static string AppSetting_UniNet { + get { + return ResourceManager.GetString("AppSetting_UniNet", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die 802.1X ähnelt. + /// + public static string AppSetting_UniNetworkDesc { + get { + return ResourceManager.GetString("AppSetting_UniNetworkDesc", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die 802.1X ähnelt. + /// + public static string AppSetting_UniNetworkName { + get { + return ResourceManager.GetString("AppSetting_UniNetworkName", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die WifiEnable ähnelt. + /// + public static string AppSetting_WifiEnable { + get { + return ResourceManager.GetString("AppSetting_WifiEnable", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die +49 ähnelt. + /// + public static string DeTelPrefix { + get { + return ResourceManager.GetString("DeTelPrefix", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die ExamsPage.LastPivotIndex ähnelt. + /// + public static string ExamPageModelKey { + get { + return ResourceManager.GetString("ExamPageModelKey", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die links ähnelt. + /// + public static string ExamXmlValidRootName { + get { + return ResourceManager.GetString("ExamXmlValidRootName", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die DepartmentFavoriteFeed.xml ähnelt. /// @@ -105,6 +186,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die examlist.xml ähnelt. + /// + public static string FileExamApp_ExamFeed { + get { + return ResourceManager.GetString("FileExamApp_ExamFeed", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die ClubLinks.xml ähnelt. /// @@ -465,6 +555,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die SearchAlias ähnelt. + /// + public static string ParamModelMap_SearchTermAlias { + get { + return ResourceManager.GetString("ParamModelMap_SearchTermAlias", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die pivotindex ähnelt. /// @@ -546,6 +645,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die /Pages/Exams/Exams.xaml ähnelt. + /// + public static string PathExams_ExamsPage { + get { + return ResourceManager.GetString("PathExams_ExamsPage", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die /Pages/Lecture/LecturePage.xaml ähnelt. /// @@ -636,6 +744,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die /Pages/Person/PersonPage.xaml ähnelt. + /// + public static string PathPerson_Person { + get { + return ResourceManager.GetString("PathPerson_Person", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die /Pages/Setting/AppSettingPage.xaml ähnelt. /// @@ -735,6 +852,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die 035569 ähnelt. + /// + public static string UniCBTelPrefix { + get { + return ResourceManager.GetString("UniCBTelPrefix", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die http://www.tu-cottbus.de/campusapp-data/professorships.xml ähnelt. /// @@ -753,6 +879,15 @@ namespace CampusAppWP8.Resources { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die https://www.zv.tu-cottbus.de/CMS-Webservice/Pruefungsordnung/Uebersicht ähnelt. + /// + public static string UrlExamApp_ExamFeed { + get { + return ResourceManager.GetString("UrlExamApp_ExamFeed", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die http://www.zv.tu-cottbus.de/LSFveranst/LSF4 ähnelt. /// @@ -790,16 +925,7 @@ namespace CampusAppWP8.Resources { } /// - /// Sucht eine lokalisierte Zeichenfolge, die http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusBTU&v=1 ähnelt. - /// - public static string UrlMensa_Week { - get { - return ResourceManager.GetString("UrlMensa_Week", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusBTU&v=1 ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=CottbusBTU&v=1 ähnelt. /// public static string UrlMensa_Week_CBMain { get { @@ -808,7 +934,7 @@ namespace CampusAppWP8.Resources { } /// - /// Sucht eine lokalisierte Zeichenfolge, die http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusBTU&v=1 ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=CottbusBTU&v=1 ähnelt. /// public static string UrlMensa_Week_CBNorth { get { @@ -817,7 +943,7 @@ namespace CampusAppWP8.Resources { } /// - /// Sucht eine lokalisierte Zeichenfolge, die http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusHL&v=1 ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=CottbusHL&v=1 ähnelt. /// public static string UrlMensa_Week_CBSouth { get { @@ -826,7 +952,7 @@ namespace CampusAppWP8.Resources { } /// - /// Sucht eine lokalisierte Zeichenfolge, die http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=Senftenberg&v=1 ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=Senftenberg&v=1 ähnelt. /// public static string UrlMensa_Week_SBFMain { get { diff --git a/CampusAppWP8/CampusAppWP8/Resources/Constants.resx b/CampusAppWP8/CampusAppWP8/Resources/Constants.resx index d6ba8703..ef787291 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/Constants.resx +++ b/CampusAppWP8/CampusAppWP8/Resources/Constants.resx @@ -255,9 +255,6 @@ EventsFeed.xml - - http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusBTU&v=1 - OpeninghoursFeed.xml @@ -382,16 +379,16 @@ MensaFeed_SFBMain.xml - http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusBTU&v=1 + http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=CottbusBTU&v=1 - http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusBTU&v=1 + http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=CottbusBTU&v=1 - http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=CottbusHL&v=1 + http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=CottbusHL&v=1 - http://www.tu-cottbus.de/campusapp-data/Studentenwerk/index.php?mensa=Senftenberg&v=1 + http://www.studentenwerk-frankfurt.de/2011/ClassPackage/App_IKMZ_BTU/index.php?mensa=Senftenberg&v=1 3 @@ -417,4 +414,49 @@ /Assets/campusmap.png + + DevMode + + + UniNet + + + 802.1X + + + 802.1X + + + WifiEnable + + + OnlyWifi + + + SearchAlias + + + /Pages/Exams/Exams.xaml + + + links + + + examlist.xml + + + https://www.zv.tu-cottbus.de/CMS-Webservice/Pruefungsordnung/Uebersicht + + + ExamsPage.LastPivotIndex + + + /Pages/Person/PersonPage.xaml + + + +49 + + + 035569 + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Resources/Icons.cs b/CampusAppWP8/CampusAppWP8/Resources/Icons.cs index 7d6a9c8a..b52d7047 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/Icons.cs +++ b/CampusAppWP8/CampusAppWP8/Resources/Icons.cs @@ -66,6 +66,17 @@ namespace CampusAppWP8.Resources } } + /// + /// Gets the uri string of the CurrentPosition icon. + /// + public static string CurrentPosition + { + get + { + return Themerize("current_position_159.png"); + } + } + /// /// Gets the uri string of the Delete icon. /// @@ -88,6 +99,17 @@ namespace CampusAppWP8.Resources } } + /// + /// Gets the uri string of the Exams icon. + /// + public static string Exams + { + get + { + return Themerize("exams_159.png"); + } + } + /// /// Gets the uri string of the Favorite icon. /// @@ -220,6 +242,17 @@ namespace CampusAppWP8.Resources } } + /// + /// Gets the uri string of the Person icon. + /// + public static string Person + { + get + { + return Themerize("person_159.png"); + } + } + /// /// Gets the uri string of the Phone icon. /// @@ -264,6 +297,17 @@ namespace CampusAppWP8.Resources } } + /// + /// Gets the uri string of the SearchPlace icon. + /// + public static string SearchPlace + { + get + { + return Themerize("search_place_159.png"); + } + } + /// /// Gets the uri string of the StudentCouncil icon. /// diff --git a/CampusAppWP8/CampusAppWP8/Resources/Icons.resx b/CampusAppWP8/CampusAppWP8/Resources/Icons.resx index f981d217..1cdc52f7 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/Icons.resx +++ b/CampusAppWP8/CampusAppWP8/Resources/Icons.resx @@ -129,12 +129,18 @@ info_159.png + + current_position_159.png + delete_159.png departments_159.png + + exams_159.png + favorite_159.png @@ -171,6 +177,9 @@ openhours_159.png + + person_159.png + phone_159.png @@ -183,6 +192,9 @@ search_159.png + + search_place_159.png + student_council_159.png diff --git a/CampusAppWP8/CampusAppWP8/Settings.StyleCop b/CampusAppWP8/CampusAppWP8/Settings.StyleCop index 32ac78c5..a149dc8d 100644 --- a/CampusAppWP8/CampusAppWP8/Settings.StyleCop +++ b/CampusAppWP8/CampusAppWP8/Settings.StyleCop @@ -3,6 +3,7 @@ enum Fiedler + Stubbfel diff --git a/CampusAppWP8/CampusAppWP8/Styles/StartPageStyles.xaml b/CampusAppWP8/CampusAppWP8/Styles/StartPageStyles.xaml index 058047c0..1aec455a 100644 --- a/CampusAppWP8/CampusAppWP8/Styles/StartPageStyles.xaml +++ b/CampusAppWP8/CampusAppWP8/Styles/StartPageStyles.xaml @@ -16,6 +16,8 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Maus + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/CampussAppWStore8/MainPage.xaml b/CampusAppWP8/CampussAppWStore8/MainPage.xaml new file mode 100644 index 00000000..36bb68fc --- /dev/null +++ b/CampusAppWP8/CampussAppWStore8/MainPage.xaml @@ -0,0 +1,13 @@ + + + + + + diff --git a/CampusAppWP8/CampussAppWStore8/MainPage.xaml.cs b/CampusAppWP8/CampussAppWStore8/MainPage.xaml.cs new file mode 100644 index 00000000..1fc5f74d --- /dev/null +++ b/CampusAppWP8/CampussAppWStore8/MainPage.xaml.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// Die Elementvorlage "Leere Seite" ist unter http://go.microsoft.com/fwlink/?LinkId=234238 dokumentiert. + +namespace CampussAppWStore8 +{ + /// + /// Eine leere Seite, die eigenständig verwendet werden kann oder auf die innerhalb eines Rahmens navigiert werden kann. + /// + public sealed partial class MainPage : Page + { + public MainPage() + { + this.InitializeComponent(); + } + + /// + /// Wird aufgerufen, wenn diese Seite in einem Rahmen angezeigt werden soll. + /// + /// Ereignisdaten, die beschreiben, wie diese Seite erreicht wurde. Die + /// Parametereigenschaft wird normalerweise zum Konfigurieren der Seite verwendet. + protected override void OnNavigatedTo(NavigationEventArgs e) + { + } + } +} diff --git a/CampusAppWP8/CampussAppWStore8/Package.appxmanifest b/CampusAppWP8/CampussAppWStore8/Package.appxmanifest new file mode 100644 index 00000000..1c4ffb92 --- /dev/null +++ b/CampusAppWP8/CampussAppWStore8/Package.appxmanifest @@ -0,0 +1,42 @@ + + + + + + + CampussAppWStore8 + stubbfel + Assets\StoreLogo.png + + + + 6.2.1 + 6.2.1 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampussAppWStore8/Properties/AssemblyInfo.cs b/CampusAppWP8/CampussAppWStore8/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..0443a0a6 --- /dev/null +++ b/CampusAppWP8/CampussAppWStore8/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Diese Attributwerte ändern, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("CampussAppWStore8")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CampussAppWStore8")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Es können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern +// mithilfe von '*' wie unten dargestellt übernommen werden: +// [Assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] \ No newline at end of file diff --git a/CampusAppWP8/IconCreator/IconCreator.pyproj b/CampusAppWP8/IconCreator/IconCreator.pyproj new file mode 100644 index 00000000..c25a7b01 --- /dev/null +++ b/CampusAppWP8/IconCreator/IconCreator.pyproj @@ -0,0 +1,198 @@ + + + + Debug + 2.0 + 78e8dc22-f4e1-42d9-ba04-93ea031c630c + . + + + scripts\ + . + . + IconCreator + IconCreator + + + true + false + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/attention.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/attention.png new file mode 100644 index 00000000..8a744ee0 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/attention.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/happy.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/happy.png new file mode 100644 index 00000000..1a434f91 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/happy.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/question.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/question.png new file mode 100644 index 00000000..ebd3d365 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/question.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/sad.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/sad.png new file mode 100644 index 00000000..8ac05aac Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/emotions/sad.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/add.png new file mode 100644 index 00000000..dccd9fe0 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/btu_account.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/btu_account.png new file mode 100644 index 00000000..cc856d7d Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/btu_account.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/call.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/call.png new file mode 100644 index 00000000..3f337cfc Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/call.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/campusplan.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/campusplan.png new file mode 100644 index 00000000..c951b0d4 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/campusplan.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/delete.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/delete.png new file mode 100644 index 00000000..7cd2c9fb Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/delete.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/down.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/down.png new file mode 100644 index 00000000..a0d4c102 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/down.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/edit.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/edit.png new file mode 100644 index 00000000..9a6d716d Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/edit.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/hausaufgaben.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/hausaufgaben.png new file mode 100644 index 00000000..2e12c169 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/hausaufgaben.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/info.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/info.png new file mode 100644 index 00000000..5bce5ecd Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/info.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/infopoint.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/infopoint.png new file mode 100644 index 00000000..2d11f51b Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/infopoint.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/lehrstuehle.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/lehrstuehle.png new file mode 100644 index 00000000..02d15bff Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/lehrstuehle.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/links.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/links.png new file mode 100644 index 00000000..272cb1e0 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/links.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/mail.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/mail.png new file mode 100644 index 00000000..f7f0d37b Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/mail.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/notenspiegel.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/notenspiegel.png new file mode 100644 index 00000000..86146850 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/notenspiegel.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/openinghours.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/openinghours.png new file mode 100644 index 00000000..53847c45 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/openinghours.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/personen.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/personen.png new file mode 100644 index 00000000..c2163d6f Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/personen.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/reload.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/reload.png new file mode 100644 index 00000000..43acef1a Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/reload.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/save.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/save.png new file mode 100644 index 00000000..fc1b446b Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/save.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/search.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/search.png new file mode 100644 index 00000000..9733d48c Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/search.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/stundenplan.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/stundenplan.png new file mode 100644 index 00000000..79c4c08c Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/stundenplan.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/stundenplan_add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/stundenplan_add.png new file mode 100644 index 00000000..c25e0c25 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/stundenplan_add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/survey.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/survey.png new file mode 100644 index 00000000..e3669456 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/survey.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/termine.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/termine.png new file mode 100644 index 00000000..65d99860 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/termine.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/termine_add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/termine_add.png new file mode 100644 index 00000000..3aa36a95 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/termine_add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/up.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/up.png new file mode 100644 index 00000000..a71b5355 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/up.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/vereine.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/vereine.png new file mode 100644 index 00000000..f5f6540e Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/vereine.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/vorlesungsverzeichnis.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/vorlesungsverzeichnis.png new file mode 100644 index 00000000..8eedc657 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/functions/vorlesungsverzeichnis.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/exams.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/exams.png new file mode 100644 index 00000000..6ada1ad4 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/exams.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/info.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/info.png new file mode 100644 index 00000000..c132ee8b Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/info.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/lab.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/lab.png new file mode 100644 index 00000000..22f3387f Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/lab.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/lecture.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/lecture.png new file mode 100644 index 00000000..254afb5a Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/lecture.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/practise.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/practise.png new file mode 100644 index 00000000..565b8dcf Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/practise.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/seminar.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/seminar.png new file mode 100644 index 00000000..e0b38745 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/listicons/seminar.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add.png new file mode 100644 index 00000000..cbe25009 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add_contact.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add_contact.png new file mode 100644 index 00000000..0348b4c1 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add_contact.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add_small.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add_small.png new file mode 100644 index 00000000..2799c6dc Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/add_small.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/delete.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/delete.png new file mode 100644 index 00000000..7cd2c9fb Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/delete.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/edit.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/edit.png new file mode 100644 index 00000000..9a6d716d Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/edit.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/prefs.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/prefs.png new file mode 100644 index 00000000..c5238476 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/prefs.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/save.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/save.png new file mode 100644 index 00000000..fc1b446b Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/save.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/search.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/search.png new file mode 100644 index 00000000..189d1de2 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/optionbuttons/search.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/others/beach_chair.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/others/beach_chair.png new file mode 100644 index 00000000..8e121f16 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/DarkTheme/others/beach_chair.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/attention.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/attention.png new file mode 100644 index 00000000..22a84d8e Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/attention.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/happy.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/happy.png new file mode 100644 index 00000000..f280445a Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/happy.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/question.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/question.png new file mode 100644 index 00000000..d1933b4c Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/question.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/sad.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/sad.png new file mode 100644 index 00000000..963e8856 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/emotions/sad.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/add.png new file mode 100644 index 00000000..1c6eab49 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/btu_account.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/btu_account.png new file mode 100644 index 00000000..ba8c72cd Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/btu_account.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/call.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/call.png new file mode 100644 index 00000000..48301ab8 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/call.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/campusplan.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/campusplan.png new file mode 100644 index 00000000..1d08c9a6 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/campusplan.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/delete.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/delete.png new file mode 100644 index 00000000..786581b0 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/delete.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/down.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/down.png new file mode 100644 index 00000000..3e23d96d Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/down.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/edit.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/edit.png new file mode 100644 index 00000000..dca05652 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/edit.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/hausaufgaben.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/hausaufgaben.png new file mode 100644 index 00000000..471ec1ff Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/hausaufgaben.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/info.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/info.png new file mode 100644 index 00000000..51e913b7 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/info.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/infopoint.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/infopoint.png new file mode 100644 index 00000000..9d7650bd Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/infopoint.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/lehrstuehle.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/lehrstuehle.png new file mode 100644 index 00000000..b2d3b3ca Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/lehrstuehle.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/links.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/links.png new file mode 100644 index 00000000..fe7fa20e Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/links.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/mail.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/mail.png new file mode 100644 index 00000000..6bda291e Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/mail.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/notenspiegel.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/notenspiegel.png new file mode 100644 index 00000000..d37713f1 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/notenspiegel.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/openinghours.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/openinghours.png new file mode 100644 index 00000000..afa467af Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/openinghours.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/personen.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/personen.png new file mode 100644 index 00000000..c9bd664b Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/personen.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/reload.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/reload.png new file mode 100644 index 00000000..dcd9a800 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/reload.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/save.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/save.png new file mode 100644 index 00000000..9e1d4189 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/save.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/search.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/search.png new file mode 100644 index 00000000..91110c21 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/search.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/stundenplan.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/stundenplan.png new file mode 100644 index 00000000..be5fdae3 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/stundenplan.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/stundenplan_add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/stundenplan_add.png new file mode 100644 index 00000000..7fb0d562 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/stundenplan_add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/survey.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/survey.png new file mode 100644 index 00000000..13284479 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/survey.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/termine.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/termine.png new file mode 100644 index 00000000..80e7a210 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/termine.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/termine_add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/termine_add.png new file mode 100644 index 00000000..48134cf8 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/termine_add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/up.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/up.png new file mode 100644 index 00000000..13c68bac Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/up.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/vereine.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/vereine.png new file mode 100644 index 00000000..6798db0d Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/vereine.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/vorlesungsverzeichnis.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/vorlesungsverzeichnis.png new file mode 100644 index 00000000..6ac72ebd Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/functions/vorlesungsverzeichnis.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/exams.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/exams.png new file mode 100644 index 00000000..cc4f541d Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/exams.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/info.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/info.png new file mode 100644 index 00000000..eb67e90f Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/info.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/lab.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/lab.png new file mode 100644 index 00000000..39943f90 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/lab.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/lecture.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/lecture.png new file mode 100644 index 00000000..1a6b2a66 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/lecture.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/practise.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/practise.png new file mode 100644 index 00000000..e9e54821 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/practise.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/seminar.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/seminar.png new file mode 100644 index 00000000..8981575b Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/listicons/seminar.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add.png new file mode 100644 index 00000000..f1d27556 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add_contact.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add_contact.png new file mode 100644 index 00000000..70e67924 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add_contact.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add_small.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add_small.png new file mode 100644 index 00000000..b9f27629 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/add_small.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/delete.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/delete.png new file mode 100644 index 00000000..786581b0 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/delete.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/edit.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/edit.png new file mode 100644 index 00000000..dca05652 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/edit.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/prefs.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/prefs.png new file mode 100644 index 00000000..f3585b0f Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/prefs.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/save.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/save.png new file mode 100644 index 00000000..9e1d4189 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/save.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/search.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/search.png new file mode 100644 index 00000000..10b07a49 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/optionbuttons/search.png differ diff --git a/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/others/beach_chair.png b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/others/beach_chair.png new file mode 100644 index 00000000..1c42b652 Binary files /dev/null and b/CampusAppWP8/IconCreator/dstImages/wp8/159x159/LightTheme/others/beach_chair.png differ diff --git a/CampusAppWP8/IconCreator/output.svg b/CampusAppWP8/IconCreator/output.svg new file mode 100644 index 00000000..c4a291f1 --- /dev/null +++ b/CampusAppWP8/IconCreator/output.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/IconCreator/scripts/IconCreator.py b/CampusAppWP8/IconCreator/scripts/IconCreator.py new file mode 100644 index 00000000..474cdffa --- /dev/null +++ b/CampusAppWP8/IconCreator/scripts/IconCreator.py @@ -0,0 +1,50 @@ +import cairo +import rsvg +import xml.etree.ElementTree as ET + +def convertSVGToPNG(src, dst, dstWidth, dstHeight, srcWidth, srcHeight, style,layerID): + ET.register_namespace("","http://www.w3.org/2000/svg") + + tree = ET.parse(src) + root = tree.getroot() + + for layer in root.findall('./{http://www.w3.org/2000/svg}g'): + name = layer.get('{http://www.inkscape.org/namespaces/inkscape}label') + if name in layerID : + for path in layer.findall('./{http://www.w3.org/2000/svg}path'): + path.set("style",style) + else : + root.remove(layer) + + img = cairo.ImageSurface(cairo.FORMAT_ARGB32, dstWidth, dstHeight) + ctx = cairo.Context(img) + + width_ratio = float(dstWidth) / float(srcWidth) + height_ratio = float(dstHeight) / float(srcHeight) + ctx.scale(width_ratio, height_ratio) + + handler= rsvg.Handle(None,str(ET.tostring(root, encoding='utf8', method='xml'))) + handler.render_cairo(ctx) + + img.write_to_png(dst) + +def convertSVGToPNG2(src, dst, dstWidth, dstHeight, srcWidth, srcHeight, style,layerID): + ET.register_namespace("","http://www.w3.org/2000/svg") + + tree = ET.parse(src) + root = tree.getroot() + + for path in root.findall('./{http://www.w3.org/2000/svg}path'): + path.set("style",style) + + img = cairo.ImageSurface(cairo.FORMAT_ARGB32, dstWidth, dstHeight) + ctx = cairo.Context(img) + + width_ratio = float(dstWidth) / float(srcWidth) + height_ratio = float(dstHeight) / float(srcHeight) + ctx.scale(width_ratio, height_ratio) + + handler= rsvg.Handle(None,str(ET.tostring(root, encoding='utf8', method='xml'))) + handler.render_cairo(ctx) + + img.write_to_png(dst) \ No newline at end of file diff --git a/CampusAppWP8/IconCreator/scripts/IconCreator.pyc b/CampusAppWP8/IconCreator/scripts/IconCreator.pyc new file mode 100644 index 00000000..4517557c Binary files /dev/null and b/CampusAppWP8/IconCreator/scripts/IconCreator.pyc differ diff --git a/CampusAppWP8/IconCreator/scripts/createspng.py b/CampusAppWP8/IconCreator/scripts/createspng.py new file mode 100644 index 00000000..756f8668 --- /dev/null +++ b/CampusAppWP8/IconCreator/scripts/createspng.py @@ -0,0 +1,44 @@ +import IconCreator +import os + +os.chdir("srcImages/functions") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/LightTheme/functions/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/DarkTheme/functions/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + +os.chdir("srcImages/emotions") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/LightTheme/emotions/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Emotion Speechbubble") + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/DarkTheme/emotions/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Emotion Speechbubble") +os.chdir("../../") + +os.chdir("srcImages/listicons") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/LightTheme/listicons/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/DarkTheme/listicons/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + +os.chdir("srcImages/optionbuttons") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/LightTheme/optionbuttons/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/DarkTheme/optionbuttons/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + +os.chdir("srcImages/others") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/LightTheme/others/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/DarkTheme/others/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + + diff --git a/CampusAppWP8/IconCreator/srcImages/emotions/attention.svg b/CampusAppWP8/IconCreator/srcImages/emotions/attention.svg new file mode 100644 index 00000000..43e9d01c --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/emotions/attention.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/emotions/happy.svg b/CampusAppWP8/IconCreator/srcImages/emotions/happy.svg new file mode 100644 index 00000000..da348db2 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/emotions/happy.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/emotions/question.svg b/CampusAppWP8/IconCreator/srcImages/emotions/question.svg new file mode 100644 index 00000000..699e3c17 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/emotions/question.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/emotions/sad.svg b/CampusAppWP8/IconCreator/srcImages/emotions/sad.svg new file mode 100644 index 00000000..b5b48bda --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/emotions/sad.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/add.svg b/CampusAppWP8/IconCreator/srcImages/functions/add.svg new file mode 100644 index 00000000..bb518997 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/add.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/btu_account.svg b/CampusAppWP8/IconCreator/srcImages/functions/btu_account.svg new file mode 100644 index 00000000..5ed71b85 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/btu_account.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/call.svg b/CampusAppWP8/IconCreator/srcImages/functions/call.svg new file mode 100644 index 00000000..68c65036 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/call.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/campusplan.svg b/CampusAppWP8/IconCreator/srcImages/functions/campusplan.svg new file mode 100644 index 00000000..5841fa18 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/campusplan.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/delete.svg b/CampusAppWP8/IconCreator/srcImages/functions/delete.svg new file mode 100644 index 00000000..4d0400e3 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/delete.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/down.svg b/CampusAppWP8/IconCreator/srcImages/functions/down.svg new file mode 100644 index 00000000..eb59f205 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/down.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/edit.svg b/CampusAppWP8/IconCreator/srcImages/functions/edit.svg new file mode 100644 index 00000000..a84e582c --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/edit.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/hausaufgaben.svg b/CampusAppWP8/IconCreator/srcImages/functions/hausaufgaben.svg new file mode 100644 index 00000000..048eefb7 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/hausaufgaben.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/info.svg b/CampusAppWP8/IconCreator/srcImages/functions/info.svg new file mode 100644 index 00000000..5118ea82 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/info.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/infopoint.svg b/CampusAppWP8/IconCreator/srcImages/functions/infopoint.svg new file mode 100644 index 00000000..18704fa8 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/infopoint.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/lehrstuehle.svg b/CampusAppWP8/IconCreator/srcImages/functions/lehrstuehle.svg new file mode 100644 index 00000000..2f068e7b --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/lehrstuehle.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/links.svg b/CampusAppWP8/IconCreator/srcImages/functions/links.svg new file mode 100644 index 00000000..15065402 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/links.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/mail.svg b/CampusAppWP8/IconCreator/srcImages/functions/mail.svg new file mode 100644 index 00000000..10a65f44 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/mail.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/notenspiegel.svg b/CampusAppWP8/IconCreator/srcImages/functions/notenspiegel.svg new file mode 100644 index 00000000..4a45ea4b --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/notenspiegel.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/openinghours.svg b/CampusAppWP8/IconCreator/srcImages/functions/openinghours.svg new file mode 100644 index 00000000..18218aac --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/openinghours.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/personen.svg b/CampusAppWP8/IconCreator/srcImages/functions/personen.svg new file mode 100644 index 00000000..9c5523a0 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/personen.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/reload.svg b/CampusAppWP8/IconCreator/srcImages/functions/reload.svg new file mode 100644 index 00000000..edcfd41a --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/reload.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/save.svg b/CampusAppWP8/IconCreator/srcImages/functions/save.svg new file mode 100644 index 00000000..8c0d6f36 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/save.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/search.svg b/CampusAppWP8/IconCreator/srcImages/functions/search.svg new file mode 100644 index 00000000..963a1749 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/search.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/stundenplan.svg b/CampusAppWP8/IconCreator/srcImages/functions/stundenplan.svg new file mode 100644 index 00000000..fffcabf0 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/stundenplan.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/stundenplan_add.svg b/CampusAppWP8/IconCreator/srcImages/functions/stundenplan_add.svg new file mode 100644 index 00000000..a3c00599 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/stundenplan_add.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/survey.svg b/CampusAppWP8/IconCreator/srcImages/functions/survey.svg new file mode 100644 index 00000000..a2d70400 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/survey.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/termine.svg b/CampusAppWP8/IconCreator/srcImages/functions/termine.svg new file mode 100644 index 00000000..33b6b55a --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/termine.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/termine_add.svg b/CampusAppWP8/IconCreator/srcImages/functions/termine_add.svg new file mode 100644 index 00000000..69aa8b84 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/termine_add.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/up.svg b/CampusAppWP8/IconCreator/srcImages/functions/up.svg new file mode 100644 index 00000000..fe378713 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/up.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/vereine.svg b/CampusAppWP8/IconCreator/srcImages/functions/vereine.svg new file mode 100644 index 00000000..4b50684f --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/vereine.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/functions/vorlesungsverzeichnis.svg b/CampusAppWP8/IconCreator/srcImages/functions/vorlesungsverzeichnis.svg new file mode 100644 index 00000000..f292cc6f --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/functions/vorlesungsverzeichnis.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/listicons/exams.svg b/CampusAppWP8/IconCreator/srcImages/listicons/exams.svg new file mode 100644 index 00000000..2fd7751e --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/listicons/exams.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/listicons/info.svg b/CampusAppWP8/IconCreator/srcImages/listicons/info.svg new file mode 100644 index 00000000..2afde309 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/listicons/info.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/listicons/lab.svg b/CampusAppWP8/IconCreator/srcImages/listicons/lab.svg new file mode 100644 index 00000000..53706ac3 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/listicons/lab.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/listicons/lecture.svg b/CampusAppWP8/IconCreator/srcImages/listicons/lecture.svg new file mode 100644 index 00000000..3f4d981f --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/listicons/lecture.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/listicons/practise.svg b/CampusAppWP8/IconCreator/srcImages/listicons/practise.svg new file mode 100644 index 00000000..e6f6db32 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/listicons/practise.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/listicons/seminar.svg b/CampusAppWP8/IconCreator/srcImages/listicons/seminar.svg new file mode 100644 index 00000000..63f03af2 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/listicons/seminar.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/_readme.txt b/CampusAppWP8/IconCreator/srcImages/optionbuttons/_readme.txt new file mode 100644 index 00000000..871d2028 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/_readme.txt @@ -0,0 +1 @@ +Die Icons in diesem Ordner haben die Standartfarbe weiss. Die Dateien sind also nicht leer. Man muss zunächst den Hintergrund ändern, um die Icons sehen zu können. \ No newline at end of file diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/add.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/add.svg new file mode 100644 index 00000000..5bd9cfa2 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/add.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/add_contact.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/add_contact.svg new file mode 100644 index 00000000..c67865d4 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/add_contact.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/add_small.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/add_small.svg new file mode 100644 index 00000000..e50e5421 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/add_small.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/delete.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/delete.svg new file mode 100644 index 00000000..2aeb6e04 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/delete.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/edit.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/edit.svg new file mode 100644 index 00000000..e6c41722 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/edit.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/prefs.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/prefs.svg new file mode 100644 index 00000000..23acbb94 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/prefs.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/save.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/save.svg new file mode 100644 index 00000000..99b0fa28 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/save.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/optionbuttons/search.svg b/CampusAppWP8/IconCreator/srcImages/optionbuttons/search.svg new file mode 100644 index 00000000..38062bf1 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/optionbuttons/search.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/others/beach_chair.svg b/CampusAppWP8/IconCreator/srcImages/others/beach_chair.svg new file mode 100644 index 00000000..37abbb92 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/others/beach_chair.svg @@ -0,0 +1,56 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/template5.svg b/CampusAppWP8/IconCreator/srcImages/template5.svg new file mode 100644 index 00000000..c99e4137 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/template5.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/template5_emotion.svg b/CampusAppWP8/IconCreator/srcImages/template5_emotion.svg new file mode 100644 index 00000000..356fc640 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/template5_emotion.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/template5_listicons.svg b/CampusAppWP8/IconCreator/srcImages/template5_listicons.svg new file mode 100644 index 00000000..1208ec64 --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/template5_listicons.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/srcImages/template5_options.svg b/CampusAppWP8/IconCreator/srcImages/template5_options.svg new file mode 100644 index 00000000..dfb9c94f --- /dev/null +++ b/CampusAppWP8/IconCreator/srcImages/template5_options.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/CampusAppWP8/IconCreator/svg.png b/CampusAppWP8/IconCreator/svg.png new file mode 100644 index 00000000..dccd9fe0 Binary files /dev/null and b/CampusAppWP8/IconCreator/svg.png differ diff --git a/CampusAppWP8/IconCreator/test.png b/CampusAppWP8/IconCreator/test.png new file mode 100644 index 00000000..1c6eab49 Binary files /dev/null and b/CampusAppWP8/IconCreator/test.png differ diff --git a/work/Dokumentation/Owncloud.pdf b/work/Dokumentation/Owncloud.pdf new file mode 100644 index 00000000..4b9597c1 Binary files /dev/null and b/work/Dokumentation/Owncloud.pdf differ diff --git a/work/Dokumentation/Owncloud.vsd b/work/Dokumentation/Owncloud.vsd new file mode 100644 index 00000000..b0100824 Binary files /dev/null and b/work/Dokumentation/Owncloud.vsd differ diff --git a/work/images/emotions/attention.svg b/work/images/emotions/attention.svg new file mode 100644 index 00000000..43e9d01c --- /dev/null +++ b/work/images/emotions/attention.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/work/images/emotions/happy.svg b/work/images/emotions/happy.svg new file mode 100644 index 00000000..da348db2 --- /dev/null +++ b/work/images/emotions/happy.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/work/images/emotions/question.svg b/work/images/emotions/question.svg new file mode 100644 index 00000000..699e3c17 --- /dev/null +++ b/work/images/emotions/question.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/work/images/emotions/sad.svg b/work/images/emotions/sad.svg new file mode 100644 index 00000000..b5b48bda --- /dev/null +++ b/work/images/emotions/sad.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/work/images/functions/add.svg b/work/images/functions/add.svg new file mode 100644 index 00000000..bb518997 --- /dev/null +++ b/work/images/functions/add.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/btu_account.svg b/work/images/functions/btu_account.svg new file mode 100644 index 00000000..5ed71b85 --- /dev/null +++ b/work/images/functions/btu_account.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/call.svg b/work/images/functions/call.svg new file mode 100644 index 00000000..68c65036 --- /dev/null +++ b/work/images/functions/call.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/campusplan.svg b/work/images/functions/campusplan.svg new file mode 100644 index 00000000..5841fa18 --- /dev/null +++ b/work/images/functions/campusplan.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/delete.svg b/work/images/functions/delete.svg new file mode 100644 index 00000000..4d0400e3 --- /dev/null +++ b/work/images/functions/delete.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/down.svg b/work/images/functions/down.svg new file mode 100644 index 00000000..eb59f205 --- /dev/null +++ b/work/images/functions/down.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/edit.svg b/work/images/functions/edit.svg new file mode 100644 index 00000000..a84e582c --- /dev/null +++ b/work/images/functions/edit.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/hausaufgaben.svg b/work/images/functions/hausaufgaben.svg new file mode 100644 index 00000000..048eefb7 --- /dev/null +++ b/work/images/functions/hausaufgaben.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/info.svg b/work/images/functions/info.svg new file mode 100644 index 00000000..5118ea82 --- /dev/null +++ b/work/images/functions/info.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/infopoint.svg b/work/images/functions/infopoint.svg new file mode 100644 index 00000000..18704fa8 --- /dev/null +++ b/work/images/functions/infopoint.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/lehrstuehle.svg b/work/images/functions/lehrstuehle.svg new file mode 100644 index 00000000..2f068e7b --- /dev/null +++ b/work/images/functions/lehrstuehle.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/links.svg b/work/images/functions/links.svg new file mode 100644 index 00000000..15065402 --- /dev/null +++ b/work/images/functions/links.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/mail.svg b/work/images/functions/mail.svg new file mode 100644 index 00000000..10a65f44 --- /dev/null +++ b/work/images/functions/mail.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/notenspiegel.svg b/work/images/functions/notenspiegel.svg new file mode 100644 index 00000000..4a45ea4b --- /dev/null +++ b/work/images/functions/notenspiegel.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/openinghours.svg b/work/images/functions/openinghours.svg new file mode 100644 index 00000000..18218aac --- /dev/null +++ b/work/images/functions/openinghours.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/personen.svg b/work/images/functions/personen.svg new file mode 100644 index 00000000..9c5523a0 --- /dev/null +++ b/work/images/functions/personen.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/reload.svg b/work/images/functions/reload.svg new file mode 100644 index 00000000..edcfd41a --- /dev/null +++ b/work/images/functions/reload.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/save.svg b/work/images/functions/save.svg new file mode 100644 index 00000000..8c0d6f36 --- /dev/null +++ b/work/images/functions/save.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/search.svg b/work/images/functions/search.svg new file mode 100644 index 00000000..963a1749 --- /dev/null +++ b/work/images/functions/search.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/stundenplan.svg b/work/images/functions/stundenplan.svg new file mode 100644 index 00000000..fffcabf0 --- /dev/null +++ b/work/images/functions/stundenplan.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/stundenplan_add.svg b/work/images/functions/stundenplan_add.svg new file mode 100644 index 00000000..a3c00599 --- /dev/null +++ b/work/images/functions/stundenplan_add.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/survey.svg b/work/images/functions/survey.svg new file mode 100644 index 00000000..a2d70400 --- /dev/null +++ b/work/images/functions/survey.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/termine.svg b/work/images/functions/termine.svg new file mode 100644 index 00000000..33b6b55a --- /dev/null +++ b/work/images/functions/termine.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/termine_add.svg b/work/images/functions/termine_add.svg new file mode 100644 index 00000000..69aa8b84 --- /dev/null +++ b/work/images/functions/termine_add.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/up.svg b/work/images/functions/up.svg new file mode 100644 index 00000000..fe378713 --- /dev/null +++ b/work/images/functions/up.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/vereine.svg b/work/images/functions/vereine.svg new file mode 100644 index 00000000..4b50684f --- /dev/null +++ b/work/images/functions/vereine.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/functions/vorlesungsverzeichnis.svg b/work/images/functions/vorlesungsverzeichnis.svg new file mode 100644 index 00000000..f292cc6f --- /dev/null +++ b/work/images/functions/vorlesungsverzeichnis.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/listicons/exams.svg b/work/images/listicons/exams.svg new file mode 100644 index 00000000..2fd7751e --- /dev/null +++ b/work/images/listicons/exams.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/listicons/info.svg b/work/images/listicons/info.svg new file mode 100644 index 00000000..2afde309 --- /dev/null +++ b/work/images/listicons/info.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/listicons/lab.svg b/work/images/listicons/lab.svg new file mode 100644 index 00000000..53706ac3 --- /dev/null +++ b/work/images/listicons/lab.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/listicons/lecture.svg b/work/images/listicons/lecture.svg new file mode 100644 index 00000000..3f4d981f --- /dev/null +++ b/work/images/listicons/lecture.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/listicons/practise.svg b/work/images/listicons/practise.svg new file mode 100644 index 00000000..e6f6db32 --- /dev/null +++ b/work/images/listicons/practise.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/listicons/seminar.svg b/work/images/listicons/seminar.svg new file mode 100644 index 00000000..63f03af2 --- /dev/null +++ b/work/images/listicons/seminar.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/_readme.txt b/work/images/optionbuttons/_readme.txt new file mode 100644 index 00000000..871d2028 --- /dev/null +++ b/work/images/optionbuttons/_readme.txt @@ -0,0 +1 @@ +Die Icons in diesem Ordner haben die Standartfarbe weiss. Die Dateien sind also nicht leer. Man muss zunächst den Hintergrund ändern, um die Icons sehen zu können. \ No newline at end of file diff --git a/work/images/optionbuttons/add.svg b/work/images/optionbuttons/add.svg new file mode 100644 index 00000000..5bd9cfa2 --- /dev/null +++ b/work/images/optionbuttons/add.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/add_contact.svg b/work/images/optionbuttons/add_contact.svg new file mode 100644 index 00000000..c67865d4 --- /dev/null +++ b/work/images/optionbuttons/add_contact.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/add_small.svg b/work/images/optionbuttons/add_small.svg new file mode 100644 index 00000000..e50e5421 --- /dev/null +++ b/work/images/optionbuttons/add_small.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/delete.svg b/work/images/optionbuttons/delete.svg new file mode 100644 index 00000000..2aeb6e04 --- /dev/null +++ b/work/images/optionbuttons/delete.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/edit.svg b/work/images/optionbuttons/edit.svg new file mode 100644 index 00000000..e6c41722 --- /dev/null +++ b/work/images/optionbuttons/edit.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/prefs.svg b/work/images/optionbuttons/prefs.svg new file mode 100644 index 00000000..23acbb94 --- /dev/null +++ b/work/images/optionbuttons/prefs.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/save.svg b/work/images/optionbuttons/save.svg new file mode 100644 index 00000000..99b0fa28 --- /dev/null +++ b/work/images/optionbuttons/save.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/optionbuttons/search.svg b/work/images/optionbuttons/search.svg new file mode 100644 index 00000000..38062bf1 --- /dev/null +++ b/work/images/optionbuttons/search.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/others/beach_chair.svg b/work/images/others/beach_chair.svg new file mode 100644 index 00000000..37abbb92 --- /dev/null +++ b/work/images/others/beach_chair.svg @@ -0,0 +1,56 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/scripts/IconCreator.py b/work/images/scripts/IconCreator.py new file mode 100644 index 00000000..474cdffa --- /dev/null +++ b/work/images/scripts/IconCreator.py @@ -0,0 +1,50 @@ +import cairo +import rsvg +import xml.etree.ElementTree as ET + +def convertSVGToPNG(src, dst, dstWidth, dstHeight, srcWidth, srcHeight, style,layerID): + ET.register_namespace("","http://www.w3.org/2000/svg") + + tree = ET.parse(src) + root = tree.getroot() + + for layer in root.findall('./{http://www.w3.org/2000/svg}g'): + name = layer.get('{http://www.inkscape.org/namespaces/inkscape}label') + if name in layerID : + for path in layer.findall('./{http://www.w3.org/2000/svg}path'): + path.set("style",style) + else : + root.remove(layer) + + img = cairo.ImageSurface(cairo.FORMAT_ARGB32, dstWidth, dstHeight) + ctx = cairo.Context(img) + + width_ratio = float(dstWidth) / float(srcWidth) + height_ratio = float(dstHeight) / float(srcHeight) + ctx.scale(width_ratio, height_ratio) + + handler= rsvg.Handle(None,str(ET.tostring(root, encoding='utf8', method='xml'))) + handler.render_cairo(ctx) + + img.write_to_png(dst) + +def convertSVGToPNG2(src, dst, dstWidth, dstHeight, srcWidth, srcHeight, style,layerID): + ET.register_namespace("","http://www.w3.org/2000/svg") + + tree = ET.parse(src) + root = tree.getroot() + + for path in root.findall('./{http://www.w3.org/2000/svg}path'): + path.set("style",style) + + img = cairo.ImageSurface(cairo.FORMAT_ARGB32, dstWidth, dstHeight) + ctx = cairo.Context(img) + + width_ratio = float(dstWidth) / float(srcWidth) + height_ratio = float(dstHeight) / float(srcHeight) + ctx.scale(width_ratio, height_ratio) + + handler= rsvg.Handle(None,str(ET.tostring(root, encoding='utf8', method='xml'))) + handler.render_cairo(ctx) + + img.write_to_png(dst) \ No newline at end of file diff --git a/work/images/scripts/IconCreator.pyc b/work/images/scripts/IconCreator.pyc new file mode 100644 index 00000000..4517557c Binary files /dev/null and b/work/images/scripts/IconCreator.pyc differ diff --git a/work/images/scripts/createspng.py b/work/images/scripts/createspng.py new file mode 100644 index 00000000..756f8668 --- /dev/null +++ b/work/images/scripts/createspng.py @@ -0,0 +1,44 @@ +import IconCreator +import os + +os.chdir("srcImages/functions") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/LightTheme/functions/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/DarkTheme/functions/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + +os.chdir("srcImages/emotions") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/LightTheme/emotions/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Emotion Speechbubble") + IconCreator.convertSVGToPNG(files, "../../dstImages/wp8/159x159/DarkTheme/emotions/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Emotion Speechbubble") +os.chdir("../../") + +os.chdir("srcImages/listicons") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/LightTheme/listicons/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/DarkTheme/listicons/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + +os.chdir("srcImages/optionbuttons") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/LightTheme/optionbuttons/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/DarkTheme/optionbuttons/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + +os.chdir("srcImages/others") +for files in os.listdir("."): + if files.endswith(".svg"): + fileName, fileExtension = os.path.splitext(files) + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/LightTheme/others/"+fileName+".png",159,159,256,256,"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none" , "Icon") + IconCreator.convertSVGToPNG2(files, "../../dstImages/wp8/159x159/DarkTheme/others/"+fileName+".png",159,159,256,256,"fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none", "Icon") +os.chdir("../../") + + diff --git a/work/images/template5.svg b/work/images/template5.svg new file mode 100644 index 00000000..c99e4137 --- /dev/null +++ b/work/images/template5.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/work/images/template5_emotion.svg b/work/images/template5_emotion.svg new file mode 100644 index 00000000..356fc640 --- /dev/null +++ b/work/images/template5_emotion.svg @@ -0,0 +1,73 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/work/images/template5_listicons.svg b/work/images/template5_listicons.svg new file mode 100644 index 00000000..1208ec64 --- /dev/null +++ b/work/images/template5_listicons.svg @@ -0,0 +1,54 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/work/images/template5_options.svg b/work/images/template5_options.svg new file mode 100644 index 00000000..dfb9c94f --- /dev/null +++ b/work/images/template5_options.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + +