ConfigFiles Class
procedures used for loading config files (containing DBFunctions and general sheet content) and building the config menu
Inheritance Hierarchy
- System.Object
- DBaddin.ConfigFiles
Namespace: DBaddinAssembly: DBaddin in (DBaddin.dll)
Syntax
public sealed class ConfigFiles
The ConfigFiles type exposes the following members.
Constructors
Class | Summary | |
---|---|---|
![]() | ConfigFiles() |
Methods
Name | Summary | |
---|---|---|
![]() | buildFileSepMenuCtrl(String, ref XElement, ToolStripMenuItem, String, String, String, Int32, Int32, ref MenuClassStruct) | parses Substrings (filenames in special Folders) contained in nameParts (recursively) of passed xcl config file-path (fullPathName) and adds them to currentBar/currentStrip and sub-menus (recursively) |
![]() | contextMenuClickEventHandler(Object, Object) | the event-handler for the context menu entries of the AdHocSQL context menu, used either to show the documentation for the entries or to insert the queries defined in the xcl files |
![]() | createConfigTreeMenu() | creates the ribbon config tree menu and the context menu for the AdHocSQL Dialog by reading the menu elements from the config store folder files/sub-folders |
![]() | getFileContent(String) | read content of xcl file |
![]() | loadConfig(String) | loads config from file given in theFileName |
![]() | readAllFiles(String, ref XElement, ref ToolStripMenuItem, String) | reads all files contained in rootPath and its sub-folders (recursively) and adds them recursively to the DBConfig menu ribbon structure and the context menu for the AdHocSQL Dialog simultaneously. For folders contained in specialConfigStoreFolders, apply further structuring by splitting names on camel-case or specialConfigStoreSeparator |
![]() | replaceConfigSelectInFormula(String, String) | replace query given in theQueryFormula with template query in ConfigSelect |
![]() | replaceQueryInFormula(String, String, String) | replace query given in dbFunctionFormula inside targetFormula containing DB Function "theFunction" |
![]() | showTheDocs(String) | shows the Documentation associated with the menu entry having TagString |
![]() | stringParts(String, String) | returns string in space separated parts (tokenize String following CamelCase switch or when given specialConfigStoreSeparator occurs) |
Fields
Name | Description | |
---|---|---|
![]() | $STATIC$buildFileSepMenuCtrl$091E1012813912813DEEE8810118278$MenuDepth | |
![]() | $STATIC$buildFileSepMenuCtrl$091E1012813912813DEEE8810118278$MenuDepth$Init | |
![]() | $STATIC$readAllFiles$041E101281391012813DE$MenuFolderDepth | |
![]() | $STATIC$readAllFiles$041E101281391012813DE$MenuFolderDepth$Init | |
![]() | ConfigContextMenu | Context menu for AdHocSQL Form, built in parallel with ribbon config menu |
![]() | ConfigDocCollection | Documentation Collection for Config Objects (to be displayed with Ctrl or Shift) |
![]() | ConfigMenuXML | tree menu stored here |
![]() | ConfigStoreFolder | the folder used to store predefined DB item definitions |
![]() | maxMenuDepth | fixed max Depth for Ribbon |
![]() | maxSizeRibbonMenu | fixed max size for menu XML |
![]() | menuID | used to create menu and button ids |
![]() | specialConfigFoldersTempColl | store found sub-menus in this collection |
![]() | specialConfigStoreFolders | Array of special ConfigStoreFolders for non default treatment of Name Separation (Camel-case) and max depth |
![]() | specialFolderMaxDepth | individual limitation of grouping of entries in special folders (set by _DBname_MaxDepth) |
![]() | xnspace | for correct display of menu |