global correction of namespaces

fonts_experiment
123159753 2017-11-23 15:49:48 +03:00
parent 34858ae622
commit 3eef84c9e2
45 changed files with 113 additions and 112 deletions

View File

@ -1,8 +1,8 @@
using WatchFace.Elements.ActivityElements;
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Elements.ActivityElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Activity
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.ActivityElements
namespace WatchFace.Parser.Elements.ActivityElements
{
public class FormattedNumber
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class AnalogDialFace
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Background
{

View File

@ -1,8 +1,8 @@
using Newtonsoft.Json;
using WatchFace.JsonConverters;
using WatchFace.Utils;
using WatchFace.Parser.JsonConverters;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.BasicElements
{
public class CircleScale
{

View File

@ -1,9 +1,9 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using WatchFace.JsonConverters;
using WatchFace.Utils;
using WatchFace.Parser.JsonConverters;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.BasicElements
{
public class ClockHand
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.BasicElements
{
public class Coordinates
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.BasicElements
{
public class Image
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.BasicElements
{
public class ImageSet
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.BasicElements
{
public class Number
{

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.BasicElements
{
public class Scale
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Battery
{

View File

@ -1,8 +1,8 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Elements.DateElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Elements.DateElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Date
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.DateElements
namespace WatchFace.Parser.Elements.DateElements
{
public class MonthAndDay
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.DateElements
namespace WatchFace.Parser.Elements.DateElements
{
public class OneLineMonthAndDay
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.DateElements
namespace WatchFace.Parser.Elements.DateElements
{
public class SeparateMonthAndDay
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Scales
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.StatusElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.StatusElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Status
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.StatusElements
namespace WatchFace.Parser.Elements.StatusElements
{
public class Flag
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.StatusElements
namespace WatchFace.Parser.Elements.StatusElements
{
public class Switch
{

View File

@ -1,8 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Elements.TimeElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.TimeElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Time
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.TimeElements
namespace WatchFace.Parser.Elements.TimeElements
{
public class AmPm
{

View File

@ -1,6 +1,7 @@
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.BasicElements
namespace WatchFace.Parser.Elements.TimeElements
{
public class TwoDigits
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.WeatherElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.WeatherElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements
namespace WatchFace.Parser.Elements
{
public class Weather
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.WeatherElements
namespace WatchFace.Parser.Elements.WeatherElements
{
public class AirPollution
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.WeatherElements
namespace WatchFace.Parser.Elements.WeatherElements
{
public class OneLineTemperature
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.WeatherElements
namespace WatchFace.Parser.Elements.WeatherElements
{
public class SeparateTemperature
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.WeatherElements
namespace WatchFace.Parser.Elements.WeatherElements
{
public class Temperature
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.WeatherElements
namespace WatchFace.Parser.Elements.WeatherElements
{
public class TemperatureNumber
{

View File

@ -1,6 +1,6 @@
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.WeatherElements
namespace WatchFace.Parser.Elements.WeatherElements
{
public class TodayTemperature
{

View File

@ -1,7 +1,7 @@
using WatchFace.Elements.BasicElements;
using WatchFace.Utils;
using WatchFace.Parser.Elements.BasicElements;
using WatchFace.Parser.Utils;
namespace WatchFace.Elements.WeatherElements
namespace WatchFace.Parser.Elements.WeatherElements
{
public class WeatherIcon
{

View File

@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace
namespace WatchFace.Parser
{
public class ImageReader
{

View File

@ -1,5 +1,5 @@
using System;
using WatchFace.Models;
using WatchFace.Parser.Models;
namespace WatchFace
{

View File

@ -1,7 +1,7 @@
using System;
using Newtonsoft.Json;
namespace WatchFace.JsonConverters
namespace WatchFace.Parser.JsonConverters
{
public class HexStringJsonConverter : JsonConverter
{

View File

@ -2,7 +2,7 @@
using System.IO;
using System.Text;
namespace WatchFace.Models
namespace WatchFace.Parser.Models
{
public class Header
{

View File

@ -5,7 +5,7 @@ using System.Text;
using NLog;
using NLog.Internal;
namespace WatchFace.Models
namespace WatchFace.Parser.Models
{
public class Parameter
{

View File

@ -1,6 +1,6 @@
using System;
namespace WatchFace.Models
namespace WatchFace.Parser.Models
{
[Flags]
public enum ParameterFlags

View File

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.IO;
using NLog;
using System.Drawing;
using WatchFace.Models;
using WatchFace.Parser.Models;
namespace WatchFace
namespace WatchFace.Parser
{
public class Reader
{

View File

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace WatchFace.Utils
namespace WatchFace.Parser.Utils
{
public class BitReader
{

View File

@ -1,7 +1,7 @@
using System;
using System.IO;
namespace WatchFace.Utils
namespace WatchFace.Parser.Utils
{
public class BitWriter
{

View File

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using NLog;
using WatchFace.Models;
using WatchFace.Parser.Models;
namespace WatchFace.Utils
namespace WatchFace.Parser.Utils
{
public class ParametersConverter
{

View File

@ -1,6 +1,6 @@
using System;
namespace WatchFace.Utils
namespace WatchFace.Parser.Utils
{
[AttributeUsage(AttributeTargets.Property)]
public class RawParameterAttribute : Attribute

View File

@ -1,7 +1,7 @@
using WatchFace.Elements;
using WatchFace.Utils;
using WatchFace.Parser.Elements;
using WatchFace.Parser.Utils;
namespace WatchFace
namespace WatchFace.Parser
{
public class WatchFace
{

View File

@ -1,8 +1,8 @@
using System.IO;
using NLog;
using WatchFace.Utils;
using WatchFace.Parser.Utils;
namespace WatchFace
namespace WatchFace.Parser
{
public class Writer
{

View File

@ -5,7 +5,8 @@ using Newtonsoft.Json;
using NLog;
using NLog.Config;
using NLog.Targets;
using WatchFace.Utils;
using WatchFace.Parser.Utils;
using WatchFace.Parser;
namespace WatchFace
{
@ -62,7 +63,7 @@ namespace WatchFace
ExportConfig(watchFace, Path.Combine(outputDirectory, $"{baseName}.json"));
}
private static void WriteWatchFace(string outputFileName, WatchFace watchFace)
private static void WriteWatchFace(string outputFileName, Parser.WatchFace watchFace)
{
Logger.Debug("Writing watch face to '{0}'", outputFileName);
try
@ -100,12 +101,12 @@ namespace WatchFace
}
}
private static WatchFace ParseResources(Reader reader)
private static Parser.WatchFace ParseResources(Reader reader)
{
Logger.Debug("Parsing parameters...");
try
{
return ParametersConverter.Parse<WatchFace>(reader.Resources);
return ParametersConverter.Parse<Parser.WatchFace>(reader.Resources);
}
catch (Exception e)
{
@ -141,7 +142,7 @@ namespace WatchFace
}
}
private static WatchFace ReadConfig(string jsonFileName)
private static Parser.WatchFace ReadConfig(string jsonFileName)
{
Logger.Debug("Reading config...");
try
@ -149,7 +150,7 @@ namespace WatchFace
using (var fileStream = File.OpenRead(jsonFileName))
using (var reader = new StreamReader(fileStream))
{
return JsonConvert.DeserializeObject<WatchFace>(reader.ReadToEnd());
return JsonConvert.DeserializeObject<Parser.WatchFace>(reader.ReadToEnd());
}
}
catch (Exception e)
@ -159,7 +160,7 @@ namespace WatchFace
}
}
private static void ExportConfig(WatchFace watchFace, string jsonFileName)
private static void ExportConfig(Parser.WatchFace watchFace, string jsonFileName)
{
Logger.Debug("Exporting config...");
try