~ubuntu-branches/debian/lenny/ecb/lenny

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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<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="Using%20the%20mouse">Using the mouse</a>,
Next:<a rel=next accesskey=n href="Using-the-keyboard.html#Using%20the%20keyboard">Using the keyboard</a>,
Previous:<a rel=previous accesskey=p href="Usage-of-ECB.html#Usage%20of%20ECB">Usage of ECB</a>,
Up:<a rel=up accesskey=u href="Usage-of-ECB.html#Usage%20of%20ECB">Usage of ECB</a>
<hr><br>

<h3>Working with the mouse in the ECB-windows</h3>

<p>Normally you get best usage if you use ECB with a mouse. ECB
distinguishes between a <dfn>primary</dfn> and a <dfn>secondary</dfn>
mouse-button.

<p>With the option <code>ecb-primary-secondary-mouse-buttons</code> the following
combinations of primary and secondary mouse-buttons are possible:

<ul>
<li>primary: mouse-2, secondary: C-mouse-2<a rel=footnote href="#fn-1"><sup>1</sup></a>. This is the default.

<li>primary: mouse-1, secondary: C-mouse-1

<li>primary: mouse-1, secondary: mouse-2
</ul>

<p>If you change this during ECB is activated you must deactivate and activate
ECB again to take effect.

<h4>The primary mouse-button</h4>

<p>A click with the primary button causes the main effect in each ECB-buffer:

<ul>
<li>ECB Directories:
Expanding/collapsing nodes and displaying files in the ECB-Sources
buffer.

<li>ECB sources/history:
Opening the file in that edit-window specified by the option
<code>ecb-mouse-click-destination</code>.

<li>ECB Methods:
Jumping to the method in that edit-window specified by the option
<code>ecb-mouse-click-destination</code>. 
</ul>

<h4>The POWER- or SHIFT-click</h4>

<p>A click with the primary mouse-button while the SHIFT-key is pressed
is called the POWER-click and does the following (depending on the
ECB-buffer where the POWER-click occurs):

<ul>
<li>ECB Directory:
Refreshing the directory-contents-cache (see
<code>ecb-cache-directory-contents</code>).

<li>ECB sources/history:
Only displaying the source-contents in the method-buffer but not
displaying the source-file in an edit-window. This means it opens the
clicked source only in the background and shows all its
methods/variables in ECB-Methods; the buffer of the edit-window is not
changed! This is very useful to get only an overlook for a certain
source.

<li>ECB Methods:
Narrowing to the clicked method/variable/ect... (see
<code>ecb-tag-visit-post-actions</code>). But this works only for sources
parsed by semantic, not by imenu or etags! 
</ul>

<p>Per default the complete node-name of an item in a tree-buffer is
displayed in the echo-area if the mouse moves over it, regardless if
the related window is the active one or not. You get the same effect
always after a POWER-click. In general: Via
<code>ecb-show-node-info-in-minibuffer</code> you can specify in a detailed
manner for every ECB tree-buffer when and which node-info should be
displayed in the minibuffer.

<h4>The secondary mouse-button</h4>

<p>The secondary mouse-button is for opening (jumping to) the file in
another edit-window (see the documentation of the option
<code>ecb-mouse-click-destination</code>).

<h4>The right mouse-button</h4>

<p>In each ECB-buffer mouse-3 (= right button) opens a special context
popup-menu for the clicked item where you can choose several senseful
actions.

<p>With the options <code>ecb-directories-menu-user-extension</code>,
<code>ecb-sources-menu-user-extension</code>,
<code>ecb-methods-menu-user-extension</code> and
<code>ecb-history-menu-user-extension</code> you can add statically new
commands to the popup-menus. See the docstring of
<code>ecb-directories-menu-user-extension</code> for more details.

<p>With the options <code>ecb-directories-menu-user-extension-function</code>,
<code>ecb-sources-menu-user-extension-function</code>,
<code>ecb-methods-menu-user-extension-function</code> and
<code>ecb-history-menu-user-extension-function</code> you can add new
commands to the popup-menus in a dynamic manner. See the docstring of
<code>ecb-directories-menu-user-extension-function</code> for more details.

<p>With the options <code>ecb-directories-menu-sorter</code>,
<code>ecb-sources-menu-sorter</code>, <code>ecb-methods-menu-sorter</code> and
<code>ecb-history-menu-sorter</code> you can even re-arrange all the entries
of the popup-menus.

<h4>Horizontal scrolling with the mouse</h4>

<p>In each tree-buffer of ECB you can easily scroll left and right with
the mouse if the option <code>ecb-tree-easy-hor-scroll</code> is not
<code>nil</code>.

<p>The reason for this is: XEmacs has horizontal scroll-bars so invisible
parts beyond the right window-border of a tree-buffer can always made
visible very easy.

<p>GNU Emacs does not have hor. scroll-bars so especially with the mouse
it is quite impossible to scroll smoothly right and left. The
functions <code>scroll-left</code> and <code>scroll-right</code> can be annoying
and are also not bound to mouse-buttons.

<p>ECB offers three ways for smoothly hor. scrolling with GNU Emacs if
<code>ecb-tree-easy-hor-scroll</code> is a positive integer-value S:

<ul>
<li>In all ECB-tree-buffers the keys <kbd>M-mouse-1</kbd> and <kbd>M-mouse-3</kbd>
are bound to scrolling left rsp. right with scroll-step S.

<li>Clicking with mouse-1 or mouse-2 onto the edge of the modeline has the
same effect, i.e. if you click with mouse-1 onto the left \(resp
right) edge of the modeline you will scroll left \(resp. right) with
scroll-step S.

<li>Additionally <kbd>C-M-mouse-1</kbd> and <code>C-M-mouse-3</code> are bound to
scrolling left rsp. right with scroll-step <code>window-width</code> - 2. 
</ul>

<p>This is NOT done for XEmacs cause of its horizontal scrollbars. If you
want scrolling left and right with the mouse in XEmacs then activate
the horizontal scrollbars.

<hr><h4>Footnotes</h4>
<ol type="1">
<li><a name="fn-1"></a>
<p>means mouse-2 while CTRL-key
is pressed.</p>

</ol><hr>

</body></html>