C# Class WinCompose.Settings

显示文件 Open project: samhocevar/wincompose

Public Methods

Method Description
CreateConfigDir ( ) : bool
EditCustomRulesFile ( ) : void

Find the preferred application for .txt files and launch it to open .XCompose. If the file does not exist, try .XCompose.txt instead. If it doesn’t exist either, create .XCompose ourselves.

GetConfigFile ( ) : string
GetSequenceDescriptions ( ) : List
GetSequenceList ( ) : SequenceTree
GetSequenceResult ( KeySequence sequence, bool ignore_case ) : string
IsDebugging ( ) : bool
IsInstalled ( ) : bool
IsValidPrefix ( KeySequence sequence, bool ignore_case ) : bool
IsValidSequence ( KeySequence sequence, bool ignore_case ) : bool
LoadConfig ( ) : void
LoadSequences ( ) : void
SaveConfig ( ) : void
StartWatchConfigFile ( ) : void
StopWatchConfigFile ( ) : void

Private Methods

Method Description
ConfigFileChanged ( object sender, FileSystemEventArgs e ) : void
GetConfigDir ( ) : string
GetDataDir ( ) : string
GetExeDir ( ) : string
GetExeName ( ) : string
GetSupportedLanguages ( ) : string>.Dictionary
GetUserDir ( ) : string
LoadEntry ( string key ) : string
LoadSequenceFile ( string path ) : void
LoadSequenceString ( string line ) : void
ReloadConfig ( object state ) : void
SaveEntry ( string key, string val ) : void
Settings ( ) : System
StringToCodepoint ( string s ) : int

Method Details

CreateConfigDir() public static method

public static CreateConfigDir ( ) : bool
return bool

EditCustomRulesFile() public static method

Find the preferred application for .txt files and launch it to open .XCompose. If the file does not exist, try .XCompose.txt instead. If it doesn’t exist either, create .XCompose ourselves.
public static EditCustomRulesFile ( ) : void
return void

GetConfigFile() public static method

public static GetConfigFile ( ) : string
return string

GetSequenceDescriptions() public static method

public static GetSequenceDescriptions ( ) : List
return List

GetSequenceList() public static method

public static GetSequenceList ( ) : SequenceTree
return SequenceTree

GetSequenceResult() public static method

public static GetSequenceResult ( KeySequence sequence, bool ignore_case ) : string
sequence KeySequence
ignore_case bool
return string

IsDebugging() public static method

public static IsDebugging ( ) : bool
return bool

IsInstalled() public static method

public static IsInstalled ( ) : bool
return bool

IsValidPrefix() public static method

public static IsValidPrefix ( KeySequence sequence, bool ignore_case ) : bool
sequence KeySequence
ignore_case bool
return bool

IsValidSequence() public static method

public static IsValidSequence ( KeySequence sequence, bool ignore_case ) : bool
sequence KeySequence
ignore_case bool
return bool

LoadConfig() public static method

public static LoadConfig ( ) : void
return void

LoadSequences() public static method

public static LoadSequences ( ) : void
return void

SaveConfig() public static method

public static SaveConfig ( ) : void
return void

StartWatchConfigFile() public static method

public static StartWatchConfigFile ( ) : void
return void

StopWatchConfigFile() public static method

public static StopWatchConfigFile ( ) : void
return void