powered by CADENAS

Manual

Manual

1.1.6.10.1.3. menuvisibilty-config

The menuvisibilty configuration file controls the visibiltiy of menus, menuitems, toolbars, buttons and context menu commands.

You can create different modes. Each mode covers a specific range of actions = UI elements.[16]

So there are two levels:

  • The first level represents the different modes. By default these are Beginner and Professional.[17]

    [COMMON]
    MODE_BEGINNER=Beginner
    MODE_PROFESSIONAL=Professional

    Each mode (key name) requires a same-named block. The key value is the display name in the application.

  • The second level are blocks where the desired actions (UI elements) are assignged to the mode.

    [MODE_BEGINNER]
    ViewPart=true
    View2D=true
    ExtrasPARTbom=true
    etc.
    
    [MODE_PROFESSIONAL]
    ViewPart=true
    View2D=true
    ExtrasPARTbom=true
    etc.

    The key name is according to the action name.

    The value range of keys is true or false, meaning they represent the visibility.

    If a key is missing in the list, then the state of visibility is "false".

The selection of the desired mode happens in PARTdataManager under Extras menu -> Modus wählen. The default mode is stated in $CADENAS_DEFAULTUSER/partsolu.cfg -> block [TWEAKMENU] -> key "Mode". The respective menu item is displayed, if the key ModePreferences is set on true in the respective block.

If you select mode Beginner, you will see a lower amount of items on your UI.

The selected mode is highlighted.

With ERP integration

If ERP is available then the display of UI elements can be designed role-dependent (in addition).

In order to avoid redundant settings the declaration of the elements happens in two levels:

  • At first all needed roles are assigned to types.

    [ROLES]
    DUMMY=TYP_A
    LOC1=TYP_B
    LOC2=TYP_A
    LOC3=TYP_A
    etc.
  • In a second step the desired actions (elements) are assignged to the [TYP_] blocks.

    [TYP_A]
    MODE_BEGINNER=false
    MODE_PROFESSIONAL=false
    Bugreport_Clicked=true
    din962=true
    ShowHideAvoidPartsButton=true
    prefcatalogs=true
    StartupPageClicked=true
    List view of parameters=true
    Table view of parameters=true
    etc.

    [TYP_B]
    MODE_BEGINNER=false
    MODE_PROFESSIONAL=false
    Bugreport_Clicked=true
    din962=true
    ShowHideAvoidPartsButton=true
    prefcatalogs=true
    StartupPageClicked=true
    List view of parameters=true
    Table view of parameters=true
    etc.

If there is information in two different, valid blocks, then the information is merged.

[Hinweis] Hinweis

By default, the "Select mode" option is only available in PARTdataManager.



[16] Actions control UI elements.

[17] You can enhance the number of modes anytime. Therefor simply add a new key in the [COMMON] block and set up the corresponding block with the actions. If the corresponding block is missing, then the result is the same as if it would be empty.