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 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
|
<!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::WPanel 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_1WPanel.html">WPanel</a>
</div>
</div>
<div class="contents">
<h1>Wt::WPanel Class Reference</h1><!-- doxytag: class="Wt::WPanel" --><!-- doxytag: inherits="Wt::WCompositeWidget" -->A WPanel provides a container with a title bar.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WPanel></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WPanel:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WPanel__inherit__graph.png" border="0" usemap="#Wt_1_1WPanel__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WPanel__inherit__map">
<area shape="rect" href="classWt_1_1WCompositeWidget.html" title="A widget that hides the implementation of composite widgets." alt="" coords="5,155,165,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="37,80,133,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="37,5,133,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WPanel-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="4c05851cf3ea39b796974b84eebd68bd"></a><!-- doxytag: member="Wt::WPanel::WPanel" ref="4c05851cf3ea39b796974b84eebd68bd" args="(WContainerWidget *parent=0)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#4c05851cf3ea39b796974b84eebd68bd">WPanel</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a panel. <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_1WPanel.html#3e2feec27482003f4abd921c22b1b0c3">setTitle</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &title)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets a title. <a href="#3e2feec27482003f4abd921c22b1b0c3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#56ed246e0065e1ed78e639c1adc32adc">title</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the title. <a href="#56ed246e0065e1ed78e639c1adc32adc"></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_1WPanel.html#9671893042605eb936c7301f6de09d3f">setTitleBar</a> (bool enable)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shows or hides the title bar for the panel. <a href="#9671893042605eb936c7301f6de09d3f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#310ea9e57d6ed4c10cbaf865063486d6">titleBar</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns if a title bar is set. <a href="#310ea9e57d6ed4c10cbaf865063486d6"></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_1WPanel.html#ce945a192f671220a5a2cda671dc37ca">setCollapsible</a> (bool on)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Makes the panel collapsible. <a href="#ce945a192f671220a5a2cda671dc37ca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#ad805b67215219f72d8f3b849c898860">isCollapsible</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns if the panel can be collapsed by the user. <a href="#ad805b67215219f72d8f3b849c898860"></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_1WPanel.html#cbb49b380277b5b78b18902a671abcb4">setCollapsed</a> (bool on)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the panel expanded or collapsed. <a href="#cbb49b380277b5b78b18902a671abcb4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#9d9d4cced04f55464b20744ab88aa145">isCollapsed</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns if the panel is collapsed. <a href="#9d9d4cced04f55464b20744ab88aa145"></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_1WPanel.html#efd66ff6dd8e2a1108e70efec4eab1b5">collapse</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Collapses the panel. <a href="#efd66ff6dd8e2a1108e70efec4eab1b5"></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_1WPanel.html#2ac9a05172675559b6f988083a4fd666">expand</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Collapses the panel. <a href="#2ac9a05172675559b6f988083a4fd666"></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_1WPanel.html#74f87b8eacf87d9df2704fc97ce9c37f">setCentralWidget</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the central widget. <a href="#74f87b8eacf87d9df2704fc97ce9c37f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#699291066eef6f3dccad30cb592ad97c">centralWidget</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the central widget. <a href="#699291066eef6f3dccad30cb592ad97c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#c0926907f1ce9da82dcdc114aeda6e6c">collapsed</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signal emitted when the panel is collapsed. <a href="#c0926907f1ce9da82dcdc114aeda6e6c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPanel.html#c5c430375eae4b14e46214fd8a103062">expanded</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signal emitted when the panel is expanded. <a href="#c5c430375eae4b14e46214fd8a103062"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A WPanel provides a container with a title bar.
<p>
The panel provides a container with an optional title bar, and an optional collapse icon.<p>
Usage example: <div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WPanel.html" title="A WPanel provides a container with a title bar.">Wt::WPanel</a> *panel = <span class="keyword">new</span> <a class="code" href="classWt_1_1WPanel.html" title="A WPanel provides a container with a title bar.">Wt::WPanel</a>();
panel-><a class="code" href="classWt_1_1WPanel.html#3e2feec27482003f4abd921c22b1b0c3" title="Sets a title.">setTitle</a>(<span class="stringliteral">"A panel"</span>);
panel-><a class="code" href="classWt_1_1WPanel.html#74f87b8eacf87d9df2704fc97ce9c37f" title="Sets the central widget.">setCentralWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"This is the panel contents"</span>));
panel-><a class="code" href="classWt_1_1WPanel.html#ce945a192f671220a5a2cda671dc37ca" title="Makes the panel collapsible.">setCollapsible</a>(<span class="keyword">true</span>);
</pre></div><p>
<div align="center">
<img src="WPanel-default-1.png" alt="WPanel-default-1.png">
<p><strong>Two panels: one collapsed and one expanded (default theme)</strong></p></div>
<div align="center">
<img src="WPanel-polished-1.png" alt="WPanel-polished-1.png">
<p><strong>Two panels: one collapsed and one expanded (polished theme)</strong></p></div>
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This widget is in development. It will provide features similar to the <a class="el" href="classWt_1_1Ext_1_1Panel.html" title="A container with a title and standard GUI elements.">Ext::Panel</a>.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Ext_1_1Panel.html" title="A container with a title and standard GUI elements.">Ext::Panel</a></dd></dl>
<h3>CSS</h3>
<p>
A panel has the <code>Wt-panel</code> and <code>Wt-outset</code> style classes. The look can be overridden using the following style class selectors:<p>
<div class="fragment"><pre class="fragment">
.Wt-panel .titlebar : The title bar
.Wt-panel .body : The body (requires vertical padding 4px).
</pre></div> <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="3e2feec27482003f4abd921c22b1b0c3"></a><!-- doxytag: member="Wt::WPanel::setTitle" ref="3e2feec27482003f4abd921c22b1b0c3" args="(const WString &title)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WPanel::setTitle </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td>
<td class="paramname"> <em>title</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets a title.
<p>
The panel title is set in the title bar. This method also makes the title bar visible by calling setTitleBar(true).<p>
The default value is "" (no title).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#56ed246e0065e1ed78e639c1adc32adc" title="Returns the title.">title()</a>, <a class="el" href="classWt_1_1WPanel.html#9671893042605eb936c7301f6de09d3f" title="Shows or hides the title bar for the panel.">setTitleBar(bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="56ed246e0065e1ed78e639c1adc32adc"></a><!-- doxytag: member="Wt::WPanel::title" ref="56ed246e0065e1ed78e639c1adc32adc" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WPanel::title </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the title.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#3e2feec27482003f4abd921c22b1b0c3" title="Sets a title.">setTitle(const WString&)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9671893042605eb936c7301f6de09d3f"></a><!-- doxytag: member="Wt::WPanel::setTitleBar" ref="9671893042605eb936c7301f6de09d3f" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WPanel::setTitleBar </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>enable</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Shows or hides the title bar for the panel.
<p>
The title bar appears at the top of the panel.<p>
The default value is <code>false:</code> the title bar is not shown unless a title is set or the panel is made collapsible.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#3e2feec27482003f4abd921c22b1b0c3" title="Sets a title.">setTitle(const WString&)</a>, <a class="el" href="classWt_1_1WPanel.html#ce945a192f671220a5a2cda671dc37ca" title="Makes the panel collapsible.">setCollapsible(bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="310ea9e57d6ed4c10cbaf865063486d6"></a><!-- doxytag: member="Wt::WPanel::titleBar" ref="310ea9e57d6ed4c10cbaf865063486d6" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WPanel::titleBar </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns if a title bar is set.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#9671893042605eb936c7301f6de09d3f" title="Shows or hides the title bar for the panel.">setTitleBar(bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="ce945a192f671220a5a2cda671dc37ca"></a><!-- doxytag: member="Wt::WPanel::setCollapsible" ref="ce945a192f671220a5a2cda671dc37ca" args="(bool on)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WPanel::setCollapsible </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>on</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Makes the panel collapsible.
<p>
When <code>on</code> is <code>true</code>, a collapse/expand icon is added to the title bar. This also calls setTitleBar(true) to enable the title bar.<p>
The default value is <code>false</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#9671893042605eb936c7301f6de09d3f" title="Shows or hides the title bar for the panel.">setTitleBar(bool)</a>, <a class="el" href="classWt_1_1WPanel.html#cbb49b380277b5b78b18902a671abcb4" title="Sets the panel expanded or collapsed.">setCollapsed(bool)</a>, <a class="el" href="classWt_1_1WPanel.html#9d9d4cced04f55464b20744ab88aa145" title="Returns if the panel is collapsed.">isCollapsed()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="ad805b67215219f72d8f3b849c898860"></a><!-- doxytag: member="Wt::WPanel::isCollapsible" ref="ad805b67215219f72d8f3b849c898860" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WPanel::isCollapsible </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns if the panel can be collapsed by the user.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#ce945a192f671220a5a2cda671dc37ca" title="Makes the panel collapsible.">setCollapsible(bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="cbb49b380277b5b78b18902a671abcb4"></a><!-- doxytag: member="Wt::WPanel::setCollapsed" ref="cbb49b380277b5b78b18902a671abcb4" args="(bool on)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WPanel::setCollapsed </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>on</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the panel expanded or collapsed.
<p>
When <code>on</code> is <code>true</code>, equivalent to <a class="el" href="classWt_1_1WPanel.html#efd66ff6dd8e2a1108e70efec4eab1b5" title="Collapses the panel.">collapse()</a>, otherwise to <a class="el" href="classWt_1_1WPanel.html#2ac9a05172675559b6f988083a4fd666" title="Collapses the panel.">expand()</a>.<p>
The default value is <code>false</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#ce945a192f671220a5a2cda671dc37ca" title="Makes the panel collapsible.">setCollapsible(bool)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9d9d4cced04f55464b20744ab88aa145"></a><!-- doxytag: member="Wt::WPanel::isCollapsed" ref="9d9d4cced04f55464b20744ab88aa145" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WPanel::isCollapsed </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns if the panel is collapsed.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#cbb49b380277b5b78b18902a671abcb4" title="Sets the panel expanded or collapsed.">setCollapsed(bool)</a> <p>
<a class="el" href="classWt_1_1WPanel.html#c0926907f1ce9da82dcdc114aeda6e6c" title="Signal emitted when the panel is collapsed.">collapsed()</a>, <a class="el" href="classWt_1_1WPanel.html#c5c430375eae4b14e46214fd8a103062" title="Signal emitted when the panel is expanded.">expanded()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="efd66ff6dd8e2a1108e70efec4eab1b5"></a><!-- doxytag: member="Wt::WPanel::collapse" ref="efd66ff6dd8e2a1108e70efec4eab1b5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WPanel::collapse </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Collapses the panel.
<p>
When <a class="el" href="classWt_1_1WPanel.html#ad805b67215219f72d8f3b849c898860" title="Returns if the panel can be collapsed by the user.">isCollapsible()</a> is true, the panel is collapsed to minimize screen real-estate.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#ce945a192f671220a5a2cda671dc37ca" title="Makes the panel collapsible.">setCollapsible(bool)</a>, <a class="el" href="classWt_1_1WPanel.html#2ac9a05172675559b6f988083a4fd666" title="Collapses the panel.">expand()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="2ac9a05172675559b6f988083a4fd666"></a><!-- doxytag: member="Wt::WPanel::expand" ref="2ac9a05172675559b6f988083a4fd666" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WPanel::expand </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Collapses the panel.
<p>
When <a class="el" href="classWt_1_1WPanel.html#ad805b67215219f72d8f3b849c898860" title="Returns if the panel can be collapsed by the user.">isCollapsible()</a> is true, the panel is expanded to its original state.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#ce945a192f671220a5a2cda671dc37ca" title="Makes the panel collapsible.">setCollapsible(bool)</a>, <a class="el" href="classWt_1_1WPanel.html#2ac9a05172675559b6f988083a4fd666" title="Collapses the panel.">expand()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="74f87b8eacf87d9df2704fc97ce9c37f"></a><!-- doxytag: member="Wt::WPanel::setCentralWidget" ref="74f87b8eacf87d9df2704fc97ce9c37f" args="(WWidget *)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WPanel::setCentralWidget </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td>
<td class="paramname"> <em>w</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the central widget.
<p>
Sets the widget that is the contents of the panel. When a widget was previously set, the old widget is deleted first.<p>
The default value is <code>0</code> (no widget set).
</div>
</div><p>
<a class="anchor" name="699291066eef6f3dccad30cb592ad97c"></a><!-- doxytag: member="Wt::WPanel::centralWidget" ref="699291066eef6f3dccad30cb592ad97c" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a>* Wt::WPanel::centralWidget </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the central widget.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#74f87b8eacf87d9df2704fc97ce9c37f" title="Sets the central widget.">setCentralWidget()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c0926907f1ce9da82dcdc114aeda6e6c"></a><!-- doxytag: member="Wt::WPanel::collapsed" ref="c0926907f1ce9da82dcdc114aeda6e6c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>& Wt::WPanel::collapsed </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Signal emitted when the panel is collapsed.
<p>
Signal emitted when the panel is collapsed. The signal is only emitted when the panel is collapsed by the user using the collapse icon in the tible bar, not when calling <a class="el" href="classWt_1_1WPanel.html#cbb49b380277b5b78b18902a671abcb4" title="Sets the panel expanded or collapsed.">setCollapsed(bool)</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#c5c430375eae4b14e46214fd8a103062" title="Signal emitted when the panel is expanded.">expanded()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c5c430375eae4b14e46214fd8a103062"></a><!-- doxytag: member="Wt::WPanel::expanded" ref="c5c430375eae4b14e46214fd8a103062" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>& Wt::WPanel::expanded </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Signal emitted when the panel is expanded.
<p>
Signal emitted when the panel is expanded. The signal is only emitted when the panel is expanded by the user using the expand icon in the title bar, not when calling <a class="el" href="classWt_1_1WPanel.html#cbb49b380277b5b78b18902a671abcb4" title="Sets the panel expanded or collapsed.">setCollapsed(bool)</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPanel.html#c0926907f1ce9da82dcdc114aeda6e6c" title="Signal emitted when the panel is collapsed.">collapsed()</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>
|