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 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WInteractWidget Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WInteractWidget.html">WInteractWidget</a>
</div>
</div>
<div class="contents">
<h1>Wt::WInteractWidget Class Reference</h1><!-- doxytag: class="Wt::WInteractWidget" --><!-- doxytag: inherits="Wt::WWebWidget" -->An abstract widget that can receive user-interface interaction.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WInteractWidget></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WInteractWidget:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WInteractWidget__inherit__graph.png" border="0" usemap="#Wt_1_1WInteractWidget__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WInteractWidget__inherit__map">
<area shape="rect" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets." alt="" coords="659,183,811,209"><area shape="rect" href="classWt_1_1WFormWidget.html" title="An abstract widget that corresponds to an HTML form element." alt="" coords="671,461,799,488"><area shape="rect" href="classWt_1_1WImage.html" title="A widget that displays an image." alt="" coords="688,512,781,539"><area shape="rect" href="classWt_1_1WLabel.html" title="A label for a form field." alt="" coords="691,563,779,589"><area shape="rect" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics." alt="" coords="664,613,805,640"><area shape="rect" href="classWt_1_1WTable.html" title="A container widget which provides layout of children in a table grid." alt="" coords="691,664,779,691"><area shape="rect" href="classWt_1_1WTemplate.html" title="A widget that renders an XHTML template." alt="" coords="680,715,789,741"><area shape="rect" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text." alt="" coords="693,765,776,792"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="297,588,420,615"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="151,588,247,615"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="5,588,101,615"><area shape="rect" href="classWt_1_1Ext_1_1Splitter.html" title="A container widget with resize handles between its children." alt="" coords="900,5,1015,32"><area shape="rect" href="classWt_1_1WAnchor.html" title="A widget that represents an HTML anchor (to link to other documents)." alt="" coords="909,56,1005,83"><area shape="rect" href="classWt_1_1WFlashObject.html" title="A widget that renders a Flash object (also known as Flash movie)." alt="" coords="893,107,1021,133"><area shape="rect" href="classWt_1_1WGroupBox.html" title="A widget which group widgets into a frame with a title." alt="" coords="900,157,1015,184"><area shape="rect" href="classWt_1_1WOverlayLoadingIndicator.html" title="A more obvious loading indicator that grays the window." alt="" coords="859,208,1056,235"><area shape="rect" href="classWt_1_1WStackedWidget.html" title="A container widget that stacks its widgets on top of each other." alt="" coords="885,259,1029,285"><area shape="rect" href="classWt_1_1WTableCell.html" title="A container widget that represents a cell in a table." alt="" coords="903,309,1012,336"><area shape="rect" href="classWt_1_1WAbstractToggleButton.html" title="An abstract base class for radio buttons and check boxes." alt="" coords="867,360,1048,387"><area shape="rect" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control." alt="" coords="897,411,1017,437"><area shape="rect" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit." alt="" coords="905,461,1009,488"><area shape="rect" href="classWt_1_1WPushButton.html" title="A widget that represents a push button." alt="" coords="895,512,1020,539"><area shape="rect" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit." alt="" coords="903,563,1012,589"><area shape="rect" href="classWt_1_1WCheckBox.html" title="A user control that represents a check box." alt="" coords="1137,309,1255,336"><area shape="rect" href="classWt_1_1WRadioButton.html" title="A user control that represents a radio button." alt="" coords="1132,360,1260,387"><area shape="rect" href="classWt_1_1WSelectionBox.html" title="A selection box allows selection from a list of options." alt="" coords="1129,411,1263,437"><area shape="rect" href="classWt_1_1WTextEdit.html" title="A rich-text XHTML editor." alt="" coords="1144,563,1248,589"><area shape="rect" href="classWt_1_1Chart_1_1WAbstractChart.html" title="Abstract base class for MVC-based charts." alt="" coords="869,613,1045,640"><area shape="rect" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart." alt="" coords="1105,613,1287,640"><area shape="rect" href="classWt_1_1Chart_1_1WPieChart.html" title="A pie chart." alt="" coords="1123,664,1269,691"><area shape="rect" href="classWt_1_1WDefaultLoadingIndicator.html" title="A default loading indicator." alt="" coords="861,765,1053,792"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WInteractWidget-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="76de423b005efb0d216fd6e7204abbc1"></a><!-- doxytag: member="Wt::WInteractWidget::WInteractWidget" ref="76de423b005efb0d216fd6e7204abbc1" args="(WContainerWidget *parent=0)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#76de423b005efb0d216fd6e7204abbc1">WInteractWidget</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an InteractWidget with optional parent. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#8669f2d35aad5091837b97bd00f25223">keyWentDown</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when a keyboard key is pushed down. <a href="#8669f2d35aad5091837b97bd00f25223"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#6d4c957a92eb6ffec59a638dd384c6c9">keyPressed</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when a "character" was entered. <a href="#6d4c957a92eb6ffec59a638dd384c6c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#7602bfbe38090d4acca674afc02f15c8">keyWentUp</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when a keyboard key is released. <a href="#7602bfbe38090d4acca674afc02f15c8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#38f06d1ad95e7599b055f49931236c10">enterPressed</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when enter was pressed. <a href="#38f06d1ad95e7599b055f49931236c10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#b581bba7f0ce02380e9339198bac2f78">escapePressed</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when escape was pressed. <a href="#b581bba7f0ce02380e9339198bac2f78"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#e11e050cce0d4a8f742afa3ef92bfe8c">clicked</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when a mouse key was clicked on this widget. <a href="#e11e050cce0d4a8f742afa3ef92bfe8c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#8865f4bb679e5c3ff2c946ef83248e19">doubleClicked</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when a mouse key was double clicked on this widget. <a href="#8865f4bb679e5c3ff2c946ef83248e19"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#d29946ac46183ca238229327479084ca">mouseWentDown</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when a mouse key was pushed down on this widget. <a href="#d29946ac46183ca238229327479084ca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#318d761e35388a52eeb3406e6717b28f">mouseWentUp</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when a mouse key was released on this widget. <a href="#318d761e35388a52eeb3406e6717b28f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#0511484098ce87ed0038b2881ab316bd">mouseWentOut</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when the mouse went out of this widget. <a href="#0511484098ce87ed0038b2881ab316bd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#89a46ebf7fbcea5a494c4dac13f1dc15">mouseWentOver</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when the mouse entered this widget. <a href="#89a46ebf7fbcea5a494c4dac13f1dc15"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#40c3643603fa861b1ec797eec794aa4c">mouseMoved</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Event signal emitted when the mouse moved over this widget. <a href="#40c3643603fa861b1ec797eec794aa4c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WInteractWidget.html#556c14d02388720b1d95b2149be2e867">setDraggable</a> (const std::string &mimeType, <a class="el" href="classWt_1_1WWidget.html">WWidget</a> *dragWidget=0, bool isDragWidgetOnly=false, <a class="el" href="classWt_1_1WObject.html">WObject</a> *sourceWidget=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Configure dragging. <a href="#556c14d02388720b1d95b2149be2e867"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An abstract widget that can receive user-interface interaction.
<p>
This abstract widget provides access to event signals that correspond to user-interface interaction through mouse or keyboard.<p>
When JavaScript is disabled, only the <a class="el" href="classWt_1_1WInteractWidget.html#e11e050cce0d4a8f742afa3ef92bfe8c" title="Event signal emitted when a mouse key was clicked on this widget.">clicked()</a> event will propagate (but without event details information).<p>
<h3>CSS</h3>
<p>
Styling through CSS is not applicable. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="8669f2d35aad5091837b97bd00f25223"></a><!-- doxytag: member="Wt::WInteractWidget::keyWentDown" ref="8669f2d35aad5091837b97bd00f25223" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> > & Wt::WInteractWidget::keyWentDown </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when a keyboard key is pushed down.
<p>
The keyWentDown signal is the first signal emitted when a key is pressed (before the keyPressed signal). Unlike <a class="el" href="classWt_1_1WInteractWidget.html#6d4c957a92eb6ffec59a638dd384c6c9" title="Event signal emitted when a "character" was entered.">keyPressed()</a> however it is also emitted for modifier keys (such as "shift", "control", ...) or keyboard navigation keys that do not have a corresponding character.<p>
Form widgets (like <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>) will receive key events when focussed. Other widgets will receive key events when they contain (directly or indirectly) a form widget that has focus.<p>
To capture a key down event when no element has focus, see <a class="el" href="classWt_1_1WApplication.html#0a9652fc0d0cbebca7966f98454b078a" title="Event signal emitted when a keyboard key is pushed down.">WApplication::globalKeyWentDown()</a><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WInteractWidget.html#6d4c957a92eb6ffec59a638dd384c6c9" title="Event signal emitted when a "character" was entered.">keyPressed()</a>, <a class="el" href="classWt_1_1WInteractWidget.html#7602bfbe38090d4acca674afc02f15c8" title="Event signal emitted when a keyboard key is released.">keyWentUp()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="6d4c957a92eb6ffec59a638dd384c6c9"></a><!-- doxytag: member="Wt::WInteractWidget::keyPressed" ref="6d4c957a92eb6ffec59a638dd384c6c9" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> > & Wt::WInteractWidget::keyPressed </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when a "character" was entered.
<p>
The keyPressed signal is emitted when a key is pressed, and a character is entered. Unlike <a class="el" href="classWt_1_1WInteractWidget.html#8669f2d35aad5091837b97bd00f25223" title="Event signal emitted when a keyboard key is pushed down.">keyWentDown()</a>, it is emitted only for key presses that result in a character being entered, and thus not for modifier keys or keyboard navigation keys.<p>
Form widgets (like <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>) will receive key events when focussed. Other widgets will receive key events when they contain (directly or indirectly) a form widget that has focus.<p>
To capture a key press when no element has focus, see <a class="el" href="classWt_1_1WApplication.html#7d8f807eee7191ae6b7f6f7fe2ab2fae" title="Event signal emitted when a "character" was entered.">WApplication::globalKeyPressed()</a><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WInteractWidget.html#8669f2d35aad5091837b97bd00f25223" title="Event signal emitted when a keyboard key is pushed down.">keyWentDown()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="7602bfbe38090d4acca674afc02f15c8"></a><!-- doxytag: member="Wt::WInteractWidget::keyWentUp" ref="7602bfbe38090d4acca674afc02f15c8" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WKeyEvent.html">WKeyEvent</a> > & Wt::WInteractWidget::keyWentUp </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when a keyboard key is released.
<p>
This is the counter-part of the <a class="el" href="classWt_1_1WInteractWidget.html#8669f2d35aad5091837b97bd00f25223" title="Event signal emitted when a keyboard key is pushed down.">keyWentDown()</a> event. Every key-down has its corresponding key-up.<p>
Form widgets (like <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>) will receive key events when focussed. Other widgets will receive key events when they contain (directly or indirectly) a form widget that has focus.<p>
To capture a key up event when no element has focus, see <a class="el" href="classWt_1_1WApplication.html#a2a569eabc35162f4b2a72c36a24cd80" title="Event signal emitted when a keyboard key is released.">WApplication::globalKeyWentUp()</a><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WInteractWidget.html#8669f2d35aad5091837b97bd00f25223" title="Event signal emitted when a keyboard key is pushed down.">keyWentDown()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="38f06d1ad95e7599b055f49931236c10"></a><!-- doxytag: member="Wt::WInteractWidget::enterPressed" ref="38f06d1ad95e7599b055f49931236c10" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> & Wt::WInteractWidget::enterPressed </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when enter was pressed.
<p>
This signal is emitted when the Enter or Return key was pressed.<p>
Form widgets (like <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>) will receive key events when focussed. Other widgets will receive key events when they contain (directly or indirectly) a form widget that has focus.<p>
To capture an enter press when no element has focus, see <a class="el" href="classWt_1_1WApplication.html#60c1defb57949f6f78c6c1373a18e74e" title="Event signal emitted when enter was pressed.">WApplication::globalEnterPressed()</a><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WInteractWidget.html#6d4c957a92eb6ffec59a638dd384c6c9" title="Event signal emitted when a "character" was entered.">keyPressed()</a>, <a class="el" href="group__signalslot.html#gg34e65660d30e69c56aa636a8856aa52db3c8e06184697e8b55705ec6e92ef57a" title="Enter key.">Key_Enter</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="b581bba7f0ce02380e9339198bac2f78"></a><!-- doxytag: member="Wt::WInteractWidget::escapePressed" ref="b581bba7f0ce02380e9339198bac2f78" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> & Wt::WInteractWidget::escapePressed </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when escape was pressed.
<p>
This signal is emitted when the Escape key was pressed.<p>
Form widgets (like <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>) will receive key events when focussed. Other widgets will receive key events when they contain (directly or indirectly) a form widget that has focus.<p>
To capture an escape press when no element has focus, see <a class="el" href="classWt_1_1WApplication.html#b4d42f698c48bf84fcc807cb597a0509" title="Event signal emitted when escape was pressed.">WApplication::globalEscapePressed()</a><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WInteractWidget.html#6d4c957a92eb6ffec59a638dd384c6c9" title="Event signal emitted when a "character" was entered.">keyPressed()</a>, <a class="el" href="group__signalslot.html#gg34e65660d30e69c56aa636a8856aa52d6fdfa052fee9a0ecad21a8ef29fc4a5a" title="Escape key.">Key_Escape</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="e11e050cce0d4a8f742afa3ef92bfe8c"></a><!-- doxytag: member="Wt::WInteractWidget::clicked" ref="e11e050cce0d4a8f742afa3ef92bfe8c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & Wt::WInteractWidget::clicked </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when a mouse key was clicked on this widget.
<p>
The event details contains information such as the <a class="el" href="classWt_1_1WMouseEvent.html#3cb45d106522eaa8b597b2e274053e90">button</a>, optional <a class="el" href="classWt_1_1WMouseEvent.html#c84d28364a178e547d2bc417e3eb2423">keyboard modifiers</a>, and mouse coordinates relative to the <a class="el" href="classWt_1_1WMouseEvent.html#f875dd9a33e6a5dd7cf6aa9dd927e8ef">widget</a>, the window <a class="el" href="classWt_1_1WMouseEvent.html#eac308aadc18ee38d80e49d9357bdcea">window</a>, or the <a class="el" href="classWt_1_1WMouseEvent.html#76d0dffbee01451f043ff603eb133334">document</a>.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, the event details contain invalid information. </dd></dl>
</div>
</div><p>
<a class="anchor" name="8865f4bb679e5c3ff2c946ef83248e19"></a><!-- doxytag: member="Wt::WInteractWidget::doubleClicked" ref="8865f4bb679e5c3ff2c946ef83248e19" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & Wt::WInteractWidget::doubleClicked </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when a mouse key was double clicked on this widget.
<p>
The event details contains information such as the <a class="el" href="classWt_1_1WMouseEvent.html#3cb45d106522eaa8b597b2e274053e90">button</a>, optional <a class="el" href="classWt_1_1WMouseEvent.html#c84d28364a178e547d2bc417e3eb2423">keyboard modifiers</a>, and mouse coordinates relative to the <a class="el" href="classWt_1_1WMouseEvent.html#f875dd9a33e6a5dd7cf6aa9dd927e8ef">widget</a>, the window <a class="el" href="classWt_1_1WMouseEvent.html#eac308aadc18ee38d80e49d9357bdcea">window</a>, or the <a class="el" href="classWt_1_1WMouseEvent.html#76d0dffbee01451f043ff603eb133334">document</a>.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, the signal will never fire. </dd></dl>
</div>
</div><p>
<a class="anchor" name="d29946ac46183ca238229327479084ca"></a><!-- doxytag: member="Wt::WInteractWidget::mouseWentDown" ref="d29946ac46183ca238229327479084ca" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & Wt::WInteractWidget::mouseWentDown </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when a mouse key was pushed down on this widget.
<p>
The event details contains information such as the <a class="el" href="classWt_1_1WMouseEvent.html#3cb45d106522eaa8b597b2e274053e90">button</a>, optional <a class="el" href="classWt_1_1WMouseEvent.html#c84d28364a178e547d2bc417e3eb2423">keyboard modifiers</a>, and mouse coordinates relative to the <a class="el" href="classWt_1_1WMouseEvent.html#f875dd9a33e6a5dd7cf6aa9dd927e8ef">widget</a>, the window <a class="el" href="classWt_1_1WMouseEvent.html#eac308aadc18ee38d80e49d9357bdcea">window</a>, or the <a class="el" href="classWt_1_1WMouseEvent.html#76d0dffbee01451f043ff603eb133334">document</a>.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, the signal will never fire. </dd></dl>
</div>
</div><p>
<a class="anchor" name="318d761e35388a52eeb3406e6717b28f"></a><!-- doxytag: member="Wt::WInteractWidget::mouseWentUp" ref="318d761e35388a52eeb3406e6717b28f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & Wt::WInteractWidget::mouseWentUp </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when a mouse key was released on this widget.
<p>
The event details contains information such as the <a class="el" href="classWt_1_1WMouseEvent.html#3cb45d106522eaa8b597b2e274053e90">button</a>, optional <a class="el" href="classWt_1_1WMouseEvent.html#c84d28364a178e547d2bc417e3eb2423">keyboard modifiers</a>, and mouse coordinates relative to the <a class="el" href="classWt_1_1WMouseEvent.html#f875dd9a33e6a5dd7cf6aa9dd927e8ef">widget</a>, the window <a class="el" href="classWt_1_1WMouseEvent.html#eac308aadc18ee38d80e49d9357bdcea">window</a>, or the <a class="el" href="classWt_1_1WMouseEvent.html#76d0dffbee01451f043ff603eb133334">document</a>.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, the signal will never fire. </dd></dl>
</div>
</div><p>
<a class="anchor" name="0511484098ce87ed0038b2881ab316bd"></a><!-- doxytag: member="Wt::WInteractWidget::mouseWentOut" ref="0511484098ce87ed0038b2881ab316bd" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & Wt::WInteractWidget::mouseWentOut </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when the mouse went out of this widget.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, the signal will never fire. </dd></dl>
</div>
</div><p>
<a class="anchor" name="89a46ebf7fbcea5a494c4dac13f1dc15"></a><!-- doxytag: member="Wt::WInteractWidget::mouseWentOver" ref="89a46ebf7fbcea5a494c4dac13f1dc15" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & Wt::WInteractWidget::mouseWentOver </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when the mouse entered this widget.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, the signal will never fire. </dd></dl>
</div>
</div><p>
<a class="anchor" name="40c3643603fa861b1ec797eec794aa4c"></a><!-- doxytag: member="Wt::WInteractWidget::mouseMoved" ref="40c3643603fa861b1ec797eec794aa4c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1EventSignal.html">EventSignal</a>< <a class="el" href="classWt_1_1WMouseEvent.html">WMouseEvent</a> > & Wt::WInteractWidget::mouseMoved </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Event signal emitted when the mouse moved over this widget.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, the signal will never fire. </dd></dl>
</div>
</div><p>
<a class="anchor" name="556c14d02388720b1d95b2149be2e867"></a><!-- doxytag: member="Wt::WInteractWidget::setDraggable" ref="556c14d02388720b1d95b2149be2e867" args="(const std::string &mimeType, WWidget *dragWidget=0, bool isDragWidgetOnly=false, WObject *sourceWidget=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WInteractWidget::setDraggable </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>mimeType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td>
<td class="paramname"> <em>dragWidget</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>isDragWidgetOnly</em> = <code>false</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1WObject.html">WObject</a> * </td>
<td class="paramname"> <em>sourceWidget</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Configure dragging.
<p>
Enable drag&drop for this widget. The mimeType is used to find a suitable drop target, which must accept dropping of this mimetype.<p>
By default, the entire widget is dragged. One may specify another widget to be dragged (for example the parent as <code>dragWidget</code>) or a <code>dragWidget</code> whose function is only to represent the drag visually (when <code>isDragWidgetOnly</code> = <code>true</code>).<p>
The widget to be identified as source in the dropEvent may be given explicitly, and will default to this widget otherwise.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>When JavaScript is disabled, drag&drop does not work.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WWidget.html#c436c4b99710b9199a9df3a8b4151a69" title="Handles a drop event.">WWidget::dropEvent()</a>, <a class="el" href="classWt_1_1WWidget.html#ebee4b24e8128c08ae4aa3682adf6d8f" title="Sets a mime type to be accepted for dropping.">WWidget::acceptDrops()</a>, <a class="el" href="classWt_1_1WDropEvent.html" title="A class providing details for a drop event.">WDropEvent</a> </dd></dl>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|