File: Maximizing-the-ECB-windows.html

package info (click to toggle)
ecb 2.32-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 5,236 kB
  • ctags: 1,790
  • sloc: lisp: 24,391; makefile: 143; sh: 57
file content (110 lines) | stat: -rw-r--r-- 5,003 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<html lang="en">
<head>
<title>ECB - the Emacs Code Browser</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name=description content="ECB - the Emacs Code Browser">
<meta name=generator content="makeinfo 4.2">
<link href="http://www.gnu.org/software/texinfo/" rel=generator-home>
</head>
<body>
<p>
Node:<a name="Maximizing%20the%20ECB%20windows">Maximizing the ECB windows</a>,
Next:<a rel=next accesskey=n href="Back-forward-navigation.html#Back%2fforward%20navigation">Back/forward navigation</a>,
Previous:<a rel=previous accesskey=p href="Hiding-the-ECB-windows.html#Hiding%20the%20ECB%20windows">Hiding the ECB windows</a>,
Up:<a rel=up accesskey=u href="Usage-of-ECB.html#Usage%20of%20ECB">Usage of ECB</a>
<hr><br>

<h3>Maximizing the ECB windows</h3>

<h4>How to maximize and minimize special ecb-tree-windows</h4>

<p>To get a better overlook about the contents of a certain ECB-window
every ECB-window can be "maximized", means all other ECB-windows are
deleted so only the edit-window(s) and this maximized ECB-window are
visible (and maybe a compile-window if active). There are several ways
to do this:

<ul>
<li>Via the node-popup-menus of the ECB-windows

<li>Via the main "ECB"-menu and here "Display window maximized"

<li>Via calling the adviced version of
<code>delete-other-windows</code><a rel=footnote href="#fn-1"><sup>1</sup></a> (bound to <kbd>C-x 1</kbd>) in one of
the ECB windows.

<li>Via one of the commands <code>ecb-maximize-window-directories</code>,
<code>ecb-maximize-window-sources</code>, <code>ecb-maximize-window-methods</code>,
<code>ecb-maximize-window-history</code> or
<code>ecb-maximize-window-speedbar</code> or the bound short-cuts for those
commands.

<li>Via the new command <code>ecb-cycle-maximized-ecb-buffers</code> which
cycles through all ecb-buffers of current layout by maximizing exactly
one of the ecb-windows after every cycle-step.

<li>Via the option <code>ecb-maximize-ecb-window-after-selection</code> and then
just by selecting an ECB-window. "Deselecting" an ECB-window brings
back all ECB-windows of current layout.

<li>Via the default modeline-mechanisms for deleting other windows. GNU
Emacs binds <kbd>mouse-2</kbd> in its modeline to
<code>delete-other-window</code>. XEmacs binds a popup-menu with some window
commands to <kbd>button-3</kbd> in its modeline.

<p>ECB combines the best of both worlds by supporting both of these
mechanisms for both Xemacs and Emacs: ECB binds a toggle-command to
<kbd>mouse-2</kbd> in the modeline of each tree-buffer which maximizes the
current tree-window if all ECB-windows are visible and displays all
ECB-windows if current tree-window is maximized. In addition ECB binds
a popup-menu to <kbd>mouse-3</kbd> which offers exactly 2 commands:
Maximizing current tree-window and displaying all ECB-windows. 
</ul>

<p>"Minimizing" such a maximized ECB-window, i.e. bringing back to its
original size and displays all ecb-windows of current layout, can
simply be done by redrawing the layout via the command
<code>ecb-redraw-layout</code> (bound to <kbd>C-c . lr</kbd>).

<h4>Selecting a node in a maximized ecb-tree-window</h4>

<p>When you select a node (either via mouse or RET) in a maximized
tree-window the default behavior of ECB is the following:

<p>Maximized directories-window: When selecting a directory then first
automatically the maximized directories-window will be "minimized"
(i.e. all ecb-windows of current layout are displayed) if the current
layout contains a sources-buffer and no sources are shown in the
directories-window - see <code>ecb-show-sources-in-directories-buffer</code>. 
So the source-files can be displayed in the sources-window.

<p>Maximized sources- or history-window: When selecting a source-file in
one of these buffers then first automatically the maximized window
will be "minimized" (i.e. all ecb-windows of current layout are
displayed) if the current layout contains a methods-buffer. So the
tag-contents of the selected source-file can be displayed in the
methods-window.

<p>For a even smarter behavior ECB offers the option
<code>ecb-maximize-next-after-maximized-select</code> which automatically
maximizes the next logical tree-window after a node selection. The
definition of "next logical is": Directories -&gt; sources,
sources/history -&gt; methods. But if the current maximized tree-buffer
is also contained in the option
<code>ecb-tree-do-not-leave-window-after-select</code> (see also the
tree-buffer-command <code>ecb-toggle-do-not-leave-window-after-select</code>
which is bound to &lt;C-t&gt; in each tree-buffer) then ECB does *not*
maximize the next logical tree-window but point stays in the currently
maximized tree-buffer so for example the user can select more than one
source-file from the sources-buffer.

<hr><h4>Footnotes</h4>
<ol type="1">
<li><a name="fn-1"></a>
<p>This command is adviced per
default, see <a href="The-edit-area.html#The%20edit-area">The edit-area</a>.</p>

</ol><hr>

</body></html>