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.
Show file Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools Class Usage Examples

Public Properties

Property Type Description
AllServices List
ButtonsConfigSearch Control.EaAddinShortcuts.EaAddinButtons[]
ButtonsServiceConfig List
GlobalKeysConfig List
GlobalKeysConfigSearch List

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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
return System

Refresh() public method

public Refresh ( ) : void
return void

Save() public method

saves the settings to the config file
public Save ( ) : void
return void

UpdateKeysAndToolbarsServices() public method

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
return void

UpdateModel() public method

Update settings with model specific features like: Scripts
public UpdateModel ( Model model ) : void
model Model
return void

Property Details

AllServices public property

public List AllServices
return List

ButtonsConfigSearch public property

public EaAddinButtons[],Control.EaAddinShortcuts ButtonsConfigSearch
return Control.EaAddinShortcuts.EaAddinButtons[]

ButtonsServiceConfig public property

public List ButtonsServiceConfig
return List

GlobalKeysConfig public property

public List GlobalKeysConfig
return List

GlobalKeysConfigSearch public property

public List GlobalKeysConfigSearch
return List