Customizing the User Interface
You can customize the following user interface items:
These changes are made by editing the files that control the interface. These are text files with the file name extension .ets (external tool support).
Editing Keyboard Shortcuts
Shortcuts are key combinations that substitute for selecting a particular menu item. For example, pressing F1 has the same effect as choosing Product Documentation from the Help menu. You can change the defined shortcuts or add new ones.
Procedure 1: Adding or Changing a Shortcut
-
From the system prompt, move to the
<reldir>/sys/configsdirectory. -
Locate the .ets file that contains the operation definition of the operation you will create a shortcut for. Check each of the following files in turn, until you find the desired operation definition:
std_modeler_project_operations.etsstd_help_operations.etsstd_edit_operations.etsstd_shortcut_operations.ets
Result: Each of these files consists of numerous operation definitions, as shown in the following example.
# button list for Project Editor File format: operation liststart_operation menu header: “File” menu string: “Close Project” operation: exec_builtin close_project position: 2 shortcut: “ctrl-w” separator “yes” end_operationstart_operation menu header: “File” menu string: “Save Project” operation: exec_builtin save_project position: 4 shortcut: “ctrl-s” end_operation -
Use the text editor’s search capability to locate the operation you want to modify. The text string shown as “menu string” duplicates the menu item shown in Modeler.
-
Change the shortcut defined, or add a line for a new shortcut. Shortcut keys can be function keys (
<F1>,<F2>) or control key combinations (specified asctrl-<key>in the operation definition). -
Save the changes to the file, close the text editor, and start Modeler.
-
Test the new shortcut. Ensure that the shortcut
- appears on the menu list next to the operation
- has the intended functionality
Adding Optional Operations
Modeler includes code for some optional operations that are not normally included in the menus, such as the Edit Comment Log operation. You can add action buttons or menu items for these operations.
Procedure 2: Adding an Optional Operation
-
From a system prompt, move to the
<reldir>/sys/configsdirectory. -
In a text editor, open the
std_modeler_project_operations.etsfile. -
Add operation definitions for the optional operations to the file.
For example, the definitions below create the following effects:
- User lock and comment log operations are added to the File menu. User lock is the last item in the list; comment log is next to last. The position of the menu item in the list is controlled by the position variable.
- Buttons for both operations appear in the button bar. The position of the button in the button bar is determined by the order of the operation definition in the file (for example, the first operation listed will be the left-most button).
start_operation menu header: “File” menu string: “Comment Log” operation: exec_builtin open_comment_log position: 9998 icon: comments end_operationstart_operation menu header: “File” menu string: “User Lock” operation: exec_builtin toggle_user_lock position: 9999 icon: lock_unlock end_operation -
Save the changes to the file, close the text editor, and start Modeler.
-
Test the new operation. Ensure that the operation
- appears on the menu list in the desired position
- appears in the button bar in the desired position
- has the intended functionality