mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-09-14 10:32:10 +02:00
Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
a951c3a7c9 | |||
b25fae54fe | |||
a87bc4609e | |||
3e68026949 | |||
78d6d285cd | |||
72e3596a3c | |||
643ebcaab4 | |||
52ef6cd95a | |||
4aec2f3260 | |||
73549515eb | |||
d83d2660cf | |||
8de913172c | |||
4acfd64cff | |||
b56f90ed52 | |||
1375630727 | |||
668825bc01 | |||
90414ae579 | |||
41c8caa2a4 | |||
15305ecabe | |||
50090effd4 | |||
6dffdcd1ed | |||
db9daf2714 | |||
502ac4ebc1 | |||
3f44f3bab4 |
@@ -7,7 +7,6 @@ namespace TweetDuck.Configuration{
|
|||||||
public const string ArgDataFolder = "-datafolder";
|
public const string ArgDataFolder = "-datafolder";
|
||||||
public const string ArgLogging = "-log";
|
public const string ArgLogging = "-log";
|
||||||
public const string ArgIgnoreGDPR = "-nogdpr";
|
public const string ArgIgnoreGDPR = "-nogdpr";
|
||||||
public const string ArgNotificationScrollWA = "-nscrollwa";
|
|
||||||
|
|
||||||
// internal args
|
// internal args
|
||||||
public const string ArgRestart = "-restart";
|
public const string ArgRestart = "-restart";
|
||||||
|
121
Configuration/ConfigManager.cs
Normal file
121
Configuration/ConfigManager.cs
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Drawing;
|
||||||
|
using TweetDuck.Configuration.Instance;
|
||||||
|
using TweetDuck.Core.Utils;
|
||||||
|
using TweetDuck.Data;
|
||||||
|
using TweetDuck.Data.Serialization;
|
||||||
|
|
||||||
|
namespace TweetDuck.Configuration{
|
||||||
|
sealed class ConfigManager{
|
||||||
|
public UserConfig User { get; }
|
||||||
|
public SystemConfig System { get; }
|
||||||
|
|
||||||
|
public event EventHandler ProgramRestartRequested;
|
||||||
|
|
||||||
|
private readonly FileConfigInstance<UserConfig> infoUser;
|
||||||
|
private readonly FileConfigInstance<SystemConfig> infoSystem;
|
||||||
|
|
||||||
|
private readonly IConfigInstance<BaseConfig>[] infoList;
|
||||||
|
|
||||||
|
public ConfigManager(){
|
||||||
|
User = new UserConfig(this);
|
||||||
|
System = new SystemConfig(this);
|
||||||
|
|
||||||
|
infoList = new IConfigInstance<BaseConfig>[]{
|
||||||
|
infoUser = new FileConfigInstance<UserConfig>(Program.UserConfigFilePath, User, "program options"),
|
||||||
|
infoSystem = new FileConfigInstance<SystemConfig>(Program.SystemConfigFilePath, System, "system options")
|
||||||
|
};
|
||||||
|
|
||||||
|
// TODO refactor further
|
||||||
|
|
||||||
|
infoUser.Serializer.RegisterTypeConverter(typeof(WindowState), WindowState.Converter);
|
||||||
|
|
||||||
|
infoUser.Serializer.RegisterTypeConverter(typeof(Point), new SingleTypeConverter<Point>{
|
||||||
|
ConvertToString = value => $"{value.X} {value.Y}",
|
||||||
|
ConvertToObject = value => {
|
||||||
|
int[] elements = StringUtils.ParseInts(value, ' ');
|
||||||
|
return new Point(elements[0], elements[1]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
infoUser.Serializer.RegisterTypeConverter(typeof(Size), new SingleTypeConverter<Size>{
|
||||||
|
ConvertToString = value => $"{value.Width} {value.Height}",
|
||||||
|
ConvertToObject = value => {
|
||||||
|
int[] elements = StringUtils.ParseInts(value, ' ');
|
||||||
|
return new Size(elements[0], elements[1]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void LoadAll(){
|
||||||
|
infoUser.Load();
|
||||||
|
infoSystem.Load();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SaveAll(){
|
||||||
|
infoUser.Save();
|
||||||
|
infoSystem.Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ReloadAll(){
|
||||||
|
infoUser.Reload();
|
||||||
|
infoSystem.Reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TriggerProgramRestartRequested(){
|
||||||
|
ProgramRestartRequested?.Invoke(this, EventArgs.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IConfigInstance<BaseConfig> GetInstanceInfo(BaseConfig instance){
|
||||||
|
Type instanceType = instance.GetType();
|
||||||
|
return Array.Find(infoList, info => info.Instance.GetType() == instanceType); // TODO handle null
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract class BaseConfig{
|
||||||
|
private readonly ConfigManager configManager;
|
||||||
|
|
||||||
|
protected BaseConfig(ConfigManager configManager){
|
||||||
|
this.configManager = configManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Management
|
||||||
|
|
||||||
|
public void Save(){
|
||||||
|
configManager.GetInstanceInfo(this).Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Reload(){
|
||||||
|
configManager.GetInstanceInfo(this).Reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Reset(){
|
||||||
|
configManager.GetInstanceInfo(this).Reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Construction methods
|
||||||
|
|
||||||
|
public T ConstructWithDefaults<T>() where T : BaseConfig{
|
||||||
|
return ConstructWithDefaults(configManager) as T;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract BaseConfig ConstructWithDefaults(ConfigManager configManager);
|
||||||
|
|
||||||
|
// Utility methods
|
||||||
|
|
||||||
|
protected void UpdatePropertyWithEvent<T>(ref T field, T value, EventHandler eventHandler){
|
||||||
|
if (!EqualityComparer<T>.Default.Equals(field, value)){
|
||||||
|
field = value;
|
||||||
|
eventHandler?.Invoke(this, EventArgs.Empty);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void UpdatePropertyWithRestartRequest<T>(ref T field, T value){
|
||||||
|
if (!EqualityComparer<T>.Default.Equals(field, value)){
|
||||||
|
field = value;
|
||||||
|
configManager.TriggerProgramRestartRequested();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
104
Configuration/Instance/FileConfigInstance.cs
Normal file
104
Configuration/Instance/FileConfigInstance.cs
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using TweetDuck.Data.Serialization;
|
||||||
|
|
||||||
|
namespace TweetDuck.Configuration.Instance{
|
||||||
|
sealed class FileConfigInstance<T> : IConfigInstance<T> where T : ConfigManager.BaseConfig{
|
||||||
|
private const string ErrorTitle = "Configuration Error";
|
||||||
|
|
||||||
|
public T Instance { get; }
|
||||||
|
public FileSerializer<T> Serializer { get; }
|
||||||
|
|
||||||
|
private readonly string filenameMain;
|
||||||
|
private readonly string filenameBackup;
|
||||||
|
private readonly string errorIdentifier;
|
||||||
|
|
||||||
|
public FileConfigInstance(string filename, T instance, string errorIdentifier){
|
||||||
|
this.filenameMain = filename;
|
||||||
|
this.filenameBackup = filename+".bak";
|
||||||
|
this.errorIdentifier = errorIdentifier;
|
||||||
|
|
||||||
|
this.Instance = instance;
|
||||||
|
this.Serializer = new FileSerializer<T>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LoadInternal(bool backup){
|
||||||
|
Serializer.Read(backup ? filenameBackup : filenameMain, Instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Load(){
|
||||||
|
Exception firstException = null;
|
||||||
|
|
||||||
|
for(int attempt = 0; attempt < 2; attempt++){
|
||||||
|
try{
|
||||||
|
LoadInternal(attempt > 0);
|
||||||
|
|
||||||
|
if (firstException != null){ // silently log exception that caused a backup restore
|
||||||
|
Program.Reporter.Log(firstException.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}catch(FileNotFoundException){
|
||||||
|
}catch(DirectoryNotFoundException){
|
||||||
|
break;
|
||||||
|
}catch(Exception e){
|
||||||
|
if (firstException == null){
|
||||||
|
firstException = e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (firstException is FormatException){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, "The configuration file for "+errorIdentifier+" is outdated or corrupted. If you continue, your "+errorIdentifier+" will be reset.", true, firstException);
|
||||||
|
}
|
||||||
|
else if (firstException is SerializationSoftException sse){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, $"{sse.Errors.Count} error{(sse.Errors.Count == 1 ? " was" : "s were")} encountered while loading the configuration file for "+errorIdentifier+". If you continue, some of your "+errorIdentifier+" will be reset.", true, firstException);
|
||||||
|
}
|
||||||
|
else if (firstException != null){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, "Could not open the configuration file for "+errorIdentifier+". If you continue, your "+errorIdentifier+" will be reset.", true, firstException);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Save(){
|
||||||
|
try{
|
||||||
|
if (File.Exists(filenameMain)){
|
||||||
|
File.Delete(filenameBackup);
|
||||||
|
File.Move(filenameMain, filenameBackup);
|
||||||
|
}
|
||||||
|
|
||||||
|
Serializer.Write(filenameMain, Instance);
|
||||||
|
}catch(SerializationSoftException e){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, $"{e.Errors.Count} error{(e.Errors.Count == 1 ? " was" : "s were")} encountered while saving the configuration file for "+errorIdentifier+".", true, e);
|
||||||
|
}catch(Exception e){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, "Could not save the configuration file for "+errorIdentifier+".", true, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Reload(){
|
||||||
|
try{
|
||||||
|
LoadInternal(false);
|
||||||
|
}catch(FileNotFoundException){
|
||||||
|
try{
|
||||||
|
Serializer.Write(filenameMain, Instance.ConstructWithDefaults<T>());
|
||||||
|
LoadInternal(false);
|
||||||
|
}catch(Exception e){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, "Could not regenerate the configuration file for "+errorIdentifier+".", true, e);
|
||||||
|
}
|
||||||
|
}catch(Exception e){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, "Could not reload the configuration file for "+errorIdentifier+".", true, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Reset(){
|
||||||
|
try{
|
||||||
|
File.Delete(filenameMain);
|
||||||
|
File.Delete(filenameBackup);
|
||||||
|
}catch(Exception e){
|
||||||
|
Program.Reporter.HandleException(ErrorTitle, "Could not delete configuration files to reset "+errorIdentifier+".", true, e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
9
Configuration/Instance/IConfigInstance.cs
Normal file
9
Configuration/Instance/IConfigInstance.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
namespace TweetDuck.Configuration.Instance{
|
||||||
|
interface IConfigInstance<out T>{
|
||||||
|
T Instance { get; }
|
||||||
|
|
||||||
|
void Save();
|
||||||
|
void Reload();
|
||||||
|
void Reset();
|
||||||
|
}
|
||||||
|
}
|
@@ -1,43 +1,26 @@
|
|||||||
using System;
|
namespace TweetDuck.Configuration{
|
||||||
using TweetDuck.Data.Serialization;
|
sealed class SystemConfig : ConfigManager.BaseConfig{
|
||||||
|
|
||||||
namespace TweetDuck.Configuration{
|
|
||||||
sealed class SystemConfig{
|
|
||||||
private static readonly FileSerializer<SystemConfig> Serializer = new FileSerializer<SystemConfig>();
|
|
||||||
|
|
||||||
// CONFIGURATION DATA
|
// CONFIGURATION DATA
|
||||||
|
|
||||||
public bool HardwareAcceleration { get; set; } = true;
|
public bool _hardwareAcceleration = true;
|
||||||
|
|
||||||
public bool ClearCacheAutomatically { get; set; } = true;
|
public bool ClearCacheAutomatically { get; set; } = true;
|
||||||
public int ClearCacheThreshold { get; set; } = 250;
|
public int ClearCacheThreshold { get; set; } = 250;
|
||||||
|
|
||||||
|
// SPECIAL PROPERTIES
|
||||||
|
|
||||||
|
public bool HardwareAcceleration{
|
||||||
|
get => _hardwareAcceleration;
|
||||||
|
set => UpdatePropertyWithRestartRequest(ref _hardwareAcceleration, value);
|
||||||
|
}
|
||||||
|
|
||||||
// END OF CONFIG
|
// END OF CONFIG
|
||||||
|
|
||||||
private readonly string file;
|
public SystemConfig(ConfigManager configManager) : base(configManager){}
|
||||||
|
|
||||||
private SystemConfig(string file){
|
protected override ConfigManager.BaseConfig ConstructWithDefaults(ConfigManager configManager){
|
||||||
this.file = file;
|
return new SystemConfig(configManager);
|
||||||
}
|
|
||||||
|
|
||||||
public void Save(){
|
|
||||||
try{
|
|
||||||
Serializer.Write(file, this);
|
|
||||||
}catch(Exception e){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not save the system configuration file.", true, e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static SystemConfig Load(string file){
|
|
||||||
SystemConfig config = new SystemConfig(file);
|
|
||||||
|
|
||||||
try{
|
|
||||||
Serializer.ReadIfExists(file, config);
|
|
||||||
}catch(Exception e){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not open the system configuration file. If you continue, you will lose system specific configuration such as Hardware Acceleration.", true, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
return config;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,37 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
|
||||||
using TweetDuck.Core.Controls;
|
using TweetDuck.Core.Controls;
|
||||||
using TweetDuck.Core.Notification;
|
using TweetDuck.Core.Notification;
|
||||||
using TweetDuck.Core.Other;
|
using TweetDuck.Core.Other;
|
||||||
using TweetDuck.Core.Utils;
|
using TweetDuck.Core.Utils;
|
||||||
using TweetDuck.Data;
|
using TweetDuck.Data;
|
||||||
using TweetDuck.Data.Serialization;
|
|
||||||
|
|
||||||
namespace TweetDuck.Configuration{
|
namespace TweetDuck.Configuration{
|
||||||
sealed class UserConfig{
|
sealed class UserConfig : ConfigManager.BaseConfig{
|
||||||
private static readonly FileSerializer<UserConfig> Serializer = new FileSerializer<UserConfig>();
|
|
||||||
|
|
||||||
static UserConfig(){
|
|
||||||
Serializer.RegisterTypeConverter(typeof(WindowState), WindowState.Converter);
|
|
||||||
|
|
||||||
Serializer.RegisterTypeConverter(typeof(Point), new SingleTypeConverter<Point>{
|
|
||||||
ConvertToString = value => $"{value.X} {value.Y}",
|
|
||||||
ConvertToObject = value => {
|
|
||||||
int[] elements = StringUtils.ParseInts(value, ' ');
|
|
||||||
return new Point(elements[0], elements[1]);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Serializer.RegisterTypeConverter(typeof(Size), new SingleTypeConverter<Size>{
|
|
||||||
ConvertToString = value => $"{value.Width} {value.Height}",
|
|
||||||
ConvertToObject = value => {
|
|
||||||
int[] elements = StringUtils.ParseInts(value, ' ');
|
|
||||||
return new Size(elements[0], elements[1]);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// CONFIGURATION DATA
|
// CONFIGURATION DATA
|
||||||
|
|
||||||
@@ -47,17 +23,20 @@ namespace TweetDuck.Configuration{
|
|||||||
public bool BestImageQuality { get; set; } = true;
|
public bool BestImageQuality { get; set; } = true;
|
||||||
public bool EnableAnimatedImages { get; set; } = true;
|
public bool EnableAnimatedImages { get; set; } = true;
|
||||||
|
|
||||||
public bool IgnoreTrackingUrlWarning { get; set; } = false;
|
public bool _enableSmoothScrolling = true;
|
||||||
public bool EnableSmoothScrolling { get; set; } = true;
|
public bool _enableTouchAdjustment = false;
|
||||||
|
public string _customCefArgs = null;
|
||||||
|
|
||||||
public string BrowserPath { get; set; } = null;
|
public string BrowserPath { get; set; } = null;
|
||||||
|
public bool IgnoreTrackingUrlWarning { get; set; } = false;
|
||||||
public string SearchEngineUrl { get; set; } = null;
|
public string SearchEngineUrl { get; set; } = null;
|
||||||
private int _zoomLevel = 100;
|
private int _zoomLevel = 100;
|
||||||
private bool _muteNotifications;
|
|
||||||
|
|
||||||
public int VideoPlayerVolume { get; set; } = 50;
|
public int VideoPlayerVolume { get; set; } = 50;
|
||||||
|
|
||||||
public bool EnableSpellCheck { get; set; } = false;
|
public bool EnableSpellCheck { get; set; } = false;
|
||||||
public string SpellCheckLanguage { get; set; } = "en-US";
|
private string _spellCheckLanguage = "en-US";
|
||||||
|
|
||||||
public string TranslationTarget { get; set; } = "en";
|
public string TranslationTarget { get; set; } = "en";
|
||||||
|
|
||||||
private TrayIcon.Behavior _trayBehavior = TrayIcon.Behavior.Disabled;
|
private TrayIcon.Behavior _trayBehavior = TrayIcon.Behavior.Disabled;
|
||||||
@@ -88,7 +67,8 @@ namespace TweetDuck.Configuration{
|
|||||||
private string _notificationSoundPath;
|
private string _notificationSoundPath;
|
||||||
private int _notificationSoundVolume = 100;
|
private int _notificationSoundVolume = 100;
|
||||||
|
|
||||||
public string CustomCefArgs { get; set; } = null;
|
private bool _muteNotifications;
|
||||||
|
|
||||||
public string CustomBrowserCSS { get; set; } = null;
|
public string CustomBrowserCSS { get; set; } = null;
|
||||||
public string CustomNotificationCSS { get; set; } = null;
|
public string CustomNotificationCSS { get; set; } = null;
|
||||||
|
|
||||||
@@ -125,6 +105,26 @@ namespace TweetDuck.Configuration{
|
|||||||
set => UpdatePropertyWithEvent(ref _trayBehavior, value, TrayBehaviorChanged);
|
set => UpdatePropertyWithEvent(ref _trayBehavior, value, TrayBehaviorChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool EnableSmoothScrolling{
|
||||||
|
get => _enableSmoothScrolling;
|
||||||
|
set => UpdatePropertyWithRestartRequest(ref _enableSmoothScrolling, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool EnableTouchAdjustment{
|
||||||
|
get => _enableTouchAdjustment;
|
||||||
|
set => UpdatePropertyWithRestartRequest(ref _enableTouchAdjustment, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string CustomCefArgs{
|
||||||
|
get => _customCefArgs;
|
||||||
|
set => UpdatePropertyWithRestartRequest(ref _customCefArgs, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string SpellCheckLanguage{
|
||||||
|
get => _spellCheckLanguage;
|
||||||
|
set => UpdatePropertyWithRestartRequest(ref _spellCheckLanguage, value);
|
||||||
|
}
|
||||||
|
|
||||||
// EVENTS
|
// EVENTS
|
||||||
|
|
||||||
public event EventHandler MuteToggled;
|
public event EventHandler MuteToggled;
|
||||||
@@ -134,105 +134,10 @@ namespace TweetDuck.Configuration{
|
|||||||
|
|
||||||
// END OF CONFIG
|
// END OF CONFIG
|
||||||
|
|
||||||
private readonly string file;
|
public UserConfig(ConfigManager configManager) : base(configManager){}
|
||||||
|
|
||||||
private UserConfig(string file){
|
protected override ConfigManager.BaseConfig ConstructWithDefaults(ConfigManager configManager){
|
||||||
this.file = file;
|
return new UserConfig(configManager);
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdatePropertyWithEvent<T>(ref T field, T value, EventHandler eventHandler){
|
|
||||||
if (!EqualityComparer<T>.Default.Equals(field, value)){
|
|
||||||
field = value;
|
|
||||||
eventHandler?.Invoke(this, EventArgs.Empty);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Save(){
|
|
||||||
try{
|
|
||||||
if (File.Exists(file)){
|
|
||||||
string backupFile = GetBackupFile(file);
|
|
||||||
File.Delete(backupFile);
|
|
||||||
File.Move(file, backupFile);
|
|
||||||
}
|
|
||||||
|
|
||||||
Serializer.Write(file, this);
|
|
||||||
}catch(Exception e){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not save the configuration file.", true, e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reload(){
|
|
||||||
try{
|
|
||||||
LoadInternal(false);
|
|
||||||
}catch(FileNotFoundException){
|
|
||||||
try{
|
|
||||||
Serializer.Write(file, new UserConfig(file));
|
|
||||||
LoadInternal(false);
|
|
||||||
}catch(Exception e){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not regenerate configuration file.", true, e);
|
|
||||||
}
|
|
||||||
}catch(Exception e){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not reload configuration file.", true, e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset(){
|
|
||||||
try{
|
|
||||||
File.Delete(file);
|
|
||||||
File.Delete(GetBackupFile(file));
|
|
||||||
}catch(Exception e){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not delete configuration files to reset the options.", true, e);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadInternal(bool backup){
|
|
||||||
Serializer.Read(backup ? GetBackupFile(file) : file, this);
|
|
||||||
|
|
||||||
if (NotificationScrollSpeed == 10){ // incorrect initial value
|
|
||||||
NotificationScrollSpeed = 100;
|
|
||||||
Save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static UserConfig Load(string file){
|
|
||||||
Exception firstException = null;
|
|
||||||
|
|
||||||
for(int attempt = 0; attempt < 2; attempt++){
|
|
||||||
try{
|
|
||||||
UserConfig config = new UserConfig(file);
|
|
||||||
config.LoadInternal(attempt > 0);
|
|
||||||
return config;
|
|
||||||
}catch(FileNotFoundException){
|
|
||||||
}catch(DirectoryNotFoundException){
|
|
||||||
break;
|
|
||||||
}catch(Exception e){
|
|
||||||
if (attempt == 0){
|
|
||||||
firstException = e;
|
|
||||||
Program.Reporter.Log(e.ToString());
|
|
||||||
}
|
|
||||||
else if (firstException is FormatException){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "The configuration file is outdated or corrupted. If you continue, your program options will be reset.", true, e);
|
|
||||||
return new UserConfig(file);
|
|
||||||
}
|
|
||||||
else if (firstException != null){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not open the backup configuration file. If you continue, your program options will be reset.", true, e);
|
|
||||||
return new UserConfig(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (firstException != null){
|
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not open the configuration file.", true, firstException);
|
|
||||||
}
|
|
||||||
|
|
||||||
return new UserConfig(file);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetBackupFile(string file){
|
|
||||||
return file+".bak";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
68
Core/Bridge/UpdateBridge.cs
Normal file
68
Core/Bridge/UpdateBridge.cs
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using TweetDuck.Core.Controls;
|
||||||
|
using TweetDuck.Updates;
|
||||||
|
|
||||||
|
namespace TweetDuck.Core.Bridge{
|
||||||
|
class UpdateBridge{
|
||||||
|
private readonly UpdateHandler updates;
|
||||||
|
private readonly Control sync;
|
||||||
|
|
||||||
|
private UpdateInfo nextUpdate = null;
|
||||||
|
|
||||||
|
public event EventHandler<UpdateInfo> UpdateAccepted;
|
||||||
|
public event EventHandler<UpdateInfo> UpdateDelayed;
|
||||||
|
public event EventHandler<UpdateInfo> UpdateDismissed;
|
||||||
|
|
||||||
|
public UpdateBridge(UpdateHandler updates, Control sync){
|
||||||
|
this.sync = sync;
|
||||||
|
|
||||||
|
this.updates = updates;
|
||||||
|
this.updates.CheckFinished += updates_CheckFinished;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void Cleanup(){
|
||||||
|
updates.CheckFinished -= updates_CheckFinished;
|
||||||
|
nextUpdate?.DeleteInstaller();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updates_CheckFinished(object sender, UpdateCheckEventArgs e){
|
||||||
|
UpdateInfo foundUpdate = e.Result.HasValue ? e.Result.Value : null;
|
||||||
|
|
||||||
|
if (nextUpdate != null && !nextUpdate.Equals(foundUpdate)){
|
||||||
|
nextUpdate.DeleteInstaller();
|
||||||
|
}
|
||||||
|
|
||||||
|
nextUpdate = foundUpdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleInteractionEvent(EventHandler<UpdateInfo> eventHandler){
|
||||||
|
UpdateInfo tmpInfo = nextUpdate;
|
||||||
|
|
||||||
|
if (tmpInfo != null){
|
||||||
|
sync.InvokeAsyncSafe(() => eventHandler?.Invoke(this, tmpInfo));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bridge methods
|
||||||
|
|
||||||
|
public void TriggerUpdateCheck(){
|
||||||
|
updates.Check(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnUpdateAccepted(){
|
||||||
|
HandleInteractionEvent(UpdateAccepted);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnUpdateDelayed(){
|
||||||
|
HandleInteractionEvent(UpdateDelayed);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnUpdateDismissed(){
|
||||||
|
HandleInteractionEvent(UpdateDismissed);
|
||||||
|
|
||||||
|
nextUpdate?.DeleteInstaller();
|
||||||
|
nextUpdate = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -17,7 +17,6 @@ using TweetDuck.Plugins;
|
|||||||
using TweetDuck.Plugins.Enums;
|
using TweetDuck.Plugins.Enums;
|
||||||
using TweetDuck.Plugins.Events;
|
using TweetDuck.Plugins.Events;
|
||||||
using TweetDuck.Updates;
|
using TweetDuck.Updates;
|
||||||
using TweetDuck.Updates.Events;
|
|
||||||
|
|
||||||
namespace TweetDuck.Core{
|
namespace TweetDuck.Core{
|
||||||
sealed partial class FormBrowser : Form, AnalyticsFile.IProvider{
|
sealed partial class FormBrowser : Form, AnalyticsFile.IProvider{
|
||||||
@@ -50,6 +49,7 @@ namespace TweetDuck.Core{
|
|||||||
private readonly UpdateHandler updates;
|
private readonly UpdateHandler updates;
|
||||||
private readonly FormNotificationTweet notification;
|
private readonly FormNotificationTweet notification;
|
||||||
private readonly ContextMenu contextMenu;
|
private readonly ContextMenu contextMenu;
|
||||||
|
private readonly UpdateBridge updateBridge;
|
||||||
|
|
||||||
private bool isLoaded;
|
private bool isLoaded;
|
||||||
private FormWindowState prevState;
|
private FormWindowState prevState;
|
||||||
@@ -71,7 +71,15 @@ namespace TweetDuck.Core{
|
|||||||
this.notification = new FormNotificationTweet(this, plugins);
|
this.notification = new FormNotificationTweet(this, plugins);
|
||||||
this.notification.Show();
|
this.notification.Show();
|
||||||
|
|
||||||
this.browser = new TweetDeckBrowser(this, new TweetDeckBridge.Browser(this, notification));
|
this.updates = new UpdateHandler(Program.InstallerPath);
|
||||||
|
this.updates.CheckFinished += updates_CheckFinished;
|
||||||
|
|
||||||
|
this.updateBridge = new UpdateBridge(updates, this);
|
||||||
|
this.updateBridge.UpdateAccepted += updateBridge_UpdateAccepted;
|
||||||
|
this.updateBridge.UpdateDelayed += updateBridge_UpdateDelayed;
|
||||||
|
this.updateBridge.UpdateDismissed += updateBridge_UpdateDismissed;
|
||||||
|
|
||||||
|
this.browser = new TweetDeckBrowser(this, new TweetDeckBridge.Browser(this, notification), updateBridge);
|
||||||
this.contextMenu = ContextMenuBrowser.CreateMenu(this);
|
this.contextMenu = ContextMenuBrowser.CreateMenu(this);
|
||||||
|
|
||||||
this.plugins.Register(browser, PluginEnvironment.Browser, this, true);
|
this.plugins.Register(browser, PluginEnvironment.Browser, this, true);
|
||||||
@@ -103,11 +111,6 @@ namespace TweetDuck.Core{
|
|||||||
UpdateFormIcon();
|
UpdateFormIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updates = new UpdateHandler(browser, Program.InstallerPath);
|
|
||||||
this.updates.CheckFinished += updates_CheckFinished;
|
|
||||||
this.updates.UpdateAccepted += updates_UpdateAccepted;
|
|
||||||
this.updates.UpdateDismissed += updates_UpdateDismissed;
|
|
||||||
|
|
||||||
if (Config.AllowDataCollection){
|
if (Config.AllowDataCollection){
|
||||||
analytics = new AnalyticsManager(this, plugins, Program.AnalyticsFilePath);
|
analytics = new AnalyticsManager(this, plugins, Program.AnalyticsFilePath);
|
||||||
}
|
}
|
||||||
@@ -207,7 +210,7 @@ namespace TweetDuck.Core{
|
|||||||
|
|
||||||
private void FormBrowser_FormClosed(object sender, FormClosedEventArgs e){
|
private void FormBrowser_FormClosed(object sender, FormClosedEventArgs e){
|
||||||
if (isLoaded && UpdateInstallerPath == null){
|
if (isLoaded && UpdateInstallerPath == null){
|
||||||
updates.CleanupDownload();
|
updateBridge.Cleanup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,7 +255,7 @@ namespace TweetDuck.Core{
|
|||||||
string tag = update.VersionTag;
|
string tag = update.VersionTag;
|
||||||
|
|
||||||
if (tag != Program.VersionTag && tag != Config.DismissedUpdate){
|
if (tag != Program.VersionTag && tag != Config.DismissedUpdate){
|
||||||
updates.PrepareUpdate(update);
|
update.BeginSilentDownload();
|
||||||
browser.ShowUpdateNotification(tag, update.ReleaseNotes);
|
browser.ShowUpdateNotification(tag, update.ReleaseNotes);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -268,8 +271,7 @@ namespace TweetDuck.Core{
|
|||||||
ignoreUpdateCheckError = true;
|
ignoreUpdateCheckError = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updates_UpdateAccepted(object sender, UpdateEventArgs e){
|
private void updateBridge_UpdateAccepted(object sender, UpdateInfo update){
|
||||||
this.InvokeAsyncSafe(() => {
|
|
||||||
FormManager.CloseAllDialogs();
|
FormManager.CloseAllDialogs();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(Config.DismissedUpdate)){
|
if (!string.IsNullOrEmpty(Config.DismissedUpdate)){
|
||||||
@@ -277,7 +279,7 @@ namespace TweetDuck.Core{
|
|||||||
Config.Save();
|
Config.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
updates.BeginUpdateDownload(this, e.UpdateInfo, update => {
|
void OnFinished(){
|
||||||
UpdateDownloadStatus status = update.DownloadStatus;
|
UpdateDownloadStatus status = update.DownloadStatus;
|
||||||
|
|
||||||
if (status == UpdateDownloadStatus.Done){
|
if (status == UpdateDownloadStatus.Done){
|
||||||
@@ -291,15 +293,39 @@ namespace TweetDuck.Core{
|
|||||||
else{
|
else{
|
||||||
Show();
|
Show();
|
||||||
}
|
}
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updates_UpdateDismissed(object sender, UpdateEventArgs e){
|
if (update.DownloadStatus.IsFinished(true)){
|
||||||
this.InvokeAsyncSafe(() => {
|
OnFinished();
|
||||||
Config.DismissedUpdate = e.UpdateInfo.VersionTag;
|
}
|
||||||
|
else{
|
||||||
|
FormUpdateDownload downloadForm = new FormUpdateDownload(update);
|
||||||
|
|
||||||
|
downloadForm.VisibleChanged += (sender2, args2) => {
|
||||||
|
downloadForm.MoveToCenter(this);
|
||||||
|
Hide();
|
||||||
|
};
|
||||||
|
|
||||||
|
downloadForm.FormClosed += (sender2, args2) => {
|
||||||
|
if (downloadForm.DialogResult != DialogResult.OK){
|
||||||
|
update.CancelDownload();
|
||||||
|
}
|
||||||
|
|
||||||
|
downloadForm.Dispose();
|
||||||
|
OnFinished();
|
||||||
|
};
|
||||||
|
|
||||||
|
downloadForm.Show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateBridge_UpdateDelayed(object sender, UpdateInfo update){
|
||||||
|
// stops the timer
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateBridge_UpdateDismissed(object sender, UpdateInfo update){
|
||||||
|
Config.DismissedUpdate = update.VersionTag;
|
||||||
Config.Save();
|
Config.Save();
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void WndProc(ref Message m){
|
protected override void WndProc(ref Message m){
|
||||||
|
@@ -25,9 +25,9 @@ namespace TweetDuck.Core.Handling.Filters{
|
|||||||
int responseLength = responseData.Length;
|
int responseLength = responseData.Length;
|
||||||
|
|
||||||
if (state == State.Reading){
|
if (state == State.Reading){
|
||||||
int bytesToRead = Math.Min(responseLength-offset, (int)Math.Min(dataIn.Length, int.MaxValue));
|
int bytesToRead = Math.Min(responseLength-offset, (int)Math.Min(dataIn?.Length ?? 0, int.MaxValue));
|
||||||
|
|
||||||
dataIn.Read(responseData, offset, bytesToRead);
|
dataIn?.Read(responseData, offset, bytesToRead);
|
||||||
offset += bytesToRead;
|
offset += bytesToRead;
|
||||||
|
|
||||||
dataInRead = bytesToRead;
|
dataInRead = bytesToRead;
|
||||||
|
@@ -22,8 +22,6 @@ namespace TweetDuck.Core.Management{
|
|||||||
All = UserConfig|SystemConfig|Session|PluginData
|
All = UserConfig|SystemConfig|Session|PluginData
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsRestarting { get; private set; }
|
|
||||||
|
|
||||||
private readonly string file;
|
private readonly string file;
|
||||||
private readonly PluginManager plugins;
|
private readonly PluginManager plugins;
|
||||||
|
|
||||||
@@ -125,7 +123,6 @@ namespace TweetDuck.Core.Management{
|
|||||||
case "system":
|
case "system":
|
||||||
if (items.HasFlag(Items.SystemConfig)){
|
if (items.HasFlag(Items.SystemConfig)){
|
||||||
entry.WriteToFile(Program.SystemConfigFilePath);
|
entry.WriteToFile(Program.SystemConfigFilePath);
|
||||||
IsRestarting = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -153,7 +150,6 @@ namespace TweetDuck.Core.Management{
|
|||||||
case "cookies":
|
case "cookies":
|
||||||
if (items.HasFlag(Items.Session)){
|
if (items.HasFlag(Items.Session)){
|
||||||
entry.WriteToFile(Path.Combine(Program.StoragePath, TempCookiesPath));
|
entry.WriteToFile(Path.Combine(Program.StoragePath, TempCookiesPath));
|
||||||
IsRestarting = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -167,7 +163,7 @@ namespace TweetDuck.Core.Management{
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
Program.Reporter.HandleException("Profile Import Error", "An exception happened while importing TweetDuck profile.", true, e);
|
Program.Reporter.HandleException("Profile Import", "An exception happened while importing TweetDuck profile.", true, e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -216,10 +212,4 @@ namespace TweetDuck.Core.Management{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static class ProfileManagerExtensions{
|
|
||||||
public static bool NeedsRestart(this ProfileManager.Items items){
|
|
||||||
return items.HasFlag(ProfileManager.Items.SystemConfig) || items.HasFlag(ProfileManager.Items.Session);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using TweetDuck.Configuration;
|
|
||||||
using TweetDuck.Core.Bridge;
|
using TweetDuck.Core.Bridge;
|
||||||
using TweetDuck.Core.Controls;
|
using TweetDuck.Core.Controls;
|
||||||
using TweetDuck.Core.Handling;
|
using TweetDuck.Core.Handling;
|
||||||
@@ -132,14 +131,7 @@ namespace TweetDuck.Core.Notification{
|
|||||||
int eventType = wParam.ToInt32();
|
int eventType = wParam.ToInt32();
|
||||||
|
|
||||||
if (eventType == NativeMethods.WM_MOUSEWHEEL && IsCursorOverBrowser){
|
if (eventType == NativeMethods.WM_MOUSEWHEEL && IsCursorOverBrowser){
|
||||||
if (Arguments.HasFlag(Arguments.ArgNotificationScrollWA)){
|
|
||||||
int delta = BrowserUtils.Scale(NativeMethods.GetMouseHookData(lParam), Program.UserConfig.NotificationScrollSpeed*0.01);
|
|
||||||
browser.ExecuteScriptAsync("window.scrollBy", 0, -Math.Round(delta/0.72));
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
browser.SendMouseWheelEvent(0, 0, 0, BrowserUtils.Scale(NativeMethods.GetMouseHookData(lParam), Program.UserConfig.NotificationScrollSpeed*0.01), CefEventFlags.None);
|
browser.SendMouseWheelEvent(0, 0, 0, BrowserUtils.Scale(NativeMethods.GetMouseHookData(lParam), Program.UserConfig.NotificationScrollSpeed*0.01), CefEventFlags.None);
|
||||||
}
|
|
||||||
|
|
||||||
return NativeMethods.HOOK_HANDLED;
|
return NativeMethods.HOOK_HANDLED;
|
||||||
}
|
}
|
||||||
else if (eventType == NativeMethods.WM_XBUTTONDOWN && DesktopBounds.Contains(Cursor.Position)){
|
else if (eventType == NativeMethods.WM_XBUTTONDOWN && DesktopBounds.Contains(Cursor.Position)){
|
||||||
|
8
Core/Other/FormAbout.Designer.cs
generated
8
Core/Other/FormAbout.Designer.cs
generated
@@ -50,7 +50,7 @@ namespace TweetDuck.Core.Other {
|
|||||||
this.labelDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.labelDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.labelDescription.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDescription.Font = new System.Drawing.Font("Segoe UI", 9.75F);
|
||||||
this.labelDescription.Location = new System.Drawing.Point(114, 12);
|
this.labelDescription.Location = new System.Drawing.Point(114, 12);
|
||||||
this.labelDescription.Name = "labelDescription";
|
this.labelDescription.Name = "labelDescription";
|
||||||
this.labelDescription.Size = new System.Drawing.Size(232, 113);
|
this.labelDescription.Size = new System.Drawing.Size(232, 113);
|
||||||
@@ -59,7 +59,7 @@ namespace TweetDuck.Core.Other {
|
|||||||
// labelTips
|
// labelTips
|
||||||
//
|
//
|
||||||
this.labelTips.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.labelTips.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.labelTips.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelTips.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelTips.LinkArea = new System.Windows.Forms.LinkArea(0, 0);
|
this.labelTips.LinkArea = new System.Windows.Forms.LinkArea(0, 0);
|
||||||
this.labelTips.Location = new System.Drawing.Point(117, 0);
|
this.labelTips.Location = new System.Drawing.Point(117, 0);
|
||||||
this.labelTips.Margin = new System.Windows.Forms.Padding(0);
|
this.labelTips.Margin = new System.Windows.Forms.Padding(0);
|
||||||
@@ -74,7 +74,7 @@ namespace TweetDuck.Core.Other {
|
|||||||
//
|
//
|
||||||
this.labelWebsite.AutoSize = true;
|
this.labelWebsite.AutoSize = true;
|
||||||
this.labelWebsite.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.labelWebsite.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.labelWebsite.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelWebsite.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelWebsite.LinkArea = new System.Windows.Forms.LinkArea(0, 0);
|
this.labelWebsite.LinkArea = new System.Windows.Forms.LinkArea(0, 0);
|
||||||
this.labelWebsite.Location = new System.Drawing.Point(0, 0);
|
this.labelWebsite.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelWebsite.Margin = new System.Windows.Forms.Padding(0);
|
this.labelWebsite.Margin = new System.Windows.Forms.Padding(0);
|
||||||
@@ -106,7 +106,7 @@ namespace TweetDuck.Core.Other {
|
|||||||
// labelIssues
|
// labelIssues
|
||||||
//
|
//
|
||||||
this.labelIssues.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.labelIssues.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.labelIssues.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelIssues.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelIssues.LinkArea = new System.Windows.Forms.LinkArea(0, 0);
|
this.labelIssues.LinkArea = new System.Windows.Forms.LinkArea(0, 0);
|
||||||
this.labelIssues.Location = new System.Drawing.Point(216, 0);
|
this.labelIssues.Location = new System.Drawing.Point(216, 0);
|
||||||
this.labelIssues.Margin = new System.Windows.Forms.Padding(0);
|
this.labelIssues.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
6
Core/Other/FormPlugins.Designer.cs
generated
6
Core/Other/FormPlugins.Designer.cs
generated
@@ -35,7 +35,7 @@
|
|||||||
//
|
//
|
||||||
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnClose.AutoSize = true;
|
this.btnClose.AutoSize = true;
|
||||||
this.btnClose.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnClose.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnClose.Location = new System.Drawing.Point(642, 433);
|
this.btnClose.Location = new System.Drawing.Point(642, 433);
|
||||||
this.btnClose.Name = "btnClose";
|
this.btnClose.Name = "btnClose";
|
||||||
this.btnClose.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnClose.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
//
|
//
|
||||||
this.btnReload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.btnReload.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.btnReload.AutoSize = true;
|
this.btnReload.AutoSize = true;
|
||||||
this.btnReload.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnReload.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnReload.Location = new System.Drawing.Point(141, 433);
|
this.btnReload.Location = new System.Drawing.Point(141, 433);
|
||||||
this.btnReload.Name = "btnReload";
|
this.btnReload.Name = "btnReload";
|
||||||
this.btnReload.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnReload.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
//
|
//
|
||||||
this.btnOpenFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.btnOpenFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.btnOpenFolder.AutoSize = true;
|
this.btnOpenFolder.AutoSize = true;
|
||||||
this.btnOpenFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnOpenFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnOpenFolder.Location = new System.Drawing.Point(12, 433);
|
this.btnOpenFolder.Location = new System.Drawing.Point(12, 433);
|
||||||
this.btnOpenFolder.Name = "btnOpenFolder";
|
this.btnOpenFolder.Name = "btnOpenFolder";
|
||||||
this.btnOpenFolder.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnOpenFolder.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
|
14
Core/Other/FormSettings.Designer.cs
generated
14
Core/Other/FormSettings.Designer.cs
generated
@@ -33,8 +33,8 @@
|
|||||||
//
|
//
|
||||||
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnClose.AutoSize = true;
|
this.btnClose.AutoSize = true;
|
||||||
this.btnClose.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnClose.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnClose.Location = new System.Drawing.Point(448, 525);
|
this.btnClose.Location = new System.Drawing.Point(747, 500);
|
||||||
this.btnClose.Name = "btnClose";
|
this.btnClose.Name = "btnClose";
|
||||||
this.btnClose.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnClose.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
this.btnClose.Size = new System.Drawing.Size(50, 25);
|
this.btnClose.Size = new System.Drawing.Size(50, 25);
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
this.panelContents.Location = new System.Drawing.Point(135, 12);
|
this.panelContents.Location = new System.Drawing.Point(135, 12);
|
||||||
this.panelContents.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
this.panelContents.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||||
this.panelContents.Name = "panelContents";
|
this.panelContents.Name = "panelContents";
|
||||||
this.panelContents.Size = new System.Drawing.Size(363, 507);
|
this.panelContents.Size = new System.Drawing.Size(662, 482);
|
||||||
this.panelContents.TabIndex = 1;
|
this.panelContents.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// panelButtons
|
// panelButtons
|
||||||
@@ -64,15 +64,15 @@
|
|||||||
this.panelButtons.Location = new System.Drawing.Point(12, 12);
|
this.panelButtons.Location = new System.Drawing.Point(12, 12);
|
||||||
this.panelButtons.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
|
this.panelButtons.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
|
||||||
this.panelButtons.Name = "panelButtons";
|
this.panelButtons.Name = "panelButtons";
|
||||||
this.panelButtons.Size = new System.Drawing.Size(124, 507);
|
this.panelButtons.Size = new System.Drawing.Size(124, 482);
|
||||||
this.panelButtons.TabIndex = 0;
|
this.panelButtons.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// btnManageOptions
|
// btnManageOptions
|
||||||
//
|
//
|
||||||
this.btnManageOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.btnManageOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.btnManageOptions.AutoSize = true;
|
this.btnManageOptions.AutoSize = true;
|
||||||
this.btnManageOptions.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnManageOptions.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnManageOptions.Location = new System.Drawing.Point(12, 525);
|
this.btnManageOptions.Location = new System.Drawing.Point(12, 500);
|
||||||
this.btnManageOptions.Name = "btnManageOptions";
|
this.btnManageOptions.Name = "btnManageOptions";
|
||||||
this.btnManageOptions.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnManageOptions.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
this.btnManageOptions.Size = new System.Drawing.Size(109, 25);
|
this.btnManageOptions.Size = new System.Drawing.Size(109, 25);
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
//
|
//
|
||||||
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.ClientSize = new System.Drawing.Size(510, 562);
|
this.ClientSize = new System.Drawing.Size(809, 537);
|
||||||
this.Controls.Add(this.btnManageOptions);
|
this.Controls.Add(this.btnManageOptions);
|
||||||
this.Controls.Add(this.panelContents);
|
this.Controls.Add(this.panelContents);
|
||||||
this.Controls.Add(this.panelButtons);
|
this.Controls.Add(this.panelButtons);
|
||||||
|
@@ -14,16 +14,16 @@ using TweetDuck.Updates;
|
|||||||
|
|
||||||
namespace TweetDuck.Core.Other{
|
namespace TweetDuck.Core.Other{
|
||||||
sealed partial class FormSettings : Form, FormManager.IAppDialog{
|
sealed partial class FormSettings : Form, FormManager.IAppDialog{
|
||||||
|
public bool ShouldReloadBrowser { get; private set; }
|
||||||
|
|
||||||
private readonly FormBrowser browser;
|
private readonly FormBrowser browser;
|
||||||
private readonly PluginManager plugins;
|
private readonly PluginManager plugins;
|
||||||
|
|
||||||
private readonly int buttonHeight;
|
private readonly int buttonHeight;
|
||||||
|
|
||||||
private readonly Dictionary<Type, SettingsTab> tabs = new Dictionary<Type, SettingsTab>(4);
|
private readonly Dictionary<Type, SettingsTab> tabs = new Dictionary<Type, SettingsTab>(8);
|
||||||
private SettingsTab currentTab;
|
private SettingsTab currentTab;
|
||||||
|
|
||||||
public bool ShouldReloadBrowser { get; private set; }
|
|
||||||
|
|
||||||
public FormSettings(FormBrowser browser, PluginManager plugins, UpdateHandler updates, AnalyticsManager analytics, Type startTab){
|
public FormSettings(FormBrowser browser, PluginManager plugins, UpdateHandler updates, AnalyticsManager analytics, Type startTab){
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
@@ -36,9 +36,9 @@ namespace TweetDuck.Core.Other{
|
|||||||
|
|
||||||
this.buttonHeight = BrowserUtils.Scale(39, this.GetDPIScale()) | 1;
|
this.buttonHeight = BrowserUtils.Scale(39, this.GetDPIScale()) | 1;
|
||||||
|
|
||||||
|
PrepareLoad();
|
||||||
|
|
||||||
AddButton("General", () => new TabSettingsGeneral(this.browser.ReloadColumns, updates));
|
AddButton("General", () => new TabSettingsGeneral(this.browser.ReloadColumns, updates));
|
||||||
AddButton("Locales", () => new TabSettingsLocales());
|
|
||||||
AddButton("System Tray", () => new TabSettingsTray());
|
|
||||||
AddButton("Notifications", () => new TabSettingsNotifications(new FormNotificationExample(this.browser, this.plugins)));
|
AddButton("Notifications", () => new TabSettingsNotifications(new FormNotificationExample(this.browser, this.plugins)));
|
||||||
AddButton("Sounds", () => new TabSettingsSounds(this.browser.PlaySoundNotification));
|
AddButton("Sounds", () => new TabSettingsSounds(this.browser.PlaySoundNotification));
|
||||||
AddButton("Feedback", () => new TabSettingsFeedback(analytics, AnalyticsReportGenerator.ExternalInfo.From(this.browser), this.plugins));
|
AddButton("Feedback", () => new TabSettingsFeedback(analytics, AnalyticsReportGenerator.ExternalInfo.From(this.browser), this.plugins));
|
||||||
@@ -47,21 +47,37 @@ namespace TweetDuck.Core.Other{
|
|||||||
SelectTab(tabs[startTab ?? typeof(TabSettingsGeneral)]);
|
SelectTab(tabs[startTab ?? typeof(TabSettingsGeneral)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FormSettings_FormClosing(object sender, FormClosingEventArgs e){
|
private void PrepareLoad(){
|
||||||
|
Program.Config.ProgramRestartRequested += Config_ProgramRestartRequested;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PrepareUnload(){ // TODO refactor this further later
|
||||||
currentTab.Control.OnClosing();
|
currentTab.Control.OnClosing();
|
||||||
|
|
||||||
|
Program.Config.ProgramRestartRequested -= Config_ProgramRestartRequested;
|
||||||
|
Program.Config.SaveAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Config_ProgramRestartRequested(object sender, EventArgs e){
|
||||||
|
if (FormMessage.Information("TweetDuck Options", "The application must restart for the option to take place. Do you want to restart now?", FormMessage.Yes, FormMessage.No)){
|
||||||
|
Program.Restart();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormSettings_FormClosing(object sender, FormClosingEventArgs e){
|
||||||
|
PrepareUnload();
|
||||||
|
|
||||||
foreach(SettingsTab tab in tabs.Values){
|
foreach(SettingsTab tab in tabs.Values){
|
||||||
if (tab.IsInitialized){
|
if (tab.IsInitialized){
|
||||||
tab.Control.Dispose();
|
tab.Control.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Program.UserConfig.Save();
|
|
||||||
browser.ResumeNotification();
|
browser.ResumeNotification();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnManageOptions_Click(object sender, EventArgs e){
|
private void btnManageOptions_Click(object sender, EventArgs e){
|
||||||
currentTab.Control.OnClosing();
|
PrepareUnload();
|
||||||
|
|
||||||
using(DialogSettingsManage dialog = new DialogSettingsManage(plugins)){
|
using(DialogSettingsManage dialog = new DialogSettingsManage(plugins)){
|
||||||
FormClosing -= FormSettings_FormClosing;
|
FormClosing -= FormSettings_FormClosing;
|
||||||
@@ -70,14 +86,17 @@ namespace TweetDuck.Core.Other{
|
|||||||
if (!dialog.IsRestarting){
|
if (!dialog.IsRestarting){
|
||||||
browser.ResumeNotification();
|
browser.ResumeNotification();
|
||||||
|
|
||||||
|
if (dialog.ShouldReloadBrowser){
|
||||||
BrowserProcessHandler.UpdatePrefs();
|
BrowserProcessHandler.UpdatePrefs();
|
||||||
ShouldReloadBrowser = dialog.ShouldReloadBrowser;
|
ShouldReloadBrowser = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
FormClosing += FormSettings_FormClosing;
|
FormClosing += FormSettings_FormClosing;
|
||||||
|
PrepareLoad();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -138,6 +157,10 @@ namespace TweetDuck.Core.Other{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tab.Control.Height < panelContents.Height-2){
|
||||||
|
tab.Control.Height = panelContents.Height-2; // fixes off-by-pixel error on high DPI
|
||||||
|
}
|
||||||
|
|
||||||
tab.Control.OnReady();
|
tab.Control.OnReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,6 +5,7 @@ using TweetDuck.Configuration;
|
|||||||
namespace TweetDuck.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;
|
||||||
|
protected static SystemConfig SysConfig => Program.SystemConfig;
|
||||||
|
|
||||||
public IEnumerable<Control> InteractiveControls{
|
public IEnumerable<Control> InteractiveControls{
|
||||||
get{
|
get{
|
||||||
@@ -31,11 +32,5 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
|
|
||||||
public virtual void OnReady(){}
|
public virtual void OnReady(){}
|
||||||
public virtual void OnClosing(){}
|
public virtual void OnClosing(){}
|
||||||
|
|
||||||
protected static void PromptRestart(){
|
|
||||||
if (FormMessage.Information("TweetDuck Options", "The application must restart for the option to take place. Do you want to restart now?", FormMessage.Yes, FormMessage.No)){
|
|
||||||
Program.Restart();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
this.textBoxReport.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.textBoxReport.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.textBoxReport.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.textBoxReport.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular);
|
||||||
this.textBoxReport.Location = new System.Drawing.Point(12, 45);
|
this.textBoxReport.Location = new System.Drawing.Point(12, 45);
|
||||||
this.textBoxReport.Multiline = true;
|
this.textBoxReport.Multiline = true;
|
||||||
this.textBoxReport.Name = "textBoxReport";
|
this.textBoxReport.Name = "textBoxReport";
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
//
|
//
|
||||||
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnClose.AutoSize = true;
|
this.btnClose.AutoSize = true;
|
||||||
this.btnClose.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnClose.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnClose.Location = new System.Drawing.Point(397, 525);
|
this.btnClose.Location = new System.Drawing.Point(397, 525);
|
||||||
this.btnClose.Name = "btnClose";
|
this.btnClose.Name = "btnClose";
|
||||||
this.btnClose.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnClose.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
// labelInfo
|
// labelInfo
|
||||||
//
|
//
|
||||||
this.labelInfo.AutoSize = true;
|
this.labelInfo.AutoSize = true;
|
||||||
this.labelInfo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelInfo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelInfo.Location = new System.Drawing.Point(12, 9);
|
this.labelInfo.Location = new System.Drawing.Point(12, 9);
|
||||||
this.labelInfo.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
this.labelInfo.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
||||||
this.labelInfo.Name = "labelInfo";
|
this.labelInfo.Name = "labelInfo";
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
// textBoxBrowserCSS
|
// textBoxBrowserCSS
|
||||||
//
|
//
|
||||||
this.textBoxBrowserCSS.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.textBoxBrowserCSS.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.textBoxBrowserCSS.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.textBoxBrowserCSS.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular);
|
||||||
this.textBoxBrowserCSS.Location = new System.Drawing.Point(3, 3);
|
this.textBoxBrowserCSS.Location = new System.Drawing.Point(3, 3);
|
||||||
this.textBoxBrowserCSS.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
this.textBoxBrowserCSS.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
||||||
this.textBoxBrowserCSS.Multiline = true;
|
this.textBoxBrowserCSS.Multiline = true;
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
// textBoxNotificationCSS
|
// textBoxNotificationCSS
|
||||||
//
|
//
|
||||||
this.textBoxNotificationCSS.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.textBoxNotificationCSS.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.textBoxNotificationCSS.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.textBoxNotificationCSS.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular);
|
||||||
this.textBoxNotificationCSS.Location = new System.Drawing.Point(3, 3);
|
this.textBoxNotificationCSS.Location = new System.Drawing.Point(3, 3);
|
||||||
this.textBoxNotificationCSS.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
this.textBoxNotificationCSS.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0);
|
||||||
this.textBoxNotificationCSS.Multiline = true;
|
this.textBoxNotificationCSS.Multiline = true;
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.tabPanel.Controls.Add(this.tabPageBrowser);
|
this.tabPanel.Controls.Add(this.tabPageBrowser);
|
||||||
this.tabPanel.Controls.Add(this.tabPageNotification);
|
this.tabPanel.Controls.Add(this.tabPageNotification);
|
||||||
this.tabPanel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.tabPanel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.tabPanel.Location = new System.Drawing.Point(12, 12);
|
this.tabPanel.Location = new System.Drawing.Point(12, 12);
|
||||||
this.tabPanel.Name = "tabPanel";
|
this.tabPanel.Name = "tabPanel";
|
||||||
this.tabPanel.SelectedIndex = 0;
|
this.tabPanel.SelectedIndex = 0;
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
this.textBoxArgs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.textBoxArgs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.textBoxArgs.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.textBoxArgs.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular);
|
||||||
this.textBoxArgs.Location = new System.Drawing.Point(12, 30);
|
this.textBoxArgs.Location = new System.Drawing.Point(12, 30);
|
||||||
this.textBoxArgs.Multiline = true;
|
this.textBoxArgs.Multiline = true;
|
||||||
this.textBoxArgs.Name = "textBoxArgs";
|
this.textBoxArgs.Name = "textBoxArgs";
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
//
|
//
|
||||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnCancel.AutoSize = true;
|
this.btnCancel.AutoSize = true;
|
||||||
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnCancel.Location = new System.Drawing.Point(377, 225);
|
this.btnCancel.Location = new System.Drawing.Point(377, 225);
|
||||||
this.btnCancel.Name = "btnCancel";
|
this.btnCancel.Name = "btnCancel";
|
||||||
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
//
|
//
|
||||||
this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnApply.AutoSize = true;
|
this.btnApply.AutoSize = true;
|
||||||
this.btnApply.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnApply.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnApply.Location = new System.Drawing.Point(440, 225);
|
this.btnApply.Location = new System.Drawing.Point(440, 225);
|
||||||
this.btnApply.Name = "btnApply";
|
this.btnApply.Name = "btnApply";
|
||||||
this.btnApply.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnApply.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
//
|
//
|
||||||
this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.btnHelp.AutoSize = true;
|
this.btnHelp.AutoSize = true;
|
||||||
this.btnHelp.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnHelp.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnHelp.Location = new System.Drawing.Point(12, 225);
|
this.btnHelp.Location = new System.Drawing.Point(12, 225);
|
||||||
this.btnHelp.Name = "btnHelp";
|
this.btnHelp.Name = "btnHelp";
|
||||||
this.btnHelp.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnHelp.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
// labelWarning
|
// labelWarning
|
||||||
//
|
//
|
||||||
this.labelWarning.AutoSize = true;
|
this.labelWarning.AutoSize = true;
|
||||||
this.labelWarning.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelWarning.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelWarning.Location = new System.Drawing.Point(12, 9);
|
this.labelWarning.Location = new System.Drawing.Point(12, 9);
|
||||||
this.labelWarning.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
this.labelWarning.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
||||||
this.labelWarning.Name = "labelWarning";
|
this.labelWarning.Name = "labelWarning";
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
//
|
//
|
||||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnCancel.AutoSize = true;
|
this.btnCancel.AutoSize = true;
|
||||||
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnCancel.Location = new System.Drawing.Point(165, 92);
|
this.btnCancel.Location = new System.Drawing.Point(165, 92);
|
||||||
this.btnCancel.Name = "btnCancel";
|
this.btnCancel.Name = "btnCancel";
|
||||||
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
this.btnContinue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnContinue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnContinue.AutoSize = true;
|
this.btnContinue.AutoSize = true;
|
||||||
this.btnContinue.Enabled = false;
|
this.btnContinue.Enabled = false;
|
||||||
this.btnContinue.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnContinue.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnContinue.Location = new System.Drawing.Point(114, 92);
|
this.btnContinue.Location = new System.Drawing.Point(114, 92);
|
||||||
this.btnContinue.Name = "btnContinue";
|
this.btnContinue.Name = "btnContinue";
|
||||||
this.btnContinue.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnContinue.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
// cbProgramConfig
|
// cbProgramConfig
|
||||||
//
|
//
|
||||||
this.cbProgramConfig.AutoSize = true;
|
this.cbProgramConfig.AutoSize = true;
|
||||||
this.cbProgramConfig.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.cbProgramConfig.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.cbProgramConfig.Location = new System.Drawing.Point(3, 3);
|
this.cbProgramConfig.Location = new System.Drawing.Point(3, 3);
|
||||||
this.cbProgramConfig.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.cbProgramConfig.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.cbProgramConfig.Name = "cbProgramConfig";
|
this.cbProgramConfig.Name = "cbProgramConfig";
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
// cbSession
|
// cbSession
|
||||||
//
|
//
|
||||||
this.cbSession.AutoSize = true;
|
this.cbSession.AutoSize = true;
|
||||||
this.cbSession.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.cbSession.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.cbSession.Location = new System.Drawing.Point(3, 51);
|
this.cbSession.Location = new System.Drawing.Point(3, 51);
|
||||||
this.cbSession.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.cbSession.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.cbSession.Name = "cbSession";
|
this.cbSession.Name = "cbSession";
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
// cbPluginData
|
// cbPluginData
|
||||||
//
|
//
|
||||||
this.cbPluginData.AutoSize = true;
|
this.cbPluginData.AutoSize = true;
|
||||||
this.cbPluginData.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.cbPluginData.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.cbPluginData.Location = new System.Drawing.Point(3, 75);
|
this.cbPluginData.Location = new System.Drawing.Point(3, 75);
|
||||||
this.cbPluginData.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.cbPluginData.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.cbPluginData.Name = "cbPluginData";
|
this.cbPluginData.Name = "cbPluginData";
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
// cbSystemConfig
|
// cbSystemConfig
|
||||||
//
|
//
|
||||||
this.cbSystemConfig.AutoSize = true;
|
this.cbSystemConfig.AutoSize = true;
|
||||||
this.cbSystemConfig.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.cbSystemConfig.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.cbSystemConfig.Location = new System.Drawing.Point(3, 27);
|
this.cbSystemConfig.Location = new System.Drawing.Point(3, 27);
|
||||||
this.cbSystemConfig.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.cbSystemConfig.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.cbSystemConfig.Name = "cbSystemConfig";
|
this.cbSystemConfig.Name = "cbSystemConfig";
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
// radioImport
|
// radioImport
|
||||||
//
|
//
|
||||||
this.radioImport.AutoSize = true;
|
this.radioImport.AutoSize = true;
|
||||||
this.radioImport.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioImport.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.radioImport.Location = new System.Drawing.Point(3, 3);
|
this.radioImport.Location = new System.Drawing.Point(3, 3);
|
||||||
this.radioImport.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.radioImport.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.radioImport.Name = "radioImport";
|
this.radioImport.Name = "radioImport";
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
// radioExport
|
// radioExport
|
||||||
//
|
//
|
||||||
this.radioExport.AutoSize = true;
|
this.radioExport.AutoSize = true;
|
||||||
this.radioExport.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioExport.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.radioExport.Location = new System.Drawing.Point(3, 27);
|
this.radioExport.Location = new System.Drawing.Point(3, 27);
|
||||||
this.radioExport.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.radioExport.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.radioExport.Name = "radioExport";
|
this.radioExport.Name = "radioExport";
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
// radioReset
|
// radioReset
|
||||||
//
|
//
|
||||||
this.radioReset.AutoSize = true;
|
this.radioReset.AutoSize = true;
|
||||||
this.radioReset.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioReset.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.radioReset.Location = new System.Drawing.Point(3, 51);
|
this.radioReset.Location = new System.Drawing.Point(3, 51);
|
||||||
this.radioReset.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.radioReset.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.radioReset.Name = "radioReset";
|
this.radioReset.Name = "radioReset";
|
||||||
|
@@ -4,6 +4,7 @@ using System.IO;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using TweetDuck.Configuration;
|
using TweetDuck.Configuration;
|
||||||
using TweetDuck.Core.Management;
|
using TweetDuck.Core.Management;
|
||||||
|
using TweetDuck.Core.Utils;
|
||||||
using TweetDuck.Plugins;
|
using TweetDuck.Plugins;
|
||||||
|
|
||||||
namespace TweetDuck.Core.Other.Settings.Dialogs{
|
namespace TweetDuck.Core.Other.Settings.Dialogs{
|
||||||
@@ -23,6 +24,10 @@ namespace TweetDuck.Core.Other.Settings.Dialogs{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool SelectedItemsForceRestart{
|
||||||
|
get => _selectedItems.HasFlag(ProfileManager.Items.Session);
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsRestarting { get; private set; }
|
public bool IsRestarting { get; private set; }
|
||||||
public bool ShouldReloadBrowser { get; private set; }
|
public bool ShouldReloadBrowser { get; private set; }
|
||||||
|
|
||||||
@@ -31,6 +36,7 @@ namespace TweetDuck.Core.Other.Settings.Dialogs{
|
|||||||
|
|
||||||
private State currentState;
|
private State currentState;
|
||||||
private ProfileManager importManager;
|
private ProfileManager importManager;
|
||||||
|
private bool requestedRestartFromConfig;
|
||||||
|
|
||||||
private ProfileManager.Items _selectedItems = ProfileManager.Items.None;
|
private ProfileManager.Items _selectedItems = ProfileManager.Items.None;
|
||||||
|
|
||||||
@@ -116,37 +122,38 @@ namespace TweetDuck.Core.Other.Settings.Dialogs{
|
|||||||
|
|
||||||
case State.Reset:
|
case State.Reset:
|
||||||
if (FormMessage.Warning("Reset TweetDuck Options", "This will reset the selected items. Are you sure you want to proceed?", FormMessage.Yes, FormMessage.No)){
|
if (FormMessage.Warning("Reset TweetDuck Options", "This will reset the selected items. Are you sure you want to proceed?", FormMessage.Yes, FormMessage.No)){
|
||||||
|
Program.Config.ProgramRestartRequested += Config_ProgramRestartRequested;
|
||||||
|
|
||||||
if (SelectedItems.HasFlag(ProfileManager.Items.UserConfig)){
|
if (SelectedItems.HasFlag(ProfileManager.Items.UserConfig)){
|
||||||
Program.UserConfig.Reset();
|
Program.UserConfig.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SelectedItems.HasFlag(ProfileManager.Items.SystemConfig)){
|
if (SelectedItems.HasFlag(ProfileManager.Items.SystemConfig)){
|
||||||
try{
|
Program.SystemConfig.Reset();
|
||||||
File.Delete(Program.SystemConfigFilePath);
|
|
||||||
}catch(Exception ex){
|
|
||||||
Program.Reporter.HandleException("System Config Reset Error", "Could not delete system config.", true, ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Program.Config.ProgramRestartRequested -= Config_ProgramRestartRequested;
|
||||||
|
|
||||||
if (SelectedItems.HasFlag(ProfileManager.Items.PluginData)){
|
if (SelectedItems.HasFlag(ProfileManager.Items.PluginData)){
|
||||||
try{
|
try{
|
||||||
File.Delete(Program.PluginConfigFilePath);
|
File.Delete(Program.PluginConfigFilePath);
|
||||||
Directory.Delete(Program.PluginDataPath, true);
|
Directory.Delete(Program.PluginDataPath, true);
|
||||||
}catch(Exception ex){
|
}catch(Exception ex){
|
||||||
Program.Reporter.HandleException("Plugin Data Reset Error", "Could not delete plugin data.", true, ex);
|
Program.Reporter.HandleException("Profile Reset", "Could not delete plugin data.", true, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SelectedItems.HasFlag(ProfileManager.Items.Session)){
|
if (SelectedItemsForceRestart){
|
||||||
RestartProgram(Arguments.ArgDeleteCookies);
|
RestartProgram(SelectedItems.HasFlag(ProfileManager.Items.Session) ? new string[]{ Arguments.ArgDeleteCookies } : StringUtils.EmptyArray);
|
||||||
}
|
}
|
||||||
else if (SelectedItems.HasFlag(ProfileManager.Items.SystemConfig)){
|
else if (requestedRestartFromConfig){
|
||||||
|
if (FormMessage.Information("Profile Reset", "The application must restart for some of the restored options to take place. Do you want to restart now?", FormMessage.Yes, FormMessage.No)){
|
||||||
RestartProgram();
|
RestartProgram();
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
ShouldReloadBrowser = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShouldReloadBrowser = true;
|
||||||
|
|
||||||
DialogResult = DialogResult.OK;
|
DialogResult = DialogResult.OK;
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
@@ -155,20 +162,21 @@ namespace TweetDuck.Core.Other.Settings.Dialogs{
|
|||||||
|
|
||||||
case State.Import:
|
case State.Import:
|
||||||
if (importManager.Import(SelectedItems)){
|
if (importManager.Import(SelectedItems)){
|
||||||
Program.UserConfig.Reload();
|
Program.Config.ProgramRestartRequested += Config_ProgramRestartRequested;
|
||||||
|
Program.Config.ReloadAll();
|
||||||
|
Program.Config.ProgramRestartRequested -= Config_ProgramRestartRequested;
|
||||||
|
|
||||||
if (importManager.IsRestarting){
|
if (SelectedItemsForceRestart){
|
||||||
if (SelectedItems.HasFlag(ProfileManager.Items.Session)){
|
RestartProgram(SelectedItems.HasFlag(ProfileManager.Items.Session) ? new string[]{ Arguments.ArgImportCookies } : StringUtils.EmptyArray);
|
||||||
RestartProgram(Arguments.ArgImportCookies);
|
|
||||||
}
|
}
|
||||||
else if (SelectedItems.HasFlag(ProfileManager.Items.SystemConfig)){
|
else if (requestedRestartFromConfig){
|
||||||
|
if (FormMessage.Information("Profile Import", "The application must restart for some of the imported options to take place. Do you want to restart now?", FormMessage.Yes, FormMessage.No)){
|
||||||
RestartProgram();
|
RestartProgram();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
}
|
||||||
|
|
||||||
ShouldReloadBrowser = true;
|
ShouldReloadBrowser = true;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
DialogResult = DialogResult.OK;
|
DialogResult = DialogResult.OK;
|
||||||
Close();
|
Close();
|
||||||
@@ -191,9 +199,6 @@ namespace TweetDuck.Core.Other.Settings.Dialogs{
|
|||||||
file = dialog.FileName;
|
file = dialog.FileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
Program.UserConfig.Save();
|
|
||||||
Program.SystemConfig.Save();
|
|
||||||
|
|
||||||
new ProfileManager(file, plugins).Export(SelectedItems);
|
new ProfileManager(file, plugins).Export(SelectedItems);
|
||||||
|
|
||||||
DialogResult = DialogResult.OK;
|
DialogResult = DialogResult.OK;
|
||||||
@@ -207,15 +212,19 @@ namespace TweetDuck.Core.Other.Settings.Dialogs{
|
|||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Config_ProgramRestartRequested(object sender, EventArgs e){
|
||||||
|
requestedRestartFromConfig = true;
|
||||||
|
}
|
||||||
|
|
||||||
private void SetFlag(ProfileManager.Items flag, bool enable){
|
private void SetFlag(ProfileManager.Items flag, bool enable){
|
||||||
_selectedItems = enable ? _selectedItems | flag : _selectedItems & ~flag;
|
_selectedItems = enable ? _selectedItems | flag : _selectedItems & ~flag;
|
||||||
btnContinue.Enabled = _selectedItems != ProfileManager.Items.None;
|
btnContinue.Enabled = _selectedItems != ProfileManager.Items.None;
|
||||||
|
|
||||||
if (currentState == State.Import){
|
if (currentState == State.Import){
|
||||||
btnContinue.Text = _selectedItems.NeedsRestart() ? "Import && Restart" : "Import Profile";
|
btnContinue.Text = SelectedItemsForceRestart ? "Import && Restart" : "Import Profile";
|
||||||
}
|
}
|
||||||
else if (currentState == State.Reset){
|
else if (currentState == State.Reset){
|
||||||
btnContinue.Text = _selectedItems.NeedsRestart() ? "Restore && Restart" : "Restore Defaults";
|
btnContinue.Text = SelectedItemsForceRestart ? "Restore && Restart" : "Restore Defaults";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
//
|
//
|
||||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnCancel.AutoSize = true;
|
this.btnCancel.AutoSize = true;
|
||||||
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnCancel.Location = new System.Drawing.Point(215, 146);
|
this.btnCancel.Location = new System.Drawing.Point(215, 146);
|
||||||
this.btnCancel.Name = "btnCancel";
|
this.btnCancel.Name = "btnCancel";
|
||||||
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
//
|
//
|
||||||
this.btnRestart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnRestart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnRestart.AutoSize = true;
|
this.btnRestart.AutoSize = true;
|
||||||
this.btnRestart.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnRestart.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnRestart.Location = new System.Drawing.Point(152, 146);
|
this.btnRestart.Location = new System.Drawing.Point(152, 146);
|
||||||
this.btnRestart.Name = "btnRestart";
|
this.btnRestart.Name = "btnRestart";
|
||||||
this.btnRestart.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnRestart.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
// cbLogging
|
// cbLogging
|
||||||
//
|
//
|
||||||
this.cbLogging.AutoSize = true;
|
this.cbLogging.AutoSize = true;
|
||||||
this.cbLogging.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.cbLogging.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.cbLogging.Location = new System.Drawing.Point(3, 3);
|
this.cbLogging.Location = new System.Drawing.Point(3, 3);
|
||||||
this.cbLogging.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
this.cbLogging.Margin = new System.Windows.Forms.Padding(3, 3, 3, 2);
|
||||||
this.cbLogging.Name = "cbLogging";
|
this.cbLogging.Name = "cbLogging";
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
//
|
//
|
||||||
// tbDataFolder
|
// tbDataFolder
|
||||||
//
|
//
|
||||||
this.tbDataFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.tbDataFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.tbDataFolder.Location = new System.Drawing.Point(3, 54);
|
this.tbDataFolder.Location = new System.Drawing.Point(3, 54);
|
||||||
this.tbDataFolder.Name = "tbDataFolder";
|
this.tbDataFolder.Name = "tbDataFolder";
|
||||||
this.tbDataFolder.Size = new System.Drawing.Size(260, 23);
|
this.tbDataFolder.Size = new System.Drawing.Size(260, 23);
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
this.tbShortcutTarget.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.tbShortcutTarget.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.tbShortcutTarget.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.tbShortcutTarget.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.tbShortcutTarget.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.tbShortcutTarget.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.tbShortcutTarget.Location = new System.Drawing.Point(3, 110);
|
this.tbShortcutTarget.Location = new System.Drawing.Point(3, 110);
|
||||||
this.tbShortcutTarget.Name = "tbShortcutTarget";
|
this.tbShortcutTarget.Name = "tbShortcutTarget";
|
||||||
this.tbShortcutTarget.ReadOnly = true;
|
this.tbShortcutTarget.ReadOnly = true;
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
// labelDataFolder
|
// labelDataFolder
|
||||||
//
|
//
|
||||||
this.labelDataFolder.AutoSize = true;
|
this.labelDataFolder.AutoSize = true;
|
||||||
this.labelDataFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDataFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelDataFolder.Location = new System.Drawing.Point(3, 36);
|
this.labelDataFolder.Location = new System.Drawing.Point(3, 36);
|
||||||
this.labelDataFolder.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelDataFolder.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelDataFolder.Name = "labelDataFolder";
|
this.labelDataFolder.Name = "labelDataFolder";
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
// labelShortcutTarget
|
// labelShortcutTarget
|
||||||
//
|
//
|
||||||
this.labelShortcutTarget.AutoSize = true;
|
this.labelShortcutTarget.AutoSize = true;
|
||||||
this.labelShortcutTarget.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelShortcutTarget.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelShortcutTarget.Location = new System.Drawing.Point(3, 92);
|
this.labelShortcutTarget.Location = new System.Drawing.Point(3, 92);
|
||||||
this.labelShortcutTarget.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelShortcutTarget.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelShortcutTarget.Name = "labelShortcutTarget";
|
this.labelShortcutTarget.Name = "labelShortcutTarget";
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
this.textBoxUrl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.textBoxUrl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.textBoxUrl.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.textBoxUrl.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.textBoxUrl.Location = new System.Drawing.Point(12, 30);
|
this.textBoxUrl.Location = new System.Drawing.Point(12, 30);
|
||||||
this.textBoxUrl.Name = "textBoxUrl";
|
this.textBoxUrl.Name = "textBoxUrl";
|
||||||
this.textBoxUrl.Size = new System.Drawing.Size(310, 23);
|
this.textBoxUrl.Size = new System.Drawing.Size(310, 23);
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
//
|
//
|
||||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnCancel.AutoSize = true;
|
this.btnCancel.AutoSize = true;
|
||||||
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnCancel.Location = new System.Drawing.Point(207, 59);
|
this.btnCancel.Location = new System.Drawing.Point(207, 59);
|
||||||
this.btnCancel.Name = "btnCancel";
|
this.btnCancel.Name = "btnCancel";
|
||||||
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
//
|
//
|
||||||
this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnApply.AutoSize = true;
|
this.btnApply.AutoSize = true;
|
||||||
this.btnApply.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnApply.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnApply.Location = new System.Drawing.Point(270, 59);
|
this.btnApply.Location = new System.Drawing.Point(270, 59);
|
||||||
this.btnApply.Name = "btnApply";
|
this.btnApply.Name = "btnApply";
|
||||||
this.btnApply.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnApply.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
// labelInfo
|
// labelInfo
|
||||||
//
|
//
|
||||||
this.labelInfo.AutoSize = true;
|
this.labelInfo.AutoSize = true;
|
||||||
this.labelInfo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelInfo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelInfo.Location = new System.Drawing.Point(12, 9);
|
this.labelInfo.Location = new System.Drawing.Point(12, 9);
|
||||||
this.labelInfo.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
this.labelInfo.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
||||||
this.labelInfo.Name = "labelInfo";
|
this.labelInfo.Name = "labelInfo";
|
||||||
|
155
Core/Other/Settings/TabSettingsAdvanced.Designer.cs
generated
155
Core/Other/Settings/TabSettingsAdvanced.Designer.cs
generated
@@ -25,7 +25,6 @@
|
|||||||
private void InitializeComponent() {
|
private void InitializeComponent() {
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
this.btnClearCache = new System.Windows.Forms.Button();
|
this.btnClearCache = new System.Windows.Forms.Button();
|
||||||
this.checkHardwareAcceleration = new System.Windows.Forms.CheckBox();
|
|
||||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.btnEditCefArgs = new System.Windows.Forms.Button();
|
this.btnEditCefArgs = new System.Windows.Forms.Button();
|
||||||
this.btnEditCSS = new System.Windows.Forms.Button();
|
this.btnEditCSS = new System.Windows.Forms.Button();
|
||||||
@@ -37,9 +36,8 @@
|
|||||||
this.checkClearCacheAuto = new System.Windows.Forms.CheckBox();
|
this.checkClearCacheAuto = new System.Windows.Forms.CheckBox();
|
||||||
this.labelApp = new System.Windows.Forms.Label();
|
this.labelApp = new System.Windows.Forms.Label();
|
||||||
this.panelAppButtons = new System.Windows.Forms.Panel();
|
this.panelAppButtons = new System.Windows.Forms.Panel();
|
||||||
this.labelPerformance = new System.Windows.Forms.Label();
|
|
||||||
this.panelClearCacheAuto = new System.Windows.Forms.Panel();
|
|
||||||
this.labelCache = new System.Windows.Forms.Label();
|
this.labelCache = new System.Windows.Forms.Label();
|
||||||
|
this.panelClearCacheAuto = new System.Windows.Forms.Panel();
|
||||||
this.panelConfiguration = new System.Windows.Forms.Panel();
|
this.panelConfiguration = new System.Windows.Forms.Panel();
|
||||||
this.labelConfiguration = new System.Windows.Forms.Label();
|
this.labelConfiguration = new System.Windows.Forms.Label();
|
||||||
this.flowPanel = new System.Windows.Forms.FlowLayoutPanel();
|
this.flowPanel = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
@@ -52,99 +50,87 @@
|
|||||||
//
|
//
|
||||||
// btnClearCache
|
// btnClearCache
|
||||||
//
|
//
|
||||||
this.btnClearCache.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnClearCache.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnClearCache.Location = new System.Drawing.Point(5, 179);
|
this.btnClearCache.Location = new System.Drawing.Point(5, 135);
|
||||||
this.btnClearCache.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.btnClearCache.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
||||||
this.btnClearCache.Name = "btnClearCache";
|
this.btnClearCache.Name = "btnClearCache";
|
||||||
this.btnClearCache.Size = new System.Drawing.Size(144, 25);
|
this.btnClearCache.Size = new System.Drawing.Size(143, 25);
|
||||||
this.btnClearCache.TabIndex = 5;
|
this.btnClearCache.TabIndex = 3;
|
||||||
this.btnClearCache.Text = "Clear Cache (...)";
|
this.btnClearCache.Text = "Clear Cache (...)";
|
||||||
this.btnClearCache.UseVisualStyleBackColor = true;
|
this.btnClearCache.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// checkHardwareAcceleration
|
|
||||||
//
|
|
||||||
this.checkHardwareAcceleration.AutoSize = true;
|
|
||||||
this.checkHardwareAcceleration.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.checkHardwareAcceleration.Location = new System.Drawing.Point(6, 128);
|
|
||||||
this.checkHardwareAcceleration.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
|
||||||
this.checkHardwareAcceleration.Name = "checkHardwareAcceleration";
|
|
||||||
this.checkHardwareAcceleration.Size = new System.Drawing.Size(146, 19);
|
|
||||||
this.checkHardwareAcceleration.TabIndex = 3;
|
|
||||||
this.checkHardwareAcceleration.Text = "Hardware Acceleration";
|
|
||||||
this.checkHardwareAcceleration.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// btnEditCefArgs
|
// btnEditCefArgs
|
||||||
//
|
//
|
||||||
this.btnEditCefArgs.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnEditCefArgs.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnEditCefArgs.Location = new System.Drawing.Point(5, 3);
|
this.btnEditCefArgs.Location = new System.Drawing.Point(5, 3);
|
||||||
this.btnEditCefArgs.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.btnEditCefArgs.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
||||||
this.btnEditCefArgs.Name = "btnEditCefArgs";
|
this.btnEditCefArgs.Name = "btnEditCefArgs";
|
||||||
this.btnEditCefArgs.Size = new System.Drawing.Size(144, 25);
|
this.btnEditCefArgs.Size = new System.Drawing.Size(143, 25);
|
||||||
this.btnEditCefArgs.TabIndex = 0;
|
this.btnEditCefArgs.TabIndex = 0;
|
||||||
this.btnEditCefArgs.Text = "Edit CEF Arguments";
|
this.btnEditCefArgs.Text = "Edit CEF Arguments";
|
||||||
this.btnEditCefArgs.UseVisualStyleBackColor = true;
|
this.btnEditCefArgs.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// btnEditCSS
|
// btnEditCSS
|
||||||
//
|
//
|
||||||
this.btnEditCSS.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnEditCSS.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnEditCSS.Location = new System.Drawing.Point(155, 3);
|
this.btnEditCSS.Location = new System.Drawing.Point(154, 3);
|
||||||
this.btnEditCSS.Name = "btnEditCSS";
|
this.btnEditCSS.Name = "btnEditCSS";
|
||||||
this.btnEditCSS.Size = new System.Drawing.Size(144, 25);
|
this.btnEditCSS.Size = new System.Drawing.Size(143, 25);
|
||||||
this.btnEditCSS.TabIndex = 1;
|
this.btnEditCSS.TabIndex = 1;
|
||||||
this.btnEditCSS.Text = "Edit CSS";
|
this.btnEditCSS.Text = "Edit CSS";
|
||||||
this.btnEditCSS.UseVisualStyleBackColor = true;
|
this.btnEditCSS.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// btnRestartArgs
|
// btnRestartArgs
|
||||||
//
|
//
|
||||||
this.btnRestartArgs.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnRestartArgs.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnRestartArgs.Location = new System.Drawing.Point(155, 32);
|
this.btnRestartArgs.Location = new System.Drawing.Point(154, 32);
|
||||||
this.btnRestartArgs.Name = "btnRestartArgs";
|
this.btnRestartArgs.Name = "btnRestartArgs";
|
||||||
this.btnRestartArgs.Size = new System.Drawing.Size(144, 25);
|
this.btnRestartArgs.Size = new System.Drawing.Size(143, 25);
|
||||||
this.btnRestartArgs.TabIndex = 3;
|
this.btnRestartArgs.TabIndex = 3;
|
||||||
this.btnRestartArgs.Text = "Restart with Arguments";
|
this.btnRestartArgs.Text = "Restart with Arguments";
|
||||||
this.btnRestartArgs.UseVisualStyleBackColor = true;
|
this.btnRestartArgs.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// btnRestart
|
// btnRestart
|
||||||
//
|
//
|
||||||
this.btnRestart.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnRestart.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnRestart.Location = new System.Drawing.Point(155, 3);
|
this.btnRestart.Location = new System.Drawing.Point(154, 3);
|
||||||
this.btnRestart.Name = "btnRestart";
|
this.btnRestart.Name = "btnRestart";
|
||||||
this.btnRestart.Size = new System.Drawing.Size(144, 25);
|
this.btnRestart.Size = new System.Drawing.Size(143, 25);
|
||||||
this.btnRestart.TabIndex = 2;
|
this.btnRestart.TabIndex = 2;
|
||||||
this.btnRestart.Text = "Restart the Program";
|
this.btnRestart.Text = "Restart the Program";
|
||||||
this.btnRestart.UseVisualStyleBackColor = true;
|
this.btnRestart.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// btnOpenAppFolder
|
// btnOpenAppFolder
|
||||||
//
|
//
|
||||||
this.btnOpenAppFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnOpenAppFolder.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnOpenAppFolder.Location = new System.Drawing.Point(5, 3);
|
this.btnOpenAppFolder.Location = new System.Drawing.Point(5, 3);
|
||||||
this.btnOpenAppFolder.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.btnOpenAppFolder.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
||||||
this.btnOpenAppFolder.Name = "btnOpenAppFolder";
|
this.btnOpenAppFolder.Name = "btnOpenAppFolder";
|
||||||
this.btnOpenAppFolder.Size = new System.Drawing.Size(144, 25);
|
this.btnOpenAppFolder.Size = new System.Drawing.Size(143, 25);
|
||||||
this.btnOpenAppFolder.TabIndex = 0;
|
this.btnOpenAppFolder.TabIndex = 0;
|
||||||
this.btnOpenAppFolder.Text = "Open Program Folder";
|
this.btnOpenAppFolder.Text = "Open Program Folder";
|
||||||
this.btnOpenAppFolder.UseVisualStyleBackColor = true;
|
this.btnOpenAppFolder.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// btnOpenDataFolder
|
// btnOpenDataFolder
|
||||||
//
|
//
|
||||||
this.btnOpenDataFolder.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnOpenDataFolder.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnOpenDataFolder.Location = new System.Drawing.Point(5, 32);
|
this.btnOpenDataFolder.Location = new System.Drawing.Point(5, 32);
|
||||||
this.btnOpenDataFolder.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.btnOpenDataFolder.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
||||||
this.btnOpenDataFolder.Name = "btnOpenDataFolder";
|
this.btnOpenDataFolder.Name = "btnOpenDataFolder";
|
||||||
this.btnOpenDataFolder.Size = new System.Drawing.Size(144, 25);
|
this.btnOpenDataFolder.Size = new System.Drawing.Size(143, 25);
|
||||||
this.btnOpenDataFolder.TabIndex = 1;
|
this.btnOpenDataFolder.TabIndex = 1;
|
||||||
this.btnOpenDataFolder.Text = "Open Data Folder";
|
this.btnOpenDataFolder.Text = "Open Data Folder";
|
||||||
this.btnOpenDataFolder.UseVisualStyleBackColor = true;
|
this.btnOpenDataFolder.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// numClearCacheThreshold
|
// numClearCacheThreshold
|
||||||
//
|
//
|
||||||
this.numClearCacheThreshold.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.numClearCacheThreshold.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.numClearCacheThreshold.Increment = new decimal(new int[] {
|
this.numClearCacheThreshold.Increment = new decimal(new int[] {
|
||||||
50,
|
50,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.numClearCacheThreshold.Location = new System.Drawing.Point(246, 5);
|
this.numClearCacheThreshold.Location = new System.Drawing.Point(210, 5);
|
||||||
this.numClearCacheThreshold.Maximum = new decimal(new int[] {
|
this.numClearCacheThreshold.Maximum = new decimal(new int[] {
|
||||||
1000,
|
1000,
|
||||||
0,
|
0,
|
||||||
@@ -156,7 +142,7 @@
|
|||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.numClearCacheThreshold.Name = "numClearCacheThreshold";
|
this.numClearCacheThreshold.Name = "numClearCacheThreshold";
|
||||||
this.numClearCacheThreshold.Size = new System.Drawing.Size(68, 23);
|
this.numClearCacheThreshold.Size = new System.Drawing.Size(89, 23);
|
||||||
this.numClearCacheThreshold.TabIndex = 1;
|
this.numClearCacheThreshold.TabIndex = 1;
|
||||||
this.numClearCacheThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
this.numClearCacheThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||||
this.numClearCacheThreshold.TextSuffix = " MB";
|
this.numClearCacheThreshold.TextSuffix = " MB";
|
||||||
@@ -169,29 +155,28 @@
|
|||||||
// checkClearCacheAuto
|
// checkClearCacheAuto
|
||||||
//
|
//
|
||||||
this.checkClearCacheAuto.AutoSize = true;
|
this.checkClearCacheAuto.AutoSize = true;
|
||||||
this.checkClearCacheAuto.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkClearCacheAuto.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkClearCacheAuto.Location = new System.Drawing.Point(6, 6);
|
this.checkClearCacheAuto.Location = new System.Drawing.Point(6, 6);
|
||||||
this.checkClearCacheAuto.Margin = new System.Windows.Forms.Padding(6, 6, 0, 2);
|
this.checkClearCacheAuto.Margin = new System.Windows.Forms.Padding(6, 6, 0, 2);
|
||||||
this.checkClearCacheAuto.Name = "checkClearCacheAuto";
|
this.checkClearCacheAuto.Name = "checkClearCacheAuto";
|
||||||
this.checkClearCacheAuto.Size = new System.Drawing.Size(237, 19);
|
this.checkClearCacheAuto.Size = new System.Drawing.Size(201, 19);
|
||||||
this.checkClearCacheAuto.TabIndex = 0;
|
this.checkClearCacheAuto.TabIndex = 0;
|
||||||
this.checkClearCacheAuto.Text = "Clear Cache Automatically When Above";
|
this.checkClearCacheAuto.Text = "Clear Automatically When Above";
|
||||||
this.checkClearCacheAuto.UseVisualStyleBackColor = true;
|
this.checkClearCacheAuto.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// labelApp
|
// labelApp
|
||||||
//
|
//
|
||||||
this.labelApp.AutoSize = true;
|
this.labelApp.AutoSize = true;
|
||||||
this.labelApp.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelApp.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelApp.Location = new System.Drawing.Point(0, 0);
|
this.labelApp.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelApp.Margin = new System.Windows.Forms.Padding(0);
|
this.labelApp.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelApp.Name = "labelApp";
|
this.labelApp.Name = "labelApp";
|
||||||
this.labelApp.Size = new System.Drawing.Size(37, 20);
|
this.labelApp.Size = new System.Drawing.Size(97, 19);
|
||||||
this.labelApp.TabIndex = 0;
|
this.labelApp.TabIndex = 0;
|
||||||
this.labelApp.Text = "App";
|
this.labelApp.Text = "APPLICATION";
|
||||||
//
|
//
|
||||||
// panelAppButtons
|
// panelAppButtons
|
||||||
//
|
//
|
||||||
this.panelAppButtons.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelAppButtons.Controls.Add(this.btnOpenDataFolder);
|
this.panelAppButtons.Controls.Add(this.btnOpenDataFolder);
|
||||||
this.panelAppButtons.Controls.Add(this.btnOpenAppFolder);
|
this.panelAppButtons.Controls.Add(this.btnOpenAppFolder);
|
||||||
this.panelAppButtons.Controls.Add(this.btnRestart);
|
this.panelAppButtons.Controls.Add(this.btnRestart);
|
||||||
@@ -199,73 +184,57 @@
|
|||||||
this.panelAppButtons.Location = new System.Drawing.Point(0, 20);
|
this.panelAppButtons.Location = new System.Drawing.Point(0, 20);
|
||||||
this.panelAppButtons.Margin = new System.Windows.Forms.Padding(0);
|
this.panelAppButtons.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.panelAppButtons.Name = "panelAppButtons";
|
this.panelAppButtons.Name = "panelAppButtons";
|
||||||
this.panelAppButtons.Size = new System.Drawing.Size(322, 62);
|
this.panelAppButtons.Size = new System.Drawing.Size(300, 62);
|
||||||
this.panelAppButtons.TabIndex = 1;
|
this.panelAppButtons.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// labelPerformance
|
|
||||||
//
|
|
||||||
this.labelPerformance.AutoSize = true;
|
|
||||||
this.labelPerformance.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.labelPerformance.Location = new System.Drawing.Point(0, 102);
|
|
||||||
this.labelPerformance.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
|
||||||
this.labelPerformance.Name = "labelPerformance";
|
|
||||||
this.labelPerformance.Size = new System.Drawing.Size(93, 20);
|
|
||||||
this.labelPerformance.TabIndex = 2;
|
|
||||||
this.labelPerformance.Text = "Performance";
|
|
||||||
//
|
|
||||||
// panelClearCacheAuto
|
|
||||||
//
|
|
||||||
this.panelClearCacheAuto.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelClearCacheAuto.Controls.Add(this.checkClearCacheAuto);
|
|
||||||
this.panelClearCacheAuto.Controls.Add(this.numClearCacheThreshold);
|
|
||||||
this.panelClearCacheAuto.Location = new System.Drawing.Point(0, 207);
|
|
||||||
this.panelClearCacheAuto.Margin = new System.Windows.Forms.Padding(0);
|
|
||||||
this.panelClearCacheAuto.Name = "panelClearCacheAuto";
|
|
||||||
this.panelClearCacheAuto.Size = new System.Drawing.Size(322, 28);
|
|
||||||
this.panelClearCacheAuto.TabIndex = 6;
|
|
||||||
//
|
|
||||||
// labelCache
|
// labelCache
|
||||||
//
|
//
|
||||||
this.labelCache.AutoSize = true;
|
this.labelCache.AutoSize = true;
|
||||||
this.labelCache.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelCache.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelCache.Location = new System.Drawing.Point(3, 161);
|
this.labelCache.Location = new System.Drawing.Point(0, 112);
|
||||||
this.labelCache.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelCache.Margin = new System.Windows.Forms.Padding(0, 30, 0, 1);
|
||||||
this.labelCache.Name = "labelCache";
|
this.labelCache.Name = "labelCache";
|
||||||
this.labelCache.Size = new System.Drawing.Size(40, 15);
|
this.labelCache.Size = new System.Drawing.Size(123, 19);
|
||||||
this.labelCache.TabIndex = 4;
|
this.labelCache.TabIndex = 2;
|
||||||
this.labelCache.Text = "Cache";
|
this.labelCache.Text = "BROWSER CACHE";
|
||||||
|
//
|
||||||
|
// panelClearCacheAuto
|
||||||
|
//
|
||||||
|
this.panelClearCacheAuto.Controls.Add(this.checkClearCacheAuto);
|
||||||
|
this.panelClearCacheAuto.Controls.Add(this.numClearCacheThreshold);
|
||||||
|
this.panelClearCacheAuto.Location = new System.Drawing.Point(0, 163);
|
||||||
|
this.panelClearCacheAuto.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.panelClearCacheAuto.Name = "panelClearCacheAuto";
|
||||||
|
this.panelClearCacheAuto.Size = new System.Drawing.Size(300, 28);
|
||||||
|
this.panelClearCacheAuto.TabIndex = 4;
|
||||||
//
|
//
|
||||||
// panelConfiguration
|
// panelConfiguration
|
||||||
//
|
//
|
||||||
this.panelConfiguration.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelConfiguration.Controls.Add(this.btnEditCSS);
|
this.panelConfiguration.Controls.Add(this.btnEditCSS);
|
||||||
this.panelConfiguration.Controls.Add(this.btnEditCefArgs);
|
this.panelConfiguration.Controls.Add(this.btnEditCefArgs);
|
||||||
this.panelConfiguration.Location = new System.Drawing.Point(0, 275);
|
this.panelConfiguration.Location = new System.Drawing.Point(0, 241);
|
||||||
this.panelConfiguration.Margin = new System.Windows.Forms.Padding(0);
|
this.panelConfiguration.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.panelConfiguration.Name = "panelConfiguration";
|
this.panelConfiguration.Name = "panelConfiguration";
|
||||||
this.panelConfiguration.Size = new System.Drawing.Size(322, 31);
|
this.panelConfiguration.Size = new System.Drawing.Size(300, 31);
|
||||||
this.panelConfiguration.TabIndex = 8;
|
this.panelConfiguration.TabIndex = 6;
|
||||||
//
|
//
|
||||||
// labelConfiguration
|
// labelConfiguration
|
||||||
//
|
//
|
||||||
this.labelConfiguration.AutoSize = true;
|
this.labelConfiguration.AutoSize = true;
|
||||||
this.labelConfiguration.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelConfiguration.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelConfiguration.Location = new System.Drawing.Point(0, 255);
|
this.labelConfiguration.Location = new System.Drawing.Point(0, 221);
|
||||||
this.labelConfiguration.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
this.labelConfiguration.Margin = new System.Windows.Forms.Padding(0, 30, 0, 1);
|
||||||
this.labelConfiguration.Name = "labelConfiguration";
|
this.labelConfiguration.Name = "labelConfiguration";
|
||||||
this.labelConfiguration.Size = new System.Drawing.Size(100, 20);
|
this.labelConfiguration.Size = new System.Drawing.Size(123, 19);
|
||||||
this.labelConfiguration.TabIndex = 7;
|
this.labelConfiguration.TabIndex = 5;
|
||||||
this.labelConfiguration.Text = "Configuration";
|
this.labelConfiguration.Text = "CONFIGURATION";
|
||||||
//
|
//
|
||||||
// flowPanel
|
// flowPanel
|
||||||
//
|
//
|
||||||
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.flowPanel.Controls.Add(this.labelApp);
|
this.flowPanel.Controls.Add(this.labelApp);
|
||||||
this.flowPanel.Controls.Add(this.panelAppButtons);
|
this.flowPanel.Controls.Add(this.panelAppButtons);
|
||||||
this.flowPanel.Controls.Add(this.labelPerformance);
|
|
||||||
this.flowPanel.Controls.Add(this.checkHardwareAcceleration);
|
|
||||||
this.flowPanel.Controls.Add(this.labelCache);
|
this.flowPanel.Controls.Add(this.labelCache);
|
||||||
this.flowPanel.Controls.Add(this.btnClearCache);
|
this.flowPanel.Controls.Add(this.btnClearCache);
|
||||||
this.flowPanel.Controls.Add(this.panelClearCacheAuto);
|
this.flowPanel.Controls.Add(this.panelClearCacheAuto);
|
||||||
@@ -274,7 +243,7 @@
|
|||||||
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
||||||
this.flowPanel.Name = "flowPanel";
|
this.flowPanel.Name = "flowPanel";
|
||||||
this.flowPanel.Size = new System.Drawing.Size(322, 307);
|
this.flowPanel.Size = new System.Drawing.Size(300, 462);
|
||||||
this.flowPanel.TabIndex = 0;
|
this.flowPanel.TabIndex = 0;
|
||||||
this.flowPanel.WrapContents = false;
|
this.flowPanel.WrapContents = false;
|
||||||
//
|
//
|
||||||
@@ -284,7 +253,7 @@
|
|||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.flowPanel);
|
this.Controls.Add(this.flowPanel);
|
||||||
this.Name = "TabSettingsAdvanced";
|
this.Name = "TabSettingsAdvanced";
|
||||||
this.Size = new System.Drawing.Size(340, 325);
|
this.Size = new System.Drawing.Size(631, 480);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.numClearCacheThreshold)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.numClearCacheThreshold)).EndInit();
|
||||||
this.panelAppButtons.ResumeLayout(false);
|
this.panelAppButtons.ResumeLayout(false);
|
||||||
this.panelClearCacheAuto.ResumeLayout(false);
|
this.panelClearCacheAuto.ResumeLayout(false);
|
||||||
@@ -299,7 +268,6 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private System.Windows.Forms.Button btnClearCache;
|
private System.Windows.Forms.Button btnClearCache;
|
||||||
private System.Windows.Forms.CheckBox checkHardwareAcceleration;
|
|
||||||
private System.Windows.Forms.ToolTip toolTip;
|
private System.Windows.Forms.ToolTip toolTip;
|
||||||
private System.Windows.Forms.Button btnEditCefArgs;
|
private System.Windows.Forms.Button btnEditCefArgs;
|
||||||
private System.Windows.Forms.Button btnEditCSS;
|
private System.Windows.Forms.Button btnEditCSS;
|
||||||
@@ -309,11 +277,10 @@
|
|||||||
private System.Windows.Forms.Button btnOpenDataFolder;
|
private System.Windows.Forms.Button btnOpenDataFolder;
|
||||||
private System.Windows.Forms.Label labelApp;
|
private System.Windows.Forms.Label labelApp;
|
||||||
private System.Windows.Forms.Panel panelAppButtons;
|
private System.Windows.Forms.Panel panelAppButtons;
|
||||||
private System.Windows.Forms.Label labelPerformance;
|
private System.Windows.Forms.Label labelCache;
|
||||||
private System.Windows.Forms.Panel panelClearCacheAuto;
|
private System.Windows.Forms.Panel panelClearCacheAuto;
|
||||||
private System.Windows.Forms.Panel panelConfiguration;
|
private System.Windows.Forms.Panel panelConfiguration;
|
||||||
private System.Windows.Forms.Label labelConfiguration;
|
private System.Windows.Forms.Label labelConfiguration;
|
||||||
private System.Windows.Forms.Label labelCache;
|
|
||||||
private Controls.NumericUpDownEx numClearCacheThreshold;
|
private Controls.NumericUpDownEx numClearCacheThreshold;
|
||||||
private System.Windows.Forms.CheckBox checkClearCacheAuto;
|
private System.Windows.Forms.CheckBox checkClearCacheAuto;
|
||||||
private System.Windows.Forms.FlowLayoutPanel flowPanel;
|
private System.Windows.Forms.FlowLayoutPanel flowPanel;
|
||||||
|
@@ -10,8 +10,6 @@ using TweetDuck.Core.Utils;
|
|||||||
|
|
||||||
namespace TweetDuck.Core.Other.Settings{
|
namespace TweetDuck.Core.Other.Settings{
|
||||||
sealed partial class TabSettingsAdvanced : BaseTabSettings{
|
sealed partial class TabSettingsAdvanced : BaseTabSettings{
|
||||||
private static SystemConfig SysConfig => Program.SystemConfig;
|
|
||||||
|
|
||||||
private readonly Action<string> reinjectBrowserCSS;
|
private readonly Action<string> reinjectBrowserCSS;
|
||||||
private readonly Action openDevTools;
|
private readonly Action openDevTools;
|
||||||
|
|
||||||
@@ -21,21 +19,18 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
this.reinjectBrowserCSS = reinjectBrowserCSS;
|
this.reinjectBrowserCSS = reinjectBrowserCSS;
|
||||||
this.openDevTools = openDevTools;
|
this.openDevTools = openDevTools;
|
||||||
|
|
||||||
|
// application
|
||||||
|
|
||||||
toolTip.SetToolTip(btnOpenAppFolder, "Opens the folder where the app is located.");
|
toolTip.SetToolTip(btnOpenAppFolder, "Opens the folder where the app is located.");
|
||||||
toolTip.SetToolTip(btnOpenDataFolder, "Opens the folder where your profile data is located.");
|
toolTip.SetToolTip(btnOpenDataFolder, "Opens the folder where your profile data is located.");
|
||||||
toolTip.SetToolTip(btnRestart, "Restarts the program using the same command\r\nline arguments that were used at launch.");
|
toolTip.SetToolTip(btnRestart, "Restarts the program using the same command\r\nline arguments that were used at launch.");
|
||||||
toolTip.SetToolTip(btnRestartArgs, "Restarts the program with customizable\r\ncommand line arguments.");
|
toolTip.SetToolTip(btnRestartArgs, "Restarts the program with customizable\r\ncommand line arguments.");
|
||||||
|
|
||||||
toolTip.SetToolTip(checkHardwareAcceleration, "Uses graphics card to improve performance. Disable if you experience visual glitches, or to save a small amount of RAM.");
|
// browser cache
|
||||||
|
|
||||||
toolTip.SetToolTip(btnClearCache, "Clearing cache will free up space taken by downloaded images and other resources.");
|
toolTip.SetToolTip(btnClearCache, "Clearing cache will free up space taken by downloaded images and other resources.");
|
||||||
toolTip.SetToolTip(checkClearCacheAuto, "Automatically clears cache when its size exceeds the set threshold. Note that cache can only be cleared when closing TweetDuck.");
|
toolTip.SetToolTip(checkClearCacheAuto, "Automatically clears cache when its size exceeds the set threshold. Note that cache can only be cleared when closing TweetDuck.");
|
||||||
|
|
||||||
toolTip.SetToolTip(btnEditCefArgs, "Set custom command line arguments for Chromium Embedded Framework.");
|
|
||||||
toolTip.SetToolTip(btnEditCSS, "Set custom CSS for browser and notification windows.");
|
|
||||||
|
|
||||||
checkHardwareAcceleration.Checked = SysConfig.HardwareAcceleration;
|
|
||||||
|
|
||||||
checkClearCacheAuto.Checked = SysConfig.ClearCacheAutomatically;
|
checkClearCacheAuto.Checked = SysConfig.ClearCacheAutomatically;
|
||||||
numClearCacheThreshold.Enabled = checkClearCacheAuto.Checked;
|
numClearCacheThreshold.Enabled = checkClearCacheAuto.Checked;
|
||||||
numClearCacheThreshold.SetValueSafe(SysConfig.ClearCacheThreshold);
|
numClearCacheThreshold.SetValueSafe(SysConfig.ClearCacheThreshold);
|
||||||
@@ -44,6 +39,11 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
string text = task.Status == TaskStatus.RanToCompletion ? (int)Math.Ceiling(task.Result/(1024.0*1024.0))+" MB" : "unknown";
|
string text = task.Status == TaskStatus.RanToCompletion ? (int)Math.Ceiling(task.Result/(1024.0*1024.0))+" MB" : "unknown";
|
||||||
this.InvokeSafe(() => btnClearCache.Text = $"Clear Cache ({text})");
|
this.InvokeSafe(() => btnClearCache.Text = $"Clear Cache ({text})");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// configuration
|
||||||
|
|
||||||
|
toolTip.SetToolTip(btnEditCefArgs, "Set custom command line arguments for Chromium Embedded Framework.");
|
||||||
|
toolTip.SetToolTip(btnEditCSS, "Set custom CSS for browser and notification windows.");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnReady(){
|
public override void OnReady(){
|
||||||
@@ -52,8 +52,6 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
btnRestart.Click += btnRestart_Click;
|
btnRestart.Click += btnRestart_Click;
|
||||||
btnRestartArgs.Click += btnRestartArgs_Click;
|
btnRestartArgs.Click += btnRestartArgs_Click;
|
||||||
|
|
||||||
checkHardwareAcceleration.CheckedChanged += checkHardwareAcceleration_CheckedChanged;
|
|
||||||
|
|
||||||
btnClearCache.Click += btnClearCache_Click;
|
btnClearCache.Click += btnClearCache_Click;
|
||||||
checkClearCacheAuto.CheckedChanged += checkClearCacheAuto_CheckedChanged;
|
checkClearCacheAuto.CheckedChanged += checkClearCacheAuto_CheckedChanged;
|
||||||
|
|
||||||
@@ -64,9 +62,33 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
public override void OnClosing(){
|
public override void OnClosing(){
|
||||||
SysConfig.ClearCacheAutomatically = checkClearCacheAuto.Checked;
|
SysConfig.ClearCacheAutomatically = checkClearCacheAuto.Checked;
|
||||||
SysConfig.ClearCacheThreshold = (int)numClearCacheThreshold.Value;
|
SysConfig.ClearCacheThreshold = (int)numClearCacheThreshold.Value;
|
||||||
SysConfig.Save();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Application
|
||||||
|
|
||||||
|
private void btnOpenAppFolder_Click(object sender, EventArgs e){
|
||||||
|
using(Process.Start("explorer.exe", "\""+Program.ProgramPath+"\"")){}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnOpenDataFolder_Click(object sender, EventArgs e){
|
||||||
|
using(Process.Start("explorer.exe", "\""+Program.StoragePath+"\"")){}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnRestart_Click(object sender, EventArgs e){
|
||||||
|
Program.Restart();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnRestartArgs_Click(object sender, EventArgs e){
|
||||||
|
using(DialogSettingsRestart dialog = new DialogSettingsRestart(Arguments.GetCurrentClean())){
|
||||||
|
if (dialog.ShowDialog() == DialogResult.OK){
|
||||||
|
Program.RestartWithArgs(dialog.Args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region Browser Cache
|
||||||
|
|
||||||
private void btnClearCache_Click(object sender, EventArgs e){
|
private void btnClearCache_Click(object sender, EventArgs e){
|
||||||
btnClearCache.Enabled = false;
|
btnClearCache.Enabled = false;
|
||||||
BrowserCache.SetClearOnExit();
|
BrowserCache.SetClearOnExit();
|
||||||
@@ -77,10 +99,8 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
numClearCacheThreshold.Enabled = checkClearCacheAuto.Checked;
|
numClearCacheThreshold.Enabled = checkClearCacheAuto.Checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkHardwareAcceleration_CheckedChanged(object sender, EventArgs e){
|
#endregion
|
||||||
SysConfig.HardwareAcceleration = checkHardwareAcceleration.Checked;
|
#region Configuration
|
||||||
PromptRestart(); // calls OnClosing
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnEditCefArgs_Click(object sender, EventArgs e){
|
private void btnEditCefArgs_Click(object sender, EventArgs e){
|
||||||
DialogSettingsCefArgs form = new DialogSettingsCefArgs();
|
DialogSettingsCefArgs form = new DialogSettingsCefArgs();
|
||||||
@@ -94,10 +114,9 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
|
|
||||||
if (form.DialogResult == DialogResult.OK){
|
if (form.DialogResult == DialogResult.OK){
|
||||||
Config.CustomCefArgs = form.CefArgs;
|
Config.CustomCefArgs = form.CefArgs;
|
||||||
PromptRestart();
|
|
||||||
form.Dispose();
|
|
||||||
}
|
}
|
||||||
else form.Dispose();
|
|
||||||
|
form.Dispose();
|
||||||
};
|
};
|
||||||
|
|
||||||
form.Show(ParentForm);
|
form.Show(ParentForm);
|
||||||
@@ -127,30 +146,12 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
NativeMethods.SetFormDisabled(ParentForm, true);
|
NativeMethods.SetFormDisabled(ParentForm, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnOpenAppFolder_Click(object sender, EventArgs e){
|
|
||||||
using(Process.Start("explorer.exe", "\""+Program.ProgramPath+"\"")){}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnOpenDataFolder_Click(object sender, EventArgs e){
|
|
||||||
using(Process.Start("explorer.exe", "\""+Program.StoragePath+"\"")){}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnRestart_Click(object sender, EventArgs e){
|
|
||||||
Program.Restart();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnRestartArgs_Click(object sender, EventArgs e){
|
|
||||||
using(DialogSettingsRestart dialog = new DialogSettingsRestart(Arguments.GetCurrentClean())){
|
|
||||||
if (dialog.ShowDialog() == DialogResult.OK){
|
|
||||||
Program.RestartWithArgs(dialog.Args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RestoreParentForm(){
|
private void RestoreParentForm(){
|
||||||
if (ParentForm != null){ // when the parent is closed first, ParentForm is null in FormClosed event
|
if (ParentForm != null){ // when the parent is closed first, ParentForm is null in FormClosed event
|
||||||
NativeMethods.SetFormDisabled(ParentForm, false);
|
NativeMethods.SetFormDisabled(ParentForm, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
29
Core/Other/Settings/TabSettingsFeedback.Designer.cs
generated
29
Core/Other/Settings/TabSettingsFeedback.Designer.cs
generated
@@ -40,19 +40,18 @@
|
|||||||
//
|
//
|
||||||
// panelDataCollection
|
// panelDataCollection
|
||||||
//
|
//
|
||||||
this.panelDataCollection.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelDataCollection.Controls.Add(this.labelDataCollectionLink);
|
this.panelDataCollection.Controls.Add(this.labelDataCollectionLink);
|
||||||
this.panelDataCollection.Controls.Add(this.checkDataCollection);
|
this.panelDataCollection.Controls.Add(this.checkDataCollection);
|
||||||
this.panelDataCollection.Location = new System.Drawing.Point(0, 78);
|
this.panelDataCollection.Location = new System.Drawing.Point(0, 78);
|
||||||
this.panelDataCollection.Margin = new System.Windows.Forms.Padding(0);
|
this.panelDataCollection.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.panelDataCollection.Name = "panelDataCollection";
|
this.panelDataCollection.Name = "panelDataCollection";
|
||||||
this.panelDataCollection.Size = new System.Drawing.Size(322, 28);
|
this.panelDataCollection.Size = new System.Drawing.Size(300, 28);
|
||||||
this.panelDataCollection.TabIndex = 3;
|
this.panelDataCollection.TabIndex = 3;
|
||||||
//
|
//
|
||||||
// labelDataCollectionLink
|
// labelDataCollectionLink
|
||||||
//
|
//
|
||||||
this.labelDataCollectionLink.AutoSize = true;
|
this.labelDataCollectionLink.AutoSize = true;
|
||||||
this.labelDataCollectionLink.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDataCollectionLink.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.labelDataCollectionLink.LinkArea = new System.Windows.Forms.LinkArea(1, 10);
|
this.labelDataCollectionLink.LinkArea = new System.Windows.Forms.LinkArea(1, 10);
|
||||||
this.labelDataCollectionLink.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
|
this.labelDataCollectionLink.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
|
||||||
this.labelDataCollectionLink.Location = new System.Drawing.Point(153, 4);
|
this.labelDataCollectionLink.Location = new System.Drawing.Point(153, 4);
|
||||||
@@ -68,7 +67,7 @@
|
|||||||
// checkDataCollection
|
// checkDataCollection
|
||||||
//
|
//
|
||||||
this.checkDataCollection.AutoSize = true;
|
this.checkDataCollection.AutoSize = true;
|
||||||
this.checkDataCollection.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkDataCollection.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkDataCollection.Location = new System.Drawing.Point(6, 6);
|
this.checkDataCollection.Location = new System.Drawing.Point(6, 6);
|
||||||
this.checkDataCollection.Margin = new System.Windows.Forms.Padding(6, 6, 0, 2);
|
this.checkDataCollection.Margin = new System.Windows.Forms.Padding(6, 6, 0, 2);
|
||||||
this.checkDataCollection.Name = "checkDataCollection";
|
this.checkDataCollection.Name = "checkDataCollection";
|
||||||
@@ -79,17 +78,17 @@
|
|||||||
//
|
//
|
||||||
// labelDataCollectionMessage
|
// labelDataCollectionMessage
|
||||||
//
|
//
|
||||||
this.labelDataCollectionMessage.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDataCollectionMessage.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.labelDataCollectionMessage.Location = new System.Drawing.Point(6, 143);
|
this.labelDataCollectionMessage.Location = new System.Drawing.Point(6, 143);
|
||||||
this.labelDataCollectionMessage.Margin = new System.Windows.Forms.Padding(6);
|
this.labelDataCollectionMessage.Margin = new System.Windows.Forms.Padding(6);
|
||||||
this.labelDataCollectionMessage.Name = "labelDataCollectionMessage";
|
this.labelDataCollectionMessage.Name = "labelDataCollectionMessage";
|
||||||
this.labelDataCollectionMessage.Size = new System.Drawing.Size(310, 67);
|
this.labelDataCollectionMessage.Size = new System.Drawing.Size(288, 67);
|
||||||
this.labelDataCollectionMessage.TabIndex = 5;
|
this.labelDataCollectionMessage.TabIndex = 5;
|
||||||
//
|
//
|
||||||
// btnViewReport
|
// btnViewReport
|
||||||
//
|
//
|
||||||
this.btnViewReport.AutoSize = true;
|
this.btnViewReport.AutoSize = true;
|
||||||
this.btnViewReport.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnViewReport.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnViewReport.Location = new System.Drawing.Point(5, 109);
|
this.btnViewReport.Location = new System.Drawing.Point(5, 109);
|
||||||
this.btnViewReport.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.btnViewReport.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
||||||
this.btnViewReport.Name = "btnViewReport";
|
this.btnViewReport.Name = "btnViewReport";
|
||||||
@@ -102,7 +101,7 @@
|
|||||||
// btnSendFeedback
|
// btnSendFeedback
|
||||||
//
|
//
|
||||||
this.btnSendFeedback.AutoSize = true;
|
this.btnSendFeedback.AutoSize = true;
|
||||||
this.btnSendFeedback.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnSendFeedback.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnSendFeedback.Location = new System.Drawing.Point(5, 23);
|
this.btnSendFeedback.Location = new System.Drawing.Point(5, 23);
|
||||||
this.btnSendFeedback.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.btnSendFeedback.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
||||||
this.btnSendFeedback.Name = "btnSendFeedback";
|
this.btnSendFeedback.Name = "btnSendFeedback";
|
||||||
@@ -115,7 +114,7 @@
|
|||||||
// labelDataCollection
|
// labelDataCollection
|
||||||
//
|
//
|
||||||
this.labelDataCollection.AutoSize = true;
|
this.labelDataCollection.AutoSize = true;
|
||||||
this.labelDataCollection.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDataCollection.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelDataCollection.Location = new System.Drawing.Point(3, 63);
|
this.labelDataCollection.Location = new System.Drawing.Point(3, 63);
|
||||||
this.labelDataCollection.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelDataCollection.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelDataCollection.Name = "labelDataCollection";
|
this.labelDataCollection.Name = "labelDataCollection";
|
||||||
@@ -126,13 +125,13 @@
|
|||||||
// labelFeedback
|
// labelFeedback
|
||||||
//
|
//
|
||||||
this.labelFeedback.AutoSize = true;
|
this.labelFeedback.AutoSize = true;
|
||||||
this.labelFeedback.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelFeedback.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelFeedback.Location = new System.Drawing.Point(0, 0);
|
this.labelFeedback.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelFeedback.Margin = new System.Windows.Forms.Padding(0);
|
this.labelFeedback.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelFeedback.Name = "labelFeedback";
|
this.labelFeedback.Name = "labelFeedback";
|
||||||
this.labelFeedback.Size = new System.Drawing.Size(72, 20);
|
this.labelFeedback.Size = new System.Drawing.Size(75, 19);
|
||||||
this.labelFeedback.TabIndex = 0;
|
this.labelFeedback.TabIndex = 0;
|
||||||
this.labelFeedback.Text = "Feedback";
|
this.labelFeedback.Text = "FEEDBACK";
|
||||||
//
|
//
|
||||||
// flowPanel
|
// flowPanel
|
||||||
//
|
//
|
||||||
@@ -148,7 +147,7 @@
|
|||||||
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
||||||
this.flowPanel.Name = "flowPanel";
|
this.flowPanel.Name = "flowPanel";
|
||||||
this.flowPanel.Size = new System.Drawing.Size(322, 212);
|
this.flowPanel.Size = new System.Drawing.Size(300, 462);
|
||||||
this.flowPanel.TabIndex = 0;
|
this.flowPanel.TabIndex = 0;
|
||||||
this.flowPanel.WrapContents = false;
|
this.flowPanel.WrapContents = false;
|
||||||
//
|
//
|
||||||
@@ -158,7 +157,7 @@
|
|||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.flowPanel);
|
this.Controls.Add(this.flowPanel);
|
||||||
this.Name = "TabSettingsFeedback";
|
this.Name = "TabSettingsFeedback";
|
||||||
this.Size = new System.Drawing.Size(340, 230);
|
this.Size = new System.Drawing.Size(631, 480);
|
||||||
this.panelDataCollection.ResumeLayout(false);
|
this.panelDataCollection.ResumeLayout(false);
|
||||||
this.panelDataCollection.PerformLayout();
|
this.panelDataCollection.PerformLayout();
|
||||||
this.flowPanel.ResumeLayout(false);
|
this.flowPanel.ResumeLayout(false);
|
||||||
|
@@ -18,6 +18,8 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
this.analyticsInfo = analyticsInfo;
|
this.analyticsInfo = analyticsInfo;
|
||||||
this.plugins = plugins;
|
this.plugins = plugins;
|
||||||
|
|
||||||
|
// feedback
|
||||||
|
|
||||||
checkDataCollection.Checked = Config.AllowDataCollection;
|
checkDataCollection.Checked = Config.AllowDataCollection;
|
||||||
|
|
||||||
if (analytics != null){
|
if (analytics != null){
|
||||||
@@ -33,6 +35,8 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
btnViewReport.Click += btnViewReport_Click;
|
btnViewReport.Click += btnViewReport_Click;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Feedback
|
||||||
|
|
||||||
private void btnSendFeedback_Click(object sender, EventArgs e){
|
private void btnSendFeedback_Click(object sender, EventArgs e){
|
||||||
BrowserUtils.OpenExternalBrowser("https://github.com/chylex/TweetDuck/issues/new");
|
BrowserUtils.OpenExternalBrowser("https://github.com/chylex/TweetDuck/issues/new");
|
||||||
}
|
}
|
||||||
@@ -50,5 +54,7 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
dialog.ShowDialog();
|
dialog.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
379
Core/Other/Settings/TabSettingsGeneral.Designer.cs
generated
379
Core/Other/Settings/TabSettingsGeneral.Designer.cs
generated
@@ -38,23 +38,38 @@
|
|||||||
this.panelZoom = new System.Windows.Forms.Panel();
|
this.panelZoom = new System.Windows.Forms.Panel();
|
||||||
this.checkAnimatedAvatars = new System.Windows.Forms.CheckBox();
|
this.checkAnimatedAvatars = new System.Windows.Forms.CheckBox();
|
||||||
this.labelUpdates = new System.Windows.Forms.Label();
|
this.labelUpdates = new System.Windows.Forms.Label();
|
||||||
this.flowPanel = new System.Windows.Forms.FlowLayoutPanel();
|
this.flowPanelLeft = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
this.checkKeepLikeFollowDialogsOpen = new System.Windows.Forms.CheckBox();
|
this.checkKeepLikeFollowDialogsOpen = new System.Windows.Forms.CheckBox();
|
||||||
|
this.labelTray = new System.Windows.Forms.Label();
|
||||||
|
this.comboBoxTrayType = new System.Windows.Forms.ComboBox();
|
||||||
|
this.labelTrayIcon = new System.Windows.Forms.Label();
|
||||||
|
this.checkTrayHighlight = new System.Windows.Forms.CheckBox();
|
||||||
this.labelBrowserSettings = new System.Windows.Forms.Label();
|
this.labelBrowserSettings = new System.Windows.Forms.Label();
|
||||||
this.checkSmoothScrolling = new System.Windows.Forms.CheckBox();
|
this.checkSmoothScrolling = new System.Windows.Forms.CheckBox();
|
||||||
|
this.checkTouchAdjustment = new System.Windows.Forms.CheckBox();
|
||||||
this.labelBrowserPath = new System.Windows.Forms.Label();
|
this.labelBrowserPath = new System.Windows.Forms.Label();
|
||||||
this.comboBoxBrowserPath = new System.Windows.Forms.ComboBox();
|
this.comboBoxBrowserPath = new System.Windows.Forms.ComboBox();
|
||||||
this.labelSearchEngine = new System.Windows.Forms.Label();
|
this.labelSearchEngine = new System.Windows.Forms.Label();
|
||||||
this.comboBoxSearchEngine = new System.Windows.Forms.ComboBox();
|
this.comboBoxSearchEngine = new System.Windows.Forms.ComboBox();
|
||||||
|
this.flowPanelRight = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
|
this.checkHardwareAcceleration = new System.Windows.Forms.CheckBox();
|
||||||
|
this.labelLocales = new System.Windows.Forms.Label();
|
||||||
|
this.checkSpellCheck = new System.Windows.Forms.CheckBox();
|
||||||
|
this.labelSpellCheckLanguage = new System.Windows.Forms.Label();
|
||||||
|
this.comboBoxSpellCheckLanguage = new System.Windows.Forms.ComboBox();
|
||||||
|
this.labelTranslationTarget = new System.Windows.Forms.Label();
|
||||||
|
this.comboBoxTranslationTarget = new System.Windows.Forms.ComboBox();
|
||||||
|
this.panelSeparator = new System.Windows.Forms.Panel();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).BeginInit();
|
||||||
this.panelZoom.SuspendLayout();
|
this.panelZoom.SuspendLayout();
|
||||||
this.flowPanel.SuspendLayout();
|
this.flowPanelLeft.SuspendLayout();
|
||||||
|
this.flowPanelRight.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// checkExpandLinks
|
// checkExpandLinks
|
||||||
//
|
//
|
||||||
this.checkExpandLinks.AutoSize = true;
|
this.checkExpandLinks.AutoSize = true;
|
||||||
this.checkExpandLinks.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkExpandLinks.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkExpandLinks.Location = new System.Drawing.Point(6, 26);
|
this.checkExpandLinks.Location = new System.Drawing.Point(6, 26);
|
||||||
this.checkExpandLinks.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
this.checkExpandLinks.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
||||||
this.checkExpandLinks.Name = "checkExpandLinks";
|
this.checkExpandLinks.Name = "checkExpandLinks";
|
||||||
@@ -66,32 +81,32 @@
|
|||||||
// checkUpdateNotifications
|
// checkUpdateNotifications
|
||||||
//
|
//
|
||||||
this.checkUpdateNotifications.AutoSize = true;
|
this.checkUpdateNotifications.AutoSize = true;
|
||||||
this.checkUpdateNotifications.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkUpdateNotifications.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkUpdateNotifications.Location = new System.Drawing.Point(6, 427);
|
this.checkUpdateNotifications.Location = new System.Drawing.Point(6, 393);
|
||||||
this.checkUpdateNotifications.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
this.checkUpdateNotifications.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
||||||
this.checkUpdateNotifications.Name = "checkUpdateNotifications";
|
this.checkUpdateNotifications.Name = "checkUpdateNotifications";
|
||||||
this.checkUpdateNotifications.Size = new System.Drawing.Size(182, 19);
|
this.checkUpdateNotifications.Size = new System.Drawing.Size(182, 19);
|
||||||
this.checkUpdateNotifications.TabIndex = 15;
|
this.checkUpdateNotifications.TabIndex = 13;
|
||||||
this.checkUpdateNotifications.Text = "Check Updates Automatically";
|
this.checkUpdateNotifications.Text = "Check Updates Automatically";
|
||||||
this.checkUpdateNotifications.UseVisualStyleBackColor = true;
|
this.checkUpdateNotifications.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// btnCheckUpdates
|
// btnCheckUpdates
|
||||||
//
|
//
|
||||||
this.btnCheckUpdates.AutoSize = true;
|
this.btnCheckUpdates.AutoSize = true;
|
||||||
this.btnCheckUpdates.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnCheckUpdates.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnCheckUpdates.Location = new System.Drawing.Point(5, 451);
|
this.btnCheckUpdates.Location = new System.Drawing.Point(5, 417);
|
||||||
this.btnCheckUpdates.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.btnCheckUpdates.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
||||||
this.btnCheckUpdates.Name = "btnCheckUpdates";
|
this.btnCheckUpdates.Name = "btnCheckUpdates";
|
||||||
this.btnCheckUpdates.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnCheckUpdates.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
this.btnCheckUpdates.Size = new System.Drawing.Size(128, 25);
|
this.btnCheckUpdates.Size = new System.Drawing.Size(128, 25);
|
||||||
this.btnCheckUpdates.TabIndex = 16;
|
this.btnCheckUpdates.TabIndex = 14;
|
||||||
this.btnCheckUpdates.Text = "Check Updates Now";
|
this.btnCheckUpdates.Text = "Check Updates Now";
|
||||||
this.btnCheckUpdates.UseVisualStyleBackColor = true;
|
this.btnCheckUpdates.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// labelZoomValue
|
// labelZoomValue
|
||||||
//
|
//
|
||||||
this.labelZoomValue.BackColor = System.Drawing.Color.Transparent;
|
this.labelZoomValue.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.labelZoomValue.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelZoomValue.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.labelZoomValue.Location = new System.Drawing.Point(147, 4);
|
this.labelZoomValue.Location = new System.Drawing.Point(147, 4);
|
||||||
this.labelZoomValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
this.labelZoomValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||||
this.labelZoomValue.Name = "labelZoomValue";
|
this.labelZoomValue.Name = "labelZoomValue";
|
||||||
@@ -103,7 +118,7 @@
|
|||||||
// checkBestImageQuality
|
// checkBestImageQuality
|
||||||
//
|
//
|
||||||
this.checkBestImageQuality.AutoSize = true;
|
this.checkBestImageQuality.AutoSize = true;
|
||||||
this.checkBestImageQuality.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkBestImageQuality.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkBestImageQuality.Location = new System.Drawing.Point(6, 98);
|
this.checkBestImageQuality.Location = new System.Drawing.Point(6, 98);
|
||||||
this.checkBestImageQuality.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkBestImageQuality.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkBestImageQuality.Name = "checkBestImageQuality";
|
this.checkBestImageQuality.Name = "checkBestImageQuality";
|
||||||
@@ -115,7 +130,7 @@
|
|||||||
// checkOpenSearchInFirstColumn
|
// checkOpenSearchInFirstColumn
|
||||||
//
|
//
|
||||||
this.checkOpenSearchInFirstColumn.AutoSize = true;
|
this.checkOpenSearchInFirstColumn.AutoSize = true;
|
||||||
this.checkOpenSearchInFirstColumn.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkOpenSearchInFirstColumn.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkOpenSearchInFirstColumn.Location = new System.Drawing.Point(6, 50);
|
this.checkOpenSearchInFirstColumn.Location = new System.Drawing.Point(6, 50);
|
||||||
this.checkOpenSearchInFirstColumn.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkOpenSearchInFirstColumn.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkOpenSearchInFirstColumn.Name = "checkOpenSearchInFirstColumn";
|
this.checkOpenSearchInFirstColumn.Name = "checkOpenSearchInFirstColumn";
|
||||||
@@ -142,12 +157,12 @@
|
|||||||
// labelZoom
|
// labelZoom
|
||||||
//
|
//
|
||||||
this.labelZoom.AutoSize = true;
|
this.labelZoom.AutoSize = true;
|
||||||
this.labelZoom.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelZoom.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelZoom.Location = new System.Drawing.Point(3, 330);
|
this.labelZoom.Location = new System.Drawing.Point(3, 155);
|
||||||
this.labelZoom.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelZoom.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelZoom.Name = "labelZoom";
|
this.labelZoom.Name = "labelZoom";
|
||||||
this.labelZoom.Size = new System.Drawing.Size(39, 15);
|
this.labelZoom.Size = new System.Drawing.Size(39, 15);
|
||||||
this.labelZoom.TabIndex = 12;
|
this.labelZoom.TabIndex = 6;
|
||||||
this.labelZoom.Text = "Zoom";
|
this.labelZoom.Text = "Zoom";
|
||||||
//
|
//
|
||||||
// zoomUpdateTimer
|
// zoomUpdateTimer
|
||||||
@@ -158,29 +173,28 @@
|
|||||||
// labelUI
|
// labelUI
|
||||||
//
|
//
|
||||||
this.labelUI.AutoSize = true;
|
this.labelUI.AutoSize = true;
|
||||||
this.labelUI.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelUI.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelUI.Location = new System.Drawing.Point(0, 0);
|
this.labelUI.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelUI.Margin = new System.Windows.Forms.Padding(0);
|
this.labelUI.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelUI.Name = "labelUI";
|
this.labelUI.Name = "labelUI";
|
||||||
this.labelUI.Size = new System.Drawing.Size(100, 20);
|
this.labelUI.Size = new System.Drawing.Size(118, 19);
|
||||||
this.labelUI.TabIndex = 0;
|
this.labelUI.TabIndex = 0;
|
||||||
this.labelUI.Text = "User Interface";
|
this.labelUI.Text = "USER INTERFACE";
|
||||||
//
|
//
|
||||||
// panelZoom
|
// panelZoom
|
||||||
//
|
//
|
||||||
this.panelZoom.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelZoom.Controls.Add(this.trackBarZoom);
|
this.panelZoom.Controls.Add(this.trackBarZoom);
|
||||||
this.panelZoom.Controls.Add(this.labelZoomValue);
|
this.panelZoom.Controls.Add(this.labelZoomValue);
|
||||||
this.panelZoom.Location = new System.Drawing.Point(0, 345);
|
this.panelZoom.Location = new System.Drawing.Point(0, 171);
|
||||||
this.panelZoom.Margin = new System.Windows.Forms.Padding(0);
|
this.panelZoom.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0);
|
||||||
this.panelZoom.Name = "panelZoom";
|
this.panelZoom.Name = "panelZoom";
|
||||||
this.panelZoom.Size = new System.Drawing.Size(322, 36);
|
this.panelZoom.Size = new System.Drawing.Size(300, 35);
|
||||||
this.panelZoom.TabIndex = 13;
|
this.panelZoom.TabIndex = 7;
|
||||||
//
|
//
|
||||||
// checkAnimatedAvatars
|
// checkAnimatedAvatars
|
||||||
//
|
//
|
||||||
this.checkAnimatedAvatars.AutoSize = true;
|
this.checkAnimatedAvatars.AutoSize = true;
|
||||||
this.checkAnimatedAvatars.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkAnimatedAvatars.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkAnimatedAvatars.Location = new System.Drawing.Point(6, 122);
|
this.checkAnimatedAvatars.Location = new System.Drawing.Point(6, 122);
|
||||||
this.checkAnimatedAvatars.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkAnimatedAvatars.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkAnimatedAvatars.Name = "checkAnimatedAvatars";
|
this.checkAnimatedAvatars.Name = "checkAnimatedAvatars";
|
||||||
@@ -192,47 +206,44 @@
|
|||||||
// labelUpdates
|
// labelUpdates
|
||||||
//
|
//
|
||||||
this.labelUpdates.AutoSize = true;
|
this.labelUpdates.AutoSize = true;
|
||||||
this.labelUpdates.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelUpdates.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelUpdates.Location = new System.Drawing.Point(0, 401);
|
this.labelUpdates.Location = new System.Drawing.Point(0, 367);
|
||||||
this.labelUpdates.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
this.labelUpdates.Margin = new System.Windows.Forms.Padding(0, 30, 0, 1);
|
||||||
this.labelUpdates.Name = "labelUpdates";
|
this.labelUpdates.Name = "labelUpdates";
|
||||||
this.labelUpdates.Size = new System.Drawing.Size(64, 20);
|
this.labelUpdates.Size = new System.Drawing.Size(69, 19);
|
||||||
this.labelUpdates.TabIndex = 14;
|
this.labelUpdates.TabIndex = 12;
|
||||||
this.labelUpdates.Text = "Updates";
|
this.labelUpdates.Text = "UPDATES";
|
||||||
//
|
//
|
||||||
// flowPanel
|
// flowPanelLeft
|
||||||
//
|
//
|
||||||
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.flowPanelLeft.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
this.flowPanelLeft.Controls.Add(this.labelUI);
|
||||||
this.flowPanel.Controls.Add(this.labelUI);
|
this.flowPanelLeft.Controls.Add(this.checkExpandLinks);
|
||||||
this.flowPanel.Controls.Add(this.checkExpandLinks);
|
this.flowPanelLeft.Controls.Add(this.checkOpenSearchInFirstColumn);
|
||||||
this.flowPanel.Controls.Add(this.checkOpenSearchInFirstColumn);
|
this.flowPanelLeft.Controls.Add(this.checkKeepLikeFollowDialogsOpen);
|
||||||
this.flowPanel.Controls.Add(this.checkKeepLikeFollowDialogsOpen);
|
this.flowPanelLeft.Controls.Add(this.checkBestImageQuality);
|
||||||
this.flowPanel.Controls.Add(this.checkBestImageQuality);
|
this.flowPanelLeft.Controls.Add(this.checkAnimatedAvatars);
|
||||||
this.flowPanel.Controls.Add(this.checkAnimatedAvatars);
|
this.flowPanelLeft.Controls.Add(this.labelZoom);
|
||||||
this.flowPanel.Controls.Add(this.labelBrowserSettings);
|
this.flowPanelLeft.Controls.Add(this.panelZoom);
|
||||||
this.flowPanel.Controls.Add(this.checkSmoothScrolling);
|
this.flowPanelLeft.Controls.Add(this.labelTray);
|
||||||
this.flowPanel.Controls.Add(this.labelBrowserPath);
|
this.flowPanelLeft.Controls.Add(this.comboBoxTrayType);
|
||||||
this.flowPanel.Controls.Add(this.comboBoxBrowserPath);
|
this.flowPanelLeft.Controls.Add(this.labelTrayIcon);
|
||||||
this.flowPanel.Controls.Add(this.labelSearchEngine);
|
this.flowPanelLeft.Controls.Add(this.checkTrayHighlight);
|
||||||
this.flowPanel.Controls.Add(this.comboBoxSearchEngine);
|
this.flowPanelLeft.Controls.Add(this.labelUpdates);
|
||||||
this.flowPanel.Controls.Add(this.labelZoom);
|
this.flowPanelLeft.Controls.Add(this.checkUpdateNotifications);
|
||||||
this.flowPanel.Controls.Add(this.panelZoom);
|
this.flowPanelLeft.Controls.Add(this.btnCheckUpdates);
|
||||||
this.flowPanel.Controls.Add(this.labelUpdates);
|
this.flowPanelLeft.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
this.flowPanel.Controls.Add(this.checkUpdateNotifications);
|
this.flowPanelLeft.Location = new System.Drawing.Point(9, 9);
|
||||||
this.flowPanel.Controls.Add(this.btnCheckUpdates);
|
this.flowPanelLeft.Name = "flowPanelLeft";
|
||||||
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
this.flowPanelLeft.Size = new System.Drawing.Size(300, 462);
|
||||||
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
this.flowPanelLeft.TabIndex = 0;
|
||||||
this.flowPanel.Name = "flowPanel";
|
this.flowPanelLeft.WrapContents = false;
|
||||||
this.flowPanel.Size = new System.Drawing.Size(322, 486);
|
|
||||||
this.flowPanel.TabIndex = 0;
|
|
||||||
this.flowPanel.WrapContents = false;
|
|
||||||
//
|
//
|
||||||
// checkKeepLikeFollowDialogsOpen
|
// checkKeepLikeFollowDialogsOpen
|
||||||
//
|
//
|
||||||
this.checkKeepLikeFollowDialogsOpen.AutoSize = true;
|
this.checkKeepLikeFollowDialogsOpen.AutoSize = true;
|
||||||
this.checkKeepLikeFollowDialogsOpen.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkKeepLikeFollowDialogsOpen.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkKeepLikeFollowDialogsOpen.Location = new System.Drawing.Point(6, 74);
|
this.checkKeepLikeFollowDialogsOpen.Location = new System.Drawing.Point(6, 74);
|
||||||
this.checkKeepLikeFollowDialogsOpen.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkKeepLikeFollowDialogsOpen.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkKeepLikeFollowDialogsOpen.Name = "checkKeepLikeFollowDialogsOpen";
|
this.checkKeepLikeFollowDialogsOpen.Name = "checkKeepLikeFollowDialogsOpen";
|
||||||
@@ -241,84 +252,260 @@
|
|||||||
this.checkKeepLikeFollowDialogsOpen.Text = "Keep Like/Follow Dialogs Open";
|
this.checkKeepLikeFollowDialogsOpen.Text = "Keep Like/Follow Dialogs Open";
|
||||||
this.checkKeepLikeFollowDialogsOpen.UseVisualStyleBackColor = true;
|
this.checkKeepLikeFollowDialogsOpen.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// labelTray
|
||||||
|
//
|
||||||
|
this.labelTray.AutoSize = true;
|
||||||
|
this.labelTray.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
|
this.labelTray.Location = new System.Drawing.Point(0, 236);
|
||||||
|
this.labelTray.Margin = new System.Windows.Forms.Padding(0, 30, 0, 1);
|
||||||
|
this.labelTray.Name = "labelTray";
|
||||||
|
this.labelTray.Size = new System.Drawing.Size(99, 19);
|
||||||
|
this.labelTray.TabIndex = 8;
|
||||||
|
this.labelTray.Text = "SYSTEM TRAY";
|
||||||
|
//
|
||||||
|
// comboBoxTrayType
|
||||||
|
//
|
||||||
|
this.comboBoxTrayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.comboBoxTrayType.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
this.comboBoxTrayType.FormattingEnabled = true;
|
||||||
|
this.comboBoxTrayType.Location = new System.Drawing.Point(5, 260);
|
||||||
|
this.comboBoxTrayType.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
|
this.comboBoxTrayType.Name = "comboBoxTrayType";
|
||||||
|
this.comboBoxTrayType.Size = new System.Drawing.Size(144, 23);
|
||||||
|
this.comboBoxTrayType.TabIndex = 9;
|
||||||
|
//
|
||||||
|
// labelTrayIcon
|
||||||
|
//
|
||||||
|
this.labelTrayIcon.AutoSize = true;
|
||||||
|
this.labelTrayIcon.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
|
this.labelTrayIcon.Location = new System.Drawing.Point(3, 295);
|
||||||
|
this.labelTrayIcon.Margin = new System.Windows.Forms.Padding(3, 9, 3, 0);
|
||||||
|
this.labelTrayIcon.Name = "labelTrayIcon";
|
||||||
|
this.labelTrayIcon.Size = new System.Drawing.Size(56, 15);
|
||||||
|
this.labelTrayIcon.TabIndex = 10;
|
||||||
|
this.labelTrayIcon.Text = "Tray Icon";
|
||||||
|
//
|
||||||
|
// checkTrayHighlight
|
||||||
|
//
|
||||||
|
this.checkTrayHighlight.AutoSize = true;
|
||||||
|
this.checkTrayHighlight.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
this.checkTrayHighlight.Location = new System.Drawing.Point(6, 316);
|
||||||
|
this.checkTrayHighlight.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
||||||
|
this.checkTrayHighlight.Name = "checkTrayHighlight";
|
||||||
|
this.checkTrayHighlight.Size = new System.Drawing.Size(114, 19);
|
||||||
|
this.checkTrayHighlight.TabIndex = 11;
|
||||||
|
this.checkTrayHighlight.Text = "Enable Highlight";
|
||||||
|
this.checkTrayHighlight.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// labelBrowserSettings
|
// labelBrowserSettings
|
||||||
//
|
//
|
||||||
this.labelBrowserSettings.AutoSize = true;
|
this.labelBrowserSettings.AutoSize = true;
|
||||||
this.labelBrowserSettings.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelBrowserSettings.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelBrowserSettings.Location = new System.Drawing.Point(0, 163);
|
this.labelBrowserSettings.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelBrowserSettings.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
this.labelBrowserSettings.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelBrowserSettings.Name = "labelBrowserSettings";
|
this.labelBrowserSettings.Name = "labelBrowserSettings";
|
||||||
this.labelBrowserSettings.Size = new System.Drawing.Size(119, 20);
|
this.labelBrowserSettings.Size = new System.Drawing.Size(143, 19);
|
||||||
this.labelBrowserSettings.TabIndex = 6;
|
this.labelBrowserSettings.TabIndex = 0;
|
||||||
this.labelBrowserSettings.Text = "Browser Settings";
|
this.labelBrowserSettings.Text = "BROWSER SETTINGS";
|
||||||
//
|
//
|
||||||
// checkSmoothScrolling
|
// checkSmoothScrolling
|
||||||
//
|
//
|
||||||
this.checkSmoothScrolling.AutoSize = true;
|
this.checkSmoothScrolling.AutoSize = true;
|
||||||
this.checkSmoothScrolling.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkSmoothScrolling.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkSmoothScrolling.Location = new System.Drawing.Point(6, 189);
|
this.checkSmoothScrolling.Location = new System.Drawing.Point(6, 26);
|
||||||
this.checkSmoothScrolling.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
this.checkSmoothScrolling.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
||||||
this.checkSmoothScrolling.Name = "checkSmoothScrolling";
|
this.checkSmoothScrolling.Name = "checkSmoothScrolling";
|
||||||
this.checkSmoothScrolling.Size = new System.Drawing.Size(117, 19);
|
this.checkSmoothScrolling.Size = new System.Drawing.Size(117, 19);
|
||||||
this.checkSmoothScrolling.TabIndex = 7;
|
this.checkSmoothScrolling.TabIndex = 1;
|
||||||
this.checkSmoothScrolling.Text = "Smooth Scrolling";
|
this.checkSmoothScrolling.Text = "Smooth Scrolling";
|
||||||
this.checkSmoothScrolling.UseVisualStyleBackColor = true;
|
this.checkSmoothScrolling.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// checkTouchAdjustment
|
||||||
|
//
|
||||||
|
this.checkTouchAdjustment.AutoSize = true;
|
||||||
|
this.checkTouchAdjustment.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
this.checkTouchAdjustment.Location = new System.Drawing.Point(6, 50);
|
||||||
|
this.checkTouchAdjustment.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
|
this.checkTouchAdjustment.Name = "checkTouchAdjustment";
|
||||||
|
this.checkTouchAdjustment.Size = new System.Drawing.Size(163, 19);
|
||||||
|
this.checkTouchAdjustment.TabIndex = 2;
|
||||||
|
this.checkTouchAdjustment.Text = "Touch Screen Adjustment";
|
||||||
|
this.checkTouchAdjustment.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// labelBrowserPath
|
// labelBrowserPath
|
||||||
//
|
//
|
||||||
this.labelBrowserPath.AutoSize = true;
|
this.labelBrowserPath.AutoSize = true;
|
||||||
this.labelBrowserPath.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelBrowserPath.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelBrowserPath.Location = new System.Drawing.Point(3, 222);
|
this.labelBrowserPath.Location = new System.Drawing.Point(3, 107);
|
||||||
this.labelBrowserPath.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelBrowserPath.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelBrowserPath.Name = "labelBrowserPath";
|
this.labelBrowserPath.Name = "labelBrowserPath";
|
||||||
this.labelBrowserPath.Size = new System.Drawing.Size(103, 15);
|
this.labelBrowserPath.Size = new System.Drawing.Size(104, 15);
|
||||||
this.labelBrowserPath.TabIndex = 8;
|
this.labelBrowserPath.TabIndex = 4;
|
||||||
this.labelBrowserPath.Text = "Open Links With...";
|
this.labelBrowserPath.Text = "Open Links With...";
|
||||||
//
|
//
|
||||||
// comboBoxBrowserPath
|
// comboBoxBrowserPath
|
||||||
//
|
//
|
||||||
this.comboBoxBrowserPath.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBoxBrowserPath.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBoxBrowserPath.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.comboBoxBrowserPath.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.comboBoxBrowserPath.FormattingEnabled = true;
|
this.comboBoxBrowserPath.FormattingEnabled = true;
|
||||||
this.comboBoxBrowserPath.Location = new System.Drawing.Point(5, 240);
|
this.comboBoxBrowserPath.Location = new System.Drawing.Point(5, 126);
|
||||||
this.comboBoxBrowserPath.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.comboBoxBrowserPath.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.comboBoxBrowserPath.Name = "comboBoxBrowserPath";
|
this.comboBoxBrowserPath.Name = "comboBoxBrowserPath";
|
||||||
this.comboBoxBrowserPath.Size = new System.Drawing.Size(173, 23);
|
this.comboBoxBrowserPath.Size = new System.Drawing.Size(173, 23);
|
||||||
this.comboBoxBrowserPath.TabIndex = 9;
|
this.comboBoxBrowserPath.TabIndex = 5;
|
||||||
//
|
//
|
||||||
// labelSearchEngine
|
// labelSearchEngine
|
||||||
//
|
//
|
||||||
this.labelSearchEngine.AutoSize = true;
|
this.labelSearchEngine.AutoSize = true;
|
||||||
this.labelSearchEngine.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelSearchEngine.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelSearchEngine.Location = new System.Drawing.Point(3, 276);
|
this.labelSearchEngine.Location = new System.Drawing.Point(3, 164);
|
||||||
this.labelSearchEngine.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelSearchEngine.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelSearchEngine.Name = "labelSearchEngine";
|
this.labelSearchEngine.Name = "labelSearchEngine";
|
||||||
this.labelSearchEngine.Size = new System.Drawing.Size(81, 15);
|
this.labelSearchEngine.Size = new System.Drawing.Size(82, 15);
|
||||||
this.labelSearchEngine.TabIndex = 10;
|
this.labelSearchEngine.TabIndex = 6;
|
||||||
this.labelSearchEngine.Text = "Search Engine";
|
this.labelSearchEngine.Text = "Search Engine";
|
||||||
//
|
//
|
||||||
// comboBoxSearchEngine
|
// comboBoxSearchEngine
|
||||||
//
|
//
|
||||||
this.comboBoxSearchEngine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBoxSearchEngine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBoxSearchEngine.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.comboBoxSearchEngine.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.comboBoxSearchEngine.FormattingEnabled = true;
|
this.comboBoxSearchEngine.FormattingEnabled = true;
|
||||||
this.comboBoxSearchEngine.Location = new System.Drawing.Point(5, 294);
|
this.comboBoxSearchEngine.Location = new System.Drawing.Point(5, 183);
|
||||||
this.comboBoxSearchEngine.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.comboBoxSearchEngine.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.comboBoxSearchEngine.Name = "comboBoxSearchEngine";
|
this.comboBoxSearchEngine.Name = "comboBoxSearchEngine";
|
||||||
this.comboBoxSearchEngine.Size = new System.Drawing.Size(173, 23);
|
this.comboBoxSearchEngine.Size = new System.Drawing.Size(173, 23);
|
||||||
this.comboBoxSearchEngine.TabIndex = 11;
|
this.comboBoxSearchEngine.TabIndex = 7;
|
||||||
|
//
|
||||||
|
// flowPanelRight
|
||||||
|
//
|
||||||
|
this.flowPanelRight.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelBrowserSettings);
|
||||||
|
this.flowPanelRight.Controls.Add(this.checkSmoothScrolling);
|
||||||
|
this.flowPanelRight.Controls.Add(this.checkTouchAdjustment);
|
||||||
|
this.flowPanelRight.Controls.Add(this.checkHardwareAcceleration);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelBrowserPath);
|
||||||
|
this.flowPanelRight.Controls.Add(this.comboBoxBrowserPath);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelSearchEngine);
|
||||||
|
this.flowPanelRight.Controls.Add(this.comboBoxSearchEngine);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelLocales);
|
||||||
|
this.flowPanelRight.Controls.Add(this.checkSpellCheck);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelSpellCheckLanguage);
|
||||||
|
this.flowPanelRight.Controls.Add(this.comboBoxSpellCheckLanguage);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelTranslationTarget);
|
||||||
|
this.flowPanelRight.Controls.Add(this.comboBoxTranslationTarget);
|
||||||
|
this.flowPanelRight.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
|
this.flowPanelRight.Location = new System.Drawing.Point(322, 9);
|
||||||
|
this.flowPanelRight.Name = "flowPanelRight";
|
||||||
|
this.flowPanelRight.Size = new System.Drawing.Size(300, 462);
|
||||||
|
this.flowPanelRight.TabIndex = 1;
|
||||||
|
this.flowPanelRight.WrapContents = false;
|
||||||
|
//
|
||||||
|
// checkHardwareAcceleration
|
||||||
|
//
|
||||||
|
this.checkHardwareAcceleration.AutoSize = true;
|
||||||
|
this.checkHardwareAcceleration.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
this.checkHardwareAcceleration.Location = new System.Drawing.Point(6, 74);
|
||||||
|
this.checkHardwareAcceleration.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
|
this.checkHardwareAcceleration.Name = "checkHardwareAcceleration";
|
||||||
|
this.checkHardwareAcceleration.Size = new System.Drawing.Size(146, 19);
|
||||||
|
this.checkHardwareAcceleration.TabIndex = 3;
|
||||||
|
this.checkHardwareAcceleration.Text = "Hardware Acceleration";
|
||||||
|
this.checkHardwareAcceleration.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// labelLocales
|
||||||
|
//
|
||||||
|
this.labelLocales.AutoSize = true;
|
||||||
|
this.labelLocales.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
|
this.labelLocales.Location = new System.Drawing.Point(0, 236);
|
||||||
|
this.labelLocales.Margin = new System.Windows.Forms.Padding(0, 27, 0, 1);
|
||||||
|
this.labelLocales.Name = "labelLocales";
|
||||||
|
this.labelLocales.Size = new System.Drawing.Size(67, 19);
|
||||||
|
this.labelLocales.TabIndex = 8;
|
||||||
|
this.labelLocales.Text = "LOCALES";
|
||||||
|
//
|
||||||
|
// checkSpellCheck
|
||||||
|
//
|
||||||
|
this.checkSpellCheck.AutoSize = true;
|
||||||
|
this.checkSpellCheck.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
this.checkSpellCheck.Location = new System.Drawing.Point(6, 262);
|
||||||
|
this.checkSpellCheck.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
||||||
|
this.checkSpellCheck.Name = "checkSpellCheck";
|
||||||
|
this.checkSpellCheck.Size = new System.Drawing.Size(125, 19);
|
||||||
|
this.checkSpellCheck.TabIndex = 9;
|
||||||
|
this.checkSpellCheck.Text = "Enable Spell Check";
|
||||||
|
this.checkSpellCheck.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// labelSpellCheckLanguage
|
||||||
|
//
|
||||||
|
this.labelSpellCheckLanguage.AutoSize = true;
|
||||||
|
this.labelSpellCheckLanguage.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
|
this.labelSpellCheckLanguage.Location = new System.Drawing.Point(3, 295);
|
||||||
|
this.labelSpellCheckLanguage.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
|
this.labelSpellCheckLanguage.Name = "labelSpellCheckLanguage";
|
||||||
|
this.labelSpellCheckLanguage.Size = new System.Drawing.Size(123, 15);
|
||||||
|
this.labelSpellCheckLanguage.TabIndex = 10;
|
||||||
|
this.labelSpellCheckLanguage.Text = "Spell Check Language";
|
||||||
|
//
|
||||||
|
// comboBoxSpellCheckLanguage
|
||||||
|
//
|
||||||
|
this.comboBoxSpellCheckLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.comboBoxSpellCheckLanguage.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
this.comboBoxSpellCheckLanguage.FormattingEnabled = true;
|
||||||
|
this.comboBoxSpellCheckLanguage.Location = new System.Drawing.Point(5, 314);
|
||||||
|
this.comboBoxSpellCheckLanguage.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
|
this.comboBoxSpellCheckLanguage.Name = "comboBoxSpellCheckLanguage";
|
||||||
|
this.comboBoxSpellCheckLanguage.Size = new System.Drawing.Size(290, 23);
|
||||||
|
this.comboBoxSpellCheckLanguage.TabIndex = 11;
|
||||||
|
//
|
||||||
|
// labelTranslationTarget
|
||||||
|
//
|
||||||
|
this.labelTranslationTarget.AutoSize = true;
|
||||||
|
this.labelTranslationTarget.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
|
this.labelTranslationTarget.Location = new System.Drawing.Point(3, 352);
|
||||||
|
this.labelTranslationTarget.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
|
this.labelTranslationTarget.Name = "labelTranslationTarget";
|
||||||
|
this.labelTranslationTarget.Size = new System.Drawing.Size(142, 15);
|
||||||
|
this.labelTranslationTarget.TabIndex = 12;
|
||||||
|
this.labelTranslationTarget.Text = "Bing Translator Language";
|
||||||
|
//
|
||||||
|
// comboBoxTranslationTarget
|
||||||
|
//
|
||||||
|
this.comboBoxTranslationTarget.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.comboBoxTranslationTarget.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
|
this.comboBoxTranslationTarget.FormattingEnabled = true;
|
||||||
|
this.comboBoxTranslationTarget.Location = new System.Drawing.Point(5, 371);
|
||||||
|
this.comboBoxTranslationTarget.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
|
this.comboBoxTranslationTarget.Name = "comboBoxTranslationTarget";
|
||||||
|
this.comboBoxTranslationTarget.Size = new System.Drawing.Size(290, 23);
|
||||||
|
this.comboBoxTranslationTarget.TabIndex = 13;
|
||||||
|
//
|
||||||
|
// panelSeparator
|
||||||
|
//
|
||||||
|
this.panelSeparator.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.panelSeparator.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
|
||||||
|
this.panelSeparator.Location = new System.Drawing.Point(312, 0);
|
||||||
|
this.panelSeparator.Margin = new System.Windows.Forms.Padding(0, 0, 6, 0);
|
||||||
|
this.panelSeparator.Name = "panelSeparator";
|
||||||
|
this.panelSeparator.Size = new System.Drawing.Size(1, 480);
|
||||||
|
this.panelSeparator.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// TabSettingsGeneral
|
// TabSettingsGeneral
|
||||||
//
|
//
|
||||||
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.Controls.Add(this.flowPanel);
|
this.Controls.Add(this.panelSeparator);
|
||||||
|
this.Controls.Add(this.flowPanelRight);
|
||||||
|
this.Controls.Add(this.flowPanelLeft);
|
||||||
this.Name = "TabSettingsGeneral";
|
this.Name = "TabSettingsGeneral";
|
||||||
this.Size = new System.Drawing.Size(340, 504);
|
this.Size = new System.Drawing.Size(631, 480);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).EndInit();
|
||||||
this.panelZoom.ResumeLayout(false);
|
this.panelZoom.ResumeLayout(false);
|
||||||
this.flowPanel.ResumeLayout(false);
|
this.flowPanelLeft.ResumeLayout(false);
|
||||||
this.flowPanel.PerformLayout();
|
this.flowPanelLeft.PerformLayout();
|
||||||
|
this.flowPanelRight.ResumeLayout(false);
|
||||||
|
this.flowPanelRight.PerformLayout();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -339,7 +526,7 @@
|
|||||||
private System.Windows.Forms.CheckBox checkBestImageQuality;
|
private System.Windows.Forms.CheckBox checkBestImageQuality;
|
||||||
private System.Windows.Forms.CheckBox checkOpenSearchInFirstColumn;
|
private System.Windows.Forms.CheckBox checkOpenSearchInFirstColumn;
|
||||||
private System.Windows.Forms.CheckBox checkAnimatedAvatars;
|
private System.Windows.Forms.CheckBox checkAnimatedAvatars;
|
||||||
private System.Windows.Forms.FlowLayoutPanel flowPanel;
|
private System.Windows.Forms.FlowLayoutPanel flowPanelLeft;
|
||||||
private System.Windows.Forms.CheckBox checkKeepLikeFollowDialogsOpen;
|
private System.Windows.Forms.CheckBox checkKeepLikeFollowDialogsOpen;
|
||||||
private System.Windows.Forms.Label labelBrowserPath;
|
private System.Windows.Forms.Label labelBrowserPath;
|
||||||
private System.Windows.Forms.ComboBox comboBoxBrowserPath;
|
private System.Windows.Forms.ComboBox comboBoxBrowserPath;
|
||||||
@@ -347,5 +534,19 @@
|
|||||||
private System.Windows.Forms.CheckBox checkSmoothScrolling;
|
private System.Windows.Forms.CheckBox checkSmoothScrolling;
|
||||||
private System.Windows.Forms.Label labelSearchEngine;
|
private System.Windows.Forms.Label labelSearchEngine;
|
||||||
private System.Windows.Forms.ComboBox comboBoxSearchEngine;
|
private System.Windows.Forms.ComboBox comboBoxSearchEngine;
|
||||||
|
private System.Windows.Forms.CheckBox checkTouchAdjustment;
|
||||||
|
private System.Windows.Forms.FlowLayoutPanel flowPanelRight;
|
||||||
|
private System.Windows.Forms.Panel panelSeparator;
|
||||||
|
private System.Windows.Forms.Label labelTray;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxTrayType;
|
||||||
|
private System.Windows.Forms.Label labelTrayIcon;
|
||||||
|
private System.Windows.Forms.CheckBox checkTrayHighlight;
|
||||||
|
private System.Windows.Forms.Label labelLocales;
|
||||||
|
private System.Windows.Forms.CheckBox checkSpellCheck;
|
||||||
|
private System.Windows.Forms.Label labelSpellCheckLanguage;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxSpellCheckLanguage;
|
||||||
|
private System.Windows.Forms.Label labelTranslationTarget;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxTranslationTarget;
|
||||||
|
private System.Windows.Forms.CheckBox checkHardwareAcceleration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -7,7 +7,6 @@ using TweetDuck.Core.Handling.General;
|
|||||||
using TweetDuck.Core.Other.Settings.Dialogs;
|
using TweetDuck.Core.Other.Settings.Dialogs;
|
||||||
using TweetDuck.Core.Utils;
|
using TweetDuck.Core.Utils;
|
||||||
using TweetDuck.Updates;
|
using TweetDuck.Updates;
|
||||||
using TweetDuck.Updates.Events;
|
|
||||||
|
|
||||||
namespace TweetDuck.Core.Other.Settings{
|
namespace TweetDuck.Core.Other.Settings{
|
||||||
sealed partial class TabSettingsGeneral : BaseTabSettings{
|
sealed partial class TabSettingsGeneral : BaseTabSettings{
|
||||||
@@ -29,29 +28,61 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
|
|
||||||
this.updates = updates;
|
this.updates = updates;
|
||||||
this.updates.CheckFinished += updates_CheckFinished;
|
this.updates.CheckFinished += updates_CheckFinished;
|
||||||
|
|
||||||
Disposed += (sender, args) => this.updates.CheckFinished -= updates_CheckFinished;
|
Disposed += (sender, args) => this.updates.CheckFinished -= updates_CheckFinished;
|
||||||
|
|
||||||
|
// user interface
|
||||||
|
|
||||||
toolTip.SetToolTip(checkExpandLinks, "Expands links inside the tweets. If disabled,\r\nthe full links show up in a tooltip instead.");
|
toolTip.SetToolTip(checkExpandLinks, "Expands links inside the tweets. If disabled,\r\nthe full links show up in a tooltip instead.");
|
||||||
toolTip.SetToolTip(checkOpenSearchInFirstColumn, "By default, TweetDeck adds Search columns at the end.\r\nThis option makes them appear before the first column instead.");
|
toolTip.SetToolTip(checkOpenSearchInFirstColumn, "By default, TweetDeck adds Search columns at the end.\r\nThis option makes them appear before the first column instead.");
|
||||||
toolTip.SetToolTip(checkKeepLikeFollowDialogsOpen, "Allows liking and following from multiple accounts at once,\r\ninstead of automatically closing the dialog after taking an action.");
|
toolTip.SetToolTip(checkKeepLikeFollowDialogsOpen, "Allows liking and following from multiple accounts at once,\r\ninstead of automatically closing the dialog after taking an action.");
|
||||||
toolTip.SetToolTip(checkBestImageQuality, "When right-clicking a tweet image, the context menu options\r\nwill use links to the original image size (:orig in the URL).");
|
toolTip.SetToolTip(checkBestImageQuality, "When right-clicking a tweet image, the context menu options\r\nwill use links to the original image size (:orig in the URL).");
|
||||||
toolTip.SetToolTip(checkAnimatedAvatars, "Some old Twitter avatars could be uploaded as animated GIFs.");
|
toolTip.SetToolTip(checkAnimatedAvatars, "Some old Twitter avatars could be uploaded as animated GIFs.");
|
||||||
|
|
||||||
toolTip.SetToolTip(checkSmoothScrolling, "Toggles smooth mouse wheel scrolling.");
|
|
||||||
toolTip.SetToolTip(comboBoxBrowserPath, "Sets the default browser for opening links.");
|
|
||||||
toolTip.SetToolTip(labelZoomValue, "Changes the zoom level.\r\nAlso affects notifications and screenshots.");
|
toolTip.SetToolTip(labelZoomValue, "Changes the zoom level.\r\nAlso affects notifications and screenshots.");
|
||||||
toolTip.SetToolTip(trackBarZoom, toolTip.GetToolTip(labelZoomValue));
|
toolTip.SetToolTip(trackBarZoom, toolTip.GetToolTip(labelZoomValue));
|
||||||
|
|
||||||
toolTip.SetToolTip(checkUpdateNotifications, "Checks for updates every hour.\r\nIf an update is dismissed, it will not appear again.");
|
|
||||||
toolTip.SetToolTip(btnCheckUpdates, "Forces an update check, even for updates that had been dismissed.");
|
|
||||||
|
|
||||||
checkExpandLinks.Checked = Config.ExpandLinksOnHover;
|
checkExpandLinks.Checked = Config.ExpandLinksOnHover;
|
||||||
checkOpenSearchInFirstColumn.Checked = Config.OpenSearchInFirstColumn;
|
checkOpenSearchInFirstColumn.Checked = Config.OpenSearchInFirstColumn;
|
||||||
checkKeepLikeFollowDialogsOpen.Checked = Config.KeepLikeFollowDialogsOpen;
|
checkKeepLikeFollowDialogsOpen.Checked = Config.KeepLikeFollowDialogsOpen;
|
||||||
checkBestImageQuality.Checked = Config.BestImageQuality;
|
checkBestImageQuality.Checked = Config.BestImageQuality;
|
||||||
checkAnimatedAvatars.Checked = Config.EnableAnimatedImages;
|
checkAnimatedAvatars.Checked = Config.EnableAnimatedImages;
|
||||||
|
|
||||||
|
trackBarZoom.SetValueSafe(Config.ZoomLevel);
|
||||||
|
labelZoomValue.Text = trackBarZoom.Value+"%";
|
||||||
|
|
||||||
|
// system tray
|
||||||
|
|
||||||
|
toolTip.SetToolTip(comboBoxTrayType, "Changes behavior of the Tray icon.\r\nRight-click the icon for an action menu.");
|
||||||
|
toolTip.SetToolTip(checkTrayHighlight, "Highlights the tray icon if there are new tweets.\r\nOnly works for columns with popup or audio notifications.\r\nThe icon resets when the main window is restored.");
|
||||||
|
|
||||||
|
comboBoxTrayType.Items.Add("Disabled");
|
||||||
|
comboBoxTrayType.Items.Add("Display Icon Only");
|
||||||
|
comboBoxTrayType.Items.Add("Minimize to Tray");
|
||||||
|
comboBoxTrayType.Items.Add("Close to Tray");
|
||||||
|
comboBoxTrayType.Items.Add("Combined");
|
||||||
|
comboBoxTrayType.SelectedIndex = Math.Min(Math.Max((int)Config.TrayBehavior, 0), comboBoxTrayType.Items.Count-1);
|
||||||
|
|
||||||
|
checkTrayHighlight.Enabled = Config.TrayBehavior.ShouldDisplayIcon();
|
||||||
|
checkTrayHighlight.Checked = Config.EnableTrayHighlight;
|
||||||
|
|
||||||
|
// updates
|
||||||
|
|
||||||
|
toolTip.SetToolTip(checkUpdateNotifications, "Checks for updates every hour.\r\nIf an update is dismissed, it will not appear again.");
|
||||||
|
toolTip.SetToolTip(btnCheckUpdates, "Forces an update check, even for updates that had been dismissed.");
|
||||||
|
|
||||||
|
checkUpdateNotifications.Checked = Config.EnableUpdateCheck;
|
||||||
|
|
||||||
|
// browser settings
|
||||||
|
|
||||||
|
toolTip.SetToolTip(checkSmoothScrolling, "Toggles smooth mouse wheel scrolling.");
|
||||||
|
toolTip.SetToolTip(checkTouchAdjustment, "Toggles Chromium touch screen adjustment.\r\nDisabled by default, because it is very imprecise with TweetDeck.");
|
||||||
|
toolTip.SetToolTip(checkHardwareAcceleration, "Uses graphics card to improve performance.\r\nDisable if you experience visual glitches, or to save a small amount of RAM.");
|
||||||
|
toolTip.SetToolTip(comboBoxBrowserPath, "Sets the default browser for opening links.");
|
||||||
|
toolTip.SetToolTip(comboBoxSearchEngine, "Sets the default website for opening searches.");
|
||||||
|
|
||||||
checkSmoothScrolling.Checked = Config.EnableSmoothScrolling;
|
checkSmoothScrolling.Checked = Config.EnableSmoothScrolling;
|
||||||
|
checkTouchAdjustment.Checked = Config.EnableTouchAdjustment;
|
||||||
|
checkHardwareAcceleration.Checked = SysConfig.HardwareAcceleration;
|
||||||
|
|
||||||
foreach(WindowsUtils.Browser browserInfo in WindowsUtils.FindInstalledBrowsers()){
|
foreach(WindowsUtils.Browser browserInfo in WindowsUtils.FindInstalledBrowsers()){
|
||||||
comboBoxBrowserPath.Items.Add(browserInfo);
|
comboBoxBrowserPath.Items.Add(browserInfo);
|
||||||
@@ -69,10 +100,29 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
searchEngineIndexCustom = comboBoxSearchEngine.Items.Add("(custom url...)");
|
searchEngineIndexCustom = comboBoxSearchEngine.Items.Add("(custom url...)");
|
||||||
UpdateSearchEngineSelection();
|
UpdateSearchEngineSelection();
|
||||||
|
|
||||||
trackBarZoom.SetValueSafe(Config.ZoomLevel);
|
// locales
|
||||||
labelZoomValue.Text = trackBarZoom.Value+"%";
|
|
||||||
|
|
||||||
checkUpdateNotifications.Checked = Config.EnableUpdateCheck;
|
toolTip.SetToolTip(checkSpellCheck, "Underlines words that are spelled incorrectly.");
|
||||||
|
toolTip.SetToolTip(comboBoxSpellCheckLanguage, "Language used for spell check.");
|
||||||
|
toolTip.SetToolTip(comboBoxTranslationTarget, "Language tweets are translated into.");
|
||||||
|
|
||||||
|
checkSpellCheck.Checked = Config.EnableSpellCheck;
|
||||||
|
|
||||||
|
try{
|
||||||
|
foreach(LocaleUtils.Item item in LocaleUtils.SpellCheckLanguages){
|
||||||
|
comboBoxSpellCheckLanguage.Items.Add(item);
|
||||||
|
}
|
||||||
|
}catch{
|
||||||
|
comboBoxSpellCheckLanguage.Items.Add(new LocaleUtils.Item("en-US"));
|
||||||
|
}
|
||||||
|
|
||||||
|
comboBoxSpellCheckLanguage.SelectedItem = new LocaleUtils.Item(Config.SpellCheckLanguage);
|
||||||
|
|
||||||
|
foreach(LocaleUtils.Item item in LocaleUtils.TweetDeckTranslationLocales){
|
||||||
|
comboBoxTranslationTarget.Items.Add(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
comboBoxTranslationTarget.SelectedItem = new LocaleUtils.Item(Config.TranslationTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnReady(){
|
public override void OnReady(){
|
||||||
@@ -81,20 +131,31 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
checkKeepLikeFollowDialogsOpen.CheckedChanged += checkKeepLikeFollowDialogsOpen_CheckedChanged;
|
checkKeepLikeFollowDialogsOpen.CheckedChanged += checkKeepLikeFollowDialogsOpen_CheckedChanged;
|
||||||
checkBestImageQuality.CheckedChanged += checkBestImageQuality_CheckedChanged;
|
checkBestImageQuality.CheckedChanged += checkBestImageQuality_CheckedChanged;
|
||||||
checkAnimatedAvatars.CheckedChanged += checkAnimatedAvatars_CheckedChanged;
|
checkAnimatedAvatars.CheckedChanged += checkAnimatedAvatars_CheckedChanged;
|
||||||
|
|
||||||
checkSmoothScrolling.CheckedChanged += checkSmoothScrolling_CheckedChanged;
|
|
||||||
comboBoxBrowserPath.SelectedIndexChanged += comboBoxBrowserPath_SelectedIndexChanged;
|
|
||||||
comboBoxSearchEngine.SelectedIndexChanged += comboBoxSearchEngine_SelectedIndexChanged;
|
|
||||||
trackBarZoom.ValueChanged += trackBarZoom_ValueChanged;
|
trackBarZoom.ValueChanged += trackBarZoom_ValueChanged;
|
||||||
|
|
||||||
|
comboBoxTrayType.SelectedIndexChanged += comboBoxTrayType_SelectedIndexChanged;
|
||||||
|
checkTrayHighlight.CheckedChanged += checkTrayHighlight_CheckedChanged;
|
||||||
|
|
||||||
checkUpdateNotifications.CheckedChanged += checkUpdateNotifications_CheckedChanged;
|
checkUpdateNotifications.CheckedChanged += checkUpdateNotifications_CheckedChanged;
|
||||||
btnCheckUpdates.Click += btnCheckUpdates_Click;
|
btnCheckUpdates.Click += btnCheckUpdates_Click;
|
||||||
|
|
||||||
|
checkSmoothScrolling.CheckedChanged += checkSmoothScrolling_CheckedChanged;
|
||||||
|
checkTouchAdjustment.CheckedChanged += checkTouchAdjustment_CheckedChanged;
|
||||||
|
checkHardwareAcceleration.CheckedChanged += checkHardwareAcceleration_CheckedChanged;
|
||||||
|
comboBoxBrowserPath.SelectedIndexChanged += comboBoxBrowserPath_SelectedIndexChanged;
|
||||||
|
comboBoxSearchEngine.SelectedIndexChanged += comboBoxSearchEngine_SelectedIndexChanged;
|
||||||
|
|
||||||
|
checkSpellCheck.CheckedChanged += checkSpellCheck_CheckedChanged;
|
||||||
|
comboBoxSpellCheckLanguage.SelectedValueChanged += comboBoxSpellCheckLanguage_SelectedValueChanged;
|
||||||
|
comboBoxTranslationTarget.SelectedValueChanged += comboBoxTranslationTarget_SelectedValueChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnClosing(){
|
public override void OnClosing(){
|
||||||
Config.ZoomLevel = trackBarZoom.Value;
|
Config.ZoomLevel = trackBarZoom.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region User Interface
|
||||||
|
|
||||||
private void checkExpandLinks_CheckedChanged(object sender, EventArgs e){
|
private void checkExpandLinks_CheckedChanged(object sender, EventArgs e){
|
||||||
Config.ExpandLinksOnHover = checkExpandLinks.Checked;
|
Config.ExpandLinksOnHover = checkExpandLinks.Checked;
|
||||||
}
|
}
|
||||||
@@ -116,9 +177,72 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
BrowserProcessHandler.UpdatePrefs().ContinueWith(task => reloadColumns());
|
BrowserProcessHandler.UpdatePrefs().ContinueWith(task => reloadColumns());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void trackBarZoom_ValueChanged(object sender, EventArgs e){
|
||||||
|
if (trackBarZoom.AlignValueToTick()){
|
||||||
|
zoomUpdateTimer.Stop();
|
||||||
|
zoomUpdateTimer.Start();
|
||||||
|
labelZoomValue.Text = trackBarZoom.Value+"%";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void zoomUpdateTimer_Tick(object sender, EventArgs e){
|
||||||
|
Config.ZoomLevel = trackBarZoom.Value;
|
||||||
|
zoomUpdateTimer.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region System Tray
|
||||||
|
|
||||||
|
private void comboBoxTrayType_SelectedIndexChanged(object sender, EventArgs e){
|
||||||
|
Config.TrayBehavior = (TrayIcon.Behavior)comboBoxTrayType.SelectedIndex;
|
||||||
|
checkTrayHighlight.Enabled = Config.TrayBehavior.ShouldDisplayIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkTrayHighlight_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.EnableTrayHighlight = checkTrayHighlight.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region Updates
|
||||||
|
|
||||||
|
private void checkUpdateNotifications_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.EnableUpdateCheck = checkUpdateNotifications.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnCheckUpdates_Click(object sender, EventArgs e){
|
||||||
|
Config.DismissedUpdate = null;
|
||||||
|
|
||||||
|
btnCheckUpdates.Enabled = false;
|
||||||
|
updateCheckEventId = updates.Check(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updates_CheckFinished(object sender, UpdateCheckEventArgs e){
|
||||||
|
if (e.EventId == updateCheckEventId){
|
||||||
|
btnCheckUpdates.Enabled = true;
|
||||||
|
|
||||||
|
e.Result.Handle(update => {
|
||||||
|
if (update.VersionTag == Program.VersionTag){
|
||||||
|
FormMessage.Information("No Updates Available", "Your version of TweetDuck is up to date.", FormMessage.OK);
|
||||||
|
}
|
||||||
|
}, ex => {
|
||||||
|
Program.Reporter.HandleException("Update Check Error", "An error occurred while checking for updates.", true, ex);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region Browser Settings
|
||||||
|
|
||||||
private void checkSmoothScrolling_CheckedChanged(object sender, EventArgs e){
|
private void checkSmoothScrolling_CheckedChanged(object sender, EventArgs e){
|
||||||
Config.EnableSmoothScrolling = checkSmoothScrolling.Checked;
|
Config.EnableSmoothScrolling = checkSmoothScrolling.Checked;
|
||||||
PromptRestart();
|
}
|
||||||
|
|
||||||
|
private void checkTouchAdjustment_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.EnableTouchAdjustment = checkTouchAdjustment.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkHardwareAcceleration_CheckedChanged(object sender, EventArgs e){
|
||||||
|
SysConfig.HardwareAcceleration = checkHardwareAcceleration.Checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateBrowserPathSelection(){
|
private void UpdateBrowserPathSelection(){
|
||||||
@@ -193,49 +317,6 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void trackBarZoom_ValueChanged(object sender, EventArgs e){
|
|
||||||
if (trackBarZoom.AlignValueToTick()){
|
|
||||||
zoomUpdateTimer.Stop();
|
|
||||||
zoomUpdateTimer.Start();
|
|
||||||
labelZoomValue.Text = trackBarZoom.Value+"%";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkUpdateNotifications_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.EnableUpdateCheck = checkUpdateNotifications.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnCheckUpdates_Click(object sender, EventArgs e){
|
|
||||||
Config.DismissedUpdate = null;
|
|
||||||
|
|
||||||
btnCheckUpdates.Enabled = false;
|
|
||||||
updateCheckEventId = updates.Check(true);
|
|
||||||
|
|
||||||
if (updateCheckEventId == UpdateHandler.CheckCodeNotOnTweetDeck){
|
|
||||||
FormMessage.Error("Update Check", "Updates can only be checked once TweetDeck is fully loaded.", FormMessage.OK);
|
|
||||||
btnCheckUpdates.Enabled = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updates_CheckFinished(object sender, UpdateCheckEventArgs e){
|
|
||||||
if (e.EventId == updateCheckEventId){
|
|
||||||
btnCheckUpdates.Enabled = true;
|
|
||||||
|
|
||||||
e.Result.Handle(update => {
|
|
||||||
if (update.VersionTag == Program.VersionTag){
|
|
||||||
FormMessage.Information("No Updates Available", "Your version of TweetDuck is up to date.", FormMessage.OK);
|
|
||||||
}
|
|
||||||
}, ex => {
|
|
||||||
Program.Reporter.HandleException("Update Check Error", "An error occurred while checking for updates.", true, ex);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void zoomUpdateTimer_Tick(object sender, EventArgs e){
|
|
||||||
Config.ZoomLevel = trackBarZoom.Value;
|
|
||||||
zoomUpdateTimer.Stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
private sealed class SearchEngine{
|
private sealed class SearchEngine{
|
||||||
private string Name { get; }
|
private string Name { get; }
|
||||||
public string Url { get; }
|
public string Url { get; }
|
||||||
@@ -249,5 +330,23 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
public override bool Equals(object obj) => obj is SearchEngine other && Name == other.Name;
|
public override bool Equals(object obj) => obj is SearchEngine other && Name == other.Name;
|
||||||
public override string ToString() => Name;
|
public override string ToString() => Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region Locales
|
||||||
|
|
||||||
|
private void checkSpellCheck_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.EnableSpellCheck = checkSpellCheck.Checked;
|
||||||
|
BrowserProcessHandler.UpdatePrefs();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBoxSpellCheckLanguage_SelectedValueChanged(object sender, EventArgs e){
|
||||||
|
Config.SpellCheckLanguage = (comboBoxSpellCheckLanguage.SelectedItem as LocaleUtils.Item)?.Code ?? "en-US";
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBoxTranslationTarget_SelectedValueChanged(object sender, EventArgs e){
|
||||||
|
Config.TranslationTarget = (comboBoxTranslationTarget.SelectedItem as LocaleUtils.Item)?.Code ?? "en";
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
160
Core/Other/Settings/TabSettingsLocales.Designer.cs
generated
160
Core/Other/Settings/TabSettingsLocales.Designer.cs
generated
@@ -1,160 +0,0 @@
|
|||||||
namespace TweetDuck.Core.Other.Settings {
|
|
||||||
partial class TabSettingsLocales {
|
|
||||||
/// <summary>
|
|
||||||
/// Required designer variable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Clean up any resources being used.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
||||||
protected override void Dispose(bool disposing) {
|
|
||||||
if (disposing && (components != null)) {
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Component Designer generated code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent() {
|
|
||||||
this.components = new System.ComponentModel.Container();
|
|
||||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
|
||||||
this.checkSpellCheck = new System.Windows.Forms.CheckBox();
|
|
||||||
this.labelLocales = new System.Windows.Forms.Label();
|
|
||||||
this.flowPanel = new System.Windows.Forms.FlowLayoutPanel();
|
|
||||||
this.labelSpellCheckLanguage = new System.Windows.Forms.Label();
|
|
||||||
this.comboBoxSpellCheckLanguage = new System.Windows.Forms.ComboBox();
|
|
||||||
this.labelTranslations = new System.Windows.Forms.Label();
|
|
||||||
this.labelTranslationTarget = new System.Windows.Forms.Label();
|
|
||||||
this.comboBoxTranslationTarget = new System.Windows.Forms.ComboBox();
|
|
||||||
this.flowPanel.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// checkSpellCheck
|
|
||||||
//
|
|
||||||
this.checkSpellCheck.AutoSize = true;
|
|
||||||
this.checkSpellCheck.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.checkSpellCheck.Location = new System.Drawing.Point(6, 26);
|
|
||||||
this.checkSpellCheck.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
|
||||||
this.checkSpellCheck.Name = "checkSpellCheck";
|
|
||||||
this.checkSpellCheck.Size = new System.Drawing.Size(125, 19);
|
|
||||||
this.checkSpellCheck.TabIndex = 1;
|
|
||||||
this.checkSpellCheck.Text = "Enable Spell Check";
|
|
||||||
this.checkSpellCheck.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// labelLocales
|
|
||||||
//
|
|
||||||
this.labelLocales.AutoSize = true;
|
|
||||||
this.labelLocales.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.labelLocales.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.labelLocales.Margin = new System.Windows.Forms.Padding(0);
|
|
||||||
this.labelLocales.Name = "labelLocales";
|
|
||||||
this.labelLocales.Size = new System.Drawing.Size(58, 20);
|
|
||||||
this.labelLocales.TabIndex = 0;
|
|
||||||
this.labelLocales.Text = "Locales";
|
|
||||||
//
|
|
||||||
// flowPanel
|
|
||||||
//
|
|
||||||
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.flowPanel.Controls.Add(this.labelLocales);
|
|
||||||
this.flowPanel.Controls.Add(this.checkSpellCheck);
|
|
||||||
this.flowPanel.Controls.Add(this.labelSpellCheckLanguage);
|
|
||||||
this.flowPanel.Controls.Add(this.comboBoxSpellCheckLanguage);
|
|
||||||
this.flowPanel.Controls.Add(this.labelTranslations);
|
|
||||||
this.flowPanel.Controls.Add(this.labelTranslationTarget);
|
|
||||||
this.flowPanel.Controls.Add(this.comboBoxTranslationTarget);
|
|
||||||
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
|
||||||
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
|
||||||
this.flowPanel.Name = "flowPanel";
|
|
||||||
this.flowPanel.Size = new System.Drawing.Size(322, 201);
|
|
||||||
this.flowPanel.TabIndex = 0;
|
|
||||||
this.flowPanel.WrapContents = false;
|
|
||||||
//
|
|
||||||
// labelSpellCheckLanguage
|
|
||||||
//
|
|
||||||
this.labelSpellCheckLanguage.AutoSize = true;
|
|
||||||
this.labelSpellCheckLanguage.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.labelSpellCheckLanguage.Location = new System.Drawing.Point(3, 59);
|
|
||||||
this.labelSpellCheckLanguage.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
|
||||||
this.labelSpellCheckLanguage.Name = "labelSpellCheckLanguage";
|
|
||||||
this.labelSpellCheckLanguage.Size = new System.Drawing.Size(123, 15);
|
|
||||||
this.labelSpellCheckLanguage.TabIndex = 2;
|
|
||||||
this.labelSpellCheckLanguage.Text = "Spell Check Language";
|
|
||||||
//
|
|
||||||
// comboBoxSpellCheckLanguage
|
|
||||||
//
|
|
||||||
this.comboBoxSpellCheckLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
||||||
this.comboBoxSpellCheckLanguage.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.comboBoxSpellCheckLanguage.FormattingEnabled = true;
|
|
||||||
this.comboBoxSpellCheckLanguage.Location = new System.Drawing.Point(5, 77);
|
|
||||||
this.comboBoxSpellCheckLanguage.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
|
||||||
this.comboBoxSpellCheckLanguage.Name = "comboBoxSpellCheckLanguage";
|
|
||||||
this.comboBoxSpellCheckLanguage.Size = new System.Drawing.Size(311, 23);
|
|
||||||
this.comboBoxSpellCheckLanguage.TabIndex = 3;
|
|
||||||
//
|
|
||||||
// labelTranslations
|
|
||||||
//
|
|
||||||
this.labelTranslations.AutoSize = true;
|
|
||||||
this.labelTranslations.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.labelTranslations.Location = new System.Drawing.Point(0, 123);
|
|
||||||
this.labelTranslations.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
|
||||||
this.labelTranslations.Name = "labelTranslations";
|
|
||||||
this.labelTranslations.Size = new System.Drawing.Size(109, 20);
|
|
||||||
this.labelTranslations.TabIndex = 4;
|
|
||||||
this.labelTranslations.Text = "Bing Translator";
|
|
||||||
//
|
|
||||||
// labelTranslationTarget
|
|
||||||
//
|
|
||||||
this.labelTranslationTarget.AutoSize = true;
|
|
||||||
this.labelTranslationTarget.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.labelTranslationTarget.Location = new System.Drawing.Point(3, 155);
|
|
||||||
this.labelTranslationTarget.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
|
||||||
this.labelTranslationTarget.Name = "labelTranslationTarget";
|
|
||||||
this.labelTranslationTarget.Size = new System.Drawing.Size(96, 15);
|
|
||||||
this.labelTranslationTarget.TabIndex = 5;
|
|
||||||
this.labelTranslationTarget.Text = "Target Language";
|
|
||||||
//
|
|
||||||
// comboBoxTranslationTarget
|
|
||||||
//
|
|
||||||
this.comboBoxTranslationTarget.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
||||||
this.comboBoxTranslationTarget.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.comboBoxTranslationTarget.FormattingEnabled = true;
|
|
||||||
this.comboBoxTranslationTarget.Location = new System.Drawing.Point(5, 173);
|
|
||||||
this.comboBoxTranslationTarget.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
|
||||||
this.comboBoxTranslationTarget.Name = "comboBoxTranslationTarget";
|
|
||||||
this.comboBoxTranslationTarget.Size = new System.Drawing.Size(311, 23);
|
|
||||||
this.comboBoxTranslationTarget.TabIndex = 6;
|
|
||||||
//
|
|
||||||
// TabSettingsLocales
|
|
||||||
//
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.Controls.Add(this.flowPanel);
|
|
||||||
this.Name = "TabSettingsLocales";
|
|
||||||
this.Size = new System.Drawing.Size(340, 219);
|
|
||||||
this.flowPanel.ResumeLayout(false);
|
|
||||||
this.flowPanel.PerformLayout();
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
private System.Windows.Forms.ToolTip toolTip;
|
|
||||||
private System.Windows.Forms.CheckBox checkSpellCheck;
|
|
||||||
private System.Windows.Forms.Label labelLocales;
|
|
||||||
private System.Windows.Forms.FlowLayoutPanel flowPanel;
|
|
||||||
private System.Windows.Forms.ComboBox comboBoxTranslationTarget;
|
|
||||||
private System.Windows.Forms.Label labelTranslationTarget;
|
|
||||||
private System.Windows.Forms.ComboBox comboBoxSpellCheckLanguage;
|
|
||||||
private System.Windows.Forms.Label labelTranslations;
|
|
||||||
private System.Windows.Forms.Label labelSpellCheckLanguage;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,53 +0,0 @@
|
|||||||
using System;
|
|
||||||
using TweetDuck.Core.Handling.General;
|
|
||||||
using TweetDuck.Core.Utils;
|
|
||||||
|
|
||||||
namespace TweetDuck.Core.Other.Settings{
|
|
||||||
sealed partial class TabSettingsLocales : BaseTabSettings{
|
|
||||||
public TabSettingsLocales(){
|
|
||||||
InitializeComponent();
|
|
||||||
|
|
||||||
toolTip.SetToolTip(checkSpellCheck, "Underlines words that are spelled incorrectly.");
|
|
||||||
toolTip.SetToolTip(comboBoxSpellCheckLanguage, "Language used for spell check.");
|
|
||||||
toolTip.SetToolTip(comboBoxTranslationTarget, "Language tweets are translated into.");
|
|
||||||
|
|
||||||
checkSpellCheck.Checked = Config.EnableSpellCheck;
|
|
||||||
|
|
||||||
try{
|
|
||||||
foreach(LocaleUtils.Item item in LocaleUtils.SpellCheckLanguages){
|
|
||||||
comboBoxSpellCheckLanguage.Items.Add(item);
|
|
||||||
}
|
|
||||||
}catch{
|
|
||||||
comboBoxSpellCheckLanguage.Items.Add(new LocaleUtils.Item("en-US"));
|
|
||||||
}
|
|
||||||
|
|
||||||
comboBoxSpellCheckLanguage.SelectedItem = new LocaleUtils.Item(Config.SpellCheckLanguage);
|
|
||||||
|
|
||||||
foreach(LocaleUtils.Item item in LocaleUtils.TweetDeckTranslationLocales){
|
|
||||||
comboBoxTranslationTarget.Items.Add(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
comboBoxTranslationTarget.SelectedItem = new LocaleUtils.Item(Config.TranslationTarget);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnReady(){
|
|
||||||
checkSpellCheck.CheckedChanged += checkSpellCheck_CheckedChanged;
|
|
||||||
comboBoxSpellCheckLanguage.SelectedValueChanged += comboBoxSpellCheckLanguage_SelectedValueChanged;
|
|
||||||
comboBoxTranslationTarget.SelectedValueChanged += comboBoxTranslationTarget_SelectedValueChanged;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkSpellCheck_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.EnableSpellCheck = checkSpellCheck.Checked;
|
|
||||||
BrowserProcessHandler.UpdatePrefs();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void comboBoxSpellCheckLanguage_SelectedValueChanged(object sender, EventArgs e){
|
|
||||||
Config.SpellCheckLanguage = (comboBoxSpellCheckLanguage.SelectedItem as LocaleUtils.Item)?.Code ?? "en-US";
|
|
||||||
PromptRestart();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void comboBoxTranslationTarget_SelectedValueChanged(object sender, EventArgs e){
|
|
||||||
Config.TranslationTarget = (comboBoxTranslationTarget.SelectedItem as LocaleUtils.Item)?.Code ?? "en";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
300
Core/Other/Settings/TabSettingsNotifications.Designer.cs
generated
300
Core/Other/Settings/TabSettingsNotifications.Designer.cs
generated
@@ -64,8 +64,10 @@
|
|||||||
this.labelSize = new System.Windows.Forms.Label();
|
this.labelSize = new System.Windows.Forms.Label();
|
||||||
this.panelSize = new System.Windows.Forms.Panel();
|
this.panelSize = new System.Windows.Forms.Panel();
|
||||||
this.durationUpdateTimer = new System.Windows.Forms.Timer(this.components);
|
this.durationUpdateTimer = new System.Windows.Forms.Timer(this.components);
|
||||||
this.flowPanel = new System.Windows.Forms.FlowLayoutPanel();
|
this.flowPanelLeft = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
this.panelScrollSpeed = new System.Windows.Forms.Panel();
|
this.panelScrollSpeed = new System.Windows.Forms.Panel();
|
||||||
|
this.flowPanelRight = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
|
this.panelSeparator = new System.Windows.Forms.Panel();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.trackBarEdgeDistance)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.trackBarEdgeDistance)).BeginInit();
|
||||||
this.tableLayoutDurationButtons.SuspendLayout();
|
this.tableLayoutDurationButtons.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.trackBarDuration)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.trackBarDuration)).BeginInit();
|
||||||
@@ -74,13 +76,14 @@
|
|||||||
this.panelLocation.SuspendLayout();
|
this.panelLocation.SuspendLayout();
|
||||||
this.panelTimer.SuspendLayout();
|
this.panelTimer.SuspendLayout();
|
||||||
this.panelSize.SuspendLayout();
|
this.panelSize.SuspendLayout();
|
||||||
this.flowPanel.SuspendLayout();
|
this.flowPanelLeft.SuspendLayout();
|
||||||
this.panelScrollSpeed.SuspendLayout();
|
this.panelScrollSpeed.SuspendLayout();
|
||||||
|
this.flowPanelRight.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// labelEdgeDistanceValue
|
// labelEdgeDistanceValue
|
||||||
//
|
//
|
||||||
this.labelEdgeDistanceValue.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelEdgeDistanceValue.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.labelEdgeDistanceValue.Location = new System.Drawing.Point(145, 4);
|
this.labelEdgeDistanceValue.Location = new System.Drawing.Point(145, 4);
|
||||||
this.labelEdgeDistanceValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
this.labelEdgeDistanceValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||||
this.labelEdgeDistanceValue.Name = "labelEdgeDistanceValue";
|
this.labelEdgeDistanceValue.Name = "labelEdgeDistanceValue";
|
||||||
@@ -92,41 +95,41 @@
|
|||||||
// labelDisplay
|
// labelDisplay
|
||||||
//
|
//
|
||||||
this.labelDisplay.AutoSize = true;
|
this.labelDisplay.AutoSize = true;
|
||||||
this.labelDisplay.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDisplay.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelDisplay.Location = new System.Drawing.Point(3, 465);
|
this.labelDisplay.Location = new System.Drawing.Point(3, 83);
|
||||||
this.labelDisplay.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelDisplay.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelDisplay.Name = "labelDisplay";
|
this.labelDisplay.Name = "labelDisplay";
|
||||||
this.labelDisplay.Size = new System.Drawing.Size(45, 15);
|
this.labelDisplay.Size = new System.Drawing.Size(46, 15);
|
||||||
this.labelDisplay.TabIndex = 15;
|
this.labelDisplay.TabIndex = 2;
|
||||||
this.labelDisplay.Text = "Display";
|
this.labelDisplay.Text = "Display";
|
||||||
//
|
//
|
||||||
// comboBoxDisplay
|
// comboBoxDisplay
|
||||||
//
|
//
|
||||||
this.comboBoxDisplay.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBoxDisplay.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBoxDisplay.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.comboBoxDisplay.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.comboBoxDisplay.FormattingEnabled = true;
|
this.comboBoxDisplay.FormattingEnabled = true;
|
||||||
this.comboBoxDisplay.Location = new System.Drawing.Point(5, 483);
|
this.comboBoxDisplay.Location = new System.Drawing.Point(5, 102);
|
||||||
this.comboBoxDisplay.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.comboBoxDisplay.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.comboBoxDisplay.Name = "comboBoxDisplay";
|
this.comboBoxDisplay.Name = "comboBoxDisplay";
|
||||||
this.comboBoxDisplay.Size = new System.Drawing.Size(144, 23);
|
this.comboBoxDisplay.Size = new System.Drawing.Size(144, 23);
|
||||||
this.comboBoxDisplay.TabIndex = 16;
|
this.comboBoxDisplay.TabIndex = 3;
|
||||||
//
|
//
|
||||||
// labelEdgeDistance
|
// labelEdgeDistance
|
||||||
//
|
//
|
||||||
this.labelEdgeDistance.AutoSize = true;
|
this.labelEdgeDistance.AutoSize = true;
|
||||||
this.labelEdgeDistance.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelEdgeDistance.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelEdgeDistance.Location = new System.Drawing.Point(3, 521);
|
this.labelEdgeDistance.Location = new System.Drawing.Point(3, 140);
|
||||||
this.labelEdgeDistance.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelEdgeDistance.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelEdgeDistance.Name = "labelEdgeDistance";
|
this.labelEdgeDistance.Name = "labelEdgeDistance";
|
||||||
this.labelEdgeDistance.Size = new System.Drawing.Size(112, 15);
|
this.labelEdgeDistance.Size = new System.Drawing.Size(113, 15);
|
||||||
this.labelEdgeDistance.TabIndex = 17;
|
this.labelEdgeDistance.TabIndex = 4;
|
||||||
this.labelEdgeDistance.Text = "Distance From Edge";
|
this.labelEdgeDistance.Text = "Distance From Edge";
|
||||||
//
|
//
|
||||||
// radioLocCustom
|
// radioLocCustom
|
||||||
//
|
//
|
||||||
this.radioLocCustom.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioLocCustom.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.radioLocCustom.Location = new System.Drawing.Point(205, 4);
|
this.radioLocCustom.Location = new System.Drawing.Point(218, 4);
|
||||||
this.radioLocCustom.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
this.radioLocCustom.Margin = new System.Windows.Forms.Padding(10, 4, 3, 3);
|
||||||
this.radioLocCustom.Name = "radioLocCustom";
|
this.radioLocCustom.Name = "radioLocCustom";
|
||||||
this.radioLocCustom.Size = new System.Drawing.Size(70, 43);
|
this.radioLocCustom.Size = new System.Drawing.Size(70, 43);
|
||||||
this.radioLocCustom.TabIndex = 4;
|
this.radioLocCustom.TabIndex = 4;
|
||||||
@@ -136,11 +139,11 @@
|
|||||||
//
|
//
|
||||||
// radioLocBR
|
// radioLocBR
|
||||||
//
|
//
|
||||||
this.radioLocBR.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioLocBR.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.radioLocBR.Location = new System.Drawing.Point(105, 28);
|
this.radioLocBR.Location = new System.Drawing.Point(109, 28);
|
||||||
this.radioLocBR.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
this.radioLocBR.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.radioLocBR.Name = "radioLocBR";
|
this.radioLocBR.Name = "radioLocBR";
|
||||||
this.radioLocBR.Size = new System.Drawing.Size(92, 19);
|
this.radioLocBR.Size = new System.Drawing.Size(96, 19);
|
||||||
this.radioLocBR.TabIndex = 3;
|
this.radioLocBR.TabIndex = 3;
|
||||||
this.radioLocBR.TabStop = true;
|
this.radioLocBR.TabStop = true;
|
||||||
this.radioLocBR.Text = "Bottom Right";
|
this.radioLocBR.Text = "Bottom Right";
|
||||||
@@ -148,11 +151,11 @@
|
|||||||
//
|
//
|
||||||
// radioLocBL
|
// radioLocBL
|
||||||
//
|
//
|
||||||
this.radioLocBL.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioLocBL.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.radioLocBL.Location = new System.Drawing.Point(5, 28);
|
this.radioLocBL.Location = new System.Drawing.Point(5, 28);
|
||||||
this.radioLocBL.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
this.radioLocBL.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.radioLocBL.Name = "radioLocBL";
|
this.radioLocBL.Name = "radioLocBL";
|
||||||
this.radioLocBL.Size = new System.Drawing.Size(92, 19);
|
this.radioLocBL.Size = new System.Drawing.Size(96, 19);
|
||||||
this.radioLocBL.TabIndex = 2;
|
this.radioLocBL.TabIndex = 2;
|
||||||
this.radioLocBL.TabStop = true;
|
this.radioLocBL.TabStop = true;
|
||||||
this.radioLocBL.Text = "Bottom Left";
|
this.radioLocBL.Text = "Bottom Left";
|
||||||
@@ -160,11 +163,11 @@
|
|||||||
//
|
//
|
||||||
// radioLocTR
|
// radioLocTR
|
||||||
//
|
//
|
||||||
this.radioLocTR.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioLocTR.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.radioLocTR.Location = new System.Drawing.Point(105, 4);
|
this.radioLocTR.Location = new System.Drawing.Point(109, 4);
|
||||||
this.radioLocTR.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
this.radioLocTR.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.radioLocTR.Name = "radioLocTR";
|
this.radioLocTR.Name = "radioLocTR";
|
||||||
this.radioLocTR.Size = new System.Drawing.Size(92, 19);
|
this.radioLocTR.Size = new System.Drawing.Size(96, 19);
|
||||||
this.radioLocTR.TabIndex = 1;
|
this.radioLocTR.TabIndex = 1;
|
||||||
this.radioLocTR.TabStop = true;
|
this.radioLocTR.TabStop = true;
|
||||||
this.radioLocTR.Text = "Top Right";
|
this.radioLocTR.Text = "Top Right";
|
||||||
@@ -172,11 +175,11 @@
|
|||||||
//
|
//
|
||||||
// radioLocTL
|
// radioLocTL
|
||||||
//
|
//
|
||||||
this.radioLocTL.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioLocTL.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.radioLocTL.Location = new System.Drawing.Point(5, 4);
|
this.radioLocTL.Location = new System.Drawing.Point(5, 4);
|
||||||
this.radioLocTL.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
this.radioLocTL.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.radioLocTL.Name = "radioLocTL";
|
this.radioLocTL.Name = "radioLocTL";
|
||||||
this.radioLocTL.Size = new System.Drawing.Size(92, 19);
|
this.radioLocTL.Size = new System.Drawing.Size(96, 19);
|
||||||
this.radioLocTL.TabIndex = 0;
|
this.radioLocTL.TabIndex = 0;
|
||||||
this.radioLocTL.TabStop = true;
|
this.radioLocTL.TabStop = true;
|
||||||
this.radioLocTL.Text = "Top Left";
|
this.radioLocTL.Text = "Top Left";
|
||||||
@@ -205,7 +208,7 @@
|
|||||||
this.tableLayoutDurationButtons.Controls.Add(this.btnDurationMedium, 0, 0);
|
this.tableLayoutDurationButtons.Controls.Add(this.btnDurationMedium, 0, 0);
|
||||||
this.tableLayoutDurationButtons.Controls.Add(this.btnDurationLong, 1, 0);
|
this.tableLayoutDurationButtons.Controls.Add(this.btnDurationLong, 1, 0);
|
||||||
this.tableLayoutDurationButtons.Controls.Add(this.btnDurationShort, 0, 0);
|
this.tableLayoutDurationButtons.Controls.Add(this.btnDurationShort, 0, 0);
|
||||||
this.tableLayoutDurationButtons.Location = new System.Drawing.Point(3, 332);
|
this.tableLayoutDurationButtons.Location = new System.Drawing.Point(3, 353);
|
||||||
this.tableLayoutDurationButtons.Name = "tableLayoutDurationButtons";
|
this.tableLayoutDurationButtons.Name = "tableLayoutDurationButtons";
|
||||||
this.tableLayoutDurationButtons.RowCount = 1;
|
this.tableLayoutDurationButtons.RowCount = 1;
|
||||||
this.tableLayoutDurationButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
this.tableLayoutDurationButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||||
@@ -219,7 +222,7 @@
|
|||||||
this.btnDurationMedium.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ControlLight;
|
this.btnDurationMedium.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ControlLight;
|
||||||
this.btnDurationMedium.FlatAppearance.MouseOverBackColor = System.Drawing.Color.White;
|
this.btnDurationMedium.FlatAppearance.MouseOverBackColor = System.Drawing.Color.White;
|
||||||
this.btnDurationMedium.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.btnDurationMedium.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.btnDurationMedium.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnDurationMedium.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnDurationMedium.Location = new System.Drawing.Point(58, 1);
|
this.btnDurationMedium.Location = new System.Drawing.Point(58, 1);
|
||||||
this.btnDurationMedium.Margin = new System.Windows.Forms.Padding(1);
|
this.btnDurationMedium.Margin = new System.Windows.Forms.Padding(1);
|
||||||
this.btnDurationMedium.Name = "btnDurationMedium";
|
this.btnDurationMedium.Name = "btnDurationMedium";
|
||||||
@@ -235,7 +238,7 @@
|
|||||||
this.btnDurationLong.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ControlLight;
|
this.btnDurationLong.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ControlLight;
|
||||||
this.btnDurationLong.FlatAppearance.MouseOverBackColor = System.Drawing.Color.White;
|
this.btnDurationLong.FlatAppearance.MouseOverBackColor = System.Drawing.Color.White;
|
||||||
this.btnDurationLong.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.btnDurationLong.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.btnDurationLong.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnDurationLong.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnDurationLong.Location = new System.Drawing.Point(122, 1);
|
this.btnDurationLong.Location = new System.Drawing.Point(122, 1);
|
||||||
this.btnDurationLong.Margin = new System.Windows.Forms.Padding(1);
|
this.btnDurationLong.Margin = new System.Windows.Forms.Padding(1);
|
||||||
this.btnDurationLong.Name = "btnDurationLong";
|
this.btnDurationLong.Name = "btnDurationLong";
|
||||||
@@ -251,7 +254,7 @@
|
|||||||
this.btnDurationShort.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ControlLight;
|
this.btnDurationShort.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.ControlLight;
|
||||||
this.btnDurationShort.FlatAppearance.MouseOverBackColor = System.Drawing.Color.White;
|
this.btnDurationShort.FlatAppearance.MouseOverBackColor = System.Drawing.Color.White;
|
||||||
this.btnDurationShort.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.btnDurationShort.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.btnDurationShort.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnDurationShort.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnDurationShort.Location = new System.Drawing.Point(1, 1);
|
this.btnDurationShort.Location = new System.Drawing.Point(1, 1);
|
||||||
this.btnDurationShort.Margin = new System.Windows.Forms.Padding(1);
|
this.btnDurationShort.Margin = new System.Windows.Forms.Padding(1);
|
||||||
this.btnDurationShort.Name = "btnDurationShort";
|
this.btnDurationShort.Name = "btnDurationShort";
|
||||||
@@ -263,7 +266,7 @@
|
|||||||
// labelDurationValue
|
// labelDurationValue
|
||||||
//
|
//
|
||||||
this.labelDurationValue.BackColor = System.Drawing.Color.Transparent;
|
this.labelDurationValue.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.labelDurationValue.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDurationValue.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.labelDurationValue.Location = new System.Drawing.Point(147, 4);
|
this.labelDurationValue.Location = new System.Drawing.Point(147, 4);
|
||||||
this.labelDurationValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
this.labelDurationValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||||
this.labelDurationValue.Name = "labelDurationValue";
|
this.labelDurationValue.Name = "labelDurationValue";
|
||||||
@@ -287,7 +290,7 @@
|
|||||||
// checkSkipOnLinkClick
|
// checkSkipOnLinkClick
|
||||||
//
|
//
|
||||||
this.checkSkipOnLinkClick.AutoSize = true;
|
this.checkSkipOnLinkClick.AutoSize = true;
|
||||||
this.checkSkipOnLinkClick.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkSkipOnLinkClick.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkSkipOnLinkClick.Location = new System.Drawing.Point(6, 74);
|
this.checkSkipOnLinkClick.Location = new System.Drawing.Point(6, 74);
|
||||||
this.checkSkipOnLinkClick.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkSkipOnLinkClick.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkSkipOnLinkClick.Name = "checkSkipOnLinkClick";
|
this.checkSkipOnLinkClick.Name = "checkSkipOnLinkClick";
|
||||||
@@ -299,7 +302,7 @@
|
|||||||
// checkColumnName
|
// checkColumnName
|
||||||
//
|
//
|
||||||
this.checkColumnName.AutoSize = true;
|
this.checkColumnName.AutoSize = true;
|
||||||
this.checkColumnName.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkColumnName.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkColumnName.Location = new System.Drawing.Point(6, 26);
|
this.checkColumnName.Location = new System.Drawing.Point(6, 26);
|
||||||
this.checkColumnName.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
this.checkColumnName.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
||||||
this.checkColumnName.Name = "checkColumnName";
|
this.checkColumnName.Name = "checkColumnName";
|
||||||
@@ -311,21 +314,21 @@
|
|||||||
// labelIdlePause
|
// labelIdlePause
|
||||||
//
|
//
|
||||||
this.labelIdlePause.AutoSize = true;
|
this.labelIdlePause.AutoSize = true;
|
||||||
this.labelIdlePause.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelIdlePause.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelIdlePause.Location = new System.Drawing.Point(3, 131);
|
this.labelIdlePause.Location = new System.Drawing.Point(3, 131);
|
||||||
this.labelIdlePause.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelIdlePause.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelIdlePause.Name = "labelIdlePause";
|
this.labelIdlePause.Name = "labelIdlePause";
|
||||||
this.labelIdlePause.Size = new System.Drawing.Size(94, 15);
|
this.labelIdlePause.Size = new System.Drawing.Size(95, 15);
|
||||||
this.labelIdlePause.TabIndex = 5;
|
this.labelIdlePause.TabIndex = 5;
|
||||||
this.labelIdlePause.Text = "Pause When Idle";
|
this.labelIdlePause.Text = "Pause When Idle";
|
||||||
//
|
//
|
||||||
// comboBoxIdlePause
|
// comboBoxIdlePause
|
||||||
//
|
//
|
||||||
this.comboBoxIdlePause.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBoxIdlePause.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBoxIdlePause.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.comboBoxIdlePause.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.comboBoxIdlePause.FormattingEnabled = true;
|
this.comboBoxIdlePause.FormattingEnabled = true;
|
||||||
this.comboBoxIdlePause.Location = new System.Drawing.Point(5, 149);
|
this.comboBoxIdlePause.Location = new System.Drawing.Point(5, 150);
|
||||||
this.comboBoxIdlePause.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
|
this.comboBoxIdlePause.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.comboBoxIdlePause.Name = "comboBoxIdlePause";
|
this.comboBoxIdlePause.Name = "comboBoxIdlePause";
|
||||||
this.comboBoxIdlePause.Size = new System.Drawing.Size(144, 23);
|
this.comboBoxIdlePause.Size = new System.Drawing.Size(144, 23);
|
||||||
this.comboBoxIdlePause.TabIndex = 6;
|
this.comboBoxIdlePause.TabIndex = 6;
|
||||||
@@ -333,7 +336,7 @@
|
|||||||
// checkNonIntrusive
|
// checkNonIntrusive
|
||||||
//
|
//
|
||||||
this.checkNonIntrusive.AutoSize = true;
|
this.checkNonIntrusive.AutoSize = true;
|
||||||
this.checkNonIntrusive.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkNonIntrusive.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkNonIntrusive.Location = new System.Drawing.Point(6, 98);
|
this.checkNonIntrusive.Location = new System.Drawing.Point(6, 98);
|
||||||
this.checkNonIntrusive.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkNonIntrusive.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkNonIntrusive.Name = "checkNonIntrusive";
|
this.checkNonIntrusive.Name = "checkNonIntrusive";
|
||||||
@@ -345,8 +348,8 @@
|
|||||||
// checkTimerCountDown
|
// checkTimerCountDown
|
||||||
//
|
//
|
||||||
this.checkTimerCountDown.AutoSize = true;
|
this.checkTimerCountDown.AutoSize = true;
|
||||||
this.checkTimerCountDown.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkTimerCountDown.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkTimerCountDown.Location = new System.Drawing.Point(6, 245);
|
this.checkTimerCountDown.Location = new System.Drawing.Point(6, 266);
|
||||||
this.checkTimerCountDown.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkTimerCountDown.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkTimerCountDown.Name = "checkTimerCountDown";
|
this.checkTimerCountDown.Name = "checkTimerCountDown";
|
||||||
this.checkTimerCountDown.Size = new System.Drawing.Size(132, 19);
|
this.checkTimerCountDown.Size = new System.Drawing.Size(132, 19);
|
||||||
@@ -357,8 +360,8 @@
|
|||||||
// checkNotificationTimer
|
// checkNotificationTimer
|
||||||
//
|
//
|
||||||
this.checkNotificationTimer.AutoSize = true;
|
this.checkNotificationTimer.AutoSize = true;
|
||||||
this.checkNotificationTimer.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkNotificationTimer.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkNotificationTimer.Location = new System.Drawing.Point(6, 221);
|
this.checkNotificationTimer.Location = new System.Drawing.Point(6, 242);
|
||||||
this.checkNotificationTimer.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
this.checkNotificationTimer.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
||||||
this.checkNotificationTimer.Name = "checkNotificationTimer";
|
this.checkNotificationTimer.Name = "checkNotificationTimer";
|
||||||
this.checkNotificationTimer.Size = new System.Drawing.Size(164, 19);
|
this.checkNotificationTimer.Size = new System.Drawing.Size(164, 19);
|
||||||
@@ -368,7 +371,7 @@
|
|||||||
//
|
//
|
||||||
// radioSizeAuto
|
// radioSizeAuto
|
||||||
//
|
//
|
||||||
this.radioSizeAuto.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioSizeAuto.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.radioSizeAuto.Location = new System.Drawing.Point(5, 4);
|
this.radioSizeAuto.Location = new System.Drawing.Point(5, 4);
|
||||||
this.radioSizeAuto.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
this.radioSizeAuto.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.radioSizeAuto.Name = "radioSizeAuto";
|
this.radioSizeAuto.Name = "radioSizeAuto";
|
||||||
@@ -380,7 +383,7 @@
|
|||||||
//
|
//
|
||||||
// radioSizeCustom
|
// radioSizeCustom
|
||||||
//
|
//
|
||||||
this.radioSizeCustom.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.radioSizeCustom.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.radioSizeCustom.Location = new System.Drawing.Point(105, 4);
|
this.radioSizeCustom.Location = new System.Drawing.Point(105, 4);
|
||||||
this.radioSizeCustom.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
this.radioSizeCustom.Margin = new System.Windows.Forms.Padding(5, 4, 3, 3);
|
||||||
this.radioSizeCustom.Name = "radioSizeCustom";
|
this.radioSizeCustom.Name = "radioSizeCustom";
|
||||||
@@ -393,29 +396,28 @@
|
|||||||
// labelGeneral
|
// labelGeneral
|
||||||
//
|
//
|
||||||
this.labelGeneral.AutoSize = true;
|
this.labelGeneral.AutoSize = true;
|
||||||
this.labelGeneral.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelGeneral.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelGeneral.Location = new System.Drawing.Point(0, 0);
|
this.labelGeneral.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelGeneral.Margin = new System.Windows.Forms.Padding(0);
|
this.labelGeneral.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelGeneral.Name = "labelGeneral";
|
this.labelGeneral.Name = "labelGeneral";
|
||||||
this.labelGeneral.Size = new System.Drawing.Size(60, 20);
|
this.labelGeneral.Size = new System.Drawing.Size(69, 19);
|
||||||
this.labelGeneral.TabIndex = 0;
|
this.labelGeneral.TabIndex = 0;
|
||||||
this.labelGeneral.Text = "General";
|
this.labelGeneral.Text = "GENERAL";
|
||||||
//
|
//
|
||||||
// panelEdgeDistance
|
// panelEdgeDistance
|
||||||
//
|
//
|
||||||
this.panelEdgeDistance.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelEdgeDistance.Controls.Add(this.trackBarEdgeDistance);
|
this.panelEdgeDistance.Controls.Add(this.trackBarEdgeDistance);
|
||||||
this.panelEdgeDistance.Controls.Add(this.labelEdgeDistanceValue);
|
this.panelEdgeDistance.Controls.Add(this.labelEdgeDistanceValue);
|
||||||
this.panelEdgeDistance.Location = new System.Drawing.Point(0, 536);
|
this.panelEdgeDistance.Location = new System.Drawing.Point(0, 156);
|
||||||
this.panelEdgeDistance.Margin = new System.Windows.Forms.Padding(0);
|
this.panelEdgeDistance.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0);
|
||||||
this.panelEdgeDistance.Name = "panelEdgeDistance";
|
this.panelEdgeDistance.Name = "panelEdgeDistance";
|
||||||
this.panelEdgeDistance.Size = new System.Drawing.Size(322, 36);
|
this.panelEdgeDistance.Size = new System.Drawing.Size(300, 35);
|
||||||
this.panelEdgeDistance.TabIndex = 18;
|
this.panelEdgeDistance.TabIndex = 5;
|
||||||
//
|
//
|
||||||
// checkMediaPreviews
|
// checkMediaPreviews
|
||||||
//
|
//
|
||||||
this.checkMediaPreviews.AutoSize = true;
|
this.checkMediaPreviews.AutoSize = true;
|
||||||
this.checkMediaPreviews.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.checkMediaPreviews.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.checkMediaPreviews.Location = new System.Drawing.Point(6, 50);
|
this.checkMediaPreviews.Location = new System.Drawing.Point(6, 50);
|
||||||
this.checkMediaPreviews.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
this.checkMediaPreviews.Margin = new System.Windows.Forms.Padding(6, 3, 3, 2);
|
||||||
this.checkMediaPreviews.Name = "checkMediaPreviews";
|
this.checkMediaPreviews.Name = "checkMediaPreviews";
|
||||||
@@ -426,7 +428,7 @@
|
|||||||
//
|
//
|
||||||
// labelScrollSpeedValue
|
// labelScrollSpeedValue
|
||||||
//
|
//
|
||||||
this.labelScrollSpeedValue.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelScrollSpeedValue.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.labelScrollSpeedValue.Location = new System.Drawing.Point(145, 4);
|
this.labelScrollSpeedValue.Location = new System.Drawing.Point(145, 4);
|
||||||
this.labelScrollSpeedValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
this.labelScrollSpeedValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||||
this.labelScrollSpeedValue.Name = "labelScrollSpeedValue";
|
this.labelScrollSpeedValue.Name = "labelScrollSpeedValue";
|
||||||
@@ -452,153 +454,171 @@
|
|||||||
// labelScrollSpeed
|
// labelScrollSpeed
|
||||||
//
|
//
|
||||||
this.labelScrollSpeed.AutoSize = true;
|
this.labelScrollSpeed.AutoSize = true;
|
||||||
this.labelScrollSpeed.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelScrollSpeed.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelScrollSpeed.Location = new System.Drawing.Point(3, 651);
|
this.labelScrollSpeed.Location = new System.Drawing.Point(3, 275);
|
||||||
this.labelScrollSpeed.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelScrollSpeed.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelScrollSpeed.Name = "labelScrollSpeed";
|
this.labelScrollSpeed.Name = "labelScrollSpeed";
|
||||||
this.labelScrollSpeed.Size = new System.Drawing.Size(71, 15);
|
this.labelScrollSpeed.Size = new System.Drawing.Size(73, 15);
|
||||||
this.labelScrollSpeed.TabIndex = 21;
|
this.labelScrollSpeed.TabIndex = 8;
|
||||||
this.labelScrollSpeed.Text = "Scroll Speed";
|
this.labelScrollSpeed.Text = "Scroll Speed";
|
||||||
//
|
//
|
||||||
// labelLocation
|
// labelLocation
|
||||||
//
|
//
|
||||||
this.labelLocation.AutoSize = true;
|
this.labelLocation.AutoSize = true;
|
||||||
this.labelLocation.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelLocation.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelLocation.Location = new System.Drawing.Point(0, 382);
|
this.labelLocation.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelLocation.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
this.labelLocation.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelLocation.Name = "labelLocation";
|
this.labelLocation.Name = "labelLocation";
|
||||||
this.labelLocation.Size = new System.Drawing.Size(66, 20);
|
this.labelLocation.Size = new System.Drawing.Size(79, 19);
|
||||||
this.labelLocation.TabIndex = 13;
|
this.labelLocation.TabIndex = 0;
|
||||||
this.labelLocation.Text = "Location";
|
this.labelLocation.Text = "LOCATION";
|
||||||
//
|
//
|
||||||
// panelLocation
|
// panelLocation
|
||||||
//
|
//
|
||||||
this.panelLocation.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelLocation.Controls.Add(this.radioLocTL);
|
this.panelLocation.Controls.Add(this.radioLocTL);
|
||||||
this.panelLocation.Controls.Add(this.radioLocTR);
|
this.panelLocation.Controls.Add(this.radioLocTR);
|
||||||
this.panelLocation.Controls.Add(this.radioLocBL);
|
this.panelLocation.Controls.Add(this.radioLocBL);
|
||||||
this.panelLocation.Controls.Add(this.radioLocCustom);
|
this.panelLocation.Controls.Add(this.radioLocCustom);
|
||||||
this.panelLocation.Controls.Add(this.radioLocBR);
|
this.panelLocation.Controls.Add(this.radioLocBR);
|
||||||
this.panelLocation.Location = new System.Drawing.Point(0, 402);
|
this.panelLocation.Location = new System.Drawing.Point(0, 20);
|
||||||
this.panelLocation.Margin = new System.Windows.Forms.Padding(0);
|
this.panelLocation.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.panelLocation.Name = "panelLocation";
|
this.panelLocation.Name = "panelLocation";
|
||||||
this.panelLocation.Size = new System.Drawing.Size(322, 51);
|
this.panelLocation.Size = new System.Drawing.Size(300, 51);
|
||||||
this.panelLocation.TabIndex = 14;
|
this.panelLocation.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// panelTimer
|
// panelTimer
|
||||||
//
|
//
|
||||||
this.panelTimer.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelTimer.Controls.Add(this.labelDurationValue);
|
this.panelTimer.Controls.Add(this.labelDurationValue);
|
||||||
this.panelTimer.Controls.Add(this.trackBarDuration);
|
this.panelTimer.Controls.Add(this.trackBarDuration);
|
||||||
this.panelTimer.Location = new System.Drawing.Point(0, 293);
|
this.panelTimer.Location = new System.Drawing.Point(0, 315);
|
||||||
this.panelTimer.Margin = new System.Windows.Forms.Padding(0);
|
this.panelTimer.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0);
|
||||||
this.panelTimer.Name = "panelTimer";
|
this.panelTimer.Name = "panelTimer";
|
||||||
this.panelTimer.Size = new System.Drawing.Size(322, 36);
|
this.panelTimer.Size = new System.Drawing.Size(300, 35);
|
||||||
this.panelTimer.TabIndex = 11;
|
this.panelTimer.TabIndex = 11;
|
||||||
//
|
//
|
||||||
// labelDuration
|
// labelDuration
|
||||||
//
|
//
|
||||||
this.labelDuration.AutoSize = true;
|
this.labelDuration.AutoSize = true;
|
||||||
this.labelDuration.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDuration.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelDuration.Location = new System.Drawing.Point(3, 278);
|
this.labelDuration.Location = new System.Drawing.Point(3, 299);
|
||||||
this.labelDuration.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelDuration.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelDuration.Name = "labelDuration";
|
this.labelDuration.Name = "labelDuration";
|
||||||
this.labelDuration.Size = new System.Drawing.Size(53, 15);
|
this.labelDuration.Size = new System.Drawing.Size(54, 15);
|
||||||
this.labelDuration.TabIndex = 10;
|
this.labelDuration.TabIndex = 10;
|
||||||
this.labelDuration.Text = "Duration";
|
this.labelDuration.Text = "Duration";
|
||||||
//
|
//
|
||||||
// labelTimer
|
// labelTimer
|
||||||
//
|
//
|
||||||
this.labelTimer.AutoSize = true;
|
this.labelTimer.AutoSize = true;
|
||||||
this.labelTimer.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelTimer.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelTimer.Location = new System.Drawing.Point(0, 195);
|
this.labelTimer.Location = new System.Drawing.Point(0, 216);
|
||||||
this.labelTimer.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
this.labelTimer.Margin = new System.Windows.Forms.Padding(0, 40, 0, 1);
|
||||||
this.labelTimer.Name = "labelTimer";
|
this.labelTimer.Name = "labelTimer";
|
||||||
this.labelTimer.Size = new System.Drawing.Size(47, 20);
|
this.labelTimer.Size = new System.Drawing.Size(50, 19);
|
||||||
this.labelTimer.TabIndex = 7;
|
this.labelTimer.TabIndex = 7;
|
||||||
this.labelTimer.Text = "Timer";
|
this.labelTimer.Text = "TIMER";
|
||||||
//
|
//
|
||||||
// labelSize
|
// labelSize
|
||||||
//
|
//
|
||||||
this.labelSize.AutoSize = true;
|
this.labelSize.AutoSize = true;
|
||||||
this.labelSize.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelSize.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelSize.Location = new System.Drawing.Point(0, 592);
|
this.labelSize.Location = new System.Drawing.Point(0, 216);
|
||||||
this.labelSize.Margin = new System.Windows.Forms.Padding(0, 20, 0, 0);
|
this.labelSize.Margin = new System.Windows.Forms.Padding(0, 25, 0, 1);
|
||||||
this.labelSize.Name = "labelSize";
|
this.labelSize.Name = "labelSize";
|
||||||
this.labelSize.Size = new System.Drawing.Size(36, 20);
|
this.labelSize.Size = new System.Drawing.Size(36, 19);
|
||||||
this.labelSize.TabIndex = 19;
|
this.labelSize.TabIndex = 6;
|
||||||
this.labelSize.Text = "Size";
|
this.labelSize.Text = "SIZE";
|
||||||
//
|
//
|
||||||
// panelSize
|
// panelSize
|
||||||
//
|
//
|
||||||
this.panelSize.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.panelSize.Controls.Add(this.radioSizeCustom);
|
this.panelSize.Controls.Add(this.radioSizeCustom);
|
||||||
this.panelSize.Controls.Add(this.radioSizeAuto);
|
this.panelSize.Controls.Add(this.radioSizeAuto);
|
||||||
this.panelSize.Location = new System.Drawing.Point(0, 612);
|
this.panelSize.Location = new System.Drawing.Point(0, 236);
|
||||||
this.panelSize.Margin = new System.Windows.Forms.Padding(0);
|
this.panelSize.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.panelSize.Name = "panelSize";
|
this.panelSize.Name = "panelSize";
|
||||||
this.panelSize.Size = new System.Drawing.Size(322, 27);
|
this.panelSize.Size = new System.Drawing.Size(300, 27);
|
||||||
this.panelSize.TabIndex = 20;
|
this.panelSize.TabIndex = 7;
|
||||||
//
|
//
|
||||||
// durationUpdateTimer
|
// durationUpdateTimer
|
||||||
//
|
//
|
||||||
this.durationUpdateTimer.Interval = 200;
|
this.durationUpdateTimer.Interval = 200;
|
||||||
this.durationUpdateTimer.Tick += new System.EventHandler(this.durationUpdateTimer_Tick);
|
this.durationUpdateTimer.Tick += new System.EventHandler(this.durationUpdateTimer_Tick);
|
||||||
//
|
//
|
||||||
// flowPanel
|
// flowPanelLeft
|
||||||
//
|
//
|
||||||
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.flowPanelLeft.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
this.flowPanelLeft.Controls.Add(this.labelGeneral);
|
||||||
this.flowPanel.Controls.Add(this.labelGeneral);
|
this.flowPanelLeft.Controls.Add(this.checkColumnName);
|
||||||
this.flowPanel.Controls.Add(this.checkColumnName);
|
this.flowPanelLeft.Controls.Add(this.checkMediaPreviews);
|
||||||
this.flowPanel.Controls.Add(this.checkMediaPreviews);
|
this.flowPanelLeft.Controls.Add(this.checkSkipOnLinkClick);
|
||||||
this.flowPanel.Controls.Add(this.checkSkipOnLinkClick);
|
this.flowPanelLeft.Controls.Add(this.checkNonIntrusive);
|
||||||
this.flowPanel.Controls.Add(this.checkNonIntrusive);
|
this.flowPanelLeft.Controls.Add(this.labelIdlePause);
|
||||||
this.flowPanel.Controls.Add(this.labelIdlePause);
|
this.flowPanelLeft.Controls.Add(this.comboBoxIdlePause);
|
||||||
this.flowPanel.Controls.Add(this.comboBoxIdlePause);
|
this.flowPanelLeft.Controls.Add(this.labelTimer);
|
||||||
this.flowPanel.Controls.Add(this.labelTimer);
|
this.flowPanelLeft.Controls.Add(this.checkNotificationTimer);
|
||||||
this.flowPanel.Controls.Add(this.checkNotificationTimer);
|
this.flowPanelLeft.Controls.Add(this.checkTimerCountDown);
|
||||||
this.flowPanel.Controls.Add(this.checkTimerCountDown);
|
this.flowPanelLeft.Controls.Add(this.labelDuration);
|
||||||
this.flowPanel.Controls.Add(this.labelDuration);
|
this.flowPanelLeft.Controls.Add(this.panelTimer);
|
||||||
this.flowPanel.Controls.Add(this.panelTimer);
|
this.flowPanelLeft.Controls.Add(this.tableLayoutDurationButtons);
|
||||||
this.flowPanel.Controls.Add(this.tableLayoutDurationButtons);
|
this.flowPanelLeft.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
this.flowPanel.Controls.Add(this.labelLocation);
|
this.flowPanelLeft.Location = new System.Drawing.Point(9, 9);
|
||||||
this.flowPanel.Controls.Add(this.panelLocation);
|
this.flowPanelLeft.Name = "flowPanelLeft";
|
||||||
this.flowPanel.Controls.Add(this.labelDisplay);
|
this.flowPanelLeft.Size = new System.Drawing.Size(300, 461);
|
||||||
this.flowPanel.Controls.Add(this.comboBoxDisplay);
|
this.flowPanelLeft.TabIndex = 0;
|
||||||
this.flowPanel.Controls.Add(this.labelEdgeDistance);
|
this.flowPanelLeft.WrapContents = false;
|
||||||
this.flowPanel.Controls.Add(this.panelEdgeDistance);
|
|
||||||
this.flowPanel.Controls.Add(this.labelSize);
|
|
||||||
this.flowPanel.Controls.Add(this.panelSize);
|
|
||||||
this.flowPanel.Controls.Add(this.labelScrollSpeed);
|
|
||||||
this.flowPanel.Controls.Add(this.panelScrollSpeed);
|
|
||||||
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
|
||||||
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
|
||||||
this.flowPanel.Name = "flowPanel";
|
|
||||||
this.flowPanel.Size = new System.Drawing.Size(322, 698);
|
|
||||||
this.flowPanel.TabIndex = 0;
|
|
||||||
this.flowPanel.WrapContents = false;
|
|
||||||
//
|
//
|
||||||
// panelScrollSpeed
|
// panelScrollSpeed
|
||||||
//
|
//
|
||||||
this.panelScrollSpeed.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelScrollSpeed.Controls.Add(this.trackBarScrollSpeed);
|
this.panelScrollSpeed.Controls.Add(this.trackBarScrollSpeed);
|
||||||
this.panelScrollSpeed.Controls.Add(this.labelScrollSpeedValue);
|
this.panelScrollSpeed.Controls.Add(this.labelScrollSpeedValue);
|
||||||
this.panelScrollSpeed.Location = new System.Drawing.Point(0, 666);
|
this.panelScrollSpeed.Location = new System.Drawing.Point(0, 291);
|
||||||
this.panelScrollSpeed.Margin = new System.Windows.Forms.Padding(0);
|
this.panelScrollSpeed.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0);
|
||||||
this.panelScrollSpeed.Name = "panelScrollSpeed";
|
this.panelScrollSpeed.Name = "panelScrollSpeed";
|
||||||
this.panelScrollSpeed.Size = new System.Drawing.Size(322, 36);
|
this.panelScrollSpeed.Size = new System.Drawing.Size(300, 35);
|
||||||
this.panelScrollSpeed.TabIndex = 22;
|
this.panelScrollSpeed.TabIndex = 9;
|
||||||
|
//
|
||||||
|
// flowPanelRight
|
||||||
|
//
|
||||||
|
this.flowPanelRight.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelLocation);
|
||||||
|
this.flowPanelRight.Controls.Add(this.panelLocation);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelDisplay);
|
||||||
|
this.flowPanelRight.Controls.Add(this.comboBoxDisplay);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelEdgeDistance);
|
||||||
|
this.flowPanelRight.Controls.Add(this.panelEdgeDistance);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelSize);
|
||||||
|
this.flowPanelRight.Controls.Add(this.panelSize);
|
||||||
|
this.flowPanelRight.Controls.Add(this.labelScrollSpeed);
|
||||||
|
this.flowPanelRight.Controls.Add(this.panelScrollSpeed);
|
||||||
|
this.flowPanelRight.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
|
this.flowPanelRight.Location = new System.Drawing.Point(322, 9);
|
||||||
|
this.flowPanelRight.Name = "flowPanelRight";
|
||||||
|
this.flowPanelRight.Size = new System.Drawing.Size(300, 461);
|
||||||
|
this.flowPanelRight.TabIndex = 1;
|
||||||
|
this.flowPanelRight.WrapContents = false;
|
||||||
|
//
|
||||||
|
// panelSeparator
|
||||||
|
//
|
||||||
|
this.panelSeparator.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.panelSeparator.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200)))));
|
||||||
|
this.panelSeparator.Location = new System.Drawing.Point(312, 0);
|
||||||
|
this.panelSeparator.Margin = new System.Windows.Forms.Padding(0, 0, 6, 0);
|
||||||
|
this.panelSeparator.Name = "panelSeparator";
|
||||||
|
this.panelSeparator.Size = new System.Drawing.Size(1, 480);
|
||||||
|
this.panelSeparator.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// TabSettingsNotifications
|
// TabSettingsNotifications
|
||||||
//
|
//
|
||||||
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.Controls.Add(this.flowPanel);
|
this.Controls.Add(this.flowPanelRight);
|
||||||
|
this.Controls.Add(this.flowPanelLeft);
|
||||||
|
this.Controls.Add(this.panelSeparator);
|
||||||
this.Name = "TabSettingsNotifications";
|
this.Name = "TabSettingsNotifications";
|
||||||
this.Size = new System.Drawing.Size(340, 717);
|
this.Size = new System.Drawing.Size(631, 480);
|
||||||
this.ParentChanged += new System.EventHandler(this.TabSettingsNotifications_ParentChanged);
|
this.ParentChanged += new System.EventHandler(this.TabSettingsNotifications_ParentChanged);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.trackBarEdgeDistance)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.trackBarEdgeDistance)).EndInit();
|
||||||
this.tableLayoutDurationButtons.ResumeLayout(false);
|
this.tableLayoutDurationButtons.ResumeLayout(false);
|
||||||
@@ -608,9 +628,11 @@
|
|||||||
this.panelLocation.ResumeLayout(false);
|
this.panelLocation.ResumeLayout(false);
|
||||||
this.panelTimer.ResumeLayout(false);
|
this.panelTimer.ResumeLayout(false);
|
||||||
this.panelSize.ResumeLayout(false);
|
this.panelSize.ResumeLayout(false);
|
||||||
this.flowPanel.ResumeLayout(false);
|
this.flowPanelLeft.ResumeLayout(false);
|
||||||
this.flowPanel.PerformLayout();
|
this.flowPanelLeft.PerformLayout();
|
||||||
this.panelScrollSpeed.ResumeLayout(false);
|
this.panelScrollSpeed.ResumeLayout(false);
|
||||||
|
this.flowPanelRight.ResumeLayout(false);
|
||||||
|
this.flowPanelRight.PerformLayout();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -656,7 +678,9 @@
|
|||||||
private System.Windows.Forms.RadioButton radioSizeCustom;
|
private System.Windows.Forms.RadioButton radioSizeCustom;
|
||||||
private System.Windows.Forms.RadioButton radioSizeAuto;
|
private System.Windows.Forms.RadioButton radioSizeAuto;
|
||||||
private System.Windows.Forms.CheckBox checkMediaPreviews;
|
private System.Windows.Forms.CheckBox checkMediaPreviews;
|
||||||
private System.Windows.Forms.FlowLayoutPanel flowPanel;
|
private System.Windows.Forms.FlowLayoutPanel flowPanelLeft;
|
||||||
private System.Windows.Forms.Panel panelScrollSpeed;
|
private System.Windows.Forms.Panel panelScrollSpeed;
|
||||||
|
private System.Windows.Forms.FlowLayoutPanel flowPanelRight;
|
||||||
|
private System.Windows.Forms.Panel panelSeparator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -26,22 +26,16 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
this.notification.Activated += notification_Activated;
|
this.notification.Activated += notification_Activated;
|
||||||
this.notification.Show();
|
this.notification.Show();
|
||||||
|
|
||||||
|
Disposed += (sender, args) => this.notification.Dispose();
|
||||||
|
|
||||||
|
// general
|
||||||
|
|
||||||
toolTip.SetToolTip(checkColumnName, "Shows column name each notification originated\r\nfrom in the notification window title.");
|
toolTip.SetToolTip(checkColumnName, "Shows column name each notification originated\r\nfrom in the notification window title.");
|
||||||
toolTip.SetToolTip(checkMediaPreviews, "Shows image and video thumbnails in the notification window.");
|
toolTip.SetToolTip(checkMediaPreviews, "Shows image and video thumbnails in the notification window.");
|
||||||
toolTip.SetToolTip(checkSkipOnLinkClick, "Skips current notification when a link\r\ninside the notification is clicked.");
|
toolTip.SetToolTip(checkSkipOnLinkClick, "Skips current notification when a link\r\ninside the notification is clicked.");
|
||||||
toolTip.SetToolTip(checkNonIntrusive, "When not idle and the cursor is within the notification window area,\r\nit will be delayed until the cursor moves away to prevent accidental clicks.");
|
toolTip.SetToolTip(checkNonIntrusive, "When not idle and the cursor is within the notification window area,\r\nit will be delayed until the cursor moves away to prevent accidental clicks.");
|
||||||
|
|
||||||
toolTip.SetToolTip(comboBoxIdlePause, "Pauses new notifications after going idle for a set amount of time.");
|
toolTip.SetToolTip(comboBoxIdlePause, "Pauses new notifications after going idle for a set amount of time.");
|
||||||
|
|
||||||
toolTip.SetToolTip(checkTimerCountDown, "The notification timer counts down instead of up.");
|
|
||||||
toolTip.SetToolTip(labelDurationValue, "Milliseconds per character.");
|
|
||||||
toolTip.SetToolTip(trackBarDuration, toolTip.GetToolTip(labelDurationValue));
|
|
||||||
|
|
||||||
toolTip.SetToolTip(radioLocCustom, "Drag the example notification window to the desired location.");
|
|
||||||
|
|
||||||
toolTip.SetToolTip(radioSizeAuto, "Notification size is based on the font size and browser zoom level.");
|
|
||||||
toolTip.SetToolTip(radioSizeCustom, "Resize the example notification window to the desired size.");
|
|
||||||
|
|
||||||
checkColumnName.Checked = Config.DisplayNotificationColumn;
|
checkColumnName.Checked = Config.DisplayNotificationColumn;
|
||||||
checkMediaPreviews.Checked = Config.NotificationMediaPreviews;
|
checkMediaPreviews.Checked = Config.NotificationMediaPreviews;
|
||||||
checkSkipOnLinkClick.Checked = Config.NotificationSkipOnLinkClick;
|
checkSkipOnLinkClick.Checked = Config.NotificationSkipOnLinkClick;
|
||||||
@@ -54,6 +48,12 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
comboBoxIdlePause.Items.Add("5 minutes");
|
comboBoxIdlePause.Items.Add("5 minutes");
|
||||||
comboBoxIdlePause.SelectedIndex = Math.Max(0, Array.FindIndex(IdlePauseSeconds, val => val == Config.NotificationIdlePauseSeconds));
|
comboBoxIdlePause.SelectedIndex = Math.Max(0, Array.FindIndex(IdlePauseSeconds, val => val == Config.NotificationIdlePauseSeconds));
|
||||||
|
|
||||||
|
// timer
|
||||||
|
|
||||||
|
toolTip.SetToolTip(checkTimerCountDown, "The notification timer counts down instead of up.");
|
||||||
|
toolTip.SetToolTip(labelDurationValue, "Milliseconds per character.");
|
||||||
|
toolTip.SetToolTip(trackBarDuration, toolTip.GetToolTip(labelDurationValue));
|
||||||
|
|
||||||
checkNotificationTimer.Checked = Config.DisplayNotificationTimer;
|
checkNotificationTimer.Checked = Config.DisplayNotificationTimer;
|
||||||
checkTimerCountDown.Enabled = checkNotificationTimer.Checked;
|
checkTimerCountDown.Enabled = checkNotificationTimer.Checked;
|
||||||
checkTimerCountDown.Checked = Config.NotificationTimerCountDown;
|
checkTimerCountDown.Checked = Config.NotificationTimerCountDown;
|
||||||
@@ -61,6 +61,10 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
trackBarDuration.SetValueSafe(Config.NotificationDurationValue);
|
trackBarDuration.SetValueSafe(Config.NotificationDurationValue);
|
||||||
labelDurationValue.Text = Config.NotificationDurationValue+" ms/c";
|
labelDurationValue.Text = Config.NotificationDurationValue+" ms/c";
|
||||||
|
|
||||||
|
// location
|
||||||
|
|
||||||
|
toolTip.SetToolTip(radioLocCustom, "Drag the example notification window to the desired location.");
|
||||||
|
|
||||||
switch(Config.NotificationPosition){
|
switch(Config.NotificationPosition){
|
||||||
case TweetNotification.Position.TopLeft: radioLocTL.Checked = true; break;
|
case TweetNotification.Position.TopLeft: radioLocTL.Checked = true; break;
|
||||||
case TweetNotification.Position.TopRight: radioLocTR.Checked = true; break;
|
case TweetNotification.Position.TopRight: radioLocTR.Checked = true; break;
|
||||||
@@ -81,6 +85,11 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
trackBarEdgeDistance.SetValueSafe(Config.NotificationEdgeDistance);
|
trackBarEdgeDistance.SetValueSafe(Config.NotificationEdgeDistance);
|
||||||
labelEdgeDistanceValue.Text = trackBarEdgeDistance.Value+" px";
|
labelEdgeDistanceValue.Text = trackBarEdgeDistance.Value+" px";
|
||||||
|
|
||||||
|
// size
|
||||||
|
|
||||||
|
toolTip.SetToolTip(radioSizeAuto, "Notification size is based on the font size and browser zoom level.");
|
||||||
|
toolTip.SetToolTip(radioSizeCustom, "Resize the example notification window to the desired size.");
|
||||||
|
|
||||||
switch(Config.NotificationSize){
|
switch(Config.NotificationSize){
|
||||||
case TweetNotification.Size.Auto: radioSizeAuto.Checked = true; break;
|
case TweetNotification.Size.Auto: radioSizeAuto.Checked = true; break;
|
||||||
case TweetNotification.Size.Custom: radioSizeCustom.Checked = true; break;
|
case TweetNotification.Size.Custom: radioSizeCustom.Checked = true; break;
|
||||||
@@ -88,8 +97,6 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
|
|
||||||
trackBarScrollSpeed.SetValueSafe(Config.NotificationScrollSpeed);
|
trackBarScrollSpeed.SetValueSafe(Config.NotificationScrollSpeed);
|
||||||
labelScrollSpeedValue.Text = trackBarScrollSpeed.Value+"%";
|
labelScrollSpeedValue.Text = trackBarScrollSpeed.Value+"%";
|
||||||
|
|
||||||
Disposed += (sender, args) => this.notification.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnReady(){
|
public override void OnReady(){
|
||||||
@@ -97,12 +104,10 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
checkMediaPreviews.CheckedChanged += checkMediaPreviews_CheckedChanged;
|
checkMediaPreviews.CheckedChanged += checkMediaPreviews_CheckedChanged;
|
||||||
checkSkipOnLinkClick.CheckedChanged += checkSkipOnLinkClick_CheckedChanged;
|
checkSkipOnLinkClick.CheckedChanged += checkSkipOnLinkClick_CheckedChanged;
|
||||||
checkNonIntrusive.CheckedChanged += checkNonIntrusive_CheckedChanged;
|
checkNonIntrusive.CheckedChanged += checkNonIntrusive_CheckedChanged;
|
||||||
|
|
||||||
comboBoxIdlePause.SelectedValueChanged += comboBoxIdlePause_SelectedValueChanged;
|
comboBoxIdlePause.SelectedValueChanged += comboBoxIdlePause_SelectedValueChanged;
|
||||||
|
|
||||||
checkNotificationTimer.CheckedChanged += checkNotificationTimer_CheckedChanged;
|
checkNotificationTimer.CheckedChanged += checkNotificationTimer_CheckedChanged;
|
||||||
checkTimerCountDown.CheckedChanged += checkTimerCountDown_CheckedChanged;
|
checkTimerCountDown.CheckedChanged += checkTimerCountDown_CheckedChanged;
|
||||||
|
|
||||||
trackBarDuration.ValueChanged += trackBarDuration_ValueChanged;
|
trackBarDuration.ValueChanged += trackBarDuration_ValueChanged;
|
||||||
btnDurationShort.Click += btnDurationShort_Click;
|
btnDurationShort.Click += btnDurationShort_Click;
|
||||||
btnDurationMedium.Click += btnDurationMedium_Click;
|
btnDurationMedium.Click += btnDurationMedium_Click;
|
||||||
@@ -113,13 +118,11 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
radioLocBL.CheckedChanged += radioLoc_CheckedChanged;
|
radioLocBL.CheckedChanged += radioLoc_CheckedChanged;
|
||||||
radioLocBR.CheckedChanged += radioLoc_CheckedChanged;
|
radioLocBR.CheckedChanged += radioLoc_CheckedChanged;
|
||||||
radioLocCustom.Click += radioLocCustom_Click;
|
radioLocCustom.Click += radioLocCustom_Click;
|
||||||
|
|
||||||
comboBoxDisplay.SelectedValueChanged += comboBoxDisplay_SelectedValueChanged;
|
comboBoxDisplay.SelectedValueChanged += comboBoxDisplay_SelectedValueChanged;
|
||||||
trackBarEdgeDistance.ValueChanged += trackBarEdgeDistance_ValueChanged;
|
trackBarEdgeDistance.ValueChanged += trackBarEdgeDistance_ValueChanged;
|
||||||
|
|
||||||
radioSizeAuto.CheckedChanged += radioSize_CheckedChanged;
|
radioSizeAuto.CheckedChanged += radioSize_CheckedChanged;
|
||||||
radioSizeCustom.Click += radioSizeCustom_Click;
|
radioSizeCustom.Click += radioSizeCustom_Click;
|
||||||
|
|
||||||
trackBarScrollSpeed.ValueChanged += trackBarScrollSpeed_ValueChanged;
|
trackBarScrollSpeed.ValueChanged += trackBarScrollSpeed_ValueChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,6 +153,71 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region General
|
||||||
|
|
||||||
|
private void checkColumnName_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.DisplayNotificationColumn = checkColumnName.Checked;
|
||||||
|
notification.ShowExampleNotification(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkMediaPreviews_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.NotificationMediaPreviews = checkMediaPreviews.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkSkipOnLinkClick_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.NotificationSkipOnLinkClick = checkSkipOnLinkClick.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkNonIntrusive_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.NotificationNonIntrusiveMode = checkNonIntrusive.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void comboBoxIdlePause_SelectedValueChanged(object sender, EventArgs e){
|
||||||
|
Config.NotificationIdlePauseSeconds = IdlePauseSeconds[comboBoxIdlePause.SelectedIndex];
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region Timer
|
||||||
|
|
||||||
|
private void checkNotificationTimer_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.DisplayNotificationTimer = checkNotificationTimer.Checked;
|
||||||
|
checkTimerCountDown.Enabled = checkNotificationTimer.Checked;
|
||||||
|
notification.ShowExampleNotification(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkTimerCountDown_CheckedChanged(object sender, EventArgs e){
|
||||||
|
Config.NotificationTimerCountDown = checkTimerCountDown.Checked;
|
||||||
|
notification.ShowExampleNotification(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void trackBarDuration_ValueChanged(object sender, EventArgs e){
|
||||||
|
durationUpdateTimer.Stop();
|
||||||
|
durationUpdateTimer.Start();
|
||||||
|
|
||||||
|
Config.NotificationDurationValue = trackBarDuration.Value;
|
||||||
|
labelDurationValue.Text = Config.NotificationDurationValue+" ms/c";
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnDurationShort_Click(object sender, EventArgs e){
|
||||||
|
trackBarDuration.Value = 15;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnDurationMedium_Click(object sender, EventArgs e){
|
||||||
|
trackBarDuration.Value = 25;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnDurationLong_Click(object sender, EventArgs e){
|
||||||
|
trackBarDuration.Value = 35;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void durationUpdateTimer_Tick(object sender, EventArgs e){
|
||||||
|
notification.ShowExampleNotification(true);
|
||||||
|
durationUpdateTimer.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region Location
|
||||||
|
|
||||||
private void radioLoc_CheckedChanged(object sender, EventArgs e){
|
private void radioLoc_CheckedChanged(object sender, EventArgs e){
|
||||||
if (radioLocTL.Checked)Config.NotificationPosition = TweetNotification.Position.TopLeft;
|
if (radioLocTL.Checked)Config.NotificationPosition = TweetNotification.Position.TopLeft;
|
||||||
else if (radioLocTR.Checked)Config.NotificationPosition = TweetNotification.Position.TopRight;
|
else if (radioLocTR.Checked)Config.NotificationPosition = TweetNotification.Position.TopRight;
|
||||||
@@ -181,6 +249,20 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void comboBoxDisplay_SelectedValueChanged(object sender, EventArgs e){
|
||||||
|
Config.NotificationDisplay = comboBoxDisplay.SelectedIndex;
|
||||||
|
notification.ShowExampleNotification(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void trackBarEdgeDistance_ValueChanged(object sender, EventArgs e){
|
||||||
|
labelEdgeDistanceValue.Text = trackBarEdgeDistance.Value+" px";
|
||||||
|
Config.NotificationEdgeDistance = trackBarEdgeDistance.Value;
|
||||||
|
notification.ShowExampleNotification(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
#region Size
|
||||||
|
|
||||||
private void radioSize_CheckedChanged(object sender, EventArgs e){
|
private void radioSize_CheckedChanged(object sender, EventArgs e){
|
||||||
if (radioSizeAuto.Checked){
|
if (radioSizeAuto.Checked){
|
||||||
Config.NotificationSize = TweetNotification.Size.Auto;
|
Config.NotificationSize = TweetNotification.Size.Auto;
|
||||||
@@ -198,58 +280,6 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
notification.ShowExampleNotification(false);
|
notification.ShowExampleNotification(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void trackBarDuration_ValueChanged(object sender, EventArgs e){
|
|
||||||
durationUpdateTimer.Stop();
|
|
||||||
durationUpdateTimer.Start();
|
|
||||||
|
|
||||||
Config.NotificationDurationValue = trackBarDuration.Value;
|
|
||||||
labelDurationValue.Text = Config.NotificationDurationValue+" ms/c";
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnDurationShort_Click(object sender, EventArgs e){
|
|
||||||
trackBarDuration.Value = 15;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnDurationMedium_Click(object sender, EventArgs e){
|
|
||||||
trackBarDuration.Value = 25;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void btnDurationLong_Click(object sender, EventArgs e){
|
|
||||||
trackBarDuration.Value = 35;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkColumnName_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.DisplayNotificationColumn = checkColumnName.Checked;
|
|
||||||
notification.ShowExampleNotification(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkNotificationTimer_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.DisplayNotificationTimer = checkNotificationTimer.Checked;
|
|
||||||
checkTimerCountDown.Enabled = checkNotificationTimer.Checked;
|
|
||||||
notification.ShowExampleNotification(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkTimerCountDown_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.NotificationTimerCountDown = checkTimerCountDown.Checked;
|
|
||||||
notification.ShowExampleNotification(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkMediaPreviews_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.NotificationMediaPreviews = checkMediaPreviews.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkSkipOnLinkClick_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.NotificationSkipOnLinkClick = checkSkipOnLinkClick.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkNonIntrusive_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.NotificationNonIntrusiveMode = checkNonIntrusive.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void comboBoxIdlePause_SelectedValueChanged(object sender, EventArgs e){
|
|
||||||
Config.NotificationIdlePauseSeconds = IdlePauseSeconds[comboBoxIdlePause.SelectedIndex];
|
|
||||||
}
|
|
||||||
|
|
||||||
private void trackBarScrollSpeed_ValueChanged(object sender, EventArgs e){
|
private void trackBarScrollSpeed_ValueChanged(object sender, EventArgs e){
|
||||||
if (trackBarScrollSpeed.AlignValueToTick()){
|
if (trackBarScrollSpeed.AlignValueToTick()){
|
||||||
labelScrollSpeedValue.Text = trackBarScrollSpeed.Value+"%";
|
labelScrollSpeedValue.Text = trackBarScrollSpeed.Value+"%";
|
||||||
@@ -257,20 +287,6 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void comboBoxDisplay_SelectedValueChanged(object sender, EventArgs e){
|
#endregion
|
||||||
Config.NotificationDisplay = comboBoxDisplay.SelectedIndex;
|
|
||||||
notification.ShowExampleNotification(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void trackBarEdgeDistance_ValueChanged(object sender, EventArgs e){
|
|
||||||
labelEdgeDistanceValue.Text = trackBarEdgeDistance.Value+" px";
|
|
||||||
Config.NotificationEdgeDistance = trackBarEdgeDistance.Value;
|
|
||||||
notification.ShowExampleNotification(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void durationUpdateTimer_Tick(object sender, EventArgs e){
|
|
||||||
notification.ShowExampleNotification(true);
|
|
||||||
durationUpdateTimer.Stop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
36
Core/Other/Settings/TabSettingsSounds.Designer.cs
generated
36
Core/Other/Settings/TabSettingsSounds.Designer.cs
generated
@@ -47,7 +47,7 @@
|
|||||||
//
|
//
|
||||||
this.tbCustomSound.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.tbCustomSound.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.tbCustomSound.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.tbCustomSound.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.tbCustomSound.Location = new System.Drawing.Point(3, 3);
|
this.tbCustomSound.Location = new System.Drawing.Point(3, 3);
|
||||||
this.tbCustomSound.Name = "tbCustomSound";
|
this.tbCustomSound.Name = "tbCustomSound";
|
||||||
this.tbCustomSound.Size = new System.Drawing.Size(316, 23);
|
this.tbCustomSound.Size = new System.Drawing.Size(316, 23);
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
// labelVolumeValue
|
// labelVolumeValue
|
||||||
//
|
//
|
||||||
this.labelVolumeValue.BackColor = System.Drawing.Color.Transparent;
|
this.labelVolumeValue.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.labelVolumeValue.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelVolumeValue.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.labelVolumeValue.Location = new System.Drawing.Point(147, 4);
|
this.labelVolumeValue.Location = new System.Drawing.Point(147, 4);
|
||||||
this.labelVolumeValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
this.labelVolumeValue.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
|
||||||
this.labelVolumeValue.Name = "labelVolumeValue";
|
this.labelVolumeValue.Name = "labelVolumeValue";
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
//
|
//
|
||||||
this.btnPlaySound.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnPlaySound.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnPlaySound.AutoSize = true;
|
this.btnPlaySound.AutoSize = true;
|
||||||
this.btnPlaySound.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnPlaySound.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnPlaySound.Location = new System.Drawing.Point(202, 32);
|
this.btnPlaySound.Location = new System.Drawing.Point(202, 32);
|
||||||
this.btnPlaySound.Name = "btnPlaySound";
|
this.btnPlaySound.Name = "btnPlaySound";
|
||||||
this.btnPlaySound.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnPlaySound.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
// btnResetSound
|
// btnResetSound
|
||||||
//
|
//
|
||||||
this.btnResetSound.AutoSize = true;
|
this.btnResetSound.AutoSize = true;
|
||||||
this.btnResetSound.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnResetSound.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnResetSound.Location = new System.Drawing.Point(3, 32);
|
this.btnResetSound.Location = new System.Drawing.Point(3, 32);
|
||||||
this.btnResetSound.Name = "btnResetSound";
|
this.btnResetSound.Name = "btnResetSound";
|
||||||
this.btnResetSound.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnResetSound.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
//
|
//
|
||||||
this.btnBrowseSound.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnBrowseSound.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnBrowseSound.AutoSize = true;
|
this.btnBrowseSound.AutoSize = true;
|
||||||
this.btnBrowseSound.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnBrowseSound.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||||
this.btnBrowseSound.Location = new System.Drawing.Point(251, 32);
|
this.btnBrowseSound.Location = new System.Drawing.Point(251, 32);
|
||||||
this.btnBrowseSound.Name = "btnBrowseSound";
|
this.btnBrowseSound.Name = "btnBrowseSound";
|
||||||
this.btnBrowseSound.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnBrowseSound.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -106,17 +106,16 @@
|
|||||||
// labelSoundNotification
|
// labelSoundNotification
|
||||||
//
|
//
|
||||||
this.labelSoundNotification.AutoSize = true;
|
this.labelSoundNotification.AutoSize = true;
|
||||||
this.labelSoundNotification.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelSoundNotification.Font = new System.Drawing.Font("Segoe UI Semibold", 10.5F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelSoundNotification.Location = new System.Drawing.Point(0, 0);
|
this.labelSoundNotification.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelSoundNotification.Margin = new System.Windows.Forms.Padding(0);
|
this.labelSoundNotification.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelSoundNotification.Name = "labelSoundNotification";
|
this.labelSoundNotification.Name = "labelSoundNotification";
|
||||||
this.labelSoundNotification.Size = new System.Drawing.Size(188, 20);
|
this.labelSoundNotification.Size = new System.Drawing.Size(160, 19);
|
||||||
this.labelSoundNotification.TabIndex = 0;
|
this.labelSoundNotification.TabIndex = 0;
|
||||||
this.labelSoundNotification.Text = "Custom Sound Notification";
|
this.labelSoundNotification.Text = "SOUND NOTIFICATION";
|
||||||
//
|
//
|
||||||
// panelSoundNotification
|
// panelSoundNotification
|
||||||
//
|
//
|
||||||
this.panelSoundNotification.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
||||||
this.panelSoundNotification.Controls.Add(this.btnPlaySound);
|
this.panelSoundNotification.Controls.Add(this.btnPlaySound);
|
||||||
this.panelSoundNotification.Controls.Add(this.tbCustomSound);
|
this.panelSoundNotification.Controls.Add(this.tbCustomSound);
|
||||||
this.panelSoundNotification.Controls.Add(this.btnResetSound);
|
this.panelSoundNotification.Controls.Add(this.btnResetSound);
|
||||||
@@ -130,11 +129,11 @@
|
|||||||
// labelVolume
|
// labelVolume
|
||||||
//
|
//
|
||||||
this.labelVolume.AutoSize = true;
|
this.labelVolume.AutoSize = true;
|
||||||
this.labelVolume.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelVolume.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelVolume.Location = new System.Drawing.Point(3, 91);
|
this.labelVolume.Location = new System.Drawing.Point(3, 91);
|
||||||
this.labelVolume.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
this.labelVolume.Margin = new System.Windows.Forms.Padding(3, 12, 3, 0);
|
||||||
this.labelVolume.Name = "labelVolume";
|
this.labelVolume.Name = "labelVolume";
|
||||||
this.labelVolume.Size = new System.Drawing.Size(48, 15);
|
this.labelVolume.Size = new System.Drawing.Size(49, 15);
|
||||||
this.labelVolume.TabIndex = 2;
|
this.labelVolume.TabIndex = 2;
|
||||||
this.labelVolume.Text = "Volume";
|
this.labelVolume.Text = "Volume";
|
||||||
//
|
//
|
||||||
@@ -153,9 +152,8 @@
|
|||||||
//
|
//
|
||||||
// flowPanel
|
// flowPanel
|
||||||
//
|
//
|
||||||
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.flowPanel.Controls.Add(this.labelSoundNotification);
|
this.flowPanel.Controls.Add(this.labelSoundNotification);
|
||||||
this.flowPanel.Controls.Add(this.panelSoundNotification);
|
this.flowPanel.Controls.Add(this.panelSoundNotification);
|
||||||
this.flowPanel.Controls.Add(this.labelVolume);
|
this.flowPanel.Controls.Add(this.labelVolume);
|
||||||
@@ -163,7 +161,7 @@
|
|||||||
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
||||||
this.flowPanel.Name = "flowPanel";
|
this.flowPanel.Name = "flowPanel";
|
||||||
this.flowPanel.Size = new System.Drawing.Size(322, 142);
|
this.flowPanel.Size = new System.Drawing.Size(322, 462);
|
||||||
this.flowPanel.TabIndex = 0;
|
this.flowPanel.TabIndex = 0;
|
||||||
this.flowPanel.WrapContents = false;
|
this.flowPanel.WrapContents = false;
|
||||||
//
|
//
|
||||||
@@ -171,8 +169,8 @@
|
|||||||
//
|
//
|
||||||
this.panelVolume.Controls.Add(this.trackBarVolume);
|
this.panelVolume.Controls.Add(this.trackBarVolume);
|
||||||
this.panelVolume.Controls.Add(this.labelVolumeValue);
|
this.panelVolume.Controls.Add(this.labelVolumeValue);
|
||||||
this.panelVolume.Location = new System.Drawing.Point(0, 106);
|
this.panelVolume.Location = new System.Drawing.Point(0, 107);
|
||||||
this.panelVolume.Margin = new System.Windows.Forms.Padding(0);
|
this.panelVolume.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0);
|
||||||
this.panelVolume.Name = "panelVolume";
|
this.panelVolume.Name = "panelVolume";
|
||||||
this.panelVolume.Size = new System.Drawing.Size(322, 36);
|
this.panelVolume.Size = new System.Drawing.Size(322, 36);
|
||||||
this.panelVolume.TabIndex = 3;
|
this.panelVolume.TabIndex = 3;
|
||||||
@@ -188,7 +186,7 @@
|
|||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.flowPanel);
|
this.Controls.Add(this.flowPanel);
|
||||||
this.Name = "TabSettingsSounds";
|
this.Name = "TabSettingsSounds";
|
||||||
this.Size = new System.Drawing.Size(340, 160);
|
this.Size = new System.Drawing.Size(631, 480);
|
||||||
this.panelSoundNotification.ResumeLayout(false);
|
this.panelSoundNotification.ResumeLayout(false);
|
||||||
this.panelSoundNotification.PerformLayout();
|
this.panelSoundNotification.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.trackBarVolume)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.trackBarVolume)).EndInit();
|
||||||
|
@@ -4,6 +4,7 @@ using System.IO;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using TweetDuck.Core.Controls;
|
using TweetDuck.Core.Controls;
|
||||||
using TweetDuck.Core.Notification;
|
using TweetDuck.Core.Notification;
|
||||||
|
using TweetDuck.Core.Utils;
|
||||||
|
|
||||||
namespace TweetDuck.Core.Other.Settings{
|
namespace TweetDuck.Core.Other.Settings{
|
||||||
sealed partial class TabSettingsSounds : BaseTabSettings{
|
sealed partial class TabSettingsSounds : BaseTabSettings{
|
||||||
@@ -14,6 +15,8 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
|
|
||||||
this.playSoundNotification = playSoundNotification;
|
this.playSoundNotification = playSoundNotification;
|
||||||
|
|
||||||
|
// sound notification
|
||||||
|
|
||||||
toolTip.SetToolTip(tbCustomSound, "When empty, the default TweetDeck sound notification is used.");
|
toolTip.SetToolTip(tbCustomSound, "When empty, the default TweetDeck sound notification is used.");
|
||||||
|
|
||||||
trackBarVolume.SetValueSafe(Config.NotificationSoundVolume);
|
trackBarVolume.SetValueSafe(Config.NotificationSoundVolume);
|
||||||
@@ -21,6 +24,7 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
|
|
||||||
tbCustomSound.Text = Config.NotificationSoundPath;
|
tbCustomSound.Text = Config.NotificationSoundPath;
|
||||||
tbCustomSound_TextChanged(tbCustomSound, EventArgs.Empty);
|
tbCustomSound_TextChanged(tbCustomSound, EventArgs.Empty);
|
||||||
|
NativeMethods.SendMessage(tbCustomSound.Handle, NativeMethods.EM_SETCUEBANNER, 0, "(default TweetDeck sound)");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnReady(){
|
public override void OnReady(){
|
||||||
@@ -35,6 +39,8 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
Config.NotificationSoundVolume = trackBarVolume.Value;
|
Config.NotificationSoundVolume = trackBarVolume.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Sound Notification
|
||||||
|
|
||||||
private bool RefreshCanPlay(){
|
private bool RefreshCanPlay(){
|
||||||
bool isEmpty = string.IsNullOrEmpty(tbCustomSound.Text);
|
bool isEmpty = string.IsNullOrEmpty(tbCustomSound.Text);
|
||||||
bool canPlay = isEmpty || File.Exists(tbCustomSound.Text);
|
bool canPlay = isEmpty || File.Exists(tbCustomSound.Text);
|
||||||
@@ -84,5 +90,7 @@ namespace TweetDuck.Core.Other.Settings{
|
|||||||
Config.NotificationSoundVolume = trackBarVolume.Value;
|
Config.NotificationSoundVolume = trackBarVolume.Value;
|
||||||
volumeUpdateTimer.Stop();
|
volumeUpdateTimer.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
118
Core/Other/Settings/TabSettingsTray.Designer.cs
generated
118
Core/Other/Settings/TabSettingsTray.Designer.cs
generated
@@ -1,118 +0,0 @@
|
|||||||
namespace TweetDuck.Core.Other.Settings {
|
|
||||||
partial class TabSettingsTray {
|
|
||||||
/// <summary>
|
|
||||||
/// Required designer variable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Clean up any resources being used.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
||||||
protected override void Dispose(bool disposing) {
|
|
||||||
if (disposing && (components != null)) {
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Component Designer generated code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent() {
|
|
||||||
this.components = new System.ComponentModel.Container();
|
|
||||||
this.checkTrayHighlight = new System.Windows.Forms.CheckBox();
|
|
||||||
this.comboBoxTrayType = new System.Windows.Forms.ComboBox();
|
|
||||||
this.labelTrayIcon = new System.Windows.Forms.Label();
|
|
||||||
this.labelTray = new System.Windows.Forms.Label();
|
|
||||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
|
||||||
this.flowPanel = new System.Windows.Forms.FlowLayoutPanel();
|
|
||||||
this.flowPanel.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// checkTrayHighlight
|
|
||||||
//
|
|
||||||
this.checkTrayHighlight.AutoSize = true;
|
|
||||||
this.checkTrayHighlight.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.checkTrayHighlight.Location = new System.Drawing.Point(6, 81);
|
|
||||||
this.checkTrayHighlight.Margin = new System.Windows.Forms.Padding(6, 6, 3, 2);
|
|
||||||
this.checkTrayHighlight.Name = "checkTrayHighlight";
|
|
||||||
this.checkTrayHighlight.Size = new System.Drawing.Size(114, 19);
|
|
||||||
this.checkTrayHighlight.TabIndex = 3;
|
|
||||||
this.checkTrayHighlight.Text = "Enable Highlight";
|
|
||||||
this.checkTrayHighlight.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// comboBoxTrayType
|
|
||||||
//
|
|
||||||
this.comboBoxTrayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
||||||
this.comboBoxTrayType.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.comboBoxTrayType.FormattingEnabled = true;
|
|
||||||
this.comboBoxTrayType.Location = new System.Drawing.Point(5, 25);
|
|
||||||
this.comboBoxTrayType.Margin = new System.Windows.Forms.Padding(5, 5, 3, 3);
|
|
||||||
this.comboBoxTrayType.Name = "comboBoxTrayType";
|
|
||||||
this.comboBoxTrayType.Size = new System.Drawing.Size(144, 23);
|
|
||||||
this.comboBoxTrayType.TabIndex = 1;
|
|
||||||
//
|
|
||||||
// labelTrayIcon
|
|
||||||
//
|
|
||||||
this.labelTrayIcon.AutoSize = true;
|
|
||||||
this.labelTrayIcon.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.labelTrayIcon.Location = new System.Drawing.Point(3, 60);
|
|
||||||
this.labelTrayIcon.Margin = new System.Windows.Forms.Padding(3, 9, 3, 0);
|
|
||||||
this.labelTrayIcon.Name = "labelTrayIcon";
|
|
||||||
this.labelTrayIcon.Size = new System.Drawing.Size(56, 15);
|
|
||||||
this.labelTrayIcon.TabIndex = 2;
|
|
||||||
this.labelTrayIcon.Text = "Tray Icon";
|
|
||||||
//
|
|
||||||
// labelTray
|
|
||||||
//
|
|
||||||
this.labelTray.AutoSize = true;
|
|
||||||
this.labelTray.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
|
||||||
this.labelTray.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.labelTray.Margin = new System.Windows.Forms.Padding(0);
|
|
||||||
this.labelTray.Name = "labelTray";
|
|
||||||
this.labelTray.Size = new System.Drawing.Size(88, 20);
|
|
||||||
this.labelTray.TabIndex = 0;
|
|
||||||
this.labelTray.Text = "System Tray";
|
|
||||||
//
|
|
||||||
// flowPanel
|
|
||||||
//
|
|
||||||
this.flowPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.flowPanel.Controls.Add(this.labelTray);
|
|
||||||
this.flowPanel.Controls.Add(this.comboBoxTrayType);
|
|
||||||
this.flowPanel.Controls.Add(this.labelTrayIcon);
|
|
||||||
this.flowPanel.Controls.Add(this.checkTrayHighlight);
|
|
||||||
this.flowPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
|
||||||
this.flowPanel.Location = new System.Drawing.Point(9, 9);
|
|
||||||
this.flowPanel.Name = "flowPanel";
|
|
||||||
this.flowPanel.Size = new System.Drawing.Size(322, 102);
|
|
||||||
this.flowPanel.TabIndex = 0;
|
|
||||||
this.flowPanel.WrapContents = false;
|
|
||||||
//
|
|
||||||
// TabSettingsTray
|
|
||||||
//
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.Controls.Add(this.flowPanel);
|
|
||||||
this.Name = "TabSettingsTray";
|
|
||||||
this.Size = new System.Drawing.Size(340, 120);
|
|
||||||
this.flowPanel.ResumeLayout(false);
|
|
||||||
this.flowPanel.PerformLayout();
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
private System.Windows.Forms.CheckBox checkTrayHighlight;
|
|
||||||
private System.Windows.Forms.ComboBox comboBoxTrayType;
|
|
||||||
private System.Windows.Forms.Label labelTrayIcon;
|
|
||||||
private System.Windows.Forms.Label labelTray;
|
|
||||||
private System.Windows.Forms.ToolTip toolTip;
|
|
||||||
private System.Windows.Forms.FlowLayoutPanel flowPanel;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,36 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace TweetDuck.Core.Other.Settings{
|
|
||||||
sealed partial class TabSettingsTray : BaseTabSettings{
|
|
||||||
public TabSettingsTray(){
|
|
||||||
InitializeComponent();
|
|
||||||
|
|
||||||
toolTip.SetToolTip(comboBoxTrayType, "Changes behavior of the Tray icon.\r\nRight-click the icon for an action menu.");
|
|
||||||
toolTip.SetToolTip(checkTrayHighlight, "Highlights the tray icon if there are new tweets.\r\nOnly works for columns with popup or audio notifications.\r\nThe icon resets when the main window is restored.");
|
|
||||||
|
|
||||||
comboBoxTrayType.Items.Add("Disabled");
|
|
||||||
comboBoxTrayType.Items.Add("Display Icon Only");
|
|
||||||
comboBoxTrayType.Items.Add("Minimize to Tray");
|
|
||||||
comboBoxTrayType.Items.Add("Close to Tray");
|
|
||||||
comboBoxTrayType.Items.Add("Combined");
|
|
||||||
comboBoxTrayType.SelectedIndex = Math.Min(Math.Max((int)Config.TrayBehavior, 0), comboBoxTrayType.Items.Count-1);
|
|
||||||
|
|
||||||
checkTrayHighlight.Enabled = Config.TrayBehavior.ShouldDisplayIcon();
|
|
||||||
checkTrayHighlight.Checked = Config.EnableTrayHighlight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnReady(){
|
|
||||||
comboBoxTrayType.SelectedIndexChanged += comboBoxTrayType_SelectedIndexChanged;
|
|
||||||
checkTrayHighlight.CheckedChanged += checkTrayHighlight_CheckedChanged;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void comboBoxTrayType_SelectedIndexChanged(object sender, EventArgs e){
|
|
||||||
Config.TrayBehavior = (TrayIcon.Behavior)comboBoxTrayType.SelectedIndex;
|
|
||||||
checkTrayHighlight.Enabled = Config.TrayBehavior.ShouldDisplayIcon();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkTrayHighlight_CheckedChanged(object sender, EventArgs e){
|
|
||||||
Config.EnableTrayHighlight = checkTrayHighlight.Checked;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -9,7 +9,6 @@ using TweetDuck.Core.Bridge;
|
|||||||
using TweetDuck.Core.Controls;
|
using TweetDuck.Core.Controls;
|
||||||
using TweetDuck.Core.Handling;
|
using TweetDuck.Core.Handling;
|
||||||
using TweetDuck.Core.Handling.General;
|
using TweetDuck.Core.Handling.General;
|
||||||
using TweetDuck.Core.Management;
|
|
||||||
using TweetDuck.Core.Notification;
|
using TweetDuck.Core.Notification;
|
||||||
using TweetDuck.Core.Other.Interfaces;
|
using TweetDuck.Core.Other.Interfaces;
|
||||||
using TweetDuck.Core.Utils;
|
using TweetDuck.Core.Utils;
|
||||||
@@ -40,7 +39,7 @@ namespace TweetDuck.Core{
|
|||||||
|
|
||||||
private string prevSoundNotificationPath = null;
|
private string prevSoundNotificationPath = null;
|
||||||
|
|
||||||
public TweetDeckBrowser(FormBrowser owner, TweetDeckBridge bridge){
|
public TweetDeckBrowser(FormBrowser owner, TweetDeckBridge tdBridge, UpdateBridge updateBridge){
|
||||||
RequestHandlerBrowser requestHandler = new RequestHandlerBrowser();
|
RequestHandlerBrowser requestHandler = new RequestHandlerBrowser();
|
||||||
|
|
||||||
this.browser = new ChromiumWebBrowser(TwitterUtils.TweetDeckURL){
|
this.browser = new ChromiumWebBrowser(TwitterUtils.TweetDeckURL){
|
||||||
@@ -58,7 +57,8 @@ namespace TweetDuck.Core{
|
|||||||
this.browser.FrameLoadEnd += browser_FrameLoadEnd;
|
this.browser.FrameLoadEnd += browser_FrameLoadEnd;
|
||||||
this.browser.LoadError += browser_LoadError;
|
this.browser.LoadError += browser_LoadError;
|
||||||
|
|
||||||
this.browser.RegisterAsyncJsObject("$TD", bridge);
|
this.browser.RegisterAsyncJsObject("$TD", tdBridge);
|
||||||
|
this.browser.RegisterAsyncJsObject("$TDU", updateBridge);
|
||||||
|
|
||||||
this.browser.BrowserSettings.BackgroundColor = (uint)TwitterUtils.BackgroundColor.ToArgb();
|
this.browser.BrowserSettings.BackgroundColor = (uint)TwitterUtils.BackgroundColor.ToArgb();
|
||||||
this.browser.Dock = DockStyle.None;
|
this.browser.Dock = DockStyle.None;
|
||||||
@@ -146,11 +146,11 @@ namespace TweetDuck.Core{
|
|||||||
private void browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e){
|
private void browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e){
|
||||||
IFrame frame = e.Frame;
|
IFrame frame = e.Frame;
|
||||||
|
|
||||||
if (frame.IsMain && TwitterUtils.IsTweetDeckWebsite(frame)){
|
if (frame.IsMain){
|
||||||
|
if (TwitterUtils.IsTweetDeckWebsite(frame)){
|
||||||
UpdateProperties();
|
UpdateProperties();
|
||||||
TweetDeckBridge.RestoreSessionData(frame);
|
TweetDeckBridge.RestoreSessionData(frame);
|
||||||
ScriptLoader.ExecuteFile(frame, "code.js", browser);
|
ScriptLoader.ExecuteFile(frame, "code.js", browser);
|
||||||
ScriptLoader.ExecuteFile(frame, "update.js", browser);
|
|
||||||
|
|
||||||
InjectBrowserCSS();
|
InjectBrowserCSS();
|
||||||
ReinjectCustomCSS(Program.UserConfig.CustomBrowserCSS);
|
ReinjectCustomCSS(Program.UserConfig.CustomBrowserCSS);
|
||||||
@@ -166,6 +166,9 @@ namespace TweetDuck.Core{
|
|||||||
ScriptLoader.ExecuteFile(frame, "introduction.js", browser);
|
ScriptLoader.ExecuteFile(frame, "introduction.js", browser);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScriptLoader.ExecuteFile(frame, "update.js", browser);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void browser_LoadError(object sender, LoadErrorEventArgs e){
|
private void browser_LoadError(object sender, LoadErrorEventArgs e){
|
||||||
|
@@ -22,10 +22,24 @@ namespace TweetDuck.Core.Utils{
|
|||||||
args["disable-gpu-vsync"] = "1";
|
args["disable-gpu-vsync"] = "1";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Program.UserConfig.EnableSmoothScrolling){
|
if (Program.UserConfig.EnableSmoothScrolling){
|
||||||
|
args["disable-threaded-scrolling"] = "1";
|
||||||
|
|
||||||
|
if (args.TryGetValue("disable-features", out string disabledFeatures)){
|
||||||
|
args["disable-features"] = "TouchpadAndWheelScrollLatching,"+disabledFeatures;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
args["disable-features"] = "TouchpadAndWheelScrollLatching";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
args["disable-smooth-scrolling"] = "1";
|
args["disable-smooth-scrolling"] = "1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Program.UserConfig.EnableTouchAdjustment){
|
||||||
|
args["disable-touch-adjustment"] = "1";
|
||||||
|
}
|
||||||
|
|
||||||
args["disable-pdf-extension"] = "1";
|
args["disable-pdf-extension"] = "1";
|
||||||
args["disable-plugins-discovery"] = "1";
|
args["disable-plugins-discovery"] = "1";
|
||||||
args["enable-system-flash"] = "0";
|
args["enable-system-flash"] = "0";
|
||||||
|
@@ -17,6 +17,7 @@ namespace TweetDuck.Core.Utils{
|
|||||||
public const int GWL_STYLE = -16;
|
public const int GWL_STYLE = -16;
|
||||||
|
|
||||||
public const int SB_HORZ = 0;
|
public const int SB_HORZ = 0;
|
||||||
|
public const int EM_SETCUEBANNER = 0x1501;
|
||||||
|
|
||||||
public const int WM_MOUSE_LL = 14;
|
public const int WM_MOUSE_LL = 14;
|
||||||
public const int WM_MOUSEWHEEL = 0x020A;
|
public const int WM_MOUSEWHEEL = 0x020A;
|
||||||
@@ -52,6 +53,9 @@ namespace TweetDuck.Core.Utils{
|
|||||||
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
|
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
|
||||||
private static extern bool SetWindowPos(int hWnd, int hWndOrder, int x, int y, int width, int height, uint flags);
|
private static extern bool SetWindowPos(int hWnd, int hWndOrder, int x, int y, int width, int height, uint flags);
|
||||||
|
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
public static extern bool SendMessage(IntPtr hWnd, int msg, int wParam, [MarshalAs(UnmanagedType.LPWStr)] string lParam);
|
||||||
|
|
||||||
[DllImport("user32.dll")]
|
[DllImport("user32.dll")]
|
||||||
public static extern bool PostMessage(IntPtr hWnd, uint msg, UIntPtr wParam, IntPtr lParam);
|
public static extern bool PostMessage(IntPtr hWnd, uint msg, UIntPtr wParam, IntPtr lParam);
|
||||||
|
|
||||||
|
@@ -76,22 +76,14 @@ namespace TweetDuck.Core.Utils{
|
|||||||
string firstImageLink = GetMediaLink(urls[0], quality);
|
string firstImageLink = GetMediaLink(urls[0], quality);
|
||||||
int qualityIndex = firstImageLink.IndexOf(':', firstImageLink.LastIndexOf('/'));
|
int qualityIndex = firstImageLink.IndexOf(':', firstImageLink.LastIndexOf('/'));
|
||||||
|
|
||||||
string file = GetImageFileName(firstImageLink);
|
string filename = GetImageFileName(firstImageLink);
|
||||||
string ext = Path.GetExtension(file); // includes dot
|
string ext = Path.GetExtension(filename); // includes dot
|
||||||
|
|
||||||
string[] fileNameParts = qualityIndex == -1 ? new string[]{
|
|
||||||
Path.ChangeExtension(file, null)
|
|
||||||
} : new string[]{
|
|
||||||
username,
|
|
||||||
Path.ChangeExtension(file, null),
|
|
||||||
firstImageLink.Substring(qualityIndex+1)
|
|
||||||
};
|
|
||||||
|
|
||||||
using(SaveFileDialog dialog = new SaveFileDialog{
|
using(SaveFileDialog dialog = new SaveFileDialog{
|
||||||
AutoUpgradeEnabled = true,
|
AutoUpgradeEnabled = true,
|
||||||
OverwritePrompt = urls.Length == 1,
|
OverwritePrompt = urls.Length == 1,
|
||||||
Title = "Save Image",
|
Title = "Save Image",
|
||||||
FileName = $"{string.Join(" ", fileNameParts.Where(part => !string.IsNullOrEmpty(part)))}{ext}",
|
FileName = qualityIndex == -1 ? filename : $"{username} {Path.ChangeExtension(filename, null)} {firstImageLink.Substring(qualityIndex+1)}".Trim()+ext,
|
||||||
Filter = (urls.Length == 1 ? "Image" : "Images")+(string.IsNullOrEmpty(ext) ? " (unknown)|*.*" : $" (*{ext})|*{ext}")
|
Filter = (urls.Length == 1 ? "Image" : "Images")+(string.IsNullOrEmpty(ext) ? " (unknown)|*.*" : $" (*{ext})|*{ext}")
|
||||||
}){
|
}){
|
||||||
if (dialog.ShowDialog() == DialogResult.OK){
|
if (dialog.ShowDialog() == DialogResult.OK){
|
||||||
@@ -122,12 +114,12 @@ namespace TweetDuck.Core.Utils{
|
|||||||
AutoUpgradeEnabled = true,
|
AutoUpgradeEnabled = true,
|
||||||
OverwritePrompt = true,
|
OverwritePrompt = true,
|
||||||
Title = "Save Video",
|
Title = "Save Video",
|
||||||
FileName = string.IsNullOrEmpty(username) ? filename : $"{username} {filename}",
|
FileName = string.IsNullOrEmpty(username) ? filename : $"{username} {filename}".TrimStart(),
|
||||||
Filter = "Video"+(string.IsNullOrEmpty(ext) ? " (unknown)|*.*" : $" (*{ext})|*{ext}")
|
Filter = "Video"+(string.IsNullOrEmpty(ext) ? " (unknown)|*.*" : $" (*{ext})|*{ext}")
|
||||||
}){
|
}){
|
||||||
if (dialog.ShowDialog() == DialogResult.OK){
|
if (dialog.ShowDialog() == DialogResult.OK){
|
||||||
BrowserUtils.DownloadFileAsync(url, dialog.FileName, null, ex => {
|
BrowserUtils.DownloadFileAsync(url, dialog.FileName, null, ex => {
|
||||||
FormMessage.Error("Image Download", "An error occurred while downloading the image: "+ex.Message, FormMessage.OK);
|
FormMessage.Error("Video Download", "An error occurred while downloading the video: "+ex.Message, FormMessage.OK);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.Serialization;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using TweetDuck.Core.Utils;
|
using TweetDuck.Core.Utils;
|
||||||
|
|
||||||
@@ -65,6 +64,8 @@ namespace TweetDuck.Data.Serialization{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void Write(string file, T obj){
|
public void Write(string file, T obj){
|
||||||
|
LinkedList<string> errors = new LinkedList<string>();
|
||||||
|
|
||||||
WindowsUtils.CreateDirectoryForFile(file);
|
WindowsUtils.CreateDirectoryForFile(file);
|
||||||
|
|
||||||
using(StreamWriter writer = new StreamWriter(new FileStream(file, FileMode.Create, FileAccess.Write, FileShare.None))){
|
using(StreamWriter writer = new StreamWriter(new FileStream(file, FileMode.Create, FileAccess.Write, FileShare.None))){
|
||||||
@@ -78,15 +79,21 @@ namespace TweetDuck.Data.Serialization{
|
|||||||
|
|
||||||
if (serializer.TryWriteType(type, value, out string converted)){
|
if (serializer.TryWriteType(type, value, out string converted)){
|
||||||
if (converted != null){
|
if (converted != null){
|
||||||
writer.Write($"{prop.Key} {EscapeLine(converted)}");
|
writer.Write(prop.Key);
|
||||||
|
writer.Write(' ');
|
||||||
|
writer.Write(EscapeLine(converted));
|
||||||
writer.Write(NewLineReal);
|
writer.Write(NewLineReal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
throw new SerializationException($"Invalid serialization type, conversion failed for: {type}");
|
errors.AddLast($"Missing converter for type: {type}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (errors.First != null){
|
||||||
|
throw new SerializationSoftException(errors.ToArray());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Read(string file, T obj){
|
public void Read(string file, T obj){
|
||||||
@@ -103,6 +110,7 @@ namespace TweetDuck.Data.Serialization{
|
|||||||
throw new FormatException("Input appears to be a binary file.");
|
throw new FormatException("Input appears to be a binary file.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LinkedList<string> errors = new LinkedList<string>();
|
||||||
int currentPos = 0;
|
int currentPos = 0;
|
||||||
|
|
||||||
do{
|
do{
|
||||||
@@ -125,7 +133,8 @@ namespace TweetDuck.Data.Serialization{
|
|||||||
int space = line.IndexOf(' ');
|
int space = line.IndexOf(' ');
|
||||||
|
|
||||||
if (space == -1){
|
if (space == -1){
|
||||||
throw new SerializationException($"Invalid file format, missing separator: {line}");
|
errors.AddLast($"Missing separator on line: {line}");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
string property = line.Substring(0, space);
|
string property = line.Substring(0, space);
|
||||||
@@ -140,10 +149,14 @@ namespace TweetDuck.Data.Serialization{
|
|||||||
info.SetValue(obj, converted);
|
info.SetValue(obj, converted);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
throw new SerializationException($"Invalid file format, cannot convert value: {value} (property: {property})");
|
errors.AddLast($"Failed reading property {property} with value: {value}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}while(currentPos != -1);
|
}while(currentPos != -1);
|
||||||
|
|
||||||
|
if (errors.First != null){
|
||||||
|
throw new SerializationSoftException(errors.ToArray());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ReadIfExists(string file, T obj){
|
public void ReadIfExists(string file, T obj){
|
||||||
|
12
Data/Serialization/SerializationSoftException.cs
Normal file
12
Data/Serialization/SerializationSoftException.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace TweetDuck.Data.Serialization{
|
||||||
|
sealed class SerializationSoftException : Exception{
|
||||||
|
public IList<string> Errors { get; }
|
||||||
|
|
||||||
|
public SerializationSoftException(IList<string> errors) : base(string.Join(Environment.NewLine, errors)){
|
||||||
|
this.Errors = errors;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
16
Plugins/Controls/PluginControl.Designer.cs
generated
16
Plugins/Controls/PluginControl.Designer.cs
generated
@@ -43,7 +43,7 @@
|
|||||||
// btnToggleState
|
// btnToggleState
|
||||||
//
|
//
|
||||||
this.btnToggleState.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnToggleState.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnToggleState.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnToggleState.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnToggleState.Location = new System.Drawing.Point(451, 59);
|
this.btnToggleState.Location = new System.Drawing.Point(451, 59);
|
||||||
this.btnToggleState.Name = "btnToggleState";
|
this.btnToggleState.Name = "btnToggleState";
|
||||||
this.btnToggleState.Size = new System.Drawing.Size(70, 23);
|
this.btnToggleState.Size = new System.Drawing.Size(70, 23);
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
//
|
//
|
||||||
this.labelName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.labelName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.labelName.AutoSize = true;
|
this.labelName.AutoSize = true;
|
||||||
this.labelName.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelName.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelName.Location = new System.Drawing.Point(0, 0);
|
this.labelName.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelName.Margin = new System.Windows.Forms.Padding(0);
|
this.labelName.Margin = new System.Windows.Forms.Padding(0);
|
||||||
this.labelName.Name = "labelName";
|
this.labelName.Name = "labelName";
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.panelDescription.AutoScroll = true;
|
this.panelDescription.AutoScroll = true;
|
||||||
this.panelDescription.Controls.Add(this.labelDescription);
|
this.panelDescription.Controls.Add(this.labelDescription);
|
||||||
this.panelDescription.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.panelDescription.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.panelDescription.Location = new System.Drawing.Point(28, 33);
|
this.panelDescription.Location = new System.Drawing.Point(28, 33);
|
||||||
this.panelDescription.Name = "panelDescription";
|
this.panelDescription.Name = "panelDescription";
|
||||||
this.panelDescription.Size = new System.Drawing.Size(410, 47);
|
this.panelDescription.Size = new System.Drawing.Size(410, 47);
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
//
|
//
|
||||||
this.labelAuthor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.labelAuthor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.labelAuthor.AutoSize = true;
|
this.labelAuthor.AutoSize = true;
|
||||||
this.labelAuthor.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelAuthor.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelAuthor.Location = new System.Drawing.Point(53, 5);
|
this.labelAuthor.Location = new System.Drawing.Point(53, 5);
|
||||||
this.labelAuthor.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
this.labelAuthor.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1);
|
||||||
this.labelAuthor.Name = "labelAuthor";
|
this.labelAuthor.Name = "labelAuthor";
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
this.labelWebsite.AutoEllipsis = true;
|
this.labelWebsite.AutoEllipsis = true;
|
||||||
this.labelWebsite.AutoSize = true;
|
this.labelWebsite.AutoSize = true;
|
||||||
this.labelWebsite.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.labelWebsite.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.labelWebsite.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelWebsite.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Underline);
|
||||||
this.labelWebsite.ForeColor = System.Drawing.Color.Blue;
|
this.labelWebsite.ForeColor = System.Drawing.Color.Blue;
|
||||||
this.labelWebsite.Location = new System.Drawing.Point(100, 5);
|
this.labelWebsite.Location = new System.Drawing.Point(100, 5);
|
||||||
this.labelWebsite.Margin = new System.Windows.Forms.Padding(3, 0, 0, 1);
|
this.labelWebsite.Margin = new System.Windows.Forms.Padding(3, 0, 0, 1);
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
//
|
//
|
||||||
this.labelVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.labelVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.labelVersion.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelVersion.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelVersion.Location = new System.Drawing.Point(88, 6);
|
this.labelVersion.Location = new System.Drawing.Point(88, 6);
|
||||||
this.labelVersion.Margin = new System.Windows.Forms.Padding(0, 0, 1, 0);
|
this.labelVersion.Margin = new System.Windows.Forms.Padding(0, 0, 1, 0);
|
||||||
this.labelVersion.Name = "labelVersion";
|
this.labelVersion.Name = "labelVersion";
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
// btnConfigure
|
// btnConfigure
|
||||||
//
|
//
|
||||||
this.btnConfigure.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnConfigure.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnConfigure.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnConfigure.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnConfigure.Location = new System.Drawing.Point(451, 30);
|
this.btnConfigure.Location = new System.Drawing.Point(451, 30);
|
||||||
this.btnConfigure.Name = "btnConfigure";
|
this.btnConfigure.Name = "btnConfigure";
|
||||||
this.btnConfigure.Size = new System.Drawing.Size(70, 23);
|
this.btnConfigure.Size = new System.Drawing.Size(70, 23);
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
this.labelType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.labelType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)));
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.labelType.BackColor = System.Drawing.Color.DarkGray;
|
this.labelType.BackColor = System.Drawing.Color.DarkGray;
|
||||||
this.labelType.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelType.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelType.LineHeight = 0;
|
this.labelType.LineHeight = 0;
|
||||||
this.labelType.Location = new System.Drawing.Point(0, 0);
|
this.labelType.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelType.Name = "labelType";
|
this.labelType.Name = "labelType";
|
||||||
|
18
Program.cs
18
Program.cs
@@ -19,7 +19,7 @@ namespace TweetDuck{
|
|||||||
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";
|
||||||
|
|
||||||
public const string VersionTag = "1.15";
|
public const string VersionTag = "1.15.1";
|
||||||
|
|
||||||
public static readonly string ProgramPath = AppDomain.CurrentDomain.BaseDirectory;
|
public static readonly string ProgramPath = AppDomain.CurrentDomain.BaseDirectory;
|
||||||
public static readonly bool IsPortable = File.Exists(Path.Combine(ProgramPath, "makeportable"));
|
public static readonly bool IsPortable = File.Exists(Path.Combine(ProgramPath, "makeportable"));
|
||||||
@@ -46,10 +46,13 @@ namespace TweetDuck{
|
|||||||
private static readonly LockManager LockManager = new LockManager(Path.Combine(StoragePath, ".lock"));
|
private static readonly LockManager LockManager = new LockManager(Path.Combine(StoragePath, ".lock"));
|
||||||
private static bool HasCleanedUp;
|
private static bool HasCleanedUp;
|
||||||
|
|
||||||
public static UserConfig UserConfig { get; private set; }
|
|
||||||
public static SystemConfig SystemConfig { get; private set; }
|
|
||||||
public static Reporter Reporter { get; }
|
|
||||||
public static CultureInfo Culture { get; }
|
public static CultureInfo Culture { get; }
|
||||||
|
public static Reporter Reporter { get; }
|
||||||
|
public static ConfigManager Config { get; }
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
public static UserConfig UserConfig => Config.User;
|
||||||
|
public static SystemConfig SystemConfig => Config.System;
|
||||||
|
|
||||||
static Program(){
|
static Program(){
|
||||||
Culture = CultureInfo.CurrentCulture;
|
Culture = CultureInfo.CurrentCulture;
|
||||||
@@ -62,6 +65,8 @@ namespace TweetDuck{
|
|||||||
|
|
||||||
Reporter = new Reporter(ErrorLogFilePath);
|
Reporter = new Reporter(ErrorLogFilePath);
|
||||||
Reporter.SetupUnhandledExceptionHandler("TweetDuck Has Failed :(");
|
Reporter.SetupUnhandledExceptionHandler("TweetDuck Has Failed :(");
|
||||||
|
|
||||||
|
Config = new ConfigManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
[STAThread]
|
[STAThread]
|
||||||
@@ -113,8 +118,7 @@ namespace TweetDuck{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UserConfig = UserConfig.Load(UserConfigFilePath);
|
Config.LoadAll();
|
||||||
SystemConfig = SystemConfig.Load(SystemConfigFilePath);
|
|
||||||
|
|
||||||
if (Arguments.HasFlag(Arguments.ArgImportCookies)){
|
if (Arguments.HasFlag(Arguments.ArgImportCookies)){
|
||||||
ProfileManager.ImportCookies();
|
ProfileManager.ImportCookies();
|
||||||
@@ -213,7 +217,7 @@ namespace TweetDuck{
|
|||||||
private static void ExitCleanup(){
|
private static void ExitCleanup(){
|
||||||
if (HasCleanedUp)return;
|
if (HasCleanedUp)return;
|
||||||
|
|
||||||
UserConfig.Save();
|
Config.SaveAll();
|
||||||
|
|
||||||
Cef.Shutdown();
|
Cef.Shutdown();
|
||||||
BrowserCache.Exit();
|
BrowserCache.Exit();
|
||||||
|
@@ -44,6 +44,11 @@ If you decide to publicly release a custom version, please make it clear that it
|
|||||||
- Some files are checked for invalid characters:
|
- Some files are checked for invalid characters:
|
||||||
- `Resources/Plugins/emoji-keyboard/emoji-ordering.txt` line endings must be LF (line feed); any CR (carriage return) in the file will cause a failed build, and you will need to ensure correct line endings in your text editor
|
- `Resources/Plugins/emoji-keyboard/emoji-ordering.txt` line endings must be LF (line feed); any CR (carriage return) in the file will cause a failed build, and you will need to ensure correct line endings in your text editor
|
||||||
|
|
||||||
|
#### Error: The "EmbedAllSources" parameter is not supported by the "Csc" task
|
||||||
|
1. Open `C:\Program Files (x86)\Visual Studio\2017\<edition>\MSBuild\15.0\Bin\Microsoft.CSharp.CurrentVersion.targets` in a text editor
|
||||||
|
2. Remove line that says `EmbedAllSources="$(EmbedAllSources)"`
|
||||||
|
3. Hope the next Visual Studio update fixes it...
|
||||||
|
|
||||||
### Installers
|
### Installers
|
||||||
|
|
||||||
TweetDuck uses **Inno Setup** for installers and updates. First, download and install [InnoSetup QuickStart Pack](http://www.jrsoftware.org/isdl.php) (non-unicode; editor and encryption support not required) and the [Inno Download Plugin](https://code.google.com/archive/p/inno-download-plugin).
|
TweetDuck uses **Inno Setup** for installers and updates. First, download and install [InnoSetup QuickStart Pack](http://www.jrsoftware.org/isdl.php) (non-unicode; editor and encryption support not required) and the [Inno Download Plugin](https://code.google.com/archive/p/inno-download-plugin).
|
||||||
|
@@ -541,7 +541,7 @@ ${iconData.map(entry => `#tduck .icon-${entry[0]}:before{content:\"\\f0${entry[1
|
|||||||
#tduck .js-docked-compose .js-drawer-close { margin: 20px 0 0 !important }
|
#tduck .js-docked-compose .js-drawer-close { margin: 20px 0 0 !important }
|
||||||
#tduck .search-input-control .icon { font-size: 20px !important; top: -4px !important }
|
#tduck .search-input-control .icon { font-size: 20px !important; top: -4px !important }
|
||||||
|
|
||||||
.js-column-header .column-type-icon { margin-top: -1px !important }
|
.js-column-header .column-type-icon { margin-top: 0 !important }
|
||||||
.inline-reply .pull-left .Button--link { margin-top: 3px !important }
|
.inline-reply .pull-left .Button--link { margin-top: 3px !important }
|
||||||
|
|
||||||
.tweet-action-item .icon-favorite-toggle { font-size: 16px !important; }
|
.tweet-action-item .icon-favorite-toggle { font-size: 16px !important; }
|
||||||
|
@@ -391,7 +391,7 @@ html.dark .mdl-column-rhs{border-left:1px solid #ccd6dd;background:#fff}
|
|||||||
html.dark .s-minimal .mdl-header{border-bottom:1px solid #e1e8ed}
|
html.dark .s-minimal .mdl-header{border-bottom:1px solid #e1e8ed}
|
||||||
html.dark .lst-launcher .top-row{border-bottom:1px solid #e1e8ed}
|
html.dark .lst-launcher .top-row{border-bottom:1px solid #e1e8ed}
|
||||||
html.dark .lst-launcher .is-disabled a,html.dark .lst-launcher .is-disabled a:hover,html.dark .lst-launcher .is-disabled a:focus,html.dark .lst-launcher .is-disabled a:active{background:#fff}
|
html.dark .lst-launcher .is-disabled a,html.dark .lst-launcher .is-disabled a:hover,html.dark .lst-launcher .is-disabled a:focus,html.dark .lst-launcher .is-disabled a:active{background:#fff}
|
||||||
html.dark .lst-launcher a:hover,html.dark .lst-launcher a:focus,html.dark .lst-launcher a:active{background:#f2f9ff;border:1px solid #bbddf5}
|
html.dark .lst-launcher a:hover,html.dark .lst-launcher a:focus,html.dark .lst-launcher a:active{background:#f2f9ff}
|
||||||
html.dark .lst-profile a,html.dark .lst-profile a:hover,html.dark .lst-profile a:focus,html.dark .lst-profile a:active{color:#657786}
|
html.dark .lst-profile a,html.dark .lst-profile a:hover,html.dark .lst-profile a:focus,html.dark .lst-profile a:active{color:#657786}
|
||||||
html.dark .mdl-col-settings{background-color:#fff;border-left:1px solid #E1E8ED}
|
html.dark .mdl-col-settings{background-color:#fff;border-left:1px solid #E1E8ED}
|
||||||
html.dark .mdl-links{color:#8899a6}
|
html.dark .mdl-links{color:#8899a6}
|
||||||
|
@@ -13,6 +13,8 @@ try{
|
|||||||
$propsFiles = "..\packages\CefSharp.Common.${sharpVersion}\build\CefSharp.Common.props",
|
$propsFiles = "..\packages\CefSharp.Common.${sharpVersion}\build\CefSharp.Common.props",
|
||||||
"..\packages\CefSharp.WinForms.${sharpVersion}\build\CefSharp.WinForms.props"
|
"..\packages\CefSharp.WinForms.${sharpVersion}\build\CefSharp.WinForms.props"
|
||||||
|
|
||||||
|
$targetFiles = "..\packages\CefSharp.Common.${sharpVersion}\build\CefSharp.Common.targets"
|
||||||
|
|
||||||
# Greetings
|
# Greetings
|
||||||
|
|
||||||
$title = "CEF ${cefVersion}, CefSharp ${sharpVersion}"
|
$title = "CEF ${cefVersion}, CefSharp ${sharpVersion}"
|
||||||
@@ -35,7 +37,7 @@ try{
|
|||||||
|
|
||||||
[IO.File]::WriteAllText($browserProj, $contents)
|
[IO.File]::WriteAllText($browserProj, $contents)
|
||||||
|
|
||||||
Write-Host "Removing x64 and AnyCPU from CefSharp props..."
|
Write-Host "Removing x64 and AnyCPU from package files..."
|
||||||
|
|
||||||
foreach($file in $propsFiles){
|
foreach($file in $propsFiles){
|
||||||
$contents = [IO.File]::ReadAllText($file)
|
$contents = [IO.File]::ReadAllText($file)
|
||||||
@@ -44,6 +46,13 @@ try{
|
|||||||
[IO.File]::WriteAllText($file, $contents)
|
[IO.File]::WriteAllText($file, $contents)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach($file in $targetFiles){
|
||||||
|
$contents = [IO.File]::ReadAllText($file)
|
||||||
|
$contents = $contents -Replace '(?<=<ItemGroup Condition=")(''\$\(Platform\)'' == ''(AnyCPU|x64)'')(?=">)', 'false'
|
||||||
|
|
||||||
|
[IO.File]::WriteAllText($file, $contents)
|
||||||
|
}
|
||||||
|
|
||||||
# Finished
|
# Finished
|
||||||
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: rgb(32, 94, 138);
|
background-color: rgb(32, 94, 138);
|
||||||
|
font-family: Helvetica, Arial, Verdana, sans-serif;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
|
||||||
|
line-height: 1.28578;
|
||||||
transition: transform 400ms cubic-bezier(.02, .01, .47, 1);
|
transition: transform 400ms cubic-bezier(.02, .01, .47, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,6 +69,8 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
font-family: Helvetica, Arial, Verdana, sans-serif;
|
||||||
|
line-height: 1.28578;
|
||||||
z-index: 9998;
|
z-index: 9998;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,14 +86,16 @@
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
transform: translateX(-50%) translateY(-50%);
|
transform: translateX(-50%) translateY(-50%);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #000;
|
color: #2f2f2f;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tweetduck-changelog h2 {
|
#tweetduck-changelog h2 {
|
||||||
margin: 0 0 7px;
|
margin: 0 0 8px;
|
||||||
|
color: #5c6973;
|
||||||
font-size: 23px;
|
font-size: 23px;
|
||||||
|
line-height: 1.28578;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tweetduck-changelog h2 + br {
|
#tweetduck-changelog h2 + br {
|
||||||
@@ -98,7 +104,9 @@
|
|||||||
|
|
||||||
#tweetduck-changelog h3 {
|
#tweetduck-changelog h3 {
|
||||||
margin: 0 0 5px 7px;
|
margin: 0 0 5px 7px;
|
||||||
|
color: #065b9c;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
line-height: 1.28578;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tweetduck-changelog p {
|
#tweetduck-changelog p {
|
||||||
|
@@ -42,7 +42,7 @@ button, .btn, .mdl, .mdl-content, .popover, .lst-modal, .tooltip-inner {
|
|||||||
border-radius: 1px !important;
|
border-radius: 1px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-item, .media-preview, .media-image, .js-media-added .br--4 {
|
.media-item, .media-preview, .media-image, .js-media-added .br--4, #tduck .compose-message-recipient img {
|
||||||
border-radius: 1px !important;
|
border-radius: 1px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,6 +100,15 @@ button {
|
|||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tduck .lst-launcher a {
|
||||||
|
border: 1px solid transparent !important;
|
||||||
|
transform: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tduck .lst-launcher a:hover, #tduck .lst-launcher a:focus, #tduck .lst-launcher a:active {
|
||||||
|
border-color: #bbddf5 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/***********************/
|
/***********************/
|
||||||
/* Hide TweetDeck logo */
|
/* Hide TweetDeck logo */
|
||||||
/***********************/
|
/***********************/
|
||||||
@@ -347,6 +356,11 @@ html[data-td-font='smallest'] .fullname-badged:before, html[data-td-font='small'
|
|||||||
vertical-align: top !important;
|
vertical-align: top !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:not(.tweet-detail-action) .reply-triangle {
|
||||||
|
/* fix invisible reply triangle breaking layout */
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.column-message.is-actionable span:hover > .icon-small-valigned {
|
.column-message.is-actionable span:hover > .icon-small-valigned {
|
||||||
/* add a visual response when hovering individual filter icons; black theme uses a value of 20 */
|
/* add a visual response when hovering individual filter icons; black theme uses a value of 20 */
|
||||||
filter: saturate(10);
|
filter: saturate(10);
|
||||||
|
@@ -132,13 +132,16 @@
|
|||||||
//
|
//
|
||||||
// Block: Check updates on startup.
|
// Block: Check updates on startup.
|
||||||
//
|
//
|
||||||
if ("$" in window && typeof $._data === "function" && "TD" in $._data(document, "events")){
|
const triggerCheck = function(){
|
||||||
$(document).one("TD.ready", function(){
|
|
||||||
$TDU.triggerUpdateCheck();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
$TDU.triggerUpdateCheck();
|
$TDU.triggerUpdateCheck();
|
||||||
|
};
|
||||||
|
|
||||||
|
try{
|
||||||
|
throw false if !($._data(document, "events").TD.some(obj => obj.namespace === "ready"));
|
||||||
|
|
||||||
|
$(document).one("TD.ready", triggerCheck);
|
||||||
|
}catch(err){
|
||||||
|
setTimeout(triggerCheck, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@@ -54,10 +54,14 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Configuration\Arguments.cs" />
|
<Compile Include="Configuration\Arguments.cs" />
|
||||||
|
<Compile Include="Configuration\Instance\FileConfigInstance.cs" />
|
||||||
|
<Compile Include="Configuration\ConfigManager.cs" />
|
||||||
|
<Compile Include="Configuration\Instance\IConfigInstance.cs" />
|
||||||
<Compile Include="Configuration\LockManager.cs" />
|
<Compile Include="Configuration\LockManager.cs" />
|
||||||
<Compile Include="Configuration\SystemConfig.cs" />
|
<Compile Include="Configuration\SystemConfig.cs" />
|
||||||
<Compile Include="Configuration\UserConfig.cs" />
|
<Compile Include="Configuration\UserConfig.cs" />
|
||||||
<Compile Include="Core\Bridge\PropertyBridge.cs" />
|
<Compile Include="Core\Bridge\PropertyBridge.cs" />
|
||||||
|
<Compile Include="Core\Bridge\UpdateBridge.cs" />
|
||||||
<Compile Include="Core\Controls\ControlExtensions.cs" />
|
<Compile Include="Core\Controls\ControlExtensions.cs" />
|
||||||
<Compile Include="Core\Controls\FlatButton.cs">
|
<Compile Include="Core\Controls\FlatButton.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
@@ -190,18 +194,6 @@
|
|||||||
<Compile Include="Core\Other\Settings\TabSettingsFeedback.Designer.cs">
|
<Compile Include="Core\Other\Settings\TabSettingsFeedback.Designer.cs">
|
||||||
<DependentUpon>TabSettingsFeedback.cs</DependentUpon>
|
<DependentUpon>TabSettingsFeedback.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Core\Other\Settings\TabSettingsLocales.cs">
|
|
||||||
<SubType>UserControl</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Core\Other\Settings\TabSettingsLocales.Designer.cs">
|
|
||||||
<DependentUpon>TabSettingsLocales.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Core\Other\Settings\TabSettingsTray.cs">
|
|
||||||
<SubType>UserControl</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Core\Other\Settings\TabSettingsTray.Designer.cs">
|
|
||||||
<DependentUpon>TabSettingsTray.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Core\TweetDeckBrowser.cs" />
|
<Compile Include="Core\TweetDeckBrowser.cs" />
|
||||||
<Compile Include="Core\Utils\LocaleUtils.cs" />
|
<Compile Include="Core\Utils\LocaleUtils.cs" />
|
||||||
<Compile Include="Core\Utils\StringUtils.cs" />
|
<Compile Include="Core\Utils\StringUtils.cs" />
|
||||||
@@ -246,6 +238,7 @@
|
|||||||
<Compile Include="Data\Serialization\FileSerializer.cs" />
|
<Compile Include="Data\Serialization\FileSerializer.cs" />
|
||||||
<Compile Include="Data\InjectedHTML.cs" />
|
<Compile Include="Data\InjectedHTML.cs" />
|
||||||
<Compile Include="Data\Serialization\ITypeConverter.cs" />
|
<Compile Include="Data\Serialization\ITypeConverter.cs" />
|
||||||
|
<Compile Include="Data\Serialization\SerializationSoftException.cs" />
|
||||||
<Compile Include="Data\Serialization\SingleTypeConverter.cs" />
|
<Compile Include="Data\Serialization\SingleTypeConverter.cs" />
|
||||||
<Compile Include="Data\TwoKeyDictionary.cs" />
|
<Compile Include="Data\TwoKeyDictionary.cs" />
|
||||||
<Compile Include="Data\WindowState.cs" />
|
<Compile Include="Data\WindowState.cs" />
|
||||||
@@ -283,7 +276,7 @@
|
|||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Reporter.cs" />
|
<Compile Include="Reporter.cs" />
|
||||||
<Compile Include="Updates\Events\UpdateCheckEventArgs.cs" />
|
<Compile Include="Updates\UpdateCheckEventArgs.cs" />
|
||||||
<Compile Include="Updates\FormUpdateDownload.cs">
|
<Compile Include="Updates\FormUpdateDownload.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -306,7 +299,6 @@
|
|||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Resources\ScriptLoader.cs" />
|
<Compile Include="Resources\ScriptLoader.cs" />
|
||||||
<Compile Include="Updates\Events\UpdateEventArgs.cs" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace TweetDuck.Updates.Events{
|
|
||||||
sealed class UpdateEventArgs : EventArgs{
|
|
||||||
public UpdateInfo UpdateInfo { get; }
|
|
||||||
|
|
||||||
public UpdateEventArgs(UpdateInfo updateInfo){
|
|
||||||
this.UpdateInfo = updateInfo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
4
Updates/FormUpdateDownload.Designer.cs
generated
4
Updates/FormUpdateDownload.Designer.cs
generated
@@ -33,7 +33,7 @@
|
|||||||
//
|
//
|
||||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnCancel.AutoSize = true;
|
this.btnCancel.AutoSize = true;
|
||||||
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.btnCancel.Location = new System.Drawing.Point(180, 32);
|
this.btnCancel.Location = new System.Drawing.Point(180, 32);
|
||||||
this.btnCancel.Name = "btnCancel";
|
this.btnCancel.Name = "btnCancel";
|
||||||
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.btnCancel.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
// labelDescription
|
// labelDescription
|
||||||
//
|
//
|
||||||
this.labelDescription.AutoSize = true;
|
this.labelDescription.AutoSize = true;
|
||||||
this.labelDescription.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelDescription.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelDescription.Location = new System.Drawing.Point(9, 13);
|
this.labelDescription.Location = new System.Drawing.Point(9, 13);
|
||||||
this.labelDescription.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
this.labelDescription.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
|
||||||
this.labelDescription.Name = "labelDescription";
|
this.labelDescription.Name = "labelDescription";
|
||||||
|
@@ -20,7 +20,7 @@ namespace TweetDuck.Updates{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void timerDownloadCheck_Tick(object sender, EventArgs e){
|
private void timerDownloadCheck_Tick(object sender, EventArgs e){
|
||||||
if (updateInfo.DownloadStatus.IsFinished()){
|
if (updateInfo.DownloadStatus.IsFinished(false)){
|
||||||
timerDownloadCheck.Stop();
|
timerDownloadCheck.Stop();
|
||||||
DialogResult = DialogResult.OK;
|
DialogResult = DialogResult.OK;
|
||||||
Close();
|
Close();
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using TweetDuck.Data;
|
using TweetDuck.Data;
|
||||||
|
|
||||||
namespace TweetDuck.Updates.Events{
|
namespace TweetDuck.Updates{
|
||||||
sealed class UpdateCheckEventArgs : EventArgs{
|
sealed class UpdateCheckEventArgs : EventArgs{
|
||||||
public int EventId { get; }
|
public int EventId { get; }
|
||||||
public Result<UpdateInfo> Result { get; }
|
public Result<UpdateInfo> Result { get; }
|
@@ -9,8 +9,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static class UpdateDownloadStatusExtensions{
|
public static class UpdateDownloadStatusExtensions{
|
||||||
public static bool IsFinished(this UpdateDownloadStatus status){
|
public static bool IsFinished(this UpdateDownloadStatus status, bool canRetry){
|
||||||
return status == UpdateDownloadStatus.AssetMissing || status == UpdateDownloadStatus.Done || status == UpdateDownloadStatus.Failed;
|
return status == UpdateDownloadStatus.AssetMissing || status == UpdateDownloadStatus.Done || (status == UpdateDownloadStatus.Failed && !canRetry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,38 +1,24 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
|
||||||
using TweetDuck.Core.Controls;
|
|
||||||
using TweetDuck.Core.Other.Interfaces;
|
|
||||||
using TweetDuck.Data;
|
using TweetDuck.Data;
|
||||||
using TweetDuck.Updates.Events;
|
|
||||||
using Timer = System.Windows.Forms.Timer;
|
using Timer = System.Windows.Forms.Timer;
|
||||||
|
|
||||||
namespace TweetDuck.Updates{
|
namespace TweetDuck.Updates{
|
||||||
sealed class UpdateHandler : IDisposable{
|
sealed class UpdateHandler : IDisposable{
|
||||||
public const int CheckCodeUpdatesDisabled = -1;
|
public const int CheckCodeUpdatesDisabled = -1;
|
||||||
public const int CheckCodeNotOnTweetDeck = -2;
|
|
||||||
|
|
||||||
private readonly UpdateCheckClient client;
|
private readonly UpdateCheckClient client;
|
||||||
private readonly TaskScheduler scheduler;
|
private readonly TaskScheduler scheduler;
|
||||||
private readonly ITweetDeckBrowser browser;
|
|
||||||
private readonly Timer timer;
|
private readonly Timer timer;
|
||||||
|
|
||||||
public event EventHandler<UpdateEventArgs> UpdateAccepted;
|
|
||||||
public event EventHandler<UpdateEventArgs> UpdateDelayed;
|
|
||||||
public event EventHandler<UpdateEventArgs> UpdateDismissed;
|
|
||||||
public event EventHandler<UpdateCheckEventArgs> CheckFinished;
|
public event EventHandler<UpdateCheckEventArgs> CheckFinished;
|
||||||
|
|
||||||
private ushort lastEventId;
|
private ushort lastEventId;
|
||||||
private UpdateInfo lastUpdateInfo;
|
|
||||||
|
|
||||||
public UpdateHandler(ITweetDeckBrowser browser, string installerFolder){
|
public UpdateHandler(string installerFolder){
|
||||||
this.client = new UpdateCheckClient(installerFolder);
|
this.client = new UpdateCheckClient(installerFolder);
|
||||||
this.scheduler = TaskScheduler.FromCurrentSynchronizationContext();
|
this.scheduler = TaskScheduler.FromCurrentSynchronizationContext();
|
||||||
|
|
||||||
this.browser = browser;
|
|
||||||
this.browser.RegisterBridge("$TDU", new Bridge(this));
|
|
||||||
|
|
||||||
this.timer = new Timer();
|
this.timer = new Timer();
|
||||||
this.timer.Tick += timer_Tick;
|
this.timer.Tick += timer_Tick;
|
||||||
}
|
}
|
||||||
@@ -68,10 +54,6 @@ namespace TweetDuck.Updates{
|
|||||||
|
|
||||||
public int Check(bool force){
|
public int Check(bool force){
|
||||||
if (Program.UserConfig.EnableUpdateCheck || force){
|
if (Program.UserConfig.EnableUpdateCheck || force){
|
||||||
if (!browser.IsTweetDeckWebsite){
|
|
||||||
return CheckCodeNotOnTweetDeck;
|
|
||||||
}
|
|
||||||
|
|
||||||
int nextEventId = unchecked(++lastEventId);
|
int nextEventId = unchecked(++lastEventId);
|
||||||
Task<UpdateInfo> checkTask = client.Check();
|
Task<UpdateInfo> checkTask = client.Check();
|
||||||
|
|
||||||
@@ -84,46 +66,6 @@ namespace TweetDuck.Updates{
|
|||||||
return CheckCodeUpdatesDisabled;
|
return CheckCodeUpdatesDisabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PrepareUpdate(UpdateInfo info){
|
|
||||||
CleanupDownload();
|
|
||||||
lastUpdateInfo = info;
|
|
||||||
lastUpdateInfo.BeginSilentDownload();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void BeginUpdateDownload(Form ownerForm, UpdateInfo updateInfo, Action<UpdateInfo> onFinished){
|
|
||||||
UpdateDownloadStatus status = updateInfo.DownloadStatus;
|
|
||||||
|
|
||||||
if (status == UpdateDownloadStatus.Done || status == UpdateDownloadStatus.AssetMissing){
|
|
||||||
onFinished(updateInfo);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
FormUpdateDownload downloadForm = new FormUpdateDownload(updateInfo);
|
|
||||||
|
|
||||||
downloadForm.VisibleChanged += (sender, args) => {
|
|
||||||
downloadForm.MoveToCenter(ownerForm);
|
|
||||||
ownerForm.Hide();
|
|
||||||
};
|
|
||||||
|
|
||||||
downloadForm.FormClosed += (sender, args) => {
|
|
||||||
if (downloadForm.DialogResult != DialogResult.OK){
|
|
||||||
updateInfo.CancelDownload();
|
|
||||||
}
|
|
||||||
|
|
||||||
downloadForm.Dispose();
|
|
||||||
onFinished(updateInfo);
|
|
||||||
};
|
|
||||||
|
|
||||||
downloadForm.Show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CleanupDownload(){
|
|
||||||
if (lastUpdateInfo != null){
|
|
||||||
lastUpdateInfo.DeleteInstaller();
|
|
||||||
lastUpdateInfo = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void HandleUpdateCheckSuccessful(int eventId, UpdateInfo info){
|
private void HandleUpdateCheckSuccessful(int eventId, UpdateInfo info){
|
||||||
CheckFinished?.Invoke(this, new UpdateCheckEventArgs(eventId, new Result<UpdateInfo>(info)));
|
CheckFinished?.Invoke(this, new UpdateCheckEventArgs(eventId, new Result<UpdateInfo>(info)));
|
||||||
}
|
}
|
||||||
@@ -131,48 +73,5 @@ namespace TweetDuck.Updates{
|
|||||||
private void HandleUpdateCheckFailed(int eventId, Exception exception){
|
private void HandleUpdateCheckFailed(int eventId, Exception exception){
|
||||||
CheckFinished?.Invoke(this, new UpdateCheckEventArgs(eventId, new Result<UpdateInfo>(exception)));
|
CheckFinished?.Invoke(this, new UpdateCheckEventArgs(eventId, new Result<UpdateInfo>(exception)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TriggerUpdateAcceptedEvent(){
|
|
||||||
if (lastUpdateInfo != null){
|
|
||||||
UpdateAccepted?.Invoke(this, new UpdateEventArgs(lastUpdateInfo));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TriggerUpdateDelayedEvent(){
|
|
||||||
if (lastUpdateInfo != null){
|
|
||||||
UpdateDelayed?.Invoke(this, new UpdateEventArgs(lastUpdateInfo));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TriggerUpdateDismissedEvent(){
|
|
||||||
if (lastUpdateInfo != null){
|
|
||||||
UpdateDismissed?.Invoke(this, new UpdateEventArgs(lastUpdateInfo));
|
|
||||||
CleanupDownload();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public sealed class Bridge{
|
|
||||||
private readonly UpdateHandler owner;
|
|
||||||
|
|
||||||
public Bridge(UpdateHandler owner){
|
|
||||||
this.owner = owner;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void TriggerUpdateCheck(){
|
|
||||||
owner.Check(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnUpdateAccepted(){
|
|
||||||
owner.TriggerUpdateAcceptedEvent();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnUpdateDelayed(){
|
|
||||||
owner.TriggerUpdateDelayedEvent();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnUpdateDismissed(){
|
|
||||||
owner.TriggerUpdateDismissedEvent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -26,6 +26,11 @@ namespace TweetDuck.Updates{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void BeginSilentDownload(){
|
public void BeginSilentDownload(){
|
||||||
|
if (File.Exists(InstallerPath)){
|
||||||
|
DownloadStatus = UpdateDownloadStatus.Done;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (DownloadStatus == UpdateDownloadStatus.None || DownloadStatus == UpdateDownloadStatus.Failed){
|
if (DownloadStatus == UpdateDownloadStatus.None || DownloadStatus == UpdateDownloadStatus.Failed){
|
||||||
DownloadStatus = UpdateDownloadStatus.InProgress;
|
DownloadStatus = UpdateDownloadStatus.InProgress;
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@ using TweetDuck.Core.Other;
|
|||||||
|
|
||||||
namespace TweetTest.Configuration{
|
namespace TweetTest.Configuration{
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class TestUserConfig : TestIO{
|
public class TestUserConfig : TestIO{ /* TODO
|
||||||
private static void WriteTestConfig(string file, bool withBackup){
|
private static void WriteTestConfig(string file, bool withBackup){
|
||||||
UserConfig cfg = UserConfig.Load(file);
|
UserConfig cfg = UserConfig.Load(file);
|
||||||
cfg.ZoomLevel = 123;
|
cfg.ZoomLevel = 123;
|
||||||
@@ -133,6 +133,6 @@ namespace TweetTest.Configuration{
|
|||||||
cfg.ZoomLevel = 100;
|
cfg.ZoomLevel = 100;
|
||||||
|
|
||||||
Assert.AreEqual(6, triggers);
|
Assert.AreEqual(6, triggers);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="..\..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props')" />
|
<Import Project="..\..\packages\xunit.runner.visualstudio.2.4.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\packages\xunit.runner.visualstudio.2.4.0\build\net20\xunit.runner.visualstudio.props')" />
|
||||||
<Import Project="..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.props" Condition="Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.props')" />
|
<Import Project="..\..\packages\xunit.core.2.4.0\build\xunit.core.props" Condition="Exists('..\..\packages\xunit.core.2.4.0\build\xunit.core.props')" />
|
||||||
<Import Project="..\..\packages\xunit.core.2.3.1\build\xunit.core.props" Condition="Exists('..\..\packages\xunit.core.2.3.1\build\xunit.core.props')" />
|
<Import Project="..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props" Condition="Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props')" />
|
||||||
|
<Import Project="..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props" Condition="Exists('..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props')" />
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
@@ -52,16 +53,16 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Error Condition="!Exists('..\..\packages\xunit.core.2.3.1\build\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.core.2.3.1\build\xunit.core.props'))" />
|
<Error Condition="!Exists('..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.props'))" />
|
||||||
<Error Condition="!Exists('..\..\packages\xunit.core.2.3.1\build\xunit.core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.core.2.3.1\build\xunit.core.targets'))" />
|
<Error Condition="!Exists('..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets'))" />
|
||||||
<Error Condition="!Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.props'))" />
|
<Error Condition="!Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.props'))" />
|
||||||
<Error Condition="!Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.targets'))" />
|
<Error Condition="!Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets'))" />
|
||||||
<Error Condition="!Exists('..\..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props'))" />
|
<Error Condition="!Exists('..\..\packages\xunit.core.2.4.0\build\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.core.2.4.0\build\xunit.core.props'))" />
|
||||||
|
<Error Condition="!Exists('..\..\packages\xunit.core.2.4.0\build\xunit.core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.core.2.4.0\build\xunit.core.targets'))" />
|
||||||
|
<Error Condition="!Exists('..\..\packages\xunit.runner.visualstudio.2.4.0\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.runner.visualstudio.2.4.0\build\net20\xunit.runner.visualstudio.props'))" />
|
||||||
</Target>
|
</Target>
|
||||||
<Import Project="..\..\packages\xunit.core.2.3.1\build\xunit.core.targets" Condition="Exists('..\..\packages\xunit.core.2.3.1\build\xunit.core.targets')" />
|
<Import Project="..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets" Condition="Exists('..\..\packages\Microsoft.CodeCoverage.15.8.0\build\netstandard1.0\Microsoft.CodeCoverage.targets')" />
|
||||||
<Import Project="..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.targets" Condition="Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.7.2\build\net45\Microsoft.Net.Test.Sdk.targets')" />
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="packages.config" />
|
|
||||||
<Compile Include="Core\TestBrowserUtils.fs" />
|
<Compile Include="Core\TestBrowserUtils.fs" />
|
||||||
<Compile Include="Core\TestStringUtils.fs" />
|
<Compile Include="Core\TestStringUtils.fs" />
|
||||||
<Compile Include="Core\TestTwitterUtils.fs" />
|
<Compile Include="Core\TestTwitterUtils.fs" />
|
||||||
@@ -69,10 +70,11 @@
|
|||||||
<Compile Include="Data\TestInjectedHTML.fs" />
|
<Compile Include="Data\TestInjectedHTML.fs" />
|
||||||
<Compile Include="Data\TestResult.fs" />
|
<Compile Include="Data\TestResult.fs" />
|
||||||
<Compile Include="Data\TestTwoKeyDictionary.fs" />
|
<Compile Include="Data\TestTwoKeyDictionary.fs" />
|
||||||
|
<Content Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Microsoft.VisualStudio.CodeCoverage.Shim">
|
<Reference Include="Microsoft.VisualStudio.CodeCoverage.Shim">
|
||||||
<HintPath>..\..\packages\Microsoft.CodeCoverage.1.0.3\lib\netstandard1.0\Microsoft.VisualStudio.CodeCoverage.Shim.dll</HintPath>
|
<HintPath>..\..\packages\Microsoft.CodeCoverage.15.8.0\lib\net45\Microsoft.VisualStudio.CodeCoverage.Shim.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="mscorlib" />
|
<Reference Include="mscorlib" />
|
||||||
<Reference Include="FSharp.Core">
|
<Reference Include="FSharp.Core">
|
||||||
@@ -83,24 +85,26 @@
|
|||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Numerics" />
|
<Reference Include="System.Numerics" />
|
||||||
<Reference Include="xunit.abstractions">
|
|
||||||
<HintPath>..\..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="xunit.assert">
|
|
||||||
<HintPath>..\..\packages\xunit.assert.2.3.1\lib\netstandard1.1\xunit.assert.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="xunit.core">
|
|
||||||
<HintPath>..\..\packages\xunit.extensibility.core.2.3.1\lib\netstandard1.1\xunit.core.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="xunit.execution.desktop">
|
|
||||||
<HintPath>..\..\packages\xunit.extensibility.execution.2.3.1\lib\net452\xunit.execution.desktop.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<ProjectReference Include="..\..\TweetDuck.csproj">
|
<ProjectReference Include="..\..\TweetDuck.csproj">
|
||||||
<Name>TweetDuck</Name>
|
<Name>TweetDuck</Name>
|
||||||
<Project>{2389a7cd-e0d3-4706-8294-092929a33a2d}</Project>
|
<Project>{2389a7cd-e0d3-4706-8294-092929a33a2d}</Project>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<Reference Include="xunit.abstractions">
|
||||||
|
<HintPath>..\..\packages\xunit.abstractions.2.0.2\lib\net35\xunit.abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="xunit.assert">
|
||||||
|
<HintPath>..\..\packages\xunit.assert.2.4.0\lib\netstandard1.1\xunit.assert.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="xunit.core">
|
||||||
|
<HintPath>..\..\packages\xunit.extensibility.core.2.4.0\lib\net452\xunit.core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="xunit.execution.desktop">
|
||||||
|
<HintPath>..\..\packages\xunit.extensibility.execution.2.4.0\lib\net452\xunit.execution.desktop.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Import Project="..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets" Condition="Exists('..\..\packages\Microsoft.NET.Test.Sdk.15.8.0\build\net45\Microsoft.Net.Test.Sdk.targets')" />
|
||||||
|
<Import Project="..\..\packages\xunit.core.2.4.0\build\xunit.core.targets" Condition="Exists('..\..\packages\xunit.core.2.4.0\build\xunit.core.targets')" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Microsoft.CodeCoverage" version="1.0.3" targetFramework="net452" />
|
<package id="Microsoft.CodeCoverage" version="15.8.0" targetFramework="net452" />
|
||||||
<package id="Microsoft.NET.Test.Sdk" version="15.7.2" targetFramework="net452" />
|
<package id="Microsoft.NET.Test.Sdk" version="15.8.0" targetFramework="net452" />
|
||||||
<package id="xunit" version="2.3.1" targetFramework="net452" />
|
<package id="xunit" version="2.4.0" targetFramework="net452" />
|
||||||
<package id="xunit.abstractions" version="2.0.1" targetFramework="net452" />
|
<package id="xunit.abstractions" version="2.0.2" targetFramework="net452" />
|
||||||
<package id="xunit.analyzers" version="0.9.0" targetFramework="net452" />
|
<package id="xunit.analyzers" version="0.10.0" targetFramework="net452" />
|
||||||
<package id="xunit.assert" version="2.3.1" targetFramework="net452" />
|
<package id="xunit.assert" version="2.4.0" targetFramework="net452" />
|
||||||
<package id="xunit.core" version="2.3.1" targetFramework="net452" />
|
<package id="xunit.core" version="2.4.0" targetFramework="net452" />
|
||||||
<package id="xunit.extensibility.core" version="2.3.1" targetFramework="net452" />
|
<package id="xunit.extensibility.core" version="2.4.0" targetFramework="net452" />
|
||||||
<package id="xunit.extensibility.execution" version="2.3.1" targetFramework="net452" />
|
<package id="xunit.extensibility.execution" version="2.4.0" targetFramework="net452" />
|
||||||
<package id="xunit.runner.visualstudio" version="2.3.1" targetFramework="net452" developmentDependency="true" />
|
<package id="xunit.runner.visualstudio" version="2.4.0" targetFramework="net452" developmentDependency="true" />
|
||||||
</packages>
|
</packages>
|
4
video/FormPlayer.Designer.cs
generated
4
video/FormPlayer.Designer.cs
generated
@@ -106,7 +106,7 @@
|
|||||||
// labelTime
|
// labelTime
|
||||||
//
|
//
|
||||||
this.labelTime.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.labelTime.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.labelTime.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelTime.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular);
|
||||||
this.labelTime.Location = new System.Drawing.Point(138, 3);
|
this.labelTime.Location = new System.Drawing.Point(138, 3);
|
||||||
this.labelTime.Margin = new System.Windows.Forms.Padding(0, 3, 0, 5);
|
this.labelTime.Margin = new System.Windows.Forms.Padding(0, 3, 0, 5);
|
||||||
this.labelTime.Name = "labelTime";
|
this.labelTime.Name = "labelTime";
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
// labelTooltip
|
// labelTooltip
|
||||||
//
|
//
|
||||||
this.labelTooltip.AutoSize = true;
|
this.labelTooltip.AutoSize = true;
|
||||||
this.labelTooltip.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.labelTooltip.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
|
||||||
this.labelTooltip.ForeColor = System.Drawing.Color.White;
|
this.labelTooltip.ForeColor = System.Drawing.Color.White;
|
||||||
this.labelTooltip.Location = new System.Drawing.Point(0, 0);
|
this.labelTooltip.Location = new System.Drawing.Point(0, 0);
|
||||||
this.labelTooltip.Margin = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
this.labelTooltip.Margin = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
||||||
|
@@ -18,6 +18,9 @@ namespace TweetDuck.Video{
|
|||||||
[DllImport("user32.dll")]
|
[DllImport("user32.dll")]
|
||||||
public static extern IntPtr GetForegroundWindow();
|
public static extern IntPtr GetForegroundWindow();
|
||||||
|
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
public static extern bool SetProcessDPIAware();
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct RECT{
|
public struct RECT{
|
||||||
public int Left;
|
public int Left;
|
||||||
|
@@ -5,7 +5,7 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace TweetDuck.Video{
|
namespace TweetDuck.Video{
|
||||||
static class Program{
|
static class Program{
|
||||||
internal const string Version = "1.2.2.2";
|
internal const string Version = "1.3";
|
||||||
|
|
||||||
// referenced in VideoPlayer
|
// referenced in VideoPlayer
|
||||||
// set by task manager -- public const int CODE_PROCESS_KILLED = 1;
|
// set by task manager -- public const int CODE_PROCESS_KILLED = 1;
|
||||||
@@ -19,6 +19,7 @@ namespace TweetDuck.Video{
|
|||||||
private static int Main(string[] args){
|
private static int Main(string[] args){
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
NativeMethods.SetProcessDPIAware();
|
||||||
|
|
||||||
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||||
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
Reference in New Issue
Block a user