* Added icon to "Recent >" menu item. * Refactored app menu implementation, and implemented keyboard accelerators. Still doesn't work though. * Few things fixed, but still doesn't work. * Clicking menu items works. * Fixing an issue with resources. * New menu binding implemented. Still doesn't work though. * Menu displayed properly, except for "Settings". * Menu works, but it doesn't refresh. * Works. But needs to be polished. * All known issues with the new app menu solved. * Significantly simplifying app menu binding. * Removing some obsolete classes. * Menu binding mechanism additionally optimized for performances. * Removing unused translations. * Further refactoring app menu binding, in order to make it more general. * Renaming menu items in order to make them usable for both new tab and new window commands. * Changing menu item keyboard accelerators based on new tab / window settings. * Menu item keyboard accelerators are dynamically changing with chainging terminals in new tabs/windows option. * New tab / window settings honored for top level menu items. * New window mechanism simplified. Terminal-launching code refactored to be more readable. A bug with "SSH Info" fixed. * Merging the latest changed. * Fixing some after-merge issues. * Minor refactoring. * Minor refactoring. * Default profile menu item now contains the profile name. Still doesn't update though. * Default profile name in the menu item now updates. * Updating resources from POEditor. * New tab/window cascading menues implemented. * Reverting translations back to the correct (the latest) version. * Undoing translation changes from the last commit. I've made these by mistake. * Configurable tab/window cascading menu. * "Application menu type" settings value added. * Minor spelling fix. * Fixing some after-merge issues.
54 lines
2.5 KiB
C#
54 lines
2.5 KiB
C#
using FluentTerminal.Models.Enums;
|
|
|
|
namespace FluentTerminal.Models
|
|
{
|
|
public class ApplicationSettings
|
|
{
|
|
public bool ConfirmClosingTabs { get; set; }
|
|
public bool ConfirmClosingWindows { get; set; }
|
|
public bool UnderlineSelectedTab { get; set; }
|
|
public InactiveTabColorMode InactiveTabColorMode { get; set; }
|
|
public NewTerminalLocation NewTerminalLocation { get; set; }
|
|
public bool TabWindowCascadingAppMenu { get; set; }
|
|
public TabsPosition TabsPosition { get; set; }
|
|
public bool CopyOnSelect { get; set; }
|
|
public MouseAction MouseMiddleClickAction { get; set; }
|
|
public MouseAction MouseRightClickAction { get; set; }
|
|
public bool ShowNewOutputIndicator { get; set; }
|
|
public bool EnableTrayIcon { get; set; }
|
|
public bool ShowCustomTitleInTitlebar { get; set; }
|
|
public bool UseMoshByDefault { get; set; }
|
|
public bool AutoFallbackToWindowsUsernameInLinks { get; set; }
|
|
public bool RTrimCopiedLines { get; set; }
|
|
public bool MuteTerminalBeeps { get; set; }
|
|
public bool EnableLogging { get; set; }
|
|
public bool PrintableOutputOnly { get; set; }
|
|
public string LogDirectoryPath { get; set; }
|
|
public bool UseConPty { get; set; }
|
|
|
|
public ApplicationSettings Clone() => new ApplicationSettings
|
|
{
|
|
ConfirmClosingTabs = ConfirmClosingTabs,
|
|
ConfirmClosingWindows = ConfirmClosingWindows,
|
|
UnderlineSelectedTab = UnderlineSelectedTab,
|
|
InactiveTabColorMode = InactiveTabColorMode,
|
|
NewTerminalLocation = NewTerminalLocation,
|
|
TabWindowCascadingAppMenu = TabWindowCascadingAppMenu,
|
|
TabsPosition = TabsPosition,
|
|
CopyOnSelect = CopyOnSelect,
|
|
MouseMiddleClickAction = MouseMiddleClickAction,
|
|
MouseRightClickAction = MouseRightClickAction,
|
|
ShowNewOutputIndicator = ShowNewOutputIndicator,
|
|
EnableTrayIcon = EnableTrayIcon,
|
|
ShowCustomTitleInTitlebar = ShowCustomTitleInTitlebar,
|
|
UseMoshByDefault = UseMoshByDefault,
|
|
AutoFallbackToWindowsUsernameInLinks = AutoFallbackToWindowsUsernameInLinks,
|
|
RTrimCopiedLines = RTrimCopiedLines,
|
|
MuteTerminalBeeps = MuteTerminalBeeps,
|
|
EnableLogging = EnableLogging,
|
|
PrintableOutputOnly = PrintableOutputOnly,
|
|
LogDirectoryPath = LogDirectoryPath,
|
|
UseConPty = UseConPty
|
|
};
|
|
}
|
|
} |