1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3multilineedit.cpp -->
<title>Qt 4.8: Q3MultiLineEdit Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li>Qt3SupportLight</li>
<li>Q3MultiLineEdit</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Q3MultiLineEdit Class Reference</h1>
<!-- $$$Q3MultiLineEdit-brief -->
<p>The Q3MultiLineEdit widget is a simple editor for inputting text. <a href="#details">More...</a></p>
<!-- @@@Q3MultiLineEdit -->
<pre class="cpp"> <span class="preprocessor">#include <Q3MultiLineEdit></span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qmultilineedit">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="q3textedit.html">Q3TextEdit</a>.</p>
<ul>
<li><a href="q3multilineedit-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="q3multilineedit.html#alignment-prop">alignment</a></b> : Qt::Alignment</li>
<li class="fn"><b><a href="q3multilineedit.html#atBeginning-prop">atBeginning</a></b> : const bool</li>
<li class="fn"><b><a href="q3multilineedit.html#atEnd-prop">atEnd</a></b> : const bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3multilineedit.html#edited-prop">edited</a></b> : bool</li>
<li class="fn"><b><a href="q3multilineedit.html#numLines-prop">numLines</a></b> : const int</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">19 properties inherited from <a href="q3textedit.html#properties">Q3TextEdit</a></li>
<li class="fn">10 properties inherited from <a href="q3scrollview.html#properties">Q3ScrollView</a></li>
<li class="fn">2 properties inherited from <a href="q3frame.html#properties">Q3Frame</a></li>
<li class="fn">6 properties inherited from <a href="qframe.html#properties">QFrame</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#Q3MultiLineEdit">Q3MultiLineEdit</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#dtor.Q3MultiLineEdit">~Q3MultiLineEdit</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#alignment-prop">alignment</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#atBeginning-prop">atBeginning</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#atEnd-prop">atEnd</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#autoUpdate">autoUpdate</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#cursorWordBackward">cursorWordBackward</a></b> ( bool <i>mark</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#cursorWordForward">cursorWordForward</a></b> ( bool <i>mark</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#edited-prop">edited</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#hasMarkedText">hasMarkedText</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#insertAt-2">insertAt</a></b> ( const QString & <i>s</i>, int <i>line</i>, int <i>col</i>, bool <i>mark</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#insertLine">insertLine</a></b> ( const QString & <i>txt</i>, int <i>line</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#markedText">markedText</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#maxLines">maxLines</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#numLines-prop">numLines</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#removeLine">removeLine</a></b> ( int <i>paragraph</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#alignment-prop">setAlignment</a></b> ( Qt::Alignment <i>flags</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#setCursorPosition-2">setCursorPosition</a></b> ( int <i>line</i>, int <i>col</i>, bool <i>mark</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#edited-prop">setEdited</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#setMaxLines">setMaxLines</a></b> ( int <i>max</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#textLine">textLine</a></b> ( int <i>line</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#totalHeight">totalHeight</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#totalWidth">totalWidth</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#insertAt">insertAt</a></b> ( const QString & <i>s</i>, int <i>line</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#setCursorPosition">setCursorPosition</a></b> ( int <i>line</i>, int <i>col</i> )</td></tr>
</table>
<ul>
<li class="fn">53 public functions inherited from <a href="q3textedit.html#public-functions">Q3TextEdit</a></li>
<li class="fn">49 public functions inherited from <a href="q3scrollview.html#public-functions">Q3ScrollView</a></li>
<li class="fn">4 public functions inherited from <a href="q3frame.html#public-functions">Q3Frame</a></li>
<li class="fn">14 public functions inherited from <a href="qframe.html#public-functions">QFrame</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#deselect">deselect</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">60 public slots inherited from <a href="q3textedit.html#public-slots">Q3TextEdit</a></li>
<li class="fn">8 public slots inherited from <a href="q3scrollview.html#public-slots">Q3ScrollView</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#backspace">backspace</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#cursorDown">cursorDown</a></b> ( bool <i>mark</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#cursorLeft">cursorLeft</a></b> ( bool <i>mark</i> = false, bool <i>wrap</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#cursorPoint">cursorPoint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#cursorRight">cursorRight</a></b> ( bool <i>mark</i> = false, bool <i>wrap</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#cursorUp">cursorUp</a></b> ( bool <i>mark</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#end">end</a></b> ( bool <i>mark</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#getMarkedRegion">getMarkedRegion</a></b> ( int * <i>line1</i>, int * <i>col1</i>, int * <i>line2</i>, int * <i>col2</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#home">home</a></b> ( bool <i>mark</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#insertAndMark">insertAndMark</a></b> ( const QString & <i>str</i>, bool <i>mark</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#killLine">killLine</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#lineLength">lineLength</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#newLine">newLine</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#pageDown">pageDown</a></b> ( bool <i>mark</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3multilineedit.html#pageUp">pageUp</a></b> ( bool <i>mark</i> = false )</td></tr>
</table>
<ul>
<li class="fn">22 protected functions inherited from <a href="q3textedit.html#protected-functions">Q3TextEdit</a></li>
<li class="fn">26 protected functions inherited from <a href="q3scrollview.html#protected-functions">Q3ScrollView</a></li>
<li class="fn">5 protected functions inherited from <a href="q3frame.html#protected-functions">Q3Frame</a></li>
<li class="fn">3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">14 signals inherited from <a href="q3textedit.html#signals">Q3TextEdit</a></li>
<li class="fn">5 signals inherited from <a href="q3scrollview.html#signals">Q3ScrollView</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3MultiLineEdit-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3MultiLineEdit widget is a simple editor for inputting text.</p>
<p>The Q3MultiLineEdit was a simple editor widget in former Qt versions. Qt 3.0 includes a new richtext engine which obsoletes Q3MultiLineEdit. It is still included for compatibility reasons. It is now a subclass of <a href="q3textedit.html">Q3TextEdit</a>, and provides enough of the old Q3MultiLineEdit API to keep old applications working.</p>
<p>If you implement something new with Q3MultiLineEdit, we suggest using <a href="q3textedit.html">Q3TextEdit</a> instead and call Q3TextEdit::setTextFormat(<a href="qt.html#TextFormat-enum">Qt::PlainText</a>).</p>
<p>Although most of the old Q3MultiLineEdit API is still available, there is a few difference. The old Q3MultiLineEdit operated on lines, not on paragraphs. As lines change all the time during wordwrap, the new richtext engine uses paragraphs as basic elements in the data structure. All functions (<a href="q3multilineedit.html#numLines-prop">numLines</a>(), <a href="q3multilineedit.html#textLine">textLine</a>(), etc.) that operated on lines, now operate on paragraphs. Further, getString() has been removed completely. It revealed too much of the internal data structure.</p>
<p>Applications which made normal and reasonable use of Q3MultiLineEdit should still work without problems. Some odd usage will require some porting. In these cases, it may be better to use <a href="q3textedit.html">Q3TextEdit</a> now.</p>
</div>
<p><b>See also </b><a href="q3textedit.html">Q3TextEdit</a>.</p>
<!-- @@@Q3MultiLineEdit -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$alignment-prop$$$alignment$$$setAlignmentQt::Alignment -->
<h3 class="fn"><a name="alignment-prop"></a><span class="name">alignment</span> : <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span></h3>
<p>This property holds the editor's paragraph alignment.</p>
<p>Sets the alignment to flag, which must be <a href="qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignHCenter</a>, or <tt>Qt::AlignRight</tt>.</p>
<p>If flag is an illegal flag, nothing happens.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><span class="name"><b>alignment</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlignment</b></span> ( Qt::Alignment <i>flags</i> )</td></tr>
</table>
<!-- @@@alignment -->
<!-- $$$atBeginning-prop$$$atBeginning -->
<h3 class="fn"><a name="atBeginning-prop"></a><span class="name">atBeginning</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the cursor is placed at the beginning of the text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>atBeginning</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="q3multilineedit.html#atEnd-prop">atEnd</a>.</p>
<!-- @@@atBeginning -->
<!-- $$$atEnd-prop$$$atEnd -->
<h3 class="fn"><a name="atEnd-prop"></a><span class="name">atEnd</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the cursor is placed at the end of the text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>atEnd</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="q3multilineedit.html#atBeginning-prop">atBeginning</a>.</p>
<!-- @@@atEnd -->
<!-- $$$edited-prop$$$edited$$$setEditedbool -->
<h3 class="fn"><a name="edited-prop"></a><span class="name">edited</span> : <span class="type">bool</span></h3>
<p>This property holds whether the document has been edited by the user.</p>
<p>This is the same as <a href="q3textedit.html" class="compat">Q3TextEdit</a>'s "modifed" property.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>edited</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEdited</b></span> ( bool )</td></tr>
</table>
<!-- @@@edited -->
<!-- $$$numLines-prop$$$numLines -->
<h3 class="fn"><a name="numLines-prop"></a><span class="name">numLines</span> : const <span class="type">int</span></h3>
<p>This property holds the number of paragraphs in the editor.</p>
<p>The count includes any empty paragraph at top and bottom, so for an empty editor this method returns 1.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>numLines</b></span> () const</td></tr>
</table>
<!-- @@@numLines -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3MultiLineEdit[overload1]$$$Q3MultiLineEditQWidget*constchar* -->
<h3 class="fn"><a name="Q3MultiLineEdit"></a>Q3MultiLineEdit::<span class="name">Q3MultiLineEdit</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs a new, empty, <a href="q3multilineedit.html" class="compat">Q3MultiLineEdit</a> with parent <i>parent</i> called <i>name</i>.</p>
<!-- @@@Q3MultiLineEdit -->
<!-- $$$~Q3MultiLineEdit[overload1]$$$~Q3MultiLineEdit -->
<h3 class="fn"><a name="dtor.Q3MultiLineEdit"></a>Q3MultiLineEdit::<span class="name">~Q3MultiLineEdit</span> ()</h3>
<p>Destructor.</p>
<!-- @@@~Q3MultiLineEdit -->
<!-- $$$autoUpdate[overload1]$$$autoUpdate -->
<h3 class="fn"><a name="autoUpdate"></a><span class="type">bool</span> Q3MultiLineEdit::<span class="name">autoUpdate</span> () const</h3>
<p>This function is a noop that always returns true.</p>
<!-- @@@autoUpdate -->
<!-- $$$backspace[overload1]$$$backspace -->
<h3 class="fn"><a name="backspace"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">backspace</span> ()<tt> [virtual protected]</tt></h3>
<p>Deletes the character on the left side of the text cursor and moves the cursor one position to the left. If a text has been selected by the user (e.g. by clicking and dragging) the cursor is put at the beginning of the selected text and the selected text is removed.</p>
<p><a href="q3textedit.html#del">del</a>()</p>
<!-- @@@backspace -->
<!-- $$$cursorDown[overload1]$$$cursorDownbool -->
<h3 class="fn"><a name="cursorDown"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">cursorDown</span> ( <span class="type">bool</span> <i>mark</i> = false )<tt> [virtual protected]</tt></h3>
<p>Moves the cursor one line down. If <i>mark</i> is true, the text is selected.</p>
<p><b>See also </b><a href="q3multilineedit.html#cursorUp">cursorUp</a>(), <a href="q3multilineedit.html#cursorLeft">cursorLeft</a>(), and <a href="q3multilineedit.html#cursorRight">cursorRight</a>().</p>
<!-- @@@cursorDown -->
<!-- $$$cursorLeft[overload1]$$$cursorLeftboolbool -->
<h3 class="fn"><a name="cursorLeft"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">cursorLeft</span> ( <span class="type">bool</span> <i>mark</i> = false, <span class="type">bool</span> <i>wrap</i> = true )<tt> [virtual protected]</tt></h3>
<p>Moves the cursor one character to the left. If <i>mark</i> is true, the text is selected. The <i>wrap</i> parameter is currently ignored.</p>
<p><b>See also </b><a href="q3multilineedit.html#cursorRight">cursorRight</a>(), <a href="q3multilineedit.html#cursorUp">cursorUp</a>(), and <a href="q3multilineedit.html#cursorDown">cursorDown</a>().</p>
<!-- @@@cursorLeft -->
<!-- $$$cursorPoint[overload1]$$$cursorPoint -->
<h3 class="fn"><a name="cursorPoint"></a><span class="type"><a href="qpoint.html">QPoint</a></span> Q3MultiLineEdit::<span class="name">cursorPoint</span> () const<tt> [protected]</tt></h3>
<p>Returns the top center point where the cursor is drawn.</p>
<!-- @@@cursorPoint -->
<!-- $$$cursorRight[overload1]$$$cursorRightboolbool -->
<h3 class="fn"><a name="cursorRight"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">cursorRight</span> ( <span class="type">bool</span> <i>mark</i> = false, <span class="type">bool</span> <i>wrap</i> = true )<tt> [virtual protected]</tt></h3>
<p>Moves the cursor one character to the right. If <i>mark</i> is true, the text is selected. The <i>wrap</i> parameter is currently ignored.</p>
<p><b>See also </b><a href="q3multilineedit.html#cursorLeft">cursorLeft</a>(), <a href="q3multilineedit.html#cursorUp">cursorUp</a>(), and <a href="q3multilineedit.html#cursorDown">cursorDown</a>().</p>
<!-- @@@cursorRight -->
<!-- $$$cursorUp[overload1]$$$cursorUpbool -->
<h3 class="fn"><a name="cursorUp"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">cursorUp</span> ( <span class="type">bool</span> <i>mark</i> = false )<tt> [virtual protected]</tt></h3>
<p>Moves the cursor up one line. If <i>mark</i> is true, the text is selected.</p>
<p><b>See also </b><a href="q3multilineedit.html#cursorDown">cursorDown</a>(), <a href="q3multilineedit.html#cursorLeft">cursorLeft</a>(), and <a href="q3multilineedit.html#cursorRight">cursorRight</a>().</p>
<!-- @@@cursorUp -->
<!-- $$$cursorWordBackward[overload1]$$$cursorWordBackwardbool -->
<h3 class="fn"><a name="cursorWordBackward"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">cursorWordBackward</span> ( <span class="type">bool</span> <i>mark</i> )</h3>
<p>Moves the cursor one word to the left. If <i>mark</i> is true, the text is selected.</p>
<p><b>See also </b><a href="q3multilineedit.html#cursorWordForward">cursorWordForward</a>().</p>
<!-- @@@cursorWordBackward -->
<!-- $$$cursorWordForward[overload1]$$$cursorWordForwardbool -->
<h3 class="fn"><a name="cursorWordForward"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">cursorWordForward</span> ( <span class="type">bool</span> <i>mark</i> )</h3>
<p>Moves the cursor one word to the right. If <i>mark</i> is true, the text is selected.</p>
<p><b>See also </b><a href="q3multilineedit.html#cursorWordBackward">cursorWordBackward</a>().</p>
<!-- @@@cursorWordForward -->
<!-- $$$deselect[overload1]$$$deselect -->
<h3 class="fn"><a name="deselect"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">deselect</span> ()<tt> [slot]</tt></h3>
<!-- @@@deselect -->
<!-- $$$end[overload1]$$$endbool -->
<h3 class="fn"><a name="end"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">end</span> ( <span class="type">bool</span> <i>mark</i> = false )<tt> [virtual protected]</tt></h3>
<p>Moves the text cursor to the right end of the line. If <i>mark</i> is true, text is selected toward the last position. If it is false and the cursor is moved, all selected text is unselected.</p>
<p><b>See also </b><a href="q3multilineedit.html#home">home</a>().</p>
<!-- @@@end -->
<!-- $$$getMarkedRegion[overload1]$$$getMarkedRegionint*int*int*int* -->
<h3 class="fn"><a name="getMarkedRegion"></a><span class="type">bool</span> Q3MultiLineEdit::<span class="name">getMarkedRegion</span> ( <span class="type">int</span> * <i>line1</i>, <span class="type">int</span> * <i>col1</i>, <span class="type">int</span> * <i>line2</i>, <span class="type">int</span> * <i>col2</i> ) const<tt> [protected]</tt></h3>
<p>If there is selected text, sets <i>line1</i>, <i>col1</i>, <i>line2</i> and <i>col2</i> to the start and end of the selected region and returns true. Returns false if there is no selected text.</p>
<!-- @@@getMarkedRegion -->
<!-- $$$hasMarkedText[overload1]$$$hasMarkedText -->
<h3 class="fn"><a name="hasMarkedText"></a><span class="type">bool</span> Q3MultiLineEdit::<span class="name">hasMarkedText</span> () const</h3>
<p>Returns true if there is selected text.</p>
<!-- @@@hasMarkedText -->
<!-- $$$home[overload1]$$$homebool -->
<h3 class="fn"><a name="home"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">home</span> ( <span class="type">bool</span> <i>mark</i> = false )<tt> [virtual protected]</tt></h3>
<p>Moves the text cursor to the left end of the line. If <i>mark</i> is true, text is selected toward the first position. If it is false and the cursor is moved, all selected text is unselected.</p>
<p><b>See also </b><a href="q3multilineedit.html#end">end</a>().</p>
<!-- @@@home -->
<!-- $$$insertAndMark[overload1]$$$insertAndMarkconstQString&bool -->
<h3 class="fn"><a name="insertAndMark"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">insertAndMark</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>str</i>, <span class="type">bool</span> <i>mark</i> )<tt> [virtual protected]</tt></h3>
<p>Inserts <i>str</i> at the current cursor position and selects the text if <i>mark</i> is true.</p>
<!-- @@@insertAndMark -->
<!-- $$$insertAt[overload1]$$$insertAtconstQString&intint -->
<h3 class="fn"><a name="insertAt"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">insertAt</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>s</i>, <span class="type">int</span> <i>line</i>, <span class="type">int</span> <i>col</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3textedit.html#insertAt">Q3TextEdit::insertAt</a>().</p>
<!-- @@@insertAt -->
<!-- $$$insertAt$$$insertAtconstQString&intintbool -->
<h3 class="fn"><a name="insertAt-2"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">insertAt</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>s</i>, <span class="type">int</span> <i>line</i>, <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>mark</i> )<tt> [virtual]</tt></h3>
<p>Inserts string <i>s</i> at paragraph number <i>line</i>, after character number <i>col</i> in the paragraph. If <i>s</i> contains newline characters, new lines are inserted. If <i>mark</i> is true the inserted string will be selected.</p>
<p>The cursor position is adjusted.</p>
<!-- @@@insertAt -->
<!-- $$$insertLine[overload1]$$$insertLineconstQString&int -->
<h3 class="fn"><a name="insertLine"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">insertLine</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>txt</i>, <span class="type">int</span> <i>line</i> = -1 )<tt> [virtual]</tt></h3>
<p>Inserts <i>txt</i> at paragraph number <i>line</i>. If <i>line</i> is less than zero, or larger than the number of paragraphs, the new text is put at the end. If <i>txt</i> contains newline characters, several paragraphs are inserted.</p>
<p>The cursor position is not changed.</p>
<!-- @@@insertLine -->
<!-- $$$killLine[overload1]$$$killLine -->
<h3 class="fn"><a name="killLine"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">killLine</span> ()<tt> [virtual protected]</tt></h3>
<p>Deletes text from the current cursor position to the end of the line. (Note that this function still operates on lines, not paragraphs.)</p>
<!-- @@@killLine -->
<!-- $$$lineLength[overload1]$$$lineLengthint -->
<h3 class="fn"><a name="lineLength"></a><span class="type">int</span> Q3MultiLineEdit::<span class="name">lineLength</span> ( <span class="type">int</span> <i>row</i> ) const<tt> [protected]</tt></h3>
<p>Returns the number of characters at paragraph number <i>row</i>. If <i>row</i> is out of range, -1 is returned.</p>
<!-- @@@lineLength -->
<!-- $$$markedText[overload1]$$$markedText -->
<h3 class="fn"><a name="markedText"></a><span class="type"><a href="qstring.html">QString</a></span> Q3MultiLineEdit::<span class="name">markedText</span> () const</h3>
<p>Returns a copy of the selected text.</p>
<!-- @@@markedText -->
<!-- $$$maxLines[overload1]$$$maxLines -->
<h3 class="fn"><a name="maxLines"></a><span class="type">int</span> Q3MultiLineEdit::<span class="name">maxLines</span> () const</h3>
<p><b>See also </b><a href="q3multilineedit.html#setMaxLines">setMaxLines</a>().</p>
<!-- @@@maxLines -->
<!-- $$$newLine[overload1]$$$newLine -->
<h3 class="fn"><a name="newLine"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">newLine</span> ()<tt> [virtual protected]</tt></h3>
<p>Splits the paragraph at the current cursor position.</p>
<!-- @@@newLine -->
<!-- $$$pageDown[overload1]$$$pageDownbool -->
<h3 class="fn"><a name="pageDown"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">pageDown</span> ( <span class="type">bool</span> <i>mark</i> = false )<tt> [virtual protected]</tt></h3>
<p>Moves the cursor one page down. If <i>mark</i> is true, the text is selected.</p>
<!-- @@@pageDown -->
<!-- $$$pageUp[overload1]$$$pageUpbool -->
<h3 class="fn"><a name="pageUp"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">pageUp</span> ( <span class="type">bool</span> <i>mark</i> = false )<tt> [virtual protected]</tt></h3>
<p>Moves the cursor one page up. If <i>mark</i> is true, the text is selected.</p>
<!-- @@@pageUp -->
<!-- $$$removeLine[overload1]$$$removeLineint -->
<h3 class="fn"><a name="removeLine"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">removeLine</span> ( <span class="type">int</span> <i>paragraph</i> )<tt> [virtual]</tt></h3>
<p>Deletes the paragraph at paragraph number <i>paragraph</i>. If <i>paragraph</i> is less than zero or larger than the number of paragraphs, nothing is deleted.</p>
<!-- @@@removeLine -->
<!-- $$$setCursorPosition[overload1]$$$setCursorPositionintint -->
<h3 class="fn"><a name="setCursorPosition"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">setCursorPosition</span> ( <span class="type">int</span> <i>line</i>, <span class="type">int</span> <i>col</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3textedit.html#setCursorPosition">Q3TextEdit::setCursorPosition</a>().</p>
<!-- @@@setCursorPosition -->
<!-- $$$setCursorPosition$$$setCursorPositionintintbool -->
<h3 class="fn"><a name="setCursorPosition-2"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">setCursorPosition</span> ( <span class="type">int</span> <i>line</i>, <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>mark</i> )<tt> [virtual]</tt></h3>
<p>Sets the cursor position to character number <i>col</i> in paragraph number <i>line</i>. The parameters are adjusted to lie within the legal range.</p>
<p>If <i>mark</i> is false, the selection is cleared. otherwise it is extended.</p>
<!-- @@@setCursorPosition -->
<!-- $$$setMaxLines[overload1]$$$setMaxLinesint -->
<h3 class="fn"><a name="setMaxLines"></a><span class="type">void</span> Q3MultiLineEdit::<span class="name">setMaxLines</span> ( <span class="type">int</span> <i>max</i> )</h3>
<p>Sets the maximum number of lines this <a href="q3multilineedit.html" class="compat">Q3MultiLineEdit</a> will hold to <i>max</i>.</p>
<p><b>See also </b><a href="q3multilineedit.html#maxLines">maxLines</a>().</p>
<!-- @@@setMaxLines -->
<!-- $$$textLine[overload1]$$$textLineint -->
<h3 class="fn"><a name="textLine"></a><span class="type"><a href="qstring.html">QString</a></span> Q3MultiLineEdit::<span class="name">textLine</span> ( <span class="type">int</span> <i>line</i> ) const</h3>
<p>Returns the text at line number <i>line</i> (possibly the empty string), or a null if <i>line</i> is invalid.</p>
<!-- @@@textLine -->
<!-- $$$totalHeight[overload1]$$$totalHeight -->
<h3 class="fn"><a name="totalHeight"></a><span class="type">int</span> Q3MultiLineEdit::<span class="name">totalHeight</span> () const</h3>
<!-- @@@totalHeight -->
<!-- $$$totalWidth[overload1]$$$totalWidth -->
<h3 class="fn"><a name="totalWidth"></a><span class="type">int</span> Q3MultiLineEdit::<span class="name">totalWidth</span> () const</h3>
<!-- @@@totalWidth -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|