GIMP has great flexibility for arranging dialog windows on your screen. Instead of placing each dialog in its own window, you can group dialogs using docks. A "dock" is a container window that can hold a collection of persistent dialogs, such as the Tool Options dialog, Brushes dialog, Palette dialog, etc. Docks cannot, however, hold non-persistent dialogs such as the Preferences dialog or an Image window.
GIMP has two default docks:
The Layers, Channels and Paths dock.
The Brushes, Patterns and Gradients dock.
In these docks, each window is in its own tab.
The Toolbox is a utility window. The Tool Options window is normally attached under the Toolbox and displays the options of the selected tool.
Use
→ . view a list of dockable dialogs. Choose a dockable dialog from the list to view the dialog. If the dialog is available in a dock, then it is made visible. If the dialog is not in a dock, then it is displayed in its own window. Note that the Windows command is only available while an image is open for editing.Every dockable dialog has two types of docking areas: the docking bars and the docking-tab area. In a dock, the docking-tab area covers the entire window.
Each dockable window has two docking bars. These bars are thin gray bars, very unobtrusive and easy to not notice: most people don't realize that they exist until they are specifically pointed out.
Each dockable window has a drag handle area, as highlighted in the figure below. The cursor changes to a hand shape when it is over a drag handle area. To dock a dialog, click in the drag handle area, and drag it:
onto a docking bar so that the dialog is attached below the docking bar in the window,
or into the docking-tab area so that the dialog is added as a tab.
You can drag more than one dialog onto the same docking bar. If you do, the dialogs are displayed as tabs, represented by iconic symbols at the top. Click on the iconic symbol to bring the tab to the front.
注意 | |
---|---|
You can also add, detach, or delete a tab window using the Tab menu (see below). |
提示 | |
---|---|
Press TAB in an Image window to toggle the visibility of the docks. This is useful if the docks hide a portion of the image Window. You can quickly hide all the docks, do your work, then display all the docs again. Pressing TAB inside a dock to navigate through the dock. |
Some docks contain an Image Selection Menu: a menu listing all of the images open in GIMP. The Image Menu displays the name of the image whose information is shown in the dock. Use the Auto button to toggle the value of Auto Follow Active Image. Suppose you are using the Layers dialog and you want to see the layers for a different image. Select the desired image from the Image Selection Menu. Although this is convenient, do not forget that you changed the working image for the dock. Setting Auto Follow Active Image from the Tab menu helps to avoid this problem.
By default, a “Layers, Channels, and Paths” dock shows an Image Menu at the top, and other types of docks do not. You can always add or remove an Image Menu, however, using the “Show Image Menu” toggle in the Tab menu, as described below. (Exception: you cannot add an Image Menu to the dock that contains the Toolbox.)
In each dialog, you can access a special menu of tab-related operations by pressing the Tab Menu button, as highlighted in the figure above. Exactly which commands are shown in the menu varies a bit from dialog to dialog, but they always include operations for creating new tabs, or closing or detaching tabs.
The Tab menu gives you access to the following commands:
At the top of each Tab menu is an entry that opens into the dialog's context menu, which contains operations specific to that particular type of dialog. For example, the context menu for the Layers tab is Layers Menu, which contains a set of operations for manipulating layers.
Add Tab opens into a submenu allowing you to add a large variety of dockable dialogs as new tabs.
Close the dialog. Closing the last dialog in a dock causes the dock itself to close.
Detach the dialog from the dock, creating a new dock with the detached dialog as its only member. It has the same effect as dragging the tab out of the dock and releasing it at a location where it cannot be docked.
If the tab is locked, this menu item is insensitive and grayed out.
Prevent the dialog from being moved or detached. When activated,
is insensitive and grayed out.Many, but not all, dialogs have Tab menus containing a Preview Size option, which opens into a submenu giving a list of sizes for the items in the dialog (see the figure above). For example, the Brushes dialog shows pictures of all available brushes: the Preview Size determines how large the pictures are. The default is Medium.
Available only when multiple dialogs are in the same dock, Tab Style opens a submenu allowing you to choose the appearance of the tabs at the top (see the figure above). There are five choices, not all are available for every dialog:
Use an icon to represent the dialog type.
Is only available for dialogs that allows you to select something, such as a brush, pattern, gradient, etc. Current Status shows a representation of the currently selected item in the tab top.
Use text to display the dialog type.
Using both an icon and text results in wider tabs.
Show the currently selected item and text with the dialog type.
These entries are shown in dialogs that allow you to select an item from a set: brushes, patterns, fonts, etc. You can choose to view the items as a vertical list, with the name of each beside it, or as a grid, with representations of the items but no names. Each has its advantages: viewing as a list gives you more information, but viewing as a grid allows you to see more possibilities at once. The default for this varies across dialogs: for brushes and patterns, the default is a grid; for most other things, the default is a list.
提示 | |
---|---|
When the treeview is View as List, pressing Ctrl+F (or Ctrl+S, it depends on your GTK+ keybindings), opens a text box, a search field, where you can enter the first letter(s) of the name of the item you want. The search field will not open with View as Grid. |
The list search field automatically closes after five seconds if you do nothing.
注意 | |
---|---|
The search field shortcut is also available for the treeview you get in the “Brush”, “Font” or “Pattern” option of several tools. |
Some dialogs display a button bar on the bottom of the dialog; for example, the Patterns, Brushes, Gradients, and Images dialogs. This is a toggle. If it is checked, then the Button Bar is displayed.
This is a toggle. If it is checked, then an Image Menu is shown at the top of the dock (see 图 3.8 “A dock with an Image Menu highlighted.”). It is not available for dialogs docked below the Toolbox. This option is interesting only if you have several open images on your screen.
This option is also interesting only if you have several images open on your screen. Then, the information displayed in a dock is always that of the selected image in the Image Selection drop-down list. If the Auto Follow Active Image is disabled, the image can be selected only in the Image Selection. If enabled, you can also select it by activating the image directly (clicking on its title bar).