Editing in DVDAfterEdit

by Larry Applegate

You can edit most items in the right-hand pane of the window simply by clicking on their current value to get a text editing field, and typing a new value. Editing actions such as copy and paste work within these text fields as you expect.

In addition, some items within expandable groups have additional editing actions, to allow you to manipulate the groups as a whole, or to manipulate several items at once. The following kinds of items have additional editing actions: Prohibited User Ops, ISRC, Button Highlights, Colors, Color Schemes, Button Navigations, and Pre/Post/Cell Commands.

Using the Clipboard

This section applies to Prohibited User Ops, ISRC, Button Highlights, Colors, Color Schemes and Button Navigations. These are called copyable items, because they can all be copied to the clipboard, and of course pasted again later. Pre/Post/Cell Commands work a little differently, and are discussed in a separate section.

You place a copyable item on the clipboard by selecting it and choosing Copy from the Edit menu. You paste it by selecting any item of the same type and choosing Paste Over from the Edit menu.

Copying Multiple Items

You can also copy multiple Colors, Color Schemes and Button Navigations to the clipboard. First, select the ones you want (they must all be in the same item list): click to select, shift-click to select multiple items and command-click to select or unselect individual items. Note that the selection does not have to be contiguous, meaning you can have selected items with unselected items between them in the list. Then choose Copy from the Edit menu to place all of the selected items on the clipboard.

To paste multiple items, first select the items to you want to change. Again, they must all be in the same item list, but they don't have to be contiguous. Then choose Paste Over from the Edit menu, and the selected items are replaced in turn by the items on the clipboard. The first selected item is replaced by the first selected clipboard item, and so on. If there are fewer items selected than are on the clipboard, the excess clipboard items don't have any effect. If there are more items selected, the excess selected items aren't changed.

Copying Item Groups

Colors, Color Schemes and Button Navigations are arranged in groups (of 16, 3 and 36 items, respectively). You can copy and paste the entire group by selecting just the group item (that is, the one that expands to show the individual Colors, Color Schemes or Button Navigations) and using Copy and Paste Over from the Edit menu. Copying an entire group is no different from copying all of the component items. So, you can copy a group and paste over another group, or over individual items (remember: excess items are ignored when pasting), and you can copy all of the individual items and paste over a group item.

There is just one special consideration to keep in mind when doing this. You can only paste over a group item if there are enough individual items on the clipboard. This means you can only paste a Colors group item if you copied all 16 Colors in some other group (or if you copied a Colors group item, which amounts to the same thing). Similarly, you have to copy all 3 Color Schemes to be able to paste over a Color Schemes group item, and copy all 36 Button Navigations to paste over a Button Navigations group.

Paste Into

When you copy items from the right pane of the window to the clipboard, you can paste them into certain items in the left pane. Colors and Prohibited User Ops can replace similar items in program chains (PGCs) and dummy PGCs, while all of the kinds of copyable items can be pasted into navpacks. Simply select a right-pane item, choose Copy from the Edit menu, then select the PGC or navpack you want and choose Paste Into from the Edit menu.

For Colors, Color Schemes and Button Navigations, Paste Into works with item groups, which were discussed in the previous section. You have to select the entire group (the group item, or all of the items in the group) in order to be able to use Paste Into.

Paste Repeated

Sometimes you might want to paste a clipboard item more than once. For example, you might want to copy a single Color to the clipboard, then use it to replace all 16 Colors in a group. Or, you might want to copy a Color Schemes group, and paste it into multiple navpacks.

Paste Repeated on the Edit menu allows you to do these things. It can be used whenever Paste Over or Paste Into is allowed, if you have more items selected than are on the clipboard. When you choose Paste Repeated from the Edit menu, items from the clipboard are pasted over or into what is selected until they are all used. Then the items on the clipboard are used again for the next selected items, and again for the next, until all of the selected items have been changed.

Paste Deeply Into

Sometimes you might want to paste a clipboard item from a Nav Pack into all of the Nav Packs for (another) cell. Paste Deeply Into allows you to do this.

For copying and pasting of Nav Pack information, you must copy the information from a single Nav Pack. Then you can select a contiguous range of Nav Packs, and Paste Repeated into them as described above. For Paste Deeply Into, you may choose one or more cells, without having to open up the individual Nav Packs and select them, and then paste (Deeply) the Nav Pack info into all Nav Packs in those cells. You may also choose one or more Programs in order to Paste Deeply Into all Nav Packs in all cells of the Programs chosen. This function capability is NOT implemented at the PGC level or above.

For Button Highlight Information, Pasting Deeply Into will set the Button Highlight Status on the first Nav Pack of each cell to "All New Info", and subsequent cells to "Use Previous Vobu".

Pre/Post/Cell Commands

Pre/Post/Cell Commands can be copied and pasted in much the same way as other copyable items, but since they can also be deleted and inserted, you have more editing actions available to you: Paste After, Edit Command, Insert Command and Delete Command, as well as unlimited Undo and Redo.

Copy, Cut and Paste

You can select one or multiple Commands (Pre, Post or Cell) in a list of commands, and choose Copy from the Edit menu to place them on the clipboard. As before, your selection does not have to be contiguous. If you choose Cut from the Edit menu instead of Copy, the selected items are deleted after being copied to the clipboard.

You paste Commands by selecting one or more Commands in a list and choosing Paste from the Edit menu. Note that the menu says Paste instead of Paste Over, because pasting Commands is more like the regular text pasting you're already familiar with: the contents of the clipboard replaces whatever is selected. Depending on how many Commands are on the clipboard and how many selected, you may end up with more or fewer Commands in the list.

The Pre, Post or Cell Commands group item can be copied to the clipboard all of the Commands in the list are copied but currently, you cannot paste over a group item, but must select the individual Commands instead. This also means that you cannot paste Commands directly into PGCs in the left pane of the window. Instead, you must navigate to the PGC you want and select the appropriate Commands in the right pane before pasting.

Paste After

In normal text editing, you can always paste text from the clipboard between any two characters by clicking between them to place a flashing insertion point. Currently, there is no way to set an insertion point between two Commands in the right pane, so you have to follow a different strategy to paste Commands between existing Commands.

First, select the Command after which you want to paste the contents of the clipboard. To paste before the first command in a list, or into an empty list, just select the Commands group item at the top of the list. Then choose Paste After from the Edit menu, and the Commands on the clipboard are inserted after the selected item. (If you happened to have selected more than one item, the clipboard contents are inserted after the last selected item.)

Pasting Non-Contiguous Selections

If you have a non-contiguous selection (that is, unselected Commands interspersed between selected ones), its not obvious where you would expect pasted Commands to be placed. What actually happens is governed by a simple rule:

The first Command on the clipboard replaces the first selected Command, and so on until there are no more Commands on the clipboard or no more selected Commands. Then, if there are any remaining Commands on the clipboard, they are pasted after the last selected Command. Or, if there are any remaining selected items, they are deleted.

In fact, this same rule applies to all pasting of Commands, because it produces the expected result if the selection is contiguous.

Paste Repeated

Paste Repeated on the Edit menu works for Commands exactly as it does for other copyable items. Keep in mind that the number of Commands never changes as a result of this action, because only the selected items are affected.

Insert and Delete

Inserting a Command into a list is a little like pasting after: select the Command you want to insert after (or the Commands group item to insert before the first command), and choose Insert Command from the Edit menu and a Nop command is placed in after the selected item.

To delete Commands, select the ones you want to remove from the list and choose Delete Command from the Edit menu. The keyboard shortcut for this action is the Delete key (either Delete key if your keyboard has two).

Insert Command and Delete Command are also available on a contextual menu. After making a selection, control-click with your mouse (or just click the right button if your mouse has more than one button), and a menu will pop up from which you can choose the desired editing action.

Edit

You can edit a Command in one of two ways: with popup menus and with the Command assembler. With popup menus, you construct the Command by choosing the various parts of it from menus, and the menus change according to what you choose. With the Command assembler, you type the whole Command in a text field.

To start popup editing, expand the Command item by clicking on its expansion icon at the left of its command number. The item doesn't exactly expand, but it replaced by a series of popup menus. You can alternatively start popup editing by selecting the Command and choosing Edit Command from the contextual menu described in the previous section. Click on some other item to return to normal.

To start the Command assembler, just click on the text of the Command itself. Press Return or click elsewhere to return to normal.

Undo and Redo

All of the editing actions that change Commands edit, insert, delete, cut, paste and paste after are undo-able. Just as copying and pasting of Commands is not exactly like normal copying and pasting, undoing and redoing of Commands is not exactly like normal undoing and redoing.

After you make a change to Commands, you can undo the change by choosing Undo from the Edit menu. If you've made a series of changes, you can undo them one by one to go back to any previous state of the Commands. Once you've undone changes, you can redo them one by one, if you wish, by choosing Redo from the Edit menu.

Undoing is unlimited: you can undo all of the actions you made since you opened the VIDEO_TS file shown in the window.

Here's how undoing Commands is different from normal undoing: undoing is separate for each list of Commands. Undo doesn't function until you select a Command list that you've changed (or any Command in it), and then it only undoes the changes you've made to that list. If you select a different list, you can only undo changes you made to that list, and so on. However, it makes no difference how often you select something else and come back to a changed list all of the changes you made in that list since opening the window will be there waiting for you to undo or redo them.