Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1682

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WDatePicker Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WDatePicker.html">WDatePicker</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WDatePicker Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WDatePicker" --><!-- doxytag: inherits="Wt::WCompositeWidget" -->
<p>A date picker.  
 <a href="classWt_1_1WDatePicker.html#details">More...</a></p>

<p><code>#include &lt;Wt/WDatePicker&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WDatePicker:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WDatePicker__inherit__graph.png" border="0" usemap="#Wt_1_1WDatePicker_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WDatePicker_inherit__map" id="Wt_1_1WDatePicker_inherit__map">
<area shape="rect" href="classWt_1_1WCompositeWidget.html" title="A widget that hides the implementation of composite widgets." alt="" coords="5,155,168,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="37,80,136,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="39,5,135,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WDatePicker-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#ae8d610a63de150c34d1eedef47611d06">WDatePicker</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new date picker.  <a href="#ae8d610a63de150c34d1eedef47611d06"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a51951906fd4f6b2925059ec9828ae440">WDatePicker</a> (<a class="el" href="classWt_1_1WInteractWidget.html">WInteractWidget</a> *displayWidget, <a class="el" href="classWt_1_1WLineEdit.html">WLineEdit</a> *forEdit, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new date picker for existing line edit and with custom display widget.  <a href="#a51951906fd4f6b2925059ec9828ae440"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca2558c09355ec7902b1da352385e912"></a><!-- doxytag: member="Wt::WDatePicker::~WDatePicker" ref="aca2558c09355ec7902b1da352385e912" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#aca2558c09355ec7902b1da352385e912">~WDatePicker</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a4eea10671eea698aea906802b7f67fde">setFormat</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;format)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the format used for parsing or writing the date in the line edit.  <a href="#a4eea10671eea698aea906802b7f67fde"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#adeaf91b8f2319a28f0090d0a4a07cd68">format</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the format.  <a href="#adeaf91b8f2319a28f0090d0a4a07cd68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WCalendar.html">WCalendar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a6fb5e37c7b81d104c21f2c0f587fe6aa">calendar</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The calendar widget.  <a href="#a6fb5e37c7b81d104c21f2c0f587fe6aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WLineEdit.html">WLineEdit</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a50e3f4c7c700e0628fccebe0cb5d8268">lineEdit</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The line edit.  <a href="#a50e3f4c7c700e0628fccebe0cb5d8268"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WInteractWidget.html">WInteractWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#af91c0bb2fb868faf669380275eb8c667">displayWidget</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The display widget.  <a href="#af91c0bb2fb868faf669380275eb8c667"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#abfeb0d23dece4cf7fa7e9b65c0376f73">date</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The current date.  <a href="#abfeb0d23dece4cf7fa7e9b65c0376f73"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#adc47d5a1b0faf43dfed193f22f93c559">setDate</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;date)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current date.  <a href="#adc47d5a1b0faf43dfed193f22f93c559"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a3f18fb47c77a16d8e1772593eaef6d23">setEnabled</a> (bool enabled)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether the widget is enabled.  <a href="#a3f18fb47c77a16d8e1772593eaef6d23"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a1c632c278617c650b5cafcbc3b4e6d91">setDisabled</a> (bool disabled)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether the widget is disabled.  <a href="#a1c632c278617c650b5cafcbc3b4e6d91"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad294337942c64128fbadad1b432aa030"></a><!-- doxytag: member="Wt::WDatePicker::setHidden" ref="ad294337942c64128fbadad1b432aa030" args="(bool hidden, const WAnimation &amp;animation=WAnimation())" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#ad294337942c64128fbadad1b432aa030">setHidden</a> (bool hidden, const <a class="el" href="classWt_1_1WAnimation.html">WAnimation</a> &amp;animation=<a class="el" href="classWt_1_1WAnimation.html">WAnimation</a>())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hide/unhide the widget. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a00d263440d85d63ad19cfc48482b2f1a"></a><!-- doxytag: member="Wt::WDatePicker::setBottom" ref="a00d263440d85d63ad19cfc48482b2f1a" args="(const WDate &amp;bottom)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a00d263440d85d63ad19cfc48482b2f1a">setBottom</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;bottom)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the bottom of the valid date range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2591db4e8902f2997b050b75bfa47899"></a><!-- doxytag: member="Wt::WDatePicker::bottom" ref="a2591db4e8902f2997b050b75bfa47899" args="() const " -->
<a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a2591db4e8902f2997b050b75bfa47899">bottom</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the bottom date of the valid range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a772dd0063197bcea023be869dc550496"></a><!-- doxytag: member="Wt::WDatePicker::setTop" ref="a772dd0063197bcea023be869dc550496" args="(const WDate &amp;top)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a772dd0063197bcea023be869dc550496">setTop</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;top)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the top of the valid date range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a256df5500fd57b0d4c059b492d40aac9"></a><!-- doxytag: member="Wt::WDatePicker::top" ref="a256df5500fd57b0d4c059b492d40aac9" args="() const " -->
<a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a256df5500fd57b0d4c059b492d40aac9">top</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the top date of the valid range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a9c379cc583e04509d3c50de3ee6aefdc">changed</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emitted when the value has changed.  <a href="#a9c379cc583e04509d3c50de3ee6aefdc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a5ee66d7aafd8fc11fa0ece87af6b76aa">setGlobalPopup</a> (bool global)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Controls how the calendar popup is positioned.  <a href="#a5ee66d7aafd8fc11fa0ece87af6b76aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6fb616d7418b8af4ea70699630e8c733"></a><!-- doxytag: member="Wt::WDatePicker::setPopupVisible" ref="a6fb616d7418b8af4ea70699630e8c733" args="(bool visible)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a6fb616d7418b8af4ea70699630e8c733">setPopupVisible</a> (bool visible)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Shows or hides the popup. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDatePicker.html#a83f07c5bf02567bdce3559fbd725a451">popupClosed</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A signal which indicates that the popup has been closed.  <a href="#a83f07c5bf02567bdce3559fbd725a451"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A date picker. </p>
<p>A date picker shows a line edit and an icon which when clicked popups a <a class="el" href="classWt_1_1WCalendar.html" title="A calendar.">WCalendar</a> for editing the date. Any date entered in the line edit is reflected in the calendar, and vice-versa.</p>
<p>Each of these widgets may be accessed individually (<a class="el" href="classWt_1_1WDatePicker.html#a50e3f4c7c700e0628fccebe0cb5d8268" title="The line edit.">lineEdit()</a>, <a class="el" href="classWt_1_1WDatePicker.html#a6fb5e37c7b81d104c21f2c0f587fe6aa" title="The calendar widget.">calendar()</a>, and <a class="el" href="classWt_1_1WDatePicker.html#af91c0bb2fb868faf669380275eb8c667" title="The display widget.">displayWidget()</a>) and there is a constructor that allows you to specify an existing line edit and display widget.</p>
<p>The date format used by default is <code>"dd/MM/yyyy"</code> and can be changed using <a class="el" href="classWt_1_1WDatePicker.html#a4eea10671eea698aea906802b7f67fde" title="Sets the format used for parsing or writing the date in the line edit.">setFormat()</a>. At any time, the date set may be read using <a class="el" href="classWt_1_1WDatePicker.html#abfeb0d23dece4cf7fa7e9b65c0376f73" title="The current date.">date()</a>, or can be changed using <a class="el" href="classWt_1_1WDatePicker.html#adc47d5a1b0faf43dfed193f22f93c559" title="Sets the current date.">setDate()</a>.</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WDatePicker.html" title="A date picker.">Wt::WDatePicker</a> *picker = <span class="keyword">new</span> <a class="code" href="classWt_1_1WDatePicker.html#ae8d610a63de150c34d1eedef47611d06" title="Create a new date picker.">Wt::WDatePicker</a>(<span class="keyword">this</span>);
 picker-&gt;<a class="code" href="classWt_1_1WDatePicker.html#a4eea10671eea698aea906802b7f67fde" title="Sets the format used for parsing or writing the date in the line edit.">setFormat</a>(<span class="stringliteral">&quot;dd-MM-yyyy&quot;</span>);
 picker-&gt;<a class="code" href="classWt_1_1WDatePicker.html#adc47d5a1b0faf43dfed193f22f93c559" title="Sets the current date.">setDate</a>(<a class="code" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">Wt::WDate</a>(1976, 6, 14));
</pre></div><h3>i18n</h3>
<p>Internationalization of <a class="el" href="classWt_1_1WDatePicker.html" title="A date picker.">WDatePicker</a> is mostly handled through the internationalization mechanism of <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a>. The 'Close' button can be internationalized by overriding the default value for the localization key Wt.DatePicker.Close.</p>
<h3>CSS</h3>
<p>The date picker is styled by the current CSS theme. The look can be overridden using the <code>Wt-datepicker</code> and <code>Wt-outset</code> CSS class; the calendar itself can be styled as documented in <a class="el" href="classWt_1_1WCalendar.html" title="A calendar.">WCalendar</a>.</p>
<table  border="0" align="center">
<tr>
<td><div class="image">
<img src="WDatePicker-default-1.png" alt="WDatePicker-default-1.png"/>
<div class="caption">
Example of a WDatePicker (default theme) </div></div>
  </td><td><div class="image">
<img src="WDatePicker-polished-1.png" alt="WDatePicker-polished-1.png"/>
<div class="caption">
Example of a WDatePicker (polished theme) </div></div>
   </td></tr>
</table>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae8d610a63de150c34d1eedef47611d06"></a><!-- doxytag: member="Wt::WDatePicker::WDatePicker" ref="ae8d610a63de150c34d1eedef47611d06" args="(WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WDatePicker::WDatePicker </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new date picker. </p>
<p>This constructor creates a line edit with an icon that leads to a popup calendar. A <a class="el" href="classWt_1_1WDateValidator.html" title="A validator for date input.">WDateValidator</a> is configured for the line edit. </p>

</div>
</div>
<a class="anchor" id="a51951906fd4f6b2925059ec9828ae440"></a><!-- doxytag: member="Wt::WDatePicker::WDatePicker" ref="a51951906fd4f6b2925059ec9828ae440" args="(WInteractWidget *displayWidget, WLineEdit *forEdit, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WDatePicker::WDatePicker </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WInteractWidget.html">WInteractWidget</a> *&#160;</td>
          <td class="paramname"><em>displayWidget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLineEdit.html">WLineEdit</a> *&#160;</td>
          <td class="paramname"><em>forEdit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new date picker for existing line edit and with custom display widget. </p>
<p>The <code>displayWidget</code> is a button or image which much be clicked to open the date picker. This widget will become owned by the picker.</p>
<p>The <code>forEdit</code> argument is the lineEdit that works in conjunction with the date picker. This widget does not become part of the date picker, and may be located anywhere else. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6fb5e37c7b81d104c21f2c0f587fe6aa"></a><!-- doxytag: member="Wt::WDatePicker::calendar" ref="a6fb5e37c7b81d104c21f2c0f587fe6aa" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WCalendar.html">WCalendar</a>* Wt::WDatePicker::calendar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The calendar widget. </p>
<p>Returns the calendar widget. </p>

</div>
</div>
<a class="anchor" id="a9c379cc583e04509d3c50de3ee6aefdc"></a><!-- doxytag: member="Wt::WDatePicker::changed" ref="a9c379cc583e04509d3c50de3ee6aefdc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&amp; Wt::WDatePicker::changed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal emitted when the value has changed. </p>
<p>This signal is emitted when a new date has been entered (either through the line edit, or through the calendar popup). </p>

</div>
</div>
<a class="anchor" id="abfeb0d23dece4cf7fa7e9b65c0376f73"></a><!-- doxytag: member="Wt::WDatePicker::date" ref="abfeb0d23dece4cf7fa7e9b65c0376f73" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDatePicker::date </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The current date. </p>
<p>Reads the current date from the <a class="el" href="classWt_1_1WDatePicker.html#a50e3f4c7c700e0628fccebe0cb5d8268" title="The line edit.">lineEdit()</a>.</p>
<p>Returns an invalid date (for which <a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">WDate::isValid()</a> returns <code>false</code>) if the date could not be parsed using the current <a class="el" href="classWt_1_1WDatePicker.html#adeaf91b8f2319a28f0090d0a4a07cd68" title="Returns the format.">format()</a>. <br/>
</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDatePicker.html#adc47d5a1b0faf43dfed193f22f93c559" title="Sets the current date.">setDate()</a>, <a class="el" href="classWt_1_1WDate.html#a86383757788870ff2f22bd29536336b7" title="Parses a string to a date using a default format.">WDate::fromString()</a>, <a class="el" href="classWt_1_1WLineEdit.html#ac74b58779cb635898cac13e81d8b0c7a" title="Returns the current content.">WLineEdit::text()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af91c0bb2fb868faf669380275eb8c667"></a><!-- doxytag: member="Wt::WDatePicker::displayWidget" ref="af91c0bb2fb868faf669380275eb8c667" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WInteractWidget.html">WInteractWidget</a>* Wt::WDatePicker::displayWidget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The display widget. </p>
<p>Returns the widget which is displayed to activate the calendar. </p>

</div>
</div>
<a class="anchor" id="adeaf91b8f2319a28f0090d0a4a07cd68"></a><!-- doxytag: member="Wt::WDatePicker::format" ref="adeaf91b8f2319a28f0090d0a4a07cd68" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a>&amp; Wt::WDatePicker::format </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the format. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDatePicker.html#a4eea10671eea698aea906802b7f67fde" title="Sets the format used for parsing or writing the date in the line edit.">setFormat()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a50e3f4c7c700e0628fccebe0cb5d8268"></a><!-- doxytag: member="Wt::WDatePicker::lineEdit" ref="a50e3f4c7c700e0628fccebe0cb5d8268" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLineEdit.html">WLineEdit</a>* Wt::WDatePicker::lineEdit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The line edit. </p>
<p>Returns the line edit which works in conjunction with this date picker. </p>

</div>
</div>
<a class="anchor" id="a83f07c5bf02567bdce3559fbd725a451"></a><!-- doxytag: member="Wt::WDatePicker::popupClosed" ref="a83f07c5bf02567bdce3559fbd725a451" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&amp; Wt::WDatePicker::popupClosed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A signal which indicates that the popup has been closed. </p>
<p>The signal is only fired when the popup has been closed by the user. </p>

</div>
</div>
<a class="anchor" id="adc47d5a1b0faf43dfed193f22f93c559"></a><!-- doxytag: member="Wt::WDatePicker::setDate" ref="adc47d5a1b0faf43dfed193f22f93c559" args="(const WDate &amp;date)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDatePicker::setDate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;&#160;</td>
          <td class="paramname"><em>date</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the current date. </p>
<p>Does nothing if the current date is <code>Null</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDatePicker.html#abfeb0d23dece4cf7fa7e9b65c0376f73" title="The current date.">date()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1c632c278617c650b5cafcbc3b4e6d91"></a><!-- doxytag: member="Wt::WDatePicker::setDisabled" ref="a1c632c278617c650b5cafcbc3b4e6d91" args="(bool disabled)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDatePicker::setDisabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>disabled</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether the widget is disabled. </p>
<p>Enables or disables the widget (including all its descendant widgets). setDisabled(false) will enable this widget and all descendant widgets that are not disabled. A widget is only enabled if it and all its ancestors in the widget tree are disabled.</p>
<p>Typically, a disabled form widget will not allow changing the value, and disabled widgets will not react to mouse click events.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WWidget.html#a5f68ea0ab29adfb8e559153fca281e03" title="Disable thes widget.">disable()</a>, <a class="el" href="classWt_1_1WWidget.html#ae6935d8baca9d37dd1d080b4383da87c" title="Enables the widget.">enable()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WCompositeWidget.html#a5fec2d3fb7010193fd69124d88da063a">Wt::WCompositeWidget</a>.</p>

</div>
</div>
<a class="anchor" id="a3f18fb47c77a16d8e1772593eaef6d23"></a><!-- doxytag: member="Wt::WDatePicker::setEnabled" ref="a3f18fb47c77a16d8e1772593eaef6d23" args="(bool enabled)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDatePicker::setEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether the widget is enabled. </p>
<p>This is the oppositie of <a class="el" href="classWt_1_1WDatePicker.html#a1c632c278617c650b5cafcbc3b4e6d91" title="Sets whether the widget is disabled.">setDisabled()</a>. </p>

</div>
</div>
<a class="anchor" id="a4eea10671eea698aea906802b7f67fde"></a><!-- doxytag: member="Wt::WDatePicker::setFormat" ref="a4eea10671eea698aea906802b7f67fde" args="(const WString &amp;format)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDatePicker::setFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the format used for parsing or writing the date in the line edit. </p>
<p>Sets the format used for representing the date in the line edit. If the line edit has a <a class="el" href="classWt_1_1WDateValidator.html" title="A validator for date input.">WDateValidator</a> configured for it, then also there the format is updated.</p>
<p>The default format is <code>'dd/MM/yyyy'</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDatePicker.html#adeaf91b8f2319a28f0090d0a4a07cd68" title="Returns the format.">format()</a>, <a class="el" href="classWt_1_1WDate.html#a1d9b6450f5f6126722f07c971ea9e4c0" title="Formats this date to a string using a default format.">WDate::toString()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5ee66d7aafd8fc11fa0ece87af6b76aa"></a><!-- doxytag: member="Wt::WDatePicker::setGlobalPopup" ref="a5ee66d7aafd8fc11fa0ece87af6b76aa" args="(bool global)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDatePicker::setGlobalPopup </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>global</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Controls how the calendar popup is positioned. </p>
<p>When <code>global</code> is <code>true</code>, then the popup will position itself globally. This avoids that the popup is affected by enclosing parents with overflow settings that clip the popup. This makes the popup however no longer follow the popup button when this button moves.</p>
<p>The default is <code>false</code>. </p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>