1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-02 11:34:08 +02:00

Rename root namespace to TweetDuck

This commit is contained in:
chylex 2017-05-17 13:00:17 +02:00
parent 419b3ee850
commit 4d05441aa8
112 changed files with 263 additions and 256 deletions
Configuration
Core
Bridge
Controls
FormBrowser.Designer.csFormBrowser.cs
Handling
Notification
Other
TrayIcon.Designer.csTrayIcon.cs
Utils
Plugins
Program.cs
Properties
Reporter.cs
Resources
TweetDuck.csprojTweetDuck.slnTweetDuck.sln.DotSettings
Updates/Events

View File

@ -1,7 +1,7 @@
using System; using System;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Configuration{ namespace TweetDuck.Configuration{
static class Arguments{ static class Arguments{
// public args // public args
public const string ArgDataFolder = "-datafolder"; public const string ArgDataFolder = "-datafolder";

View File

@ -2,9 +2,9 @@
using System.ComponentModel; using System.ComponentModel;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Configuration{ namespace TweetDuck.Configuration{
sealed class LockManager{ sealed class LockManager{
public enum Result{ public enum Result{
Success, HasProcess, Fail Success, HasProcess, Fail

View File

@ -3,16 +3,22 @@
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 TweetDck.Core; using TweetDuck.Core;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Notification; using TweetDuck.Core.Notification;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using TweetDck.Plugins; using TweetDuck.Plugins;
namespace TweetDck.Configuration{ namespace TweetDuck.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 LegacyBinder() };
private class LegacyBinder : SerializationBinder{
public override Type BindToType(string assemblyName, string typeName){
return Type.GetType(string.Format("{0}, {1}", typeName.Replace("TweetDck", "TweetDuck"), assemblyName.Replace("TweetDck", "TweetDuck")));
}
}
private const int CurrentFileVersion = 9; private const int CurrentFileVersion = 9;

View File

@ -1,8 +1,8 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
namespace TweetDck.Core.Bridge{ namespace TweetDuck.Core.Bridge{
sealed class CallbackBridge{ sealed class CallbackBridge{
private readonly Control owner; private readonly Control owner;
private readonly Action safeCallback; private readonly Action safeCallback;

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Text; using System.Text;
namespace TweetDck.Core.Bridge{ namespace TweetDuck.Core.Bridge{
static class PropertyBridge{ static class PropertyBridge{
[Flags] [Flags]
public enum Properties{ public enum Properties{

View File

@ -1,9 +1,9 @@
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Notification; using TweetDuck.Core.Notification;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Bridge{ namespace TweetDuck.Core.Bridge{
sealed class TweetDeckBridge{ sealed class TweetDeckBridge{
public static string LastRightClickedLink = string.Empty; public static string LastRightClickedLink = string.Empty;
public static string LastHighlightedTweet = string.Empty; public static string LastHighlightedTweet = string.Empty;

View File

@ -2,9 +2,9 @@
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Controls{ namespace TweetDuck.Core.Controls{
static class ControlExtensions{ static class ControlExtensions{
public static readonly Point InvisibleLocation = new Point(-32000, -32000); public static readonly Point InvisibleLocation = new Point(-32000, -32000);

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core.Controls{ namespace TweetDuck.Core.Controls{
class FlatButton : Button{ class FlatButton : Button{
protected override bool ShowFocusCues => false; protected override bool ShowFocusCues => false;

View File

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

View File

@ -2,7 +2,7 @@
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core.Controls{ namespace TweetDuck.Core.Controls{
sealed class TabButton : FlatButton{ sealed class TabButton : FlatButton{
public Action Callback { get; private set; } public Action Callback { get; private set; }

View File

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

View File

@ -4,7 +4,7 @@
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core.Controls{ namespace TweetDuck.Core.Controls{
sealed partial class TabPanel : UserControl{ sealed partial class TabPanel : UserControl{
public Panel Content => panelContent; public Panel Content => panelContent;
public IEnumerable<TabButton> Buttons => panelButtons.Controls.Cast<TabButton>(); public IEnumerable<TabButton> Buttons => panelButtons.Controls.Cast<TabButton>();

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core { namespace TweetDuck.Core {
sealed partial class FormBrowser { sealed partial class FormBrowser {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -24,7 +24,7 @@ protected override void Dispose(bool disposing) {
/// </summary> /// </summary>
private void InitializeComponent() { private void InitializeComponent() {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.trayIcon = new TweetDck.Core.TrayIcon(this.components); this.trayIcon = new TweetDuck.Core.TrayIcon(this.components);
this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.SuspendLayout(); this.SuspendLayout();
// //
@ -32,10 +32,10 @@ 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.BackColor = TweetDck.Core.Utils.BrowserUtils.BackgroundColor; this.BackColor = TweetDuck.Core.Utils.BrowserUtils.BackgroundColor;
this.ClientSize = new System.Drawing.Size(324, 386); this.ClientSize = new System.Drawing.Size(324, 386);
this.Icon = Properties.Resources.icon; this.Icon = Properties.Resources.icon;
this.Location = TweetDck.Core.Controls.ControlExtensions.InvisibleLocation; this.Location = TweetDuck.Core.Controls.ControlExtensions.InvisibleLocation;
this.MinimumSize = new System.Drawing.Size(340, 424); this.MinimumSize = new System.Drawing.Size(340, 424);
this.Name = "FormBrowser"; this.Name = "FormBrowser";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;

View File

@ -5,23 +5,23 @@
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Configuration; using TweetDuck.Configuration;
using TweetDck.Core.Bridge; using TweetDuck.Core.Bridge;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Handling; using TweetDuck.Core.Handling;
using TweetDck.Core.Notification; using TweetDuck.Core.Notification;
using TweetDck.Core.Notification.Screenshot; using TweetDuck.Core.Notification.Screenshot;
using TweetDck.Core.Notification.Sound; using TweetDuck.Core.Notification.Sound;
using TweetDck.Core.Other; using TweetDuck.Core.Other;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using TweetDck.Plugins; using TweetDuck.Plugins;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
using TweetDck.Plugins.Events; using TweetDuck.Plugins.Events;
using TweetDck.Resources; using TweetDuck.Resources;
using TweetDck.Updates; using TweetDuck.Updates;
using TweetDck.Updates.Events; using TweetDuck.Updates.Events;
namespace TweetDck.Core{ namespace TweetDuck.Core{
sealed partial class FormBrowser : Form{ sealed partial class FormBrowser : Form{
private static UserConfig Config => Program.UserConfig; private static UserConfig Config => Program.UserConfig;

View File

@ -1,7 +1,7 @@
using CefSharp; using CefSharp;
using System; using System;
namespace TweetDck.Core.Handling{ namespace TweetDuck.Core.Handling{
class BrowserProcessHandler : IBrowserProcessHandler{ class BrowserProcessHandler : IBrowserProcessHandler{
void IBrowserProcessHandler.OnContextInitialized(){ void IBrowserProcessHandler.OnContextInitialized(){
using(IRequestContext ctx = Cef.GetGlobalRequestContext()){ using(IRequestContext ctx = Cef.GetGlobalRequestContext()){

View File

@ -3,11 +3,11 @@
using System.IO; using System.IO;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Bridge; using TweetDuck.Core.Bridge;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Handling{ namespace TweetDuck.Core.Handling{
abstract class ContextMenuBase : IContextMenuHandler{ abstract class ContextMenuBase : IContextMenuHandler{
private static readonly Regex RegexTwitterAccount = new Regex(@"^https?://twitter\.com/([^/]+)/?$", RegexOptions.Compiled); private static readonly Regex RegexTwitterAccount = new Regex(@"^https?://twitter\.com/([^/]+)/?$", RegexOptions.Compiled);

View File

@ -1,10 +1,10 @@
using CefSharp; using CefSharp;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Bridge; using TweetDuck.Core.Bridge;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Handling{ namespace TweetDuck.Core.Handling{
class ContextMenuBrowser : ContextMenuBase{ class ContextMenuBrowser : ContextMenuBase{
private const int MenuGlobal = 26600; private const int MenuGlobal = 26600;
private const int MenuMute = 26601; private const int MenuMute = 26601;

View File

@ -1,8 +1,8 @@
using CefSharp; using CefSharp;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Notification; using TweetDuck.Core.Notification;
namespace TweetDck.Core.Handling{ namespace TweetDuck.Core.Handling{
class ContextMenuNotification : ContextMenuBase{ class ContextMenuNotification : ContextMenuBase{
private const int MenuSkipTweet = 26600; private const int MenuSkipTweet = 26600;
private const int MenuFreeze = 26601; private const int MenuFreeze = 26601;

View File

@ -2,10 +2,10 @@
using CefSharp.WinForms; using CefSharp.WinForms;
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Other; using TweetDuck.Core.Other;
namespace TweetDck.Core.Handling { namespace TweetDuck.Core.Handling {
class JavaScriptDialogHandler : IJsDialogHandler{ class JavaScriptDialogHandler : IJsDialogHandler{
bool IJsDialogHandler.OnJSDialog(IWebBrowser browserControl, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage){ bool IJsDialogHandler.OnJSDialog(IWebBrowser browserControl, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage){
((ChromiumWebBrowser)browserControl).InvokeSafe(() => { ((ChromiumWebBrowser)browserControl).InvokeSafe(() => {

View File

@ -1,7 +1,7 @@
using CefSharp; using CefSharp;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Handling{ namespace TweetDuck.Core.Handling{
class LifeSpanHandler : ILifeSpanHandler{ class LifeSpanHandler : ILifeSpanHandler{
public bool OnBeforePopup(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser){ public bool OnBeforePopup(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser){
newBrowser = null; newBrowser = null;

View File

@ -3,7 +3,7 @@
using System.IO; using System.IO;
using System.Text; using System.Text;
namespace TweetDck.Core.Handling{ namespace TweetDuck.Core.Handling{
class ResourceHandlerNotification : IResourceHandler{ class ResourceHandlerNotification : IResourceHandler{
private readonly NameValueCollection headers = new NameValueCollection(0); private readonly NameValueCollection headers = new NameValueCollection(0);
private MemoryStream dataIn; private MemoryStream dataIn;

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Notification { namespace TweetDuck.Core.Notification {
partial class FormNotificationBase { partial class FormNotificationBase {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -34,7 +34,7 @@ private void InitializeComponent() {
this.BackColor = System.Drawing.SystemColors.Control; this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(284, 122); this.ClientSize = new System.Drawing.Size(284, 122);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Location = TweetDck.Core.Controls.ControlExtensions.InvisibleLocation; this.Location = TweetDuck.Core.Controls.ControlExtensions.InvisibleLocation;
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "FormNotification"; this.Name = "FormNotification";

View File

@ -3,12 +3,12 @@
using System; using System;
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Configuration; using TweetDuck.Configuration;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Handling; using TweetDuck.Core.Handling;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Notification{ namespace TweetDuck.Core.Notification{
partial class FormNotificationBase : Form{ partial class FormNotificationBase : Form{
protected Point PrimaryLocation{ protected Point PrimaryLocation{
get{ get{

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Notification { namespace TweetDuck.Core.Notification {
partial class FormNotificationMain { partial class FormNotificationMain {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -26,7 +26,7 @@ private void InitializeComponent() {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.timerDisplayDelay = new System.Windows.Forms.Timer(this.components); this.timerDisplayDelay = new System.Windows.Forms.Timer(this.components);
this.timerProgress = new System.Windows.Forms.Timer(this.components); this.timerProgress = new System.Windows.Forms.Timer(this.components);
this.progressBarTimer = new TweetDck.Core.Controls.FlatProgressBar(); this.progressBarTimer = new TweetDuck.Core.Controls.FlatProgressBar();
this.SuspendLayout(); this.SuspendLayout();
// //
// timerDisplayDelay // timerDisplayDelay

View File

@ -2,14 +2,14 @@
using System; using System;
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Bridge; using TweetDuck.Core.Bridge;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using TweetDck.Plugins; using TweetDuck.Plugins;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
using TweetDck.Resources; using TweetDuck.Resources;
namespace TweetDck.Core.Notification{ namespace TweetDuck.Core.Notification{
partial class FormNotificationMain : FormNotificationBase{ partial class FormNotificationMain : FormNotificationBase{
private const string NotificationScriptFile = "notification.js"; private const string NotificationScriptFile = "notification.js";

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Notification { namespace TweetDuck.Core.Notification {
partial class FormNotificationTweet { partial class FormNotificationTweet {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,11 +1,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using TweetDck.Plugins; using TweetDuck.Plugins;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Notification{ namespace TweetDuck.Core.Notification{
sealed partial class FormNotificationTweet : FormNotificationMain{ sealed partial class FormNotificationTweet : FormNotificationMain{
private const int NonIntrusiveIdleLimit = 30; private const int NonIntrusiveIdleLimit = 30;
private const int TrimMinimum = 32; private const int TrimMinimum = 32;

View File

@ -2,11 +2,11 @@
using System.Drawing; using System.Drawing;
using System.Drawing.Imaging; using System.Drawing.Imaging;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Bridge; using TweetDuck.Core.Bridge;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using TweetDck.Resources; using TweetDuck.Resources;
namespace TweetDck.Core.Notification.Screenshot{ namespace TweetDuck.Core.Notification.Screenshot{
sealed class FormNotificationScreenshotable : FormNotificationBase{ sealed class FormNotificationScreenshotable : FormNotificationBase{
public FormNotificationScreenshotable(Action callback, Form owner) : base(owner, false){ public FormNotificationScreenshotable(Action callback, Form owner) : base(owner, false){
browser.RegisterAsyncJsObject("$TD_NotificationScreenshot", new CallbackBridge(this, callback)); browser.RegisterAsyncJsObject("$TD_NotificationScreenshot", new CallbackBridge(this, callback));

View File

@ -3,9 +3,9 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
namespace TweetDck.Core.Notification.Screenshot{ namespace TweetDuck.Core.Notification.Screenshot{
sealed class TweetScreenshotManager : IDisposable{ sealed class TweetScreenshotManager : IDisposable{
private readonly Form owner; private readonly Form owner;
private readonly Timer timeout; private readonly Timer timeout;

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Core.Notification.Sound{ namespace TweetDuck.Core.Notification.Sound{
interface ISoundNotificationPlayer : IDisposable{ interface ISoundNotificationPlayer : IDisposable{
string SupportedFormats { get; } string SupportedFormats { get; }

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Core.Notification.Sound{ namespace TweetDuck.Core.Notification.Sound{
sealed class PlaybackErrorEventArgs : EventArgs{ sealed class PlaybackErrorEventArgs : EventArgs{
public string Message { get; } public string Message { get; }
public bool Ignore { get; set; } public bool Ignore { get; set; }

View File

@ -2,7 +2,7 @@
using System.IO; using System.IO;
using System.Media; using System.Media;
namespace TweetDck.Core.Notification.Sound{ namespace TweetDuck.Core.Notification.Sound{
sealed class SoundPlayerImplFallback : ISoundNotificationPlayer{ sealed class SoundPlayerImplFallback : ISoundNotificationPlayer{
string ISoundNotificationPlayer.SupportedFormats => "*.wav"; string ISoundNotificationPlayer.SupportedFormats => "*.wav";

View File

@ -1,9 +1,9 @@
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using WMPLib; using WMPLib;
namespace TweetDck.Core.Notification.Sound{ namespace TweetDuck.Core.Notification.Sound{
sealed class SoundPlayerImplWMP : ISoundNotificationPlayer{ sealed class SoundPlayerImplWMP : ISoundNotificationPlayer{
string ISoundNotificationPlayer.SupportedFormats => "*.wav;*.mp3;*.mp2;*.m4a;*.mid;*.midi;*.rmi;*.wma;*.aif;*.aifc;*.aiff;*.snd;*.au"; string ISoundNotificationPlayer.SupportedFormats => "*.wav;*.mp3;*.mp2;*.m4a;*.mid;*.midi;*.rmi;*.wma;*.aif;*.aifc;*.aiff;*.snd;*.au";

View File

@ -1,7 +1,7 @@
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using TweetDck.Core.Notification.Sound; using TweetDuck.Core.Notification.Sound;
namespace TweetDck.Core.Notification{ namespace TweetDuck.Core.Notification{
static class SoundNotification{ static class SoundNotification{
private static bool? IsWMPAvailable; private static bool? IsWMPAvailable;

View File

@ -1,8 +1,8 @@
using System; using System;
using System.Text; using System.Text;
using TweetDck.Resources; using TweetDuck.Resources;
namespace TweetDck.Core.Notification{ namespace TweetDuck.Core.Notification{
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,4 @@
namespace TweetDck.Core.Other { namespace TweetDuck.Core.Other {
sealed partial class FormAbout { sealed partial class FormAbout {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,7 +1,7 @@
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Other{ namespace TweetDuck.Core.Other{
sealed partial class FormAbout : Form{ sealed partial class FormAbout : Form{
private const string TipsLink = "https://github.com/chylex/TweetDuck/wiki"; private const string TipsLink = "https://github.com/chylex/TweetDuck/wiki";
private const string IssuesLink = "https://github.com/chylex/TweetDuck/issues"; private const string IssuesLink = "https://github.com/chylex/TweetDuck/issues";

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other { namespace TweetDuck.Core.Other {
partial class FormMessage { partial class FormMessage {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -2,7 +2,7 @@
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core.Other{ namespace TweetDuck.Core.Other{
sealed partial class FormMessage : Form{ sealed partial class FormMessage : Form{
public Button ClickedButton { get; private set; } public Button ClickedButton { get; private set; }

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other { namespace TweetDuck.Core.Other {
partial class FormPlugins { partial class FormPlugins {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -26,7 +26,7 @@ private void InitializeComponent() {
this.btnClose = new System.Windows.Forms.Button(); this.btnClose = new System.Windows.Forms.Button();
this.btnReload = new System.Windows.Forms.Button(); this.btnReload = new System.Windows.Forms.Button();
this.btnOpenFolder = new System.Windows.Forms.Button(); this.btnOpenFolder = new System.Windows.Forms.Button();
this.tabPanelPlugins = new TweetDck.Core.Controls.TabPanel(); this.tabPanelPlugins = new TweetDuck.Core.Controls.TabPanel();
this.SuspendLayout(); this.SuspendLayout();
// //
// btnClose // btnClose
@ -87,7 +87,7 @@ private void InitializeComponent() {
this.Controls.Add(this.btnOpenFolder); this.Controls.Add(this.btnOpenFolder);
this.Controls.Add(this.btnReload); this.Controls.Add(this.btnReload);
this.Controls.Add(this.btnClose); this.Controls.Add(this.btnClose);
this.Icon = global::TweetDck.Properties.Resources.icon; this.Icon = global::TweetDuck.Properties.Resources.icon;
this.MinimumSize = new System.Drawing.Size(480, 320); this.MinimumSize = new System.Drawing.Size(480, 320);
this.Name = "FormPlugins"; this.Name = "FormPlugins";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
@ -101,6 +101,6 @@ private void InitializeComponent() {
private System.Windows.Forms.Button btnClose; private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnReload; private System.Windows.Forms.Button btnReload;
private System.Windows.Forms.Button btnOpenFolder; private System.Windows.Forms.Button btnOpenFolder;
private TweetDck.Core.Controls.TabPanel tabPanelPlugins; private TweetDuck.Core.Controls.TabPanel tabPanelPlugins;
} }
} }

View File

@ -3,13 +3,13 @@
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Plugins; using TweetDuck.Plugins;
using TweetDck.Plugins.Controls; using TweetDuck.Plugins.Controls;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
using TweetDck.Plugins.Events; using TweetDuck.Plugins.Events;
namespace TweetDck.Core.Other{ namespace TweetDuck.Core.Other{
sealed partial class FormPlugins : Form{ sealed partial class FormPlugins : Form{
private readonly PluginManager pluginManager; private readonly PluginManager pluginManager;
private readonly TabButton tabBtnOfficial, tabBtnCustom; private readonly TabButton tabBtnOfficial, tabBtnCustom;

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other { namespace TweetDuck.Core.Other {
sealed partial class FormSettings { sealed partial class FormSettings {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -25,7 +25,7 @@ protected override void Dispose(bool disposing) {
private void InitializeComponent() { private void InitializeComponent() {
this.btnClose = new System.Windows.Forms.Button(); this.btnClose = new System.Windows.Forms.Button();
this.labelTip = new System.Windows.Forms.Label(); this.labelTip = new System.Windows.Forms.Label();
this.tabPanel = new TweetDck.Core.Controls.TabPanel(); this.tabPanel = new TweetDuck.Core.Controls.TabPanel();
this.SuspendLayout(); this.SuspendLayout();
// //
// btnClose // btnClose
@ -70,7 +70,7 @@ private void InitializeComponent() {
this.Controls.Add(this.btnClose); this.Controls.Add(this.btnClose);
this.Controls.Add(this.tabPanel); this.Controls.Add(this.tabPanel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = global::TweetDck.Properties.Resources.icon; this.Icon = global::TweetDuck.Properties.Resources.icon;
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "FormSettings"; this.Name = "FormSettings";

View File

@ -2,11 +2,11 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Other.Settings; using TweetDuck.Core.Other.Settings;
using TweetDck.Plugins; using TweetDuck.Plugins;
using TweetDck.Updates; using TweetDuck.Updates;
namespace TweetDck.Core.Other{ namespace TweetDuck.Core.Other{
sealed partial class FormSettings : Form{ sealed partial class FormSettings : Form{
public const int TabIndexNotification = 1; public const int TabIndexNotification = 1;

View File

@ -1,7 +1,7 @@
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Configuration; using TweetDuck.Configuration;
namespace TweetDck.Core.Other.Settings{ namespace TweetDuck.Core.Other.Settings{
class BaseTabSettings : UserControl{ class BaseTabSettings : UserControl{
protected static UserConfig Config => Program.UserConfig; protected static UserConfig Config => Program.UserConfig;

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings.Dialogs { namespace TweetDuck.Core.Other.Settings.Dialogs {
partial class DialogSettingsCSS { partial class DialogSettingsCSS {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,9 +1,9 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Other.Settings.Dialogs{ namespace TweetDuck.Core.Other.Settings.Dialogs{
sealed partial class DialogSettingsCSS : Form{ sealed partial class DialogSettingsCSS : Form{
public string BrowserCSS => textBoxBrowserCSS.Text; public string BrowserCSS => textBoxBrowserCSS.Text;
public string NotificationCSS => textBoxNotificationCSS.Text; public string NotificationCSS => textBoxNotificationCSS.Text;

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings.Dialogs { namespace TweetDuck.Core.Other.Settings.Dialogs {
partial class DialogSettingsCefArgs { partial class DialogSettingsCefArgs {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,9 +1,9 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Other.Settings.Dialogs{ namespace TweetDuck.Core.Other.Settings.Dialogs{
sealed partial class DialogSettingsCefArgs : Form{ sealed partial class DialogSettingsCefArgs : Form{
public string CefArgs => textBoxArgs.Text; public string CefArgs => textBoxArgs.Text;

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings.Dialogs { namespace TweetDuck.Core.Other.Settings.Dialogs {
partial class DialogSettingsExport { partial class DialogSettingsExport {
/// <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 TweetDck.Core.Other.Settings.Export; using TweetDuck.Core.Other.Settings.Export;
namespace TweetDck.Core.Other.Settings.Dialogs{ namespace TweetDuck.Core.Other.Settings.Dialogs{
sealed partial class DialogSettingsExport : Form{ sealed partial class DialogSettingsExport : Form{
public static DialogSettingsExport Import(ExportFileFlags flags){ public static DialogSettingsExport Import(ExportFileFlags flags){
return new DialogSettingsExport(flags); return new DialogSettingsExport(flags);

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings.Dialogs { namespace TweetDuck.Core.Other.Settings.Dialogs {
partial class DialogSettingsRestart { partial class DialogSettingsRestart {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -2,10 +2,10 @@
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Configuration; using TweetDuck.Configuration;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Core.Other.Settings.Dialogs{ namespace TweetDuck.Core.Other.Settings.Dialogs{
sealed partial class DialogSettingsRestart : Form{ sealed partial class DialogSettingsRestart : Form{
private const string DefaultLocale = "en-US"; private const string DefaultLocale = "en-US";

View File

@ -2,7 +2,7 @@
using System.IO; using System.IO;
using System.Text; using System.Text;
namespace TweetDck.Core.Other.Settings.Export{ namespace TweetDuck.Core.Other.Settings.Export{
class CombinedFileStream : IDisposable{ class CombinedFileStream : IDisposable{
public const char KeySeparator = '|'; public const char KeySeparator = '|';

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Core.Other.Settings.Export{ namespace TweetDuck.Core.Other.Settings.Export{
[Flags] [Flags]
enum ExportFileFlags{ enum ExportFileFlags{
None = 0, None = 0,

View File

@ -3,11 +3,11 @@
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Configuration; using TweetDuck.Configuration;
using TweetDck.Plugins; using TweetDuck.Plugins;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
namespace TweetDck.Core.Other.Settings.Export{ namespace TweetDuck.Core.Other.Settings.Export{
sealed class ExportManager{ sealed class ExportManager{
private static readonly string CookiesPath = Path.Combine(Program.StoragePath, "Cookies"); private static readonly string CookiesPath = Path.Combine(Program.StoragePath, "Cookies");
private static readonly string TempCookiesPath = Path.Combine(Program.StoragePath, "CookiesTmp"); private static readonly string TempCookiesPath = Path.Combine(Program.StoragePath, "CookiesTmp");

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings { namespace TweetDuck.Core.Other.Settings {
partial class TabSettingsAdvanced { partial class TabSettingsAdvanced {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,14 +1,14 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Configuration; using TweetDuck.Configuration;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Other.Settings.Dialogs; using TweetDuck.Core.Other.Settings.Dialogs;
using TweetDck.Core.Other.Settings.Export; using TweetDuck.Core.Other.Settings.Export;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using TweetDck.Plugins; using TweetDuck.Plugins;
namespace TweetDck.Core.Other.Settings{ namespace TweetDuck.Core.Other.Settings{
partial class TabSettingsAdvanced : BaseTabSettings{ partial class TabSettingsAdvanced : BaseTabSettings{
private readonly Action<string> reinjectBrowserCSS; private readonly Action<string> reinjectBrowserCSS;
private readonly PluginManager plugins; private readonly PluginManager plugins;

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings { namespace TweetDuck.Core.Other.Settings {
partial class TabSettingsGeneral { partial class TabSettingsGeneral {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -1,10 +1,10 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Updates; using TweetDuck.Updates;
using TweetDck.Updates.Events; using TweetDuck.Updates.Events;
namespace TweetDck.Core.Other.Settings{ namespace TweetDuck.Core.Other.Settings{
partial class TabSettingsGeneral : BaseTabSettings{ partial class TabSettingsGeneral : BaseTabSettings{
private readonly UpdateHandler updates; private readonly UpdateHandler updates;
private int updateCheckEventId = -1; private int updateCheckEventId = -1;

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings { namespace TweetDuck.Core.Other.Settings {
partial class TabSettingsNotifications { partial class TabSettingsNotifications {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -37,9 +37,9 @@ private void InitializeComponent() {
this.trackBarEdgeDistance = new System.Windows.Forms.TrackBar(); this.trackBarEdgeDistance = new System.Windows.Forms.TrackBar();
this.groupNotificationDuration = new System.Windows.Forms.GroupBox(); this.groupNotificationDuration = new System.Windows.Forms.GroupBox();
this.tableLayoutDurationButtons = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutDurationButtons = new System.Windows.Forms.TableLayoutPanel();
this.btnDurationMedium = new TweetDck.Core.Controls.FlatButton(); this.btnDurationMedium = new TweetDuck.Core.Controls.FlatButton();
this.btnDurationLong = new TweetDck.Core.Controls.FlatButton(); this.btnDurationLong = new TweetDuck.Core.Controls.FlatButton();
this.btnDurationShort = new TweetDck.Core.Controls.FlatButton(); this.btnDurationShort = new TweetDuck.Core.Controls.FlatButton();
this.labelDurationValue = new System.Windows.Forms.Label(); this.labelDurationValue = new System.Windows.Forms.Label();
this.trackBarDuration = new System.Windows.Forms.TrackBar(); this.trackBarDuration = new System.Windows.Forms.TrackBar();
this.groupUserInterface = new System.Windows.Forms.GroupBox(); this.groupUserInterface = new System.Windows.Forms.GroupBox();
@ -440,9 +440,9 @@ private void InitializeComponent() {
private System.Windows.Forms.Label labelDurationValue; private System.Windows.Forms.Label labelDurationValue;
private System.Windows.Forms.TrackBar trackBarDuration; private System.Windows.Forms.TrackBar trackBarDuration;
private System.Windows.Forms.TableLayoutPanel tableLayoutDurationButtons; private System.Windows.Forms.TableLayoutPanel tableLayoutDurationButtons;
private TweetDck.Core.Controls.FlatButton btnDurationMedium; private TweetDuck.Core.Controls.FlatButton btnDurationMedium;
private TweetDck.Core.Controls.FlatButton btnDurationLong; private TweetDuck.Core.Controls.FlatButton btnDurationLong;
private TweetDck.Core.Controls.FlatButton btnDurationShort; private TweetDuck.Core.Controls.FlatButton btnDurationShort;
private System.Windows.Forms.CheckBox checkNonIntrusive; private System.Windows.Forms.CheckBox checkNonIntrusive;
private System.Windows.Forms.Label labelIdlePause; private System.Windows.Forms.Label labelIdlePause;
private System.Windows.Forms.ComboBox comboBoxIdlePause; private System.Windows.Forms.ComboBox comboBoxIdlePause;

View File

@ -1,10 +1,10 @@
using System; using System;
using System.Globalization; using System.Globalization;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Controls; using TweetDuck.Core.Controls;
using TweetDck.Core.Notification; using TweetDuck.Core.Notification;
namespace TweetDck.Core.Other.Settings{ namespace TweetDuck.Core.Other.Settings{
partial class TabSettingsNotifications : BaseTabSettings{ partial class TabSettingsNotifications : BaseTabSettings{
private static readonly int[] IdlePauseSeconds = { 0, 30, 60, 120, 300 }; private static readonly int[] IdlePauseSeconds = { 0, 30, 60, 120, 300 };

View File

@ -1,4 +1,4 @@
namespace TweetDck.Core.Other.Settings { namespace TweetDuck.Core.Other.Settings {
partial class TabSettingsSounds { partial class TabSettingsSounds {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -2,10 +2,10 @@
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Notification; using TweetDuck.Core.Notification;
using TweetDck.Core.Notification.Sound; using TweetDuck.Core.Notification.Sound;
namespace TweetDck.Core.Other.Settings{ namespace TweetDuck.Core.Other.Settings{
partial class TabSettingsSounds : BaseTabSettings{ partial class TabSettingsSounds : BaseTabSettings{
private readonly ISoundNotificationPlayer soundNotification; private readonly ISoundNotificationPlayer soundNotification;

View File

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

View File

@ -2,7 +2,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core{ namespace TweetDuck.Core{
partial class TrayIcon : Component{ partial class TrayIcon : Component{
public enum Behavior{ // keep order public enum Behavior{ // keep order
Disabled, DisplayOnly, MinimizeToTray, CloseToTray, Combined Disabled, DisplayOnly, MinimizeToTray, CloseToTray, Combined

View File

@ -4,7 +4,7 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Linq; using System.Linq;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
static class BrowserCache{ static class BrowserCache{
private static bool ClearOnExit { get; set; } private static bool ClearOnExit { get; set; }

View File

@ -8,7 +8,7 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
static class BrowserUtils{ static class BrowserUtils{
public static string HeaderAcceptLanguage{ public static string HeaderAcceptLanguage{
get{ get{

View File

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
class CommandLineArgs{ class CommandLineArgs{
public static CommandLineArgs FromStringArray(char entryChar, string[] array){ public static CommandLineArgs FromStringArray(char entryChar, string[] array){
CommandLineArgs args = new CommandLineArgs(); CommandLineArgs args = new CommandLineArgs();

View File

@ -1,6 +1,6 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
static class CommandLineArgsParser{ static class CommandLineArgsParser{
private static Regex splitRegex; private static Regex splitRegex;

View File

@ -1,7 +1,7 @@
using System; using System;
using System.IO; using System.IO;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
static class HardwareAcceleration{ static class HardwareAcceleration{
private static readonly string LibEGL = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "libEGL.dll"); private static readonly string LibEGL = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "libEGL.dll");
private static readonly string LibGLES = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "libGLESv2.dll"); private static readonly string LibGLES = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "libGLESv2.dll");

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
class InjectedHTML{ class InjectedHTML{
public enum Position{ public enum Position{
Before, After Before, After

View File

@ -4,7 +4,7 @@
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
static class NativeCoreAudio{ static class NativeCoreAudio{
private const int EDATAFLOW_RENDER = 0; private const int EDATAFLOW_RENDER = 0;
private const int EROLE_MULTIMEDIA = 1; private const int EROLE_MULTIMEDIA = 1;

View File

@ -4,7 +4,7 @@
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
[SuppressMessage("ReSharper", "FieldCanBeMadeReadOnly.Local")] [SuppressMessage("ReSharper", "FieldCanBeMadeReadOnly.Local")]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Local")] [SuppressMessage("ReSharper", "MemberCanBePrivate.Local")]
static class NativeMethods{ static class NativeMethods{

View File

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
class TwoKeyDictionary<K1, K2, V>{ class TwoKeyDictionary<K1, K2, V>{
private readonly Dictionary<K1, Dictionary<K2, V>> dict; private readonly Dictionary<K1, Dictionary<K2, V>> dict;
private readonly int innerCapacity; private readonly int innerCapacity;

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 TweetDck.Core.Controls; using TweetDuck.Core.Controls;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
[Serializable] [Serializable]
class WindowState{ class WindowState{
private Rectangle rect; private Rectangle rect;

View File

@ -6,7 +6,7 @@
using System.Threading; using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Core.Utils{ namespace TweetDuck.Core.Utils{
static class WindowsUtils{ static class WindowsUtils{
public static bool ShouldAvoidToolWindow { get; } public static bool ShouldAvoidToolWindow { get; }

View File

@ -1,4 +1,4 @@
namespace TweetDck.Plugins.Controls { namespace TweetDuck.Plugins.Controls {
partial class PluginControl { partial class PluginControl {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

@ -3,9 +3,9 @@
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Plugins.Controls{ namespace TweetDuck.Plugins.Controls{
partial class PluginControl : UserControl{ partial class PluginControl : UserControl{
private readonly PluginManager pluginManager; private readonly PluginManager pluginManager;
private readonly Plugin plugin; private readonly Plugin plugin;

View File

@ -1,7 +1,7 @@
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
namespace TweetDck.Plugins.Controls{ namespace TweetDuck.Plugins.Controls{
sealed class PluginListFlowLayout : FlowLayoutPanel{ sealed class PluginListFlowLayout : FlowLayoutPanel{
public PluginListFlowLayout(){ public PluginListFlowLayout(){
FlowDirection = FlowDirection.TopDown; FlowDirection = FlowDirection.TopDown;

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace TweetDck.Plugins.Enums{ namespace TweetDuck.Plugins.Enums{
[Flags] [Flags]
enum PluginEnvironment{ enum PluginEnvironment{
None = 0, None = 0,

View File

@ -1,4 +1,4 @@
namespace TweetDck.Plugins.Enums{ namespace TweetDuck.Plugins.Enums{
enum PluginFolder{ enum PluginFolder{
Root, Data Root, Data
} }

View File

@ -1,4 +1,4 @@
namespace TweetDck.Plugins.Enums{ namespace TweetDuck.Plugins.Enums{
enum PluginGroup{ enum PluginGroup{
Official, Custom Official, Custom
} }

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Plugins.Events{ namespace TweetDuck.Plugins.Events{
class PluginChangedStateEventArgs : EventArgs{ class PluginChangedStateEventArgs : EventArgs{
public Plugin Plugin { get; } public Plugin Plugin { get; }
public bool IsEnabled { get; } public bool IsEnabled { get; }

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace TweetDck.Plugins.Events{ namespace TweetDuck.Plugins.Events{
class PluginErrorEventArgs : EventArgs{ class PluginErrorEventArgs : EventArgs{
public bool HasErrors => Errors.Count > 0; public bool HasErrors => Errors.Count > 0;

View File

@ -3,9 +3,9 @@
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
namespace TweetDck.Plugins{ namespace TweetDuck.Plugins{
class Plugin{ class Plugin{
public string Identifier { get; } public string Identifier { get; }
public PluginGroup Group { get; } public PluginGroup Group { get; }

View File

@ -2,11 +2,11 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text; using System.Text;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
using TweetDck.Plugins.Events; using TweetDuck.Plugins.Events;
namespace TweetDck.Plugins{ namespace TweetDuck.Plugins{
class PluginBridge{ class PluginBridge{
private static string SanitizeCacheKey(string key){ private static string SanitizeCacheKey(string key){
return key.Replace('\\', '/').Trim(); return key.Replace('\\', '/').Trim();

View File

@ -2,9 +2,9 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text; using System.Text;
using TweetDck.Plugins.Events; using TweetDuck.Plugins.Events;
namespace TweetDck.Plugins{ namespace TweetDuck.Plugins{
[Serializable] [Serializable]
sealed class PluginConfig{ sealed class PluginConfig{
[field:NonSerialized] [field:NonSerialized]

View File

@ -3,11 +3,11 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
using TweetDck.Plugins.Events; using TweetDuck.Plugins.Events;
using TweetDck.Resources; using TweetDuck.Resources;
namespace TweetDck.Plugins{ namespace TweetDuck.Plugins{
sealed class PluginManager{ sealed class PluginManager{
public const string PluginBrowserScriptFile = "plugins.browser.js"; public const string PluginBrowserScriptFile = "plugins.browser.js";
public const string PluginNotificationScriptFile = "plugins.notification.js"; public const string PluginNotificationScriptFile = "plugins.notification.js";

View File

@ -1,7 +1,7 @@
using System.Text; using System.Text;
using TweetDck.Plugins.Enums; using TweetDuck.Plugins.Enums;
namespace TweetDck.Plugins{ namespace TweetDuck.Plugins{
static class PluginScriptGenerator{ static class PluginScriptGenerator{
public static string GenerateConfig(PluginConfig config){ public static string GenerateConfig(PluginConfig config){
return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"", config.DisabledPlugins)+"\"];" : string.Empty; return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"", config.DisabledPlugins)+"\"];" : string.Empty;

View File

@ -5,17 +5,17 @@
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Configuration; using TweetDuck.Configuration;
using TweetDck.Core; using TweetDuck.Core;
using TweetDck.Core.Handling; using TweetDuck.Core.Handling;
using TweetDck.Core.Other; using TweetDuck.Core.Other;
using TweetDck.Core.Other.Settings.Export; using TweetDuck.Core.Other.Settings.Export;
using TweetDck.Core.Utils; using TweetDuck.Core.Utils;
using TweetDck.Plugins; using TweetDuck.Plugins;
using TweetDck.Plugins.Events; using TweetDuck.Plugins.Events;
using TweetDck.Updates; using TweetDuck.Updates;
namespace TweetDck{ namespace TweetDuck{
static class Program{ static class Program{
public const string BrandName = "TweetDuck"; public const string BrandName = "TweetDuck";
public const string Website = "https://tweetduck.chylex.com"; public const string Website = "https://tweetduck.chylex.com";

View File

@ -2,7 +2,7 @@
using System.Reflection; using System.Reflection;
using System.Resources; using System.Resources;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using TweetDck; using TweetDuck;
// 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,9 +8,10 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace TweetDck.Properties { namespace TweetDuck.Properties {
using System;
/// <summary> /// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc. /// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary> /// </summary>
@ -38,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("TweetDck.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TweetDuck.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;

View File

@ -5,9 +5,9 @@
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using TweetDck.Core.Other; using TweetDuck.Core.Other;
namespace TweetDck{ namespace TweetDuck{
class Reporter{ class Reporter{
private readonly string logFile; private readonly string logFile;

View File

@ -5,7 +5,7 @@
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace TweetDck.Resources{ namespace TweetDuck.Resources{
static class ScriptLoader{ static class ScriptLoader{
private const string UrlPrefix = "td:"; private const string UrlPrefix = "td:";

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props" Condition="Exists('packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props')" /> <Import Project="packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props" Condition="Exists('packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props')" />
<Import Project="packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props" Condition="Exists('packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props')" /> <Import Project="packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props" Condition="Exists('packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props')" />
@ -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>TweetDck</RootNamespace> <RootNamespace>TweetDuck</RootNamespace>
<AssemblyName>TweetDuck</AssemblyName> <AssemblyName>TweetDuck</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>

View File

@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio 15
VisualStudioVersion = 15.0.26430.6 VisualStudioVersion = 15.0.26430.6
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TweetDck", "TweetDck.csproj", "{2389A7CD-E0D3-4706-8294-092929A33A2D}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TweetDuck", "TweetDuck.csproj", "{2389A7CD-E0D3-4706-8294-092929A33A2D}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TweetDuck.Browser", "subprocess\TweetDuck.Browser.csproj", "{B10B0017-819E-4F71-870F-8256B36A26AA}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TweetDuck.Browser", "subprocess\TweetDuck.Browser.csproj", "{B10B0017-819E-4F71-870F-8256B36A26AA}"
EndProject EndProject
@ -19,13 +19,13 @@ Global
{2389A7CD-E0D3-4706-8294-092929A33A2D}.Debug|x86.Deploy.0 = Debug|x86 {2389A7CD-E0D3-4706-8294-092929A33A2D}.Debug|x86.Deploy.0 = Debug|x86
{2389A7CD-E0D3-4706-8294-092929A33A2D}.Release|x86.ActiveCfg = Release|x86 {2389A7CD-E0D3-4706-8294-092929A33A2D}.Release|x86.ActiveCfg = Release|x86
{2389A7CD-E0D3-4706-8294-092929A33A2D}.Release|x86.Build.0 = Release|x86 {2389A7CD-E0D3-4706-8294-092929A33A2D}.Release|x86.Build.0 = Release|x86
{A958FA7A-4A2C-42A7-BFA0-159343483F4E}.Debug|x86.ActiveCfg = Debug|x86
{A958FA7A-4A2C-42A7-BFA0-159343483F4E}.Debug|x86.Build.0 = Debug|x86
{A958FA7A-4A2C-42A7-BFA0-159343483F4E}.Release|x86.ActiveCfg = Release|x86
{B10B0017-819E-4F71-870F-8256B36A26AA}.Debug|x86.ActiveCfg = Debug|x86 {B10B0017-819E-4F71-870F-8256B36A26AA}.Debug|x86.ActiveCfg = Debug|x86
{B10B0017-819E-4F71-870F-8256B36A26AA}.Debug|x86.Build.0 = Debug|x86 {B10B0017-819E-4F71-870F-8256B36A26AA}.Debug|x86.Build.0 = Debug|x86
{B10B0017-819E-4F71-870F-8256B36A26AA}.Release|x86.ActiveCfg = Release|x86 {B10B0017-819E-4F71-870F-8256B36A26AA}.Release|x86.ActiveCfg = Release|x86
{B10B0017-819E-4F71-870F-8256B36A26AA}.Release|x86.Build.0 = Release|x86 {B10B0017-819E-4F71-870F-8256B36A26AA}.Release|x86.Build.0 = Release|x86
{A958FA7A-4A2C-42A7-BFA0-159343483F4E}.Debug|x86.ActiveCfg = Debug|x86
{A958FA7A-4A2C-42A7-BFA0-159343483F4E}.Debug|x86.Build.0 = Debug|x86
{A958FA7A-4A2C-42A7-BFA0-159343483F4E}.Release|x86.ActiveCfg = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Updates.Events{ namespace TweetDuck.Updates.Events{
class UpdateAcceptedEventArgs : EventArgs{ class UpdateAcceptedEventArgs : EventArgs{
public readonly UpdateInfo UpdateInfo; public readonly UpdateInfo UpdateInfo;

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Updates.Events{ namespace TweetDuck.Updates.Events{
class UpdateCheckEventArgs : EventArgs{ class UpdateCheckEventArgs : EventArgs{
public int EventId { get; } public int EventId { get; }
public bool UpdateAvailable { get; } public bool UpdateAvailable { get; }

View File

@ -1,6 +1,6 @@
using System; using System;
namespace TweetDck.Updates.Events{ namespace TweetDuck.Updates.Events{
class UpdateDismissedEventArgs : EventArgs{ class UpdateDismissedEventArgs : EventArgs{
public readonly string VersionTag; public readonly string VersionTag;

Some files were not shown because too many files have changed in this diff Show More