K-Meleon
KMeleonWiki > Documentation > ReferenceManual > LayersPlugin
-- NOTE: This page does not concern K-Meleon 1.5.0 or later, because "real" tabs have been implemented in that version.
-- (Based on layers.cpp 1.53)
| Preference | Type | Default | Description |
| kmeleon.plugins.layers.autoHide | Boolean | false | Hide Layers toolbar when only one layer is open. Since 1.1. |
| kmeleon.plugins.layers.catch | Boolean | false | Force layers-only browsing |
| kmeleon.plugins.layers.catchClose | Boolean | false | Catch new window requests to open new layers instead. Overrides catch. |
| kmeleon.plugins.layers.catchOpen | Boolean | false | Catch window close requests to close current layer instead. Overrides catch. |
| kmeleon.plugins.layers.close | Boolean | false | Close window when closing last layer |
| kmeleon.plugins.layers.confirmClose | Boolean | true | Confirm before closing a window with multiple layers open |
| kmeleon.plugins.layers.maxWidth | Integer | 35 | Maximum Layers toolbar button width, in pixels (when positive) or characters (when negative). Overrides width. |
| kmeleon.plugins.layers.minWidth | Integer | 10 | Minimum Layers toolbar button width, in pixels. Has no effect when maxWidth is negative. |
| kmeleon.plugins.layers.numbers | Boolean | false | Enumerate layers |
| kmeleon.plugins.layers.onCloseOption | Integer | 0 | 0 = focus last 1 = focus previous 2 = focus next |
| kmeleon.plugins.layers.onOpenOption | Integer | 0 | Where to place new layer: 0 = after last layer 1 = after current layer |
| kmeleon.plugins.layers.rebar | Boolean | true | |
| kmeleon.plugins.layers.rebarBottom | Boolean | false | Change Layers toolbar position to bottom of window (experimental) |
| kmeleon.plugins.layers.style | Integer | 2 | Grayed: 1 Pressed: 2 3D: 4 Bold: 8 (Can be combined) |
| kmeleon.plugins.layers.title | String | "Layers:" | Label for the Layers toolbar |
| kmeleon.plugins.layers.width | Integer | see maxWidth | Maximum Layers toolbar button width, in millimeters |
Example: plugin(command)
| Command | Description |
| (nothing) | Open new layer |
| (integer N) | Switch to Nth layer (0 < N < 10) |
| Close | |
| CloseAll | |
| CloseAllOther | |
| CloseWindow | |
| Config | |
| Last | Switch to last selected layer |
| Next | |
| Open | |
| OpenLink | |
| OpenLinkBg | |
| OpenWindow | |
| Prev |
| Macro | Description |
| OnCloseGroup | Called when the window receives a close request and there are more than one layers open |
Example: plugin(command) or plugin(command, label)
| Command | Description |
| (nothing) | Insert list of layers to menu |
| (integer N) | Switch to Nth layer (0 < N < 10) |
| Close | |
| CloseAll | |
| CloseAllOther | |
| CloseWindow | |
| Config | |
| Last | Switch to last selected layer |
| Next | |
| Open | |
| OpenLink | |
| OpenLinkBg | |
| OpenWindow | |
| Prev |
| Menu | Description |
| LayerButtonPopup |
| Message | Parameters | Returns | Description |
| AddLayersToWindow | URL\tURL\tURL... | - | Plugins may pass a window number as the first data |
| AllLayersInWindow | Command | - | Run command on every layer |
| GetLayersInWindow | N | URL\tURL\tURL... | N = window number (default: current) |
| NumberOfLayersInWindow | N | Integer | N = window number (default: current) |
| NumberOfWindows | - | Integer | |
| OpenURL | URL | - | |
| OpenURLBg | URL | - | |
| ReplaceLayersInWindow | URL\tURL\tURL... | - | Plugins may pass a window number as the first data |