File: classWt_1_1Ext_1_1Calendar.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (203 lines) | stat: -rw-r--r-- 11,680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
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
<!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::Ext::Calendar 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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="namespaceWt_1_1Ext.html">Ext</a>::<a class="el" href="classWt_1_1Ext_1_1Calendar.html">Calendar</a>
  </div>
</div>
<div class="contents">
<h1>Wt::Ext::Calendar Class Reference<br>
<small>
[<a class="el" href="group__ext.html">Ext widgets</a>]</small>
</h1><!-- doxytag: class="Wt::Ext::Calendar" --><!-- doxytag: inherits="Wt::Ext::Component" -->A calendar.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/Ext/Calendar&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::Ext::Calendar:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1Ext_1_1Calendar__inherit__graph.png" border="0" usemap="#Wt_1_1Ext_1_1Calendar__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1Ext_1_1Calendar__inherit__map">
<area shape="rect" href="classWt_1_1Ext_1_1Component.html" title="An abstract base class for widgets that can be visually disabled." alt="" coords="5,304,144,331"><area shape="rect" href="classWt_1_1Ext_1_1Widget.html" title="An abstract base class for all Ext widgets." alt="" coords="19,229,131,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="13,155,136,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="27,80,123,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="27,5,123,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1Ext_1_1Calendar-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1Calendar.html#2d4f71ffe544bb03fc5851b2c3b371bb">Calendar</a> (bool i18n=false, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new calendar.  <a href="#2d4f71ffe544bb03fc5851b2c3b371bb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1Calendar.html#a9100d67bf50b81ee6ce1313b4d5b216">select</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;date)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Select a date.  <a href="#a9100d67bf50b81ee6ce1313b4d5b216"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::set&lt; <a class="el" href="classWt_1_1WDate.html">WDate</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1Calendar.html#8dc46727fc4d990f101b47adf52c67b8">selection</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the current selection.  <a href="#8dc46727fc4d990f101b47adf52c67b8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; void &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1Calendar.html#b46d39379ddd1faeea1eb95aa403eda1">selectionChanged</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the user changes the selection.  <a href="#b46d39379ddd1faeea1eb95aa403eda1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; void &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Ext_1_1Calendar.html#6b1c98ac0a89db6281ff0903a0bd90e5">selected</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the user has selected a date.  <a href="#6b1c98ac0a89db6281ff0903a0bd90e5"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A calendar. 
<p>
The calendar provides navigation by month and year, and indicates the current day.<p>
The calendar only allows selection of a single day, and you may listen for when the user selects a new date using the <a class="el" href="classWt_1_1Ext_1_1Calendar.html#6b1c98ac0a89db6281ff0903a0bd90e5" title="Signal emitted when the user has selected a date.">selected()</a> signal.<p>
The API is a subset of the <a class="el" href="classWt_1_1WCalendar.html" title="A calendar.">WCalendar</a> API: <ul>
<li>
limited to single selection mode: no <a class="el" href="classWt_1_1WCalendar.html#075e2a4c5c39f8b6144865cfd0ae07f0">setMultipleSelection(bool)</a>, <a class="el" href="classWt_1_1WCalendar.html#a128787a7b96264b5e755712e720f928">select(const std::set&lt;WDate&gt;&amp;)</a> methods; </li>
<li>
no support for programmatory navigation: no <a class="el" href="classWt_1_1WCalendar.html#4e77a4335ac8891a4d51441ce0f9e626">browseToNextMonth() </a>, <a class="el" href="classWt_1_1WCalendar.html#59949bcc20f604fd96a73aa342157b8d">browseTo()</a>, etc... methods  </li>
<li>
no support for getting information on what is currently displayed: no <a class="el" href="classWt_1_1WCalendar.html#28bf4605a51c67258ee8e9182a1e27a9">currentMonth()</a> and <a class="el" href="classWt_1_1WCalendar.html#95a1fdb04b8b21bfb473dcf509e5d864">currentYear()</a> methods. </li>
</ul>
<p>
Here is a snapshot taken on 01/09/2007 (shown as today), and 12/09/2007 currently selected. <div align="center">
<img src="ExtCalendar-1.png" alt="ExtCalendar-1.png">
<p><strong>Calendar</strong></p></div>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="2d4f71ffe544bb03fc5851b2c3b371bb"></a><!-- doxytag: member="Wt::Ext::Calendar::Calendar" ref="2d4f71ffe544bb03fc5851b2c3b371bb" args="(bool i18n=false, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::Ext::Calendar::Calendar           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>i18n</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a new calendar. 
<p>
Constructs a new calendar, with optional support for internationalization. The calendar shows the current day, and has an empty selection. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a9100d67bf50b81ee6ce1313b4d5b216"></a><!-- doxytag: member="Wt::Ext::Calendar::select" ref="a9100d67bf50b81ee6ce1313b4d5b216" args="(const WDate &amp;date)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Ext::Calendar::select           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>date</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Select a date. 
<p>
Select one date. 
</div>
</div><p>
<a class="anchor" name="8dc46727fc4d990f101b47adf52c67b8"></a><!-- doxytag: member="Wt::Ext::Calendar::selection" ref="8dc46727fc4d990f101b47adf52c67b8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::set&lt;<a class="el" href="classWt_1_1WDate.html">WDate</a>&gt;&amp; Wt::Ext::Calendar::selection           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the current selection. 
<p>
Returns the set of dates currently selected. This set contains 0 or 1 dates. 
</div>
</div><p>
<a class="anchor" name="b46d39379ddd1faeea1eb95aa403eda1"></a><!-- doxytag: member="Wt::Ext::Calendar::selectionChanged" ref="b46d39379ddd1faeea1eb95aa403eda1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt;void&gt;&amp; Wt::Ext::Calendar::selectionChanged           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Signal emitted when the user changes the selection. 
<p>
Emitted after the user has changed the current selection, before the <a class="el" href="classWt_1_1Ext_1_1Calendar.html#6b1c98ac0a89db6281ff0903a0bd90e5" title="Signal emitted when the user has selected a date.">selected()</a> signal is emitted. 
</div>
</div><p>
<a class="anchor" name="6b1c98ac0a89db6281ff0903a0bd90e5"></a><!-- doxytag: member="Wt::Ext::Calendar::selected" ref="6b1c98ac0a89db6281ff0903a0bd90e5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt;void&gt;&amp; Wt::Ext::Calendar::selected           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Signal emitted when the user has selected a date. 
<p>
This signal indicates that the user has selected a new date, which is only available when in single selection mode. 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<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>