1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/tools/designer/src/lib/sdk/abstractformwindowcursor.cpp -->
7
<title>Qt 4.0: QDesignerFormWindowCursorInterface Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QDesignerFormWindowCursorInterface Class Reference</h1>
21
<p>The QDesignerFormWindowCursorInterface class provides an interface to the form window's text cursor. <a href="#details">More...</a></p>
22
<pre>#include <QDesignerFormWindowCursorInterface></pre><p>Part of the <a href="qtdesigner.html">QtDesigner</a> module.</p>
24
<li><a href="qdesignerformwindowcursorinterface-members.html">List of all members, including inherited members</a></li>
26
<a name="public-types"></a>
29
<li><div class="fn"/>enum <b><a href="qdesignerformwindowcursorinterface.html#MoveMode-enum">MoveMode</a></b> { MoveAnchor, KeepAnchor }</li>
30
<li><div class="fn"/>enum <b><a href="qdesignerformwindowcursorinterface.html#MoveOperation-enum">MoveOperation</a></b> { NoMove, Start, End, Next, ..., Down }</li>
32
<a name="public-functions"></a>
33
<h3>Public Functions</h3>
35
<li><div class="fn"/>virtual <b><a href="qdesignerformwindowcursorinterface.html#dtor.QDesignerFormWindowCursorInterface">~QDesignerFormWindowCursorInterface</a></b> ()</li>
36
<li><div class="fn"/>virtual QWidget * <b><a href="qdesignerformwindowcursorinterface.html#current">current</a></b> () const = 0</li>
37
<li><div class="fn"/>virtual QDesignerFormWindowInterface * <b><a href="qdesignerformwindowcursorinterface.html#formWindow">formWindow</a></b> () const = 0</li>
38
<li><div class="fn"/>virtual bool <b><a href="qdesignerformwindowcursorinterface.html#hasSelection">hasSelection</a></b> () const = 0</li>
39
<li><div class="fn"/>bool <b><a href="qdesignerformwindowcursorinterface.html#isWidgetSelected">isWidgetSelected</a></b> ( QWidget * <i>widget</i> ) const</li>
40
<li><div class="fn"/>virtual bool <b><a href="qdesignerformwindowcursorinterface.html#movePosition">movePosition</a></b> ( MoveOperation <i>operation</i>, MoveMode <i>mode</i> = MoveAnchor ) = 0</li>
41
<li><div class="fn"/>virtual int <b><a href="qdesignerformwindowcursorinterface.html#position">position</a></b> () const = 0</li>
42
<li><div class="fn"/>virtual void <b><a href="qdesignerformwindowcursorinterface.html#resetWidgetProperty">resetWidgetProperty</a></b> ( QWidget * <i>widget</i>, const QString & <i>name</i> ) = 0</li>
43
<li><div class="fn"/>virtual QWidget * <b><a href="qdesignerformwindowcursorinterface.html#selectedWidget">selectedWidget</a></b> ( int <i>index</i> ) const = 0</li>
44
<li><div class="fn"/>virtual int <b><a href="qdesignerformwindowcursorinterface.html#selectedWidgetCount">selectedWidgetCount</a></b> () const = 0</li>
45
<li><div class="fn"/>virtual void <b><a href="qdesignerformwindowcursorinterface.html#setPosition">setPosition</a></b> ( int <i>position</i>, MoveMode <i>mode</i> = MoveAnchor ) = 0</li>
46
<li><div class="fn"/>virtual void <b><a href="qdesignerformwindowcursorinterface.html#setProperty">setProperty</a></b> ( const QString & <i>name</i>, const QVariant & <i>value</i> ) = 0</li>
47
<li><div class="fn"/>virtual void <b><a href="qdesignerformwindowcursorinterface.html#setWidgetProperty">setWidgetProperty</a></b> ( QWidget * <i>widget</i>, const QString & <i>name</i>, const QVariant & <i>value</i> ) = 0</li>
48
<li><div class="fn"/>virtual QWidget * <b><a href="qdesignerformwindowcursorinterface.html#widget">widget</a></b> ( int <i>index</i> ) const = 0</li>
49
<li><div class="fn"/>virtual int <b><a href="qdesignerformwindowcursorinterface.html#widgetCount">widgetCount</a></b> () const = 0</li>
51
<a name="details"></a>
53
<h2>Detailed Description</h2>
54
<p>The QDesignerFormWindowCursorInterface class provides an interface to the form window's text cursor.</p>
56
<h2>Member Type Documentation</h2>
57
<h3 class="fn"><a name="MoveMode-enum"></a>enum QDesignerFormWindowCursorInterface::MoveMode</h3>
58
<p>This enum describes the different modes that are used when the text cursor moves.</p>
59
<table border="1" cellpadding="2" cellspacing="1" width="100%">
60
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
61
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::MoveAnchor</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The anchor moves with the cursor to its new location.</td></tr>
62
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::KeepAnchor</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The anchor remains at the cursor's old location.</td></tr>
64
<h3 class="fn"><a name="MoveOperation-enum"></a>enum QDesignerFormWindowCursorInterface::MoveOperation</h3>
65
<p>This enum describes the types of text cursor operation that can occur in a form window.</p>
66
<table border="1" cellpadding="2" cellspacing="1" width="100%">
67
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
68
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::NoMove</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The cursor does not move.</td></tr>
69
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::Start</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Moves the cursor to the start of the focus chain.</td></tr>
70
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::End</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Moves the cursor to the end of the focus chain.</td></tr>
71
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::Next</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Moves the cursor to the next widget in the focus chain.</td></tr>
72
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::Prev</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Moves the cursor to the previous widget in the focus chain.</td></tr>
73
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::Left</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">The cursor moves to the left.</td></tr>
74
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::Right</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">The cursor moves to the right.</td></tr>
75
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::Up</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">The cursor moves upwards.</td></tr>
76
<tr><td valign="top"><tt>QDesignerFormWindowCursorInterface::Down</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">The cursor moves downwards.</td></tr>
79
<h2>Member Function Documentation</h2>
80
<h3 class="fn"><a name="dtor.QDesignerFormWindowCursorInterface"></a>QDesignerFormWindowCursorInterface::~QDesignerFormWindowCursorInterface () <tt> [virtual]</tt></h3>
81
<p>Destroys the cursor interface.</p>
82
<h3 class="fn"><a name="current"></a><a href="qwidget.html">QWidget</a> * QDesignerFormWindowCursorInterface::current () const <tt> [pure virtual]</tt></h3>
83
<p>Returns the current widget in the form.</p>
84
<p>See also <a href="qdesignerformwindowcursorinterface.html#selectedWidget">selectedWidget</a>().</p>
85
<h3 class="fn"><a name="formWindow"></a><a href="qdesignerformwindowinterface.html">QDesignerFormWindowInterface</a> * QDesignerFormWindowCursorInterface::formWindow () const <tt> [pure virtual]</tt></h3>
86
<p>Returns the interface to the form window associated with this interface.</p>
87
<h3 class="fn"><a name="hasSelection"></a>bool QDesignerFormWindowCursorInterface::hasSelection () const <tt> [pure virtual]</tt></h3>
88
<p>Returns true if the form window contains a selection; otherwise returns false.</p>
89
<h3 class="fn"><a name="isWidgetSelected"></a>bool QDesignerFormWindowCursorInterface::isWidgetSelected ( <a href="qwidget.html">QWidget</a> * <i>widget</i> ) const</h3>
90
<p>Returns true if the specified <i>widget</i> is selected; otherwise returns false.</p>
91
<h3 class="fn"><a name="movePosition"></a>bool QDesignerFormWindowCursorInterface::movePosition ( <a href="qdesignerformwindowcursorinterface.html#MoveOperation-enum">MoveOperation</a> <i>operation</i>, <a href="qdesignerformwindowcursorinterface.html#MoveMode-enum">MoveMode</a> <i>mode</i> = MoveAnchor ) <tt> [pure virtual]</tt></h3>
92
<p>Performs the given <i>operation</i> on the cursor using the specified <i>mode</i>, and returns true if it completed successfully; otherwise returns false.</p>
93
<h3 class="fn"><a name="position"></a>int QDesignerFormWindowCursorInterface::position () const <tt> [pure virtual]</tt></h3>
94
<p>Returns the cursor position.</p>
95
<p>See also <a href="qdesignerformwindowcursorinterface.html#setPosition">setPosition</a>().</p>
96
<h3 class="fn"><a name="resetWidgetProperty"></a>void QDesignerFormWindowCursorInterface::resetWidgetProperty ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qstring.html">QString</a> & <i>name</i> ) <tt> [pure virtual]</tt></h3>
97
<p>Resets the property with the given <i>name</i> in the specified <i>widget</i> to its default value.</p>
98
<p>See also <a href="qdesignerformwindowcursorinterface.html#setProperty">setProperty</a>().</p>
99
<h3 class="fn"><a name="selectedWidget"></a><a href="qwidget.html">QWidget</a> * QDesignerFormWindowCursorInterface::selectedWidget ( int <i>index</i> ) const <tt> [pure virtual]</tt></h3>
100
<p>Returns the widget with the given <i>index</i> in the list of selected widgets.</p>
101
<p>See also <a href="qdesignerformwindowcursorinterface.html#widget">widget</a>().</p>
102
<h3 class="fn"><a name="selectedWidgetCount"></a>int QDesignerFormWindowCursorInterface::selectedWidgetCount () const <tt> [pure virtual]</tt></h3>
103
<p>Returns the number of selected widgets in the form window.</p>
104
<h3 class="fn"><a name="setPosition"></a>void QDesignerFormWindowCursorInterface::setPosition ( int <i>position</i>, <a href="qdesignerformwindowcursorinterface.html#MoveMode-enum">MoveMode</a> <i>mode</i> = MoveAnchor ) <tt> [pure virtual]</tt></h3>
105
<p>Sets the position of the cursor to the given <i>position</i> using the <i>mode</i> to specify how it is moved there.</p>
106
<p>See also <a href="qdesignerformwindowcursorinterface.html#position">position</a>().</p>
107
<h3 class="fn"><a name="setProperty"></a>void QDesignerFormWindowCursorInterface::setProperty ( const <a href="qstring.html">QString</a> & <i>name</i>, const <a href="qvariant.html">QVariant</a> & <i>value</i> ) <tt> [pure virtual]</tt></h3>
108
<p>Sets the property with the given <i>name</i> in the current widget to the specified <i>value</i>.</p>
109
<p>See also <a href="qdesignerformwindowcursorinterface.html#setWidgetProperty">setWidgetProperty</a>() and <a href="qdesignerformwindowcursorinterface.html#resetWidgetProperty">resetWidgetProperty</a>().</p>
110
<h3 class="fn"><a name="setWidgetProperty"></a>void QDesignerFormWindowCursorInterface::setWidgetProperty ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qstring.html">QString</a> & <i>name</i>, const <a href="qvariant.html">QVariant</a> & <i>value</i> ) <tt> [pure virtual]</tt></h3>
111
<p>Sets the property with the given <i>name</i> in the <i>widget</i> to the specified <i>value</i>.</p>
112
<p>See also <a href="qdesignerformwindowcursorinterface.html#resetWidgetProperty">resetWidgetProperty</a>() and <a href="qdesignerformwindowcursorinterface.html#setProperty">setProperty</a>().</p>
113
<h3 class="fn"><a name="widget"></a><a href="qwidget.html">QWidget</a> * QDesignerFormWindowCursorInterface::widget ( int <i>index</i> ) const <tt> [pure virtual]</tt></h3>
114
<p>Returns the widget with the given <i>index</i> in the list of widgets on the form.</p>
115
<p>See also <a href="qdesignerformwindowcursorinterface.html#selectedWidget">selectedWidget</a>().</p>
116
<h3 class="fn"><a name="widgetCount"></a>int QDesignerFormWindowCursorInterface::widgetCount () const <tt> [pure virtual]</tt></h3>
117
<p>Returns the number of widgets in the form window.</p>
118
<p /><address><hr /><div align="center">
119
<table width="100%" cellspacing="0" border="0"><tr class="address">
120
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
121
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
122
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
123
</tr></table></div></address></body>