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
|
<!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: CEGUITabControl.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">CEGUITabControl.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: CEGUITabControl.h</span>
<a name="l00003"></a>00003 <span class="comment"> created: 08/08/2004</span>
<a name="l00004"></a>00004 <span class="comment"> author: Steve Streeting</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment"> purpose: Interface to base class for TabControl widget</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 _CEGUITabControl_h_</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUITabControl_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 "CEGUITabControlProperties.h"</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include <vector></span>
<a name="l00037"></a>00037
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable : 4251)</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="comment">// Start of CEGUI namespace section</span>
<a name="l00046"></a>00046 <span class="keyword">namespace </span>CEGUI
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048
<a name="l00049"></a>00049 <span class="comment">// Forward declaration</span>
<a name="l00050"></a>00050 <span class="keyword">class </span>TabButton;
<a name="l00051"></a>00051
<a name="l00056"></a><a class="code" href="classCEGUI_1_1TabControlWindowRenderer.html">00056</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1TabControlWindowRenderer.html" title="Base class for TabControl window renderer objects.">TabControlWindowRenderer</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="l00057"></a>00057 {
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00063"></a>00063 <a class="code" href="classCEGUI_1_1TabControlWindowRenderer.html" title="Base class for TabControl window renderer objects.">TabControlWindowRenderer</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="l00064"></a>00064
<a name="l00073"></a>00073 <span class="keyword">virtual</span> <a class="code" href="classCEGUI_1_1TabButton.html" title="Base class for TabButtons. A TabButton based class is used internally as the button that appears at t...">TabButton</a>* createTabButton(<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> = 0;
<a name="l00074"></a>00074 };
<a name="l00075"></a>00075
<a name="l00080"></a><a class="code" href="classCEGUI_1_1TabControl.html">00080</a> <span class="keyword">class </span>CEGUIEXPORT <a class="code" href="classCEGUI_1_1TabControl.html" title="Base class for standard Tab Control widget.">TabControl</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_1TabControl.html#aa871a39a9349138135746c903cb4fc6e">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_1TabControl.html#aa871a39a9349138135746c903cb4fc6e" title="Namespace for global events.">EventNamespace</a>;
<a name="l00084"></a><a class="code" href="classCEGUI_1_1TabControl.html#af3c22edaf752734257d321fd166a5fb1">00084</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_1TabControl.html#af3c22edaf752734257d321fd166a5fb1" title="Window factory name.">WidgetTypeName</a>;
<a name="l00085"></a>00085
<a name="l00086"></a>00086 <span class="keyword">enum</span> TabPanePosition
<a name="l00087"></a>00087 {
<a name="l00088"></a>00088 Top,
<a name="l00089"></a>00089 Bottom
<a name="l00090"></a>00090 };
<a name="l00091"></a>00091
<a name="l00092"></a>00092 <span class="comment">/*************************************************************************</span>
<a name="l00093"></a>00093 <span class="comment"> Constants</span>
<a name="l00094"></a>00094 <span class="comment"> *************************************************************************/</span>
<a name="l00095"></a>00095 <span class="comment">// event names</span>
<a name="l00101"></a><a class="code" href="classCEGUI_1_1TabControl.html#a73472a2b8478567b28fa05b0c3214e4e">00101</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_1TabControl.html#a73472a2b8478567b28fa05b0c3214e4e">EventSelectionChanged</a>;
<a name="l00102"></a>00102
<a name="l00103"></a>00103 <span class="comment">/*************************************************************************</span>
<a name="l00104"></a>00104 <span class="comment"> Child Widget name suffix constants</span>
<a name="l00105"></a>00105 <span class="comment"> *************************************************************************/</span>
<a name="l00106"></a><a class="code" href="classCEGUI_1_1TabControl.html#af586e3296b62eced461a964497617eeb">00106</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_1TabControl.html#af586e3296b62eced461a964497617eeb" title="Widget name suffix for the tab content pane component.">ContentPaneNameSuffix</a>;
<a name="l00107"></a><a class="code" href="classCEGUI_1_1TabControl.html#a9b982ab86a80feb31edfe20e9e75389b">00107</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_1TabControl.html#a9b982ab86a80feb31edfe20e9e75389b" title="Widget name suffix for the tab button components.">TabButtonNameSuffix</a>;
<a name="l00108"></a><a class="code" href="classCEGUI_1_1TabControl.html#a2c68758e5c567439128038a5919979a8">00108</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_1TabControl.html#a2c68758e5c567439128038a5919979a8" title="Widget name suffix for the tab button pane component.">TabButtonPaneNameSuffix</a>;
<a name="l00109"></a><a class="code" href="classCEGUI_1_1TabControl.html#afea185a579243fc378faaf0be61ff4b8">00109</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_1TabControl.html#afea185a579243fc378faaf0be61ff4b8" title="Widget name suffix for the scroll tabs to right pane component.">ButtonScrollLeftSuffix</a>;
<a name="l00110"></a><a class="code" href="classCEGUI_1_1TabControl.html#a8d990c8d90347b7e3aaa4635752a5f43">00110</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_1TabControl.html#a8d990c8d90347b7e3aaa4635752a5f43" title="Widget name suffix for the scroll tabs to left pane component.">ButtonScrollRightSuffix</a>;
<a name="l00111"></a>00111
<a name="l00112"></a>00112
<a name="l00113"></a>00113 <span class="comment">/*************************************************************************</span>
<a name="l00114"></a>00114 <span class="comment"> Accessor Methods</span>
<a name="l00115"></a>00115 <span class="comment"> *************************************************************************/</span>
<a name="l00123"></a>00123 <span class="keywordtype">size_t</span> getTabCount(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00124"></a>00124
<a name="l00131"></a><a class="code" href="classCEGUI_1_1TabControl.html#adca8c957a5f5a3b9f6be1c96054f54d5">00131</a> TabPanePosition getTabPanePosition(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00132"></a>00132 <span class="keyword"> </span>{ <span class="keywordflow">return</span> d_tabPanePos; }
<a name="l00133"></a>00133
<a name="l00140"></a>00140 <span class="keywordtype">void</span> setTabPanePosition(TabPanePosition pos);
<a name="l00141"></a>00141
<a name="l00148"></a>00148 <span class="keywordtype">void</span> setSelectedTab(<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="l00149"></a>00149
<a name="l00156"></a>00156 <span class="keywordtype">void</span> setSelectedTab(uint ID);
<a name="l00157"></a>00157
<a name="l00164"></a>00164 <span class="keywordtype">void</span> setSelectedTabAtIndex(<span class="keywordtype">size_t</span> index);
<a name="l00165"></a>00165
<a name="l00171"></a>00171 <span class="keywordtype">void</span> makeTabVisible(<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="l00172"></a>00172
<a name="l00178"></a>00178 <span class="keywordtype">void</span> makeTabVisible(uint ID);
<a name="l00179"></a>00179
<a name="l00185"></a>00185 <span class="keywordtype">void</span> makeTabVisibleAtIndex(<span class="keywordtype">size_t</span> index);
<a name="l00186"></a>00186
<a name="l00199"></a>00199 <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>* getTabContentsAtIndex(<span class="keywordtype">size_t</span> index) <span class="keyword">const</span>;
<a name="l00200"></a>00200
<a name="l00213"></a>00213 <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>* getTabContents(<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="l00214"></a>00214
<a name="l00227"></a>00227 <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>* getTabContents(uint ID) <span class="keyword">const</span>;
<a name="l00228"></a>00228
<a name="l00241"></a>00241 <span class="keywordtype">bool</span> isTabContentsSelected(<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) <span class="keyword">const</span>;
<a name="l00242"></a>00242
<a name="l00250"></a>00250 <span class="keywordtype">size_t</span> getSelectedTabIndex() <span class="keyword">const</span>;
<a name="l00251"></a>00251
<a name="l00256"></a><a class="code" href="classCEGUI_1_1TabControl.html#a265daa884a4637c4219258a9b7129214">00256</a> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1UDim.html" title="Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...">UDim</a>& <a class="code" href="classCEGUI_1_1TabControl.html#a265daa884a4637c4219258a9b7129214" title="Return the height of the tabs.">getTabHeight</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_tabHeight; }
<a name="l00257"></a>00257
<a name="l00262"></a><a class="code" href="classCEGUI_1_1TabControl.html#a004c01af7523043e60a2423016ef404b">00262</a> <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1UDim.html" title="Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...">UDim</a>& <a class="code" href="classCEGUI_1_1TabControl.html#a004c01af7523043e60a2423016ef404b" title="Return the amount of padding to add either side of the text in the tab.">getTabTextPadding</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_tabPadding; }
<a name="l00263"></a>00263
<a name="l00264"></a>00264
<a name="l00265"></a>00265 <span class="comment">/*************************************************************************</span>
<a name="l00266"></a>00266 <span class="comment"> Manipulator Methods</span>
<a name="l00267"></a>00267 <span class="comment"> *************************************************************************/</span>
<a name="l00278"></a>00278 <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialiseComponents(<span class="keywordtype">void</span>);
<a name="l00279"></a>00279
<a name="l00284"></a>00284 <span class="keywordtype">void</span> setTabHeight(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1UDim.html" title="Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...">UDim</a>& height);
<a name="l00285"></a>00285
<a name="l00290"></a>00290 <span class="keywordtype">void</span> setTabTextPadding(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1UDim.html" title="Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...">UDim</a>& padding);
<a name="l00291"></a>00291
<a name="l00300"></a>00300 <span class="keywordtype">void</span> addTab(<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="l00307"></a>00307 <span class="keywordtype">void</span> removeTab(<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="l00314"></a>00314 <span class="keywordtype">void</span> removeTab(uint ID);
<a name="l00315"></a>00315
<a name="l00316"></a>00316
<a name="l00317"></a>00317 <span class="comment">/*************************************************************************</span>
<a name="l00318"></a>00318 <span class="comment"> Construction and Destruction</span>
<a name="l00319"></a>00319 <span class="comment"> *************************************************************************/</span>
<a name="l00324"></a>00324 <a class="code" href="classCEGUI_1_1TabControl.html" title="Base class for standard Tab Control widget.">TabControl</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="l00325"></a>00325
<a name="l00326"></a>00326
<a name="l00331"></a>00331 <span class="keyword">virtual</span> ~<a class="code" href="classCEGUI_1_1TabControl.html" title="Base class for standard Tab Control widget.">TabControl</a>(<span class="keywordtype">void</span>);
<a name="l00332"></a>00332
<a name="l00333"></a>00333
<a name="l00334"></a>00334 <span class="keyword">protected</span>:
<a name="l00335"></a>00335
<a name="l00336"></a>00336 <span class="comment">/*************************************************************************</span>
<a name="l00337"></a>00337 <span class="comment"> Implementation Functions</span>
<a name="l00338"></a>00338 <span class="comment"> *************************************************************************/</span>
<a name="l00349"></a><a class="code" href="classCEGUI_1_1TabControl.html#a0e01e19d1202c10256785cb6df2f0f6b">00349</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCEGUI_1_1TabControl.html#a0e01e19d1202c10256785cb6df2f0f6b" title="Perform the actual rendering for this Window.">drawSelf</a>(<span class="keyword">const</span> <a class="code" href="structCEGUI_1_1RenderingContext.html" title="struct that holds some context relating to a RenderingSurface object.">RenderingContext</a>&) { <span class="comment">/* do nothing; rendering handled by children */</span> }
<a name="l00350"></a>00350
<a name="l00355"></a>00355 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addButtonForTabContent(<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="l00360"></a>00360 <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeButtonForTabContent(<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="l00366"></a>00366 <a class="code" href="classCEGUI_1_1TabButton.html" title="Base class for TabButtons. A TabButton based class is used internally as the button that appears at t...">TabButton</a>* getButtonForTabContents(<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) <span class="keyword">const</span>;
<a name="l00371"></a>00371 <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> makeButtonName(<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="l00372"></a>00372
<a name="l00379"></a>00379 <span class="keyword">virtual</span> <span class="keywordtype">void</span> selectTab_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="l00380"></a>00380
<a name="l00381"></a>00381
<a name="l00388"></a>00388 <span class="keyword">virtual</span> <span class="keywordtype">void</span> makeTabVisible_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="l00389"></a>00389
<a name="l00390"></a>00390
<a name="l00401"></a><a class="code" href="classCEGUI_1_1TabControl.html#aaca6a0d23006f43bf58bcd9c3ad91d11">00401</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="l00402"></a>00402 <span class="keyword"> </span>{
<a name="l00403"></a>00403 <span class="keywordflow">if</span> (class_name==<span class="stringliteral">"TabControl"</span>) <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00404"></a>00404 <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="l00405"></a>00405 }
<a name="l00406"></a>00406
<a name="l00418"></a>00418 <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>* getTabButtonPane() <span class="keyword">const</span>;
<a name="l00419"></a>00419
<a name="l00431"></a>00431 <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>* getTabPane() <span class="keyword">const</span>;
<a name="l00432"></a>00432
<a name="l00433"></a>00433 <span class="keywordtype">void</span> performChildWindowLayout();
<a name="l00434"></a>00434 <span class="keywordtype">int</span> writeChildWindowsXML(<a class="code" href="classCEGUI_1_1XMLSerializer.html" title="Class used to create XML Document.">XMLSerializer</a>& xml_stream) <span class="keyword">const</span>;
<a name="l00435"></a>00435
<a name="l00436"></a>00436 <span class="comment">// validate window renderer</span>
<a name="l00437"></a><a class="code" href="classCEGUI_1_1TabControl.html#a8d8e739844028a179281c37b36c3b5ce">00437</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="l00438"></a>00438 <span class="keyword"> </span>{
<a name="l00439"></a>00439 <span class="keywordflow">return</span> (name == <span class="stringliteral">"TabControl"</span>);
<a name="l00440"></a>00440 }
<a name="l00441"></a>00441
<a name="l00450"></a>00450 <a class="code" href="classCEGUI_1_1TabButton.html" title="Base class for TabButtons. A TabButton based class is used internally as the button that appears at t...">TabButton</a>* createTabButton(<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="l00451"></a>00451
<a name="l00453"></a>00453 <span class="keywordtype">void</span> removeTab_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>* window);
<a name="l00454"></a>00454
<a name="l00455"></a>00455 <span class="comment">/*************************************************************************</span>
<a name="l00456"></a>00456 <span class="comment"> New event handlers</span>
<a name="l00457"></a>00457 <span class="comment"> *************************************************************************/</span>
<a name="l00458"></a>00458
<a name="l00463"></a>00463 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onSelectionChanged(<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="l00464"></a>00464
<a name="l00473"></a>00473 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onFontChanged(<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="l00474"></a>00474
<a name="l00475"></a>00475 <span class="comment">/*************************************************************************</span>
<a name="l00476"></a>00476 <span class="comment"> Implementation Data</span>
<a name="l00477"></a>00477 <span class="comment"> *************************************************************************/</span>
<a name="l00478"></a><a class="code" href="classCEGUI_1_1TabControl.html#ad3ac3ad1e5f8edb601e2c54aac238f3d">00478</a> <a class="code" href="classCEGUI_1_1UDim.html" title="Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...">UDim</a> <a class="code" href="classCEGUI_1_1TabControl.html#ad3ac3ad1e5f8edb601e2c54aac238f3d" title="The height of the tabs in pixels.">d_tabHeight</a>;
<a name="l00479"></a><a class="code" href="classCEGUI_1_1TabControl.html#a2befc32390fa2641aa68c99b960d9f7f">00479</a> <a class="code" href="classCEGUI_1_1UDim.html" title="Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...">UDim</a> <a class="code" href="classCEGUI_1_1TabControl.html#a2befc32390fa2641aa68c99b960d9f7f" title="The padding of the tabs relative to parent.">d_tabPadding</a>;
<a name="l00480"></a>00480 <span class="keyword">typedef</span> std::vector<TabButton*> TabButtonVector;
<a name="l00481"></a><a class="code" href="classCEGUI_1_1TabControl.html#ad20bad05b07f7084e96c9cf01381115a">00481</a> TabButtonVector <a class="code" href="classCEGUI_1_1TabControl.html#ad20bad05b07f7084e96c9cf01381115a" title="Sorting for tabs.">d_tabButtonVector</a>;
<a name="l00482"></a><a class="code" href="classCEGUI_1_1TabControl.html#a28f9ce6a3671ea7a0bede4d64dd71309">00482</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1TabControl.html#a28f9ce6a3671ea7a0bede4d64dd71309" title="The offset in pixels of the first tab.">d_firstTabOffset</a>;
<a name="l00483"></a><a class="code" href="classCEGUI_1_1TabControl.html#a0927c212d78b468ce6435f60216fd876">00483</a> TabPanePosition <a class="code" href="classCEGUI_1_1TabControl.html#a0927c212d78b468ce6435f60216fd876" title="The position of the tab pane.">d_tabPanePos</a>;
<a name="l00484"></a><a class="code" href="classCEGUI_1_1TabControl.html#ab9c24c8accc023d24ad42d764579e9c6">00484</a> <span class="keywordtype">float</span> <a class="code" href="classCEGUI_1_1TabControl.html#ab9c24c8accc023d24ad42d764579e9c6">d_btGrabPos</a>;
<a name="l00485"></a>00485
<a name="l00486"></a><a class="code" href="classCEGUI_1_1TabControl.html#a05d7f6439728ec73b9bbb0fa3514541f">00486</a> std::map<Window*, Event::ScopedConnection> <a class="code" href="classCEGUI_1_1TabControl.html#a05d7f6439728ec73b9bbb0fa3514541f" title="Container used to track event subscriptions to added tab windows.">d_eventConnections</a>;
<a name="l00487"></a>00487 <span class="comment">/*************************************************************************</span>
<a name="l00488"></a>00488 <span class="comment"> Abstract Implementation Functions (must be provided by derived class)</span>
<a name="l00489"></a>00489 <span class="comment"> *************************************************************************/</span>
<a name="l00498"></a>00498 <span class="comment">//virtual TabButton* createTabButton_impl(const String& name) const = 0;</span>
<a name="l00499"></a>00499
<a name="l00507"></a>00507 <span class="keywordtype">void</span> calculateTabButtonSizePosition(<span class="keywordtype">size_t</span> index);
<a name="l00508"></a>00508
<a name="l00509"></a>00509 <span class="keyword">protected</span>:
<a name="l00510"></a>00510 <span class="comment">/*************************************************************************</span>
<a name="l00511"></a>00511 <span class="comment"> Static Properties for this class</span>
<a name="l00512"></a>00512 <span class="comment"> *************************************************************************/</span>
<a name="l00513"></a>00513 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1TabControlProperties_1_1TabHeight.html" title="Property to access the tab height setting of the tab control.">TabControlProperties::TabHeight</a> d_tabHeightProperty;
<a name="l00514"></a>00514 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1TabControlProperties_1_1TabTextPadding.html" title="Property to access the tab text padding setting of the tab control.">TabControlProperties::TabTextPadding</a> d_tabTextPaddingProperty;
<a name="l00515"></a>00515 <span class="keyword">static</span> <a class="code" href="classCEGUI_1_1TabControlProperties_1_1TabPanePosition.html" title="Property to query/set the position of the button pane in tab control.">TabControlProperties::TabPanePosition</a> d_tabPanePosition;
<a name="l00516"></a>00516
<a name="l00517"></a>00517 <span class="comment">/*************************************************************************</span>
<a name="l00518"></a>00518 <span class="comment"> Private methods</span>
<a name="l00519"></a>00519 <span class="comment"> *************************************************************************/</span>
<a name="l00520"></a>00520 <span class="keywordtype">void</span> addTabControlProperties(<span class="keywordtype">void</span>);
<a name="l00521"></a>00521
<a name="l00522"></a>00522 <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="l00523"></a>00523 <span class="keywordtype">void</span> removeChild_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="l00524"></a>00524
<a name="l00525"></a>00525 <span class="comment">/*************************************************************************</span>
<a name="l00526"></a>00526 <span class="comment"> Event handlers</span>
<a name="l00527"></a>00527 <span class="comment"> *************************************************************************/</span>
<a name="l00528"></a>00528 <span class="keywordtype">bool</span> handleContentWindowTextChanged(<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>& args);
<a name="l00529"></a>00529 <span class="keywordtype">bool</span> handleTabButtonClicked(<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>& args);
<a name="l00530"></a>00530 <span class="keywordtype">bool</span> handleScrollPane(<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="l00531"></a>00531 <span class="keywordtype">bool</span> handleDraggedPane(<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="l00532"></a>00532 <span class="keywordtype">bool</span> handleWheeledPane(<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="l00533"></a>00533 };
<a name="l00534"></a>00534
<a name="l00535"></a>00535
<a name="l00536"></a>00536 } <span class="comment">// End of CEGUI namespace section</span>
<a name="l00537"></a>00537
<a name="l00538"></a>00538
<a name="l00539"></a>00539 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00540"></a>00540 <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span>
<a name="l00541"></a>00541 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00542"></a>00542 <span class="preprocessor"></span>
<a name="l00543"></a>00543 <span class="preprocessor">#endif // end of guard _CEGUITabControl_h_</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:40 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>
|