C# Class hoTools.Settings.AddinSettings

Settings for hoTools. It merges default settings (ActiveX.dll.config) with current settings in install directory to the current settings.
Afficher le fichier Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools Class Usage Examples

Méthodes publiques

Свойство Type Description
AllServices List
ButtonsConfigSearch Control.EaAddinShortcuts.EaAddinButtons[]
ButtonsServiceConfig List
GlobalKeysConfig List
GlobalKeysConfigSearch List

Private Properties

Свойство Type Description
GetAllServices void
GetBoolConfigValue bool
GetButtonsSearch Control.EaAddinShortcuts.EaAddinButtons[]
GetButtonsService List
GetConnector void
GetDefaultSettings void
GetKeysSearch List
GetKeysService List
GetStringConfigValue string
MergeDefaultSettings void
MessageConfigValueNotExists void
SetBoolConfigValue void
SetButtonsSearch void
SetButtonsServices void
SetConnector void
SetGlobalKeysSearch void
SetGlobalKeysService void
SetStringConfigValue void
UpdateKeysService void
UpdateToolbarServiceButtons void

Méthodes publiques

Méthode Description
AddinSettings ( ) : System

Merge default settings (install DLLs) with current settings (user.config) Read settings from %APPDATA%\ho\hoTools\user.config or %APPDATA%\ho\hoTools_ZFLT\user.config

Refresh ( ) : void
Save ( ) : void

saves the settings to the config file

UpdateKeysAndToolbarsServices ( ) : void

Update the subclasses services (Call Service or run Script) for: - Buttons - Global keys / global shortcuts / keyboard keys by - Method / Script - Tool tip - Subclasses

UpdateModel ( Model model ) : void

Update settings with model specific features like: Scripts

Private Methods

Méthode Description
GetAllServices ( ) : void

Fill the list AllServices with all possible Services and Scripts.

GetBoolConfigValue ( string name ) : bool

Get bool config value. If the value don't exists return a false.

GetButtonsSearch ( ) : Control.EaAddinShortcuts.EaAddinButtons[]

Get 5 Searches

GetButtonsService ( ) : List

Get 5 services of type Call or Script from configuration

GetConnector ( DiagramConnector l ) : void
GetDefaultSettings ( ) : void

gets the default settings config.

GetKeysSearch ( ) : List
GetKeysService ( ) : List

GetStringConfigValue ( string name ) : string

Get string value from configuration

MergeDefaultSettings ( ) : void

merge the default settings with the current config.

MessageConfigValueNotExists ( string name, string value ) : void

Output error Message box for not existent configuration parameter or invalid value

SetBoolConfigValue ( string name, bool value ) : void

Set bool config value. If error output a message

SetButtonsSearch ( EaAddinButtons l ) : void
SetButtonsServices ( List l ) : void
SetConnector ( DiagramConnector l ) : void
SetGlobalKeysSearch ( List l ) : void
SetGlobalKeysService ( List l ) : void
SetStringConfigValue ( string name, string value ) : void

Set string value in configuration. If error output error message

UpdateKeysService ( ) : void

Update then global keys service for Call and Script. Helptext, subservices

UpdateToolbarServiceButtons ( ) : void

Update Toolbar Buttons by available Services and Scripts.

Method Details

AddinSettings() public méthode

Merge default settings (install DLLs) with current settings (user.config) Read settings from %APPDATA%\ho\hoTools\user.config or %APPDATA%\ho\hoTools_ZFLT\user.config
public AddinSettings ( ) : System
Résultat System

Refresh() public méthode

public Refresh ( ) : void
Résultat void

Save() public méthode

saves the settings to the config file
public Save ( ) : void
Résultat void

UpdateKeysAndToolbarsServices() public méthode

Update the subclasses services (Call Service or run Script) for: - Buttons - Global keys / global shortcuts / keyboard keys by - Method / Script - Tool tip - Subclasses
public UpdateKeysAndToolbarsServices ( ) : void
Résultat void

UpdateModel() public méthode

Update settings with model specific features like: Scripts
public UpdateModel ( Model model ) : void
model Model
Résultat void

Property Details

AllServices public_oe property

public List AllServices
Résultat List

ButtonsConfigSearch public_oe property

public EaAddinButtons[],Control.EaAddinShortcuts ButtonsConfigSearch
Résultat Control.EaAddinShortcuts.EaAddinButtons[]

ButtonsServiceConfig public_oe property

public List ButtonsServiceConfig
Résultat List

GlobalKeysConfig public_oe property

public List GlobalKeysConfig
Résultat List

GlobalKeysConfigSearch public_oe property

public List GlobalKeysConfigSearch
Résultat List