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
|
<!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>Crazy Eddies GUI System: CEGUIItemListBase.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Crazy Eddies GUI System <span id="projectnumber">0.7.6</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<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="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<div class="title">CEGUIItemListBase.h</div> </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***********************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> filename: CEGUIItemListBase.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 31/3/2005</span>
<a name="l00004"></a>00004 <span class="comment"> author: Tomas Lindquist Olsen (based on original Listbox code by Paul D Turner)</span>
<a name="l00005"></a>00005 <span class="comment"> </span>
<a name="l00006"></a>00006 <span class="comment"> purpose: Interface to base class for ItemListBase widgets</span>
<a name="l00007"></a>00007 <span class="comment">*************************************************************************/</span>
<a name="l00008"></a>00008 <span class="comment">/***************************************************************************</span>
<a name="l00009"></a>00009 <span class="comment"> * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
<a name="l00012"></a>00012 <span class="comment"> * a copy of this software and associated documentation files (the</span>
<a name="l00013"></a>00013 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span>
<a name="l00014"></a>00014 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span>
<a name="l00015"></a>00015 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span>
<a name="l00016"></a>00016 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span>
<a name="l00017"></a>00017 <span class="comment"> * the following conditions:</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * The above copyright notice and this permission notice shall be</span>
<a name="l00020"></a>00020 <span class="comment"> * included in all copies or substantial portions of the Software.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
<a name="l00023"></a>00023 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
<a name="l00024"></a>00024 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span>
<a name="l00025"></a>00025 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR</span>
<a name="l00026"></a>00026 <span class="comment"> * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,</span>
<a name="l00027"></a>00027 <span class="comment"> * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR</span>
<a name="l00028"></a>00028 <span class="comment"> * OTHER DEALINGS IN THE SOFTWARE.</span>
<a name="l00029"></a>00029 <span class="comment"> ***************************************************************************/</span>
<a name="l00030"></a>00030 <span class="preprocessor">#ifndef _CEGUIItemListBase_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIItemListBase_h_</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "../CEGUIBase.h"</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "../CEGUIWindow.h"</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "CEGUIItemListBaseProperties.h"</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "CEGUIItemEntry.h"</span>
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#include <vector></span>
<a name="l00039"></a>00039
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4251)</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00048"></a>00048 <span class="keyword">namespace </span>CEGUI
<a name="l00049"></a>00049 {
<a name="l00050"></a>00050
<a name="l00055"></a><a class="code" href="classCEGUI_1_1ItemListBaseWindowRenderer.html">00055</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1ItemListBaseWindowRenderer.html" title="Base class for ItemListBase window renderer.">ItemListBaseWindowRenderer</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1WindowRenderer.html" title="Base-class for the assignable WindowRenderer object.">WindowRenderer</a>
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057 <span class="keyword">public</span>:
<a name="l00062"></a>00062 <a class="code" href="classCEGUI_1_1ItemListBaseWindowRenderer.html" title="Base class for ItemListBase window renderer.">ItemListBaseWindowRenderer</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& name);
<a name="l00063"></a>00063
<a name="l00073"></a>00073 <span class="keyword">virtual</span> <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a> getItemRenderArea(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0;
<a name="l00074"></a>00074 };
<a name="l00075"></a>00075
<a name="l00080"></a><a class="code" href="classCEGUI_1_1ItemListBase.html">00080</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1ItemListBase.html" title="Base class for item list widgets.">ItemListBase</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>
<a name="l00081"></a>00081 {
<a name="l00082"></a>00082 <span class="keyword">public</span>:
<a name="l00083"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#ada9205b9fa6e6646b154e06c63ef976b">00083</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1ItemListBase.html#ada9205b9fa6e6646b154e06c63ef976b" title="Namespace for global events.">EventNamespace</a>;
<a name="l00084"></a>00084
<a name="l00089"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a6a3084e3d292a36b773915d2f3781e03">00089</a> <span class="keyword">enum</span> <a class="code" href="classCEGUI_1_1ItemListBase.html#a6a3084e3d292a36b773915d2f3781e03" title="Sort modes for ItemListBase.">SortMode</a>
<a name="l00090"></a>00090 {
<a name="l00091"></a>00091 Ascending,
<a name="l00092"></a>00092 Descending,
<a name="l00093"></a>00093 UserSort
<a name="l00094"></a>00094 };
<a name="l00095"></a>00095
<a name="l00097"></a>00097 <span class="keyword">typedef</span> bool (*SortCallback)(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* a, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* b);
<a name="l00098"></a>00098
<a name="l00099"></a>00099 <span class="comment">/*************************************************************************</span>
<a name="l00100"></a>00100 <span class="comment"> Constants</span>
<a name="l00101"></a>00101 <span class="comment"> *************************************************************************/</span>
<a name="l00102"></a>00102 <span class="comment">// event names</span>
<a name="l00108"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#aa651e77d54a364cdefbed8173a99bb03">00108</a> <span class="comment"></span> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1ItemListBase.html#aa651e77d54a364cdefbed8173a99bb03">EventListContentsChanged</a>;
<a name="l00114"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a6371266a94ea9ac0b3817361acda234e">00114</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1ItemListBase.html#a6371266a94ea9ac0b3817361acda234e">EventSortEnabledChanged</a>;
<a name="l00120"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#aafc973d59eda516c0253ca9ba1e06fad">00120</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1ItemListBase.html#aafc973d59eda516c0253ca9ba1e06fad">EventSortModeChanged</a>;
<a name="l00121"></a>00121
<a name="l00122"></a>00122 <span class="comment">/*************************************************************************</span>
<a name="l00123"></a>00123 <span class="comment"> Accessor Methods</span>
<a name="l00124"></a>00124 <span class="comment"> *************************************************************************/</span>
<a name="l00132"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a0bbcb2311f08a37a7eda909b050f4384">00132</a> <span class="keywordtype">size_t</span> <a class="code" href="classCEGUI_1_1ItemListBase.html#a0bbcb2311f08a37a7eda909b050f4384" title="Return number of items attached to the list.">getItemCount</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_listItems.size();}
<a name="l00133"></a>00133
<a name="l00134"></a>00134
<a name="l00147"></a>00147 <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* getItemFromIndex(<span class="keywordtype">size_t</span> index) <span class="keyword">const</span>;
<a name="l00148"></a>00148
<a name="l00149"></a>00149
<a name="l00162"></a>00162 <span class="keywordtype">size_t</span> getItemIndex(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* item) <span class="keyword">const</span>;
<a name="l00163"></a>00163
<a name="l00164"></a>00164
<a name="l00182"></a>00182 <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* findItemWithText(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& text, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* start_item);
<a name="l00183"></a>00183
<a name="l00184"></a>00184
<a name="l00192"></a>00192 <span class="keywordtype">bool</span> isItemInList(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* item) <span class="keyword">const</span>;
<a name="l00193"></a>00193
<a name="l00194"></a>00194
<a name="l00202"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#ae697a469381e934e3e7b3e056dfb19b4">00202</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ItemListBase.html#ae697a469381e934e3e7b3e056dfb19b4" title="Return whether this window is automatically resized to fit its content.">isAutoResizeEnabled</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_autoResize;}
<a name="l00203"></a>00203
<a name="l00204"></a>00204
<a name="l00209"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a80ea1272b09a8ea9e2a462350be8d28d">00209</a> <span class="keywordtype">bool</span> <a class="code" href="classCEGUI_1_1ItemListBase.html#a80ea1272b09a8ea9e2a462350be8d28d" title="Returns 'true' if the list is sorted.">isSortEnabled</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_sortEnabled;}
<a name="l00210"></a>00210
<a name="l00211"></a>00211
<a name="l00216"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a81ab23c5289ec5b96b70b8a9f06ca068">00216</a> <a class="code" href="classCEGUI_1_1ItemListBase.html#a6a3084e3d292a36b773915d2f3781e03" title="Sort modes for ItemListBase.">SortMode</a> <a class="code" href="classCEGUI_1_1ItemListBase.html#a81ab23c5289ec5b96b70b8a9f06ca068" title="Get sort mode.">getSortMode</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_sortMode;}
<a name="l00217"></a>00217
<a name="l00218"></a>00218
<a name="l00223"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#ab5c0e1386a8b4287d4576e8bff23fd18">00223</a> SortCallback <a class="code" href="classCEGUI_1_1ItemListBase.html#ab5c0e1386a8b4287d4576e8bff23fd18" title="Get user sorting callback.">getSortCallback</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_sortCallback;}
<a name="l00224"></a>00224
<a name="l00225"></a>00225 <span class="comment">/*************************************************************************</span>
<a name="l00226"></a>00226 <span class="comment"> Manipulator Methods</span>
<a name="l00227"></a>00227 <span class="comment"> *************************************************************************/</span>
<a name="l00238"></a>00238 <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialiseComponents(<span class="keywordtype">void</span>);
<a name="l00239"></a>00239
<a name="l00240"></a>00240
<a name="l00247"></a>00247 <span class="keywordtype">void</span> resetList(<span class="keywordtype">void</span>);
<a name="l00248"></a>00248
<a name="l00249"></a>00249
<a name="l00261"></a>00261 <span class="keywordtype">void</span> addItem(<a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* item);
<a name="l00262"></a>00262
<a name="l00263"></a>00263
<a name="l00283"></a>00283 <span class="keywordtype">void</span> insertItem(<a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* item, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* position);
<a name="l00284"></a>00284
<a name="l00285"></a>00285
<a name="l00297"></a>00297 <span class="keywordtype">void</span> removeItem(<a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>* item);
<a name="l00298"></a>00298
<a name="l00299"></a>00299
<a name="l00315"></a>00315 <span class="keywordtype">void</span> handleUpdatedItemData(<span class="keywordtype">bool</span> resort=<span class="keyword">false</span>);
<a name="l00316"></a>00316
<a name="l00317"></a>00317
<a name="l00328"></a>00328 <span class="keywordtype">void</span> setAutoResizeEnabled(<span class="keywordtype">bool</span> setting);
<a name="l00329"></a>00329
<a name="l00330"></a>00330
<a name="l00340"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#aba54956f9081bb6f200fc7bae4b0be01">00340</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ItemListBase.html#aba54956f9081bb6f200fc7bae4b0be01" title="Resize the ItemListBase to exactly fit the content that is attached to it. Return a Rect object descr...">sizeToContent</a>(<span class="keywordtype">void</span>) {sizeToContent_impl();}
<a name="l00341"></a>00341
<a name="l00342"></a>00342
<a name="l00348"></a>00348 <span class="keyword">virtual</span> <span class="keywordtype">void</span> endInitialisation(<span class="keywordtype">void</span>);
<a name="l00349"></a>00349
<a name="l00350"></a>00350
<a name="l00361"></a>00361 <span class="keyword">virtual</span> <span class="keywordtype">void</span> performChildWindowLayout(<span class="keywordtype">void</span>);
<a name="l00362"></a>00362
<a name="l00363"></a>00363
<a name="l00373"></a>00373 <a class="code" href="classCEGUI_1_1Rect.html" title="Class encapsulating operations on a Rectangle.">Rect</a> getItemRenderArea(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00374"></a>00374
<a name="l00383"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a5e8cd16b6af211de87473dad423b442d">00383</a> <a class="code" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>* <a class="code" href="classCEGUI_1_1ItemListBase.html#a5e8cd16b6af211de87473dad423b442d" title="Returns a pointer to the window that all items are directed too.">getContentPane</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> d_pane;}
<a name="l00384"></a>00384
<a name="l00390"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#aac5e4c857b7d4c6f6698b06a5182c72b">00390</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ItemListBase.html#aac5e4c857b7d4c6f6698b06a5182c72b" title="Notify this ItemListBase that the given item was just clicked. Internal function - NOT to be used fro...">notifyItemClicked</a>(<a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>*) {}
<a name="l00391"></a>00391
<a name="l00397"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a37e270427af2f21f74bda2decee30f33">00397</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1ItemListBase.html#a37e270427af2f21f74bda2decee30f33" title="Notify this ItemListBase that the given item just changed selection state. Internal function - NOT to...">notifyItemSelectState</a>(<a class="code" href="classCEGUI_1_1ItemEntry.html" title="Base class for item type widgets.">ItemEntry</a>*, <span class="keywordtype">bool</span>) {}
<a name="l00398"></a>00398
<a name="l00403"></a>00403 <span class="keywordtype">void</span> setSortEnabled(<span class="keywordtype">bool</span> setting);
<a name="l00404"></a>00404
<a name="l00411"></a>00411 <span class="keywordtype">void</span> setSortMode(SortMode mode);
<a name="l00412"></a>00412
<a name="l00420"></a>00420 <span class="keywordtype">void</span> setSortCallback(SortCallback cb);
<a name="l00421"></a>00421
<a name="l00433"></a>00433 <span class="keywordtype">void</span> sortList(<span class="keywordtype">bool</span> relayout=<span class="keyword">true</span>);
<a name="l00434"></a>00434
<a name="l00435"></a>00435 <span class="comment">/*************************************************************************</span>
<a name="l00436"></a>00436 <span class="comment"> Construction and Destruction</span>
<a name="l00437"></a>00437 <span class="comment"> *************************************************************************/</span>
<a name="l00442"></a>00442 <a class="code" href="classCEGUI_1_1ItemListBase.html" title="Base class for item list widgets.">ItemListBase</a>(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& type, <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& name);
<a name="l00443"></a>00443
<a name="l00444"></a>00444
<a name="l00449"></a>00449 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1ItemListBase.html" title="Base class for item list widgets.">ItemListBase</a>(<span class="keywordtype">void</span>);
<a name="l00450"></a>00450
<a name="l00451"></a>00451
<a name="l00452"></a>00452 <span class="keyword">protected</span>:
<a name="l00453"></a>00453 <span class="comment">/*************************************************************************</span>
<a name="l00454"></a>00454 <span class="comment"> Abstract Implementation Functions (must be provided by derived class)</span>
<a name="l00455"></a>00455 <span class="comment"> *************************************************************************/</span>
<a name="l00465"></a>00465 <span class="keyword">virtual</span> <span class="keywordtype">void</span> sizeToContent_impl(<span class="keywordtype">void</span>);
<a name="l00466"></a>00466
<a name="l00467"></a>00467
<a name="l00475"></a>00475 <span class="keyword">virtual</span> <a class="code" href="classCEGUI_1_1Size.html" title="Class that holds the size (width & height) of something.">Size</a> getContentSize() <span class="keyword">const</span> = 0;
<a name="l00476"></a>00476
<a name="l00477"></a>00477
<a name="l00487"></a>00487 <span class="comment">//virtual Rect getItemRenderArea_impl(void) const = 0;</span>
<a name="l00488"></a>00488
<a name="l00489"></a>00489
<a name="l00497"></a>00497 <span class="keyword">virtual</span> <span class="keywordtype">void</span> layoutItemWidgets() = 0;
<a name="l00498"></a>00498
<a name="l00499"></a>00499
<a name="l00500"></a>00500 <span class="comment">/*************************************************************************</span>
<a name="l00501"></a>00501 <span class="comment"> Implementation Functions</span>
<a name="l00502"></a>00502 <span class="comment"> *************************************************************************/</span>
<a name="l00514"></a>00514 <span class="keywordtype">bool</span> resetList_impl(<span class="keywordtype">void</span>);
<a name="l00515"></a>00515
<a name="l00526"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a9c26c62516fd505f667c8a7c19338691">00526</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> testClassName_impl(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& class_name)<span class="keyword"> const</span>
<a name="l00527"></a>00527 <span class="keyword"> </span>{
<a name="l00528"></a>00528 <span class="keywordflow">if</span> (class_name==<span class="stringliteral">"ItemListBase"</span>) <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00529"></a>00529 <span class="keywordflow">return</span> <a class="code" href="classCEGUI_1_1Window.html#a2b58cf00b4790c9cb08acfc18d5d3b0b" title="Return whether this window was inherited from the given class name at some point in the inheritance h...">Window::testClassName_impl</a>(class_name);
<a name="l00530"></a>00530 }
<a name="l00531"></a>00531
<a name="l00532"></a>00532 <span class="comment">// validate window renderer</span>
<a name="l00533"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#a8a0cfed62ec404eebf39616062f4a56e">00533</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> validateWindowRenderer(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& name)<span class="keyword"> const</span>
<a name="l00534"></a>00534 <span class="keyword"> </span>{
<a name="l00535"></a>00535 <span class="keywordflow">return</span> (name == EventNamespace);
<a name="l00536"></a>00536 }
<a name="l00537"></a>00537
<a name="l00542"></a>00542 SortCallback getRealSortCallback(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00543"></a>00543
<a name="l00544"></a>00544 <span class="comment">/*************************************************************************</span>
<a name="l00545"></a>00545 <span class="comment"> New event handlers</span>
<a name="l00546"></a>00546 <span class="comment"> *************************************************************************/</span>
<a name="l00551"></a>00551 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onListContentsChanged(<a class="code" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a>& e);
<a name="l00552"></a>00552
<a name="l00557"></a>00557 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSortEnabledChanged(<a class="code" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a>& e);
<a name="l00558"></a>00558
<a name="l00563"></a>00563 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSortModeChanged(<a class="code" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a>& e);
<a name="l00564"></a>00564
<a name="l00565"></a>00565 <span class="comment">/*************************************************************************</span>
<a name="l00566"></a>00566 <span class="comment"> Overridden Event handlers</span>
<a name="l00567"></a>00567 <span class="comment"> *************************************************************************/</span>
<a name="l00568"></a>00568 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onParentSized(<a class="code" href="classCEGUI_1_1WindowEventArgs.html" title="EventArgs based class that is used for objects passed to handlers triggered for events concerning som...">WindowEventArgs</a>& e);
<a name="l00569"></a>00569 <span class="comment">//virtual void onChildRemoved(WindowEventArgs& e);</span>
<a name="l00570"></a>00570 <span class="comment">//virtual void onDestructionStarted(WindowEventArgs& e);</span>
<a name="l00571"></a>00571
<a name="l00572"></a>00572
<a name="l00573"></a>00573 <span class="comment">/*************************************************************************</span>
<a name="l00574"></a>00574 <span class="comment"> Implementation Data</span>
<a name="l00575"></a>00575 <span class="comment"> *************************************************************************/</span>
<a name="l00576"></a>00576 <span class="keyword">typedef</span> std::vector<ItemEntry*> ItemEntryList;
<a name="l00577"></a><a class="code" href="classCEGUI_1_1ItemListBase.html#abfddf64d087ac68a19733c328c4456f7">00577</a> ItemEntryList d_listItems;
<a name="l00578"></a>00578
<a name="l00580"></a>00580 <span class="keywordtype">bool</span> d_autoResize;
<a name="l00581"></a>00581
<a name="l00583"></a>00583 <a class="code" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>* d_pane;
<a name="l00584"></a>00584
<a name="l00586"></a>00586 <span class="keywordtype">bool</span> d_sortEnabled;
<a name="l00588"></a>00588 <a class="code" href="classCEGUI_1_1ItemListBase.html#a6a3084e3d292a36b773915d2f3781e03" title="Sort modes for ItemListBase.">SortMode</a> d_sortMode;
<a name="l00590"></a>00590 SortCallback d_sortCallback;
<a name="l00592"></a>00592 <span class="keywordtype">bool</span> d_resort;
<a name="l00593"></a>00593
<a name="l00594"></a>00594 <span class="keyword">private</span>:
<a name="l00595"></a>00595 <span class="comment">/*************************************************************************</span>
<a name="l00596"></a>00596 <span class="comment"> Static Properties for this class</span>
<a name="l00597"></a>00597 <span class="comment"> *************************************************************************/</span>
<a name="l00598"></a>00598 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ItemListBaseProperties_1_1AutoResizeEnabled.html" title="Property to access the state of the auto resize enabled setting.">ItemListBaseProperties::AutoResizeEnabled</a> d_autoResizeEnabledProperty;
<a name="l00599"></a>00599 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ItemListBaseProperties_1_1SortEnabled.html" title="Property to access the state of the sorting enabled setting.">ItemListBaseProperties::SortEnabled</a> d_sortEnabledProperty;
<a name="l00600"></a>00600 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1ItemListBaseProperties_1_1SortMode.html" title="Property to access the sorting mode.">ItemListBaseProperties::SortMode</a> d_sortModeProperty;
<a name="l00601"></a>00601
<a name="l00602"></a>00602 <span class="comment">/*************************************************************************</span>
<a name="l00603"></a>00603 <span class="comment"> Private methods</span>
<a name="l00604"></a>00604 <span class="comment"> *************************************************************************/</span>
<a name="l00605"></a>00605 <span class="keywordtype">void</span> addItemListBaseProperties(<span class="keywordtype">void</span>);
<a name="l00606"></a>00606
<a name="l00607"></a>00607
<a name="l00612"></a>00612 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addChild_impl(<a class="code" href="classCEGUI_1_1Window.html" title="An abstract base class providing common functionality and specifying the required interface for deriv...">Window</a>* wnd);
<a name="l00613"></a>00613
<a name="l00619"></a>00619 <span class="keywordtype">bool</span> handle_PaneChildRemoved(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1EventArgs.html" title="Base class used as the argument to all subscribers Event object.">EventArgs</a>& e);
<a name="l00620"></a>00620 };
<a name="l00621"></a>00621
<a name="l00622"></a>00622 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00623"></a>00623
<a name="l00624"></a>00624
<a name="l00625"></a>00625 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00626"></a>00626 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00627"></a>00627 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00628"></a>00628 <span class="preprocessor"></span>
<a name="l00629"></a>00629 <span class="preprocessor">#endif // end of guard _CEGUIItemListBase_h_</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:39 for Crazy Eddies GUI System by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
|