1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-28 09:15:46 +02:00

Change namespace to TweetDck

This commit is contained in:
chylex 2016-04-15 13:23:40 +02:00
parent 7de79786c9
commit 2c3849bc43
31 changed files with 84 additions and 72 deletions

View File

@ -3,7 +3,7 @@
using System.IO; using System.IO;
using System.Threading; using System.Threading;
namespace TweetDick.Configuration{ namespace TweetDck.Configuration{
class LockManager{ class LockManager{
private readonly string file; private readonly string file;
private FileStream lockStream; private FileStream lockStream;

View File

@ -3,13 +3,14 @@
using System.IO; using System.IO;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary; using System.Runtime.Serialization.Formatters.Binary;
using System.Windows.Forms; using TweetDck.Core.Handling;
using TweetDick.Core.Handling;
namespace TweetDick.Configuration{ namespace TweetDck.Configuration{
[Serializable] [Serializable]
sealed class UserConfig{ sealed class UserConfig{
private static readonly IFormatter Formatter = new BinaryFormatter(); private static readonly IFormatter Formatter = new BinaryFormatter(){
Binder = new SerializationCompatibilityHandler()
};
// START OF CONFIGURATION // START OF CONFIGURATION
@ -102,5 +103,12 @@ public static UserConfig Load(string file){
private static string GetBackupFile(string file){ private static string GetBackupFile(string file){
return file+".bak"; return file+".bak";
} }
private class SerializationCompatibilityHandler : SerializationBinder{
public override Type BindToType(string assemblyName, string typeName){
typeName = typeName.Replace("TweetDick","TweetDck");
return Type.GetType(string.Format("{0}, {1}",typeName,assemblyName));
}
}
} }
} }

View File

@ -1,4 +1,4 @@
namespace TweetDick.Core.Controls { namespace TweetDck.Core.Controls {
partial class FlatProgressBar { partial class FlatProgressBar {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,7 +1,7 @@
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDick.Core.Controls{ namespace TweetDck.Core.Controls{
public partial class FlatProgressBar : ProgressBar{ public partial class FlatProgressBar : ProgressBar{
private SolidBrush brush; private SolidBrush brush;

View File

@ -1,4 +1,4 @@
namespace TweetDick.Core.Controls { namespace TweetDck.Core.Controls {
partial class RichTextLabel { partial class RichTextLabel {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDick.Core.Controls{ namespace TweetDck.Core.Controls{
public partial class RichTextLabel : RichTextBox{ public partial class RichTextLabel : RichTextBox{
/// <summary> /// <summary>
/// Wraps the body of a RTF formatted string with default tags and formatting. /// Wraps the body of a RTF formatted string with default tags and formatting.

View File

@ -1,4 +1,4 @@
namespace TweetDick.Core { namespace TweetDck.Core {
sealed partial class FormBrowser { sealed partial class FormBrowser {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -30,7 +30,7 @@ private void InitializeComponent() {
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Icon = TweetDick.Properties.Resources.icon; this.Icon = TweetDck.Properties.Resources.icon;
this.Location = new System.Drawing.Point(-32000, -32000); this.Location = new System.Drawing.Point(-32000, -32000);
this.Name = "FormBrowser"; this.Name = "FormBrowser";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;

View File

@ -1,15 +1,15 @@
using System.Windows.Forms; using System;
using CefSharp.WinForms;
using System;
using System.Linq;
using TweetDick.Configuration;
using CefSharp;
using TweetDick.Core.Handling;
using TweetDick.Core.Other;
using System.Drawing; using System.Drawing;
using TweetDick.Resources; using System.Linq;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
using TweetDck.Configuration;
using TweetDck.Core.Handling;
using TweetDck.Core.Other;
using TweetDck.Resources;
namespace TweetDick.Core{ namespace TweetDck.Core{
sealed partial class FormBrowser : Form{ sealed partial class FormBrowser : Form{
private static UserConfig Config{ private static UserConfig Config{
get{ get{

View File

@ -1,4 +1,6 @@
namespace TweetDick.Core { using TweetDck.Core.Controls;
namespace TweetDck.Core {
sealed partial class FormNotification { sealed partial class FormNotification {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -26,7 +28,7 @@ private void InitializeComponent() {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.panelBrowser = new System.Windows.Forms.Panel(); this.panelBrowser = new System.Windows.Forms.Panel();
this.timerProgress = new System.Windows.Forms.Timer(this.components); this.timerProgress = new System.Windows.Forms.Timer(this.components);
this.progressBarTimer = new TweetDick.Core.Controls.FlatProgressBar(); this.progressBarTimer = new FlatProgressBar();
this.SuspendLayout(); this.SuspendLayout();
// //
// panelBrowser // panelBrowser

View File

@ -1,14 +1,14 @@
using System.Windows.Forms; using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using CefSharp; using CefSharp;
using CefSharp.WinForms; using CefSharp.WinForms;
using System.Drawing; using TweetDck.Configuration;
using System; using TweetDck.Core.Handling;
using System.Collections.Generic; using TweetDck.Resources;
using TweetDick.Core.Handling;
using TweetDick.Configuration;
using TweetDick.Resources;
namespace TweetDick.Core{ namespace TweetDck.Core{
sealed partial class FormNotification : Form{ sealed partial class FormNotification : Form{
public Func<bool> CanMoveWindow = () => true; public Func<bool> CanMoveWindow = () => true;

View File

@ -1,6 +1,6 @@
using CefSharp; using CefSharp;
namespace TweetDick.Core.Handling{ namespace TweetDck.Core.Handling{
class ContextMenuHandler : IContextMenuHandler{ class ContextMenuHandler : IContextMenuHandler{
private const int MenuSettings = 26500; private const int MenuSettings = 26500;
private const int MenuAbout = 26501; private const int MenuAbout = 26501;

View File

@ -1,6 +1,6 @@
using System.Diagnostics; using System.Diagnostics;
namespace TweetDick.Core.Handling{ namespace TweetDck.Core.Handling{
class TweetDeckBridge{ class TweetDeckBridge{
private readonly FormBrowser form; private readonly FormBrowser form;

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Text; using System.Text;
namespace TweetDick.Core.Handling{ namespace TweetDck.Core.Handling{
sealed class TweetNotification{ sealed class TweetNotification{
private static string FontSizeClass { get; set; } private static string FontSizeClass { get; set; }
private static string HeadTag { get; set; } private static string HeadTag { get; set; }

View File

@ -1,4 +1,6 @@
namespace TweetDick.Core.Other { using TweetDck.Core.Controls;
namespace TweetDck.Core.Other {
sealed partial class FormAbout { sealed partial class FormAbout {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -23,7 +25,7 @@ protected override void Dispose(bool disposing) {
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() { private void InitializeComponent() {
this.labelAbout = new TweetDick.Core.Controls.RichTextLabel(); this.labelAbout = new RichTextLabel();
this.SuspendLayout(); this.SuspendLayout();
// //
// labelAbout // labelAbout

View File

@ -1,8 +1,8 @@
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDick.Core.Controls; using TweetDck.Core.Controls;
namespace TweetDick.Core.Other{ namespace TweetDck.Core.Other{
sealed partial class FormAbout : Form{ sealed partial class FormAbout : Form{
public FormAbout(){ public FormAbout(){
InitializeComponent(); InitializeComponent();

View File

@ -1,6 +1,6 @@
using TweetDick.Core.Controls; using TweetDck.Core.Controls;
namespace TweetDick.Core.Other { namespace TweetDck.Core.Other {
partial class FormBackgroundWork { partial class FormBackgroundWork {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,8 +1,8 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDick.Core.Controls; using TweetDck.Core.Controls;
namespace TweetDick.Core.Other{ namespace TweetDck.Core.Other{
partial class FormBackgroundWork : Form{ partial class FormBackgroundWork : Form{
public FormBackgroundWork(){ public FormBackgroundWork(){
InitializeComponent(); InitializeComponent();

View File

@ -1,4 +1,4 @@
namespace TweetDick.Core.Other { namespace TweetDck.Core.Other {
sealed partial class FormSettings { sealed partial class FormSettings {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -272,7 +272,7 @@ private void InitializeComponent() {
this.ClientSize = new System.Drawing.Size(384, 282); this.ClientSize = new System.Drawing.Size(384, 282);
this.Controls.Add(this.tableLayout); this.Controls.Add(this.tableLayout);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = TweetDick.Properties.Resources.icon; this.Icon = TweetDck.Properties.Resources.icon;
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "FormSettings"; this.Name = "FormSettings";

View File

@ -1,9 +1,9 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDick.Configuration; using TweetDck.Configuration;
using TweetDick.Core.Handling; using TweetDck.Core.Handling;
namespace TweetDick.Core.Other{ namespace TweetDck.Core.Other{
sealed partial class FormSettings : Form{ sealed partial class FormSettings : Form{
private static UserConfig Config{ private static UserConfig Config{
get{ get{

View File

@ -1,6 +1,6 @@
using TweetDick.Core.Controls; using TweetDck.Core.Controls;
namespace TweetDick.Migration { namespace TweetDck.Migration {
partial class FormMigrationQuestion { partial class FormMigrationQuestion {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,9 +1,9 @@
using System; using System;
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDick.Core.Controls; using TweetDck.Core.Controls;
namespace TweetDick.Migration{ namespace TweetDck.Migration{
partial class FormMigrationQuestion : Form{ partial class FormMigrationQuestion : Form{
public MigrationDecision Decision { get; private set; } public MigrationDecision Decision { get; private set; }

View File

@ -1,8 +1,8 @@
using System; using System;
using Shell32;
using System.IO; using System.IO;
using Shell32;
namespace TweetDick.Migration.Helpers{ namespace TweetDck.Migration.Helpers{
sealed class LnkEditor{ sealed class LnkEditor{
private readonly ShellLinkObject obj; private readonly ShellLinkObject obj;

View File

@ -2,7 +2,7 @@
using System.Diagnostics; using System.Diagnostics;
using System.Linq; using System.Linq;
namespace TweetDick.Migration.Helpers{ namespace TweetDck.Migration.Helpers{
static class ProgramProcessSearch{ static class ProgramProcessSearch{
public static Process FindProcessWithWindowByName(string name){ public static Process FindProcessWithWindowByName(string name){
try{ try{

View File

@ -2,7 +2,7 @@
using System.Linq; using System.Linq;
using Microsoft.Win32; using Microsoft.Win32;
namespace TweetDick.Migration.Helpers{ namespace TweetDck.Migration.Helpers{
static class ProgramRegistrySearch{ static class ProgramRegistrySearch{
public static string FindByDisplayName(string displayName){ public static string FindByDisplayName(string displayName){
Predicate<RegistryKey> predicate = key => displayName.Equals(key.GetValue("DisplayName") as string,StringComparison.OrdinalIgnoreCase); Predicate<RegistryKey> predicate = key => displayName.Equals(key.GetValue("DisplayName") as string,StringComparison.OrdinalIgnoreCase);

View File

@ -1,4 +1,4 @@
namespace TweetDick.Migration{ namespace TweetDck.Migration{
enum MigrationDecision{ enum MigrationDecision{
/// <summary> /// <summary>
/// Copies the important files and then deletes the TweetDeck folder. /// Copies the important files and then deletes the TweetDeck folder.

View File

@ -1,15 +1,15 @@
using Microsoft.Win32; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDick.Core.Other; using Microsoft.Win32;
using TweetDick.Migration.Helpers; using TweetDck.Core.Other;
using TweetDck.Migration.Helpers;
namespace TweetDick.Migration{ namespace TweetDck.Migration{
static class MigrationManager{ static class MigrationManager{
private static readonly string TweetDeckPathParent = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),"twitter"); private static readonly string TweetDeckPathParent = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),"twitter");
private static readonly string TweetDeckPath = Path.Combine(TweetDeckPathParent,"TweetDeck"); private static readonly string TweetDeckPath = Path.Combine(TweetDeckPathParent,"TweetDeck");

View File

@ -1,17 +1,17 @@
using CefSharp; using System;
using System;
using System.Diagnostics; using System.Diagnostics;
using System.Globalization; using System.Globalization;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDick.Configuration; using CefSharp;
using TweetDick.Core; using TweetDck.Configuration;
using TweetDick.Migration; using TweetDck.Core;
using TweetDck.Migration;
[assembly: CLSCompliant(true)] [assembly: CLSCompliant(true)]
namespace TweetDick{ namespace TweetDck{
static class Program{ static class Program{
#if DUCK #if DUCK
public const string BrandName = "TweetDuck"; public const string BrandName = "TweetDuck";

View File

@ -1,7 +1,7 @@
using System.Reflection; using System.Reflection;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using TweetDick;
using System.Resources; using System.Resources;
using TweetDck;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information

View File

@ -8,7 +8,7 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace TweetDick.Properties { namespace TweetDck.Properties {
using System; using System;
@ -39,7 +39,7 @@ internal Resources() {
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TweetDick.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TweetDck.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;

View File

@ -3,7 +3,7 @@
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDick.Resources{ namespace TweetDck.Resources{
static class ScriptLoader{ static class ScriptLoader{
public static string LoadResource(string name){ public static string LoadResource(string name){
try{ try{

View File

@ -9,7 +9,7 @@
<ProjectGuid>{2389A7CD-E0D3-4706-8294-092929A33A2D}</ProjectGuid> <ProjectGuid>{2389A7CD-E0D3-4706-8294-092929A33A2D}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TweetDick</RootNamespace> <RootNamespace>TweetDck</RootNamespace>
<AssemblyName Condition=" '$(Configuration)' == 'Debug' ">TweetDick</AssemblyName> <AssemblyName Condition=" '$(Configuration)' == 'Debug' ">TweetDick</AssemblyName>
<AssemblyName Condition=" '$(Configuration)' == 'Release Dick' ">TweetDick</AssemblyName> <AssemblyName Condition=" '$(Configuration)' == 'Release Dick' ">TweetDick</AssemblyName>
<AssemblyName Condition=" '$(Configuration)' == 'Release Duck' ">TweetDuck</AssemblyName> <AssemblyName Condition=" '$(Configuration)' == 'Release Duck' ">TweetDuck</AssemblyName>