Home · All Classes · Annotated · Functions

QDLWidgetClient Class Reference

The QDLWidgetClient class is a QDLClient that interfaces with a widget. More...

#include <QDLWidgetClient>

Inherits QDLClient.

Public Functions

Public Slots

Protected Functions

Additional Inherited Members


Detailed Description

The QDLWidgetClient class is a QDLClient that interfaces with a widget.

A QDLWidgetClient has all the capabilities of a QDLClient, but also depends on a widget and interfaces with its text.

A QDLWidgetClient can currently interface with the QTextEdit widget. Other widgets may be supported in later releases of Qtopia.


Member Function Documentation

QDLWidgetClient::QDLWidgetClient ( QWidget * w, const char * name )

Constructs a QDLWidgetClient with w as the parent and the monitored widget, and name is the name specified for the QDL client.

QDLWidgetClient::~QDLWidgetClient ()

Destroys a QDLWidgetClient.

void QDLWidgetClient::addLink ( const QDLLink & newLink )   [virtual]

Adds newLink to the client. A new link identifier is generated. The link is also added into the widget's text.

Reimplemented from QDLClient.

QString QDLWidgetClient::hint () const

Returns the request hint for this widget. If a hint has not been explicitly set with QDLClient::setHint(), then this function tries to dynamically determine the hint from the text of the client's widget, otherwise it just returns QDLClient::hint()

void QDLWidgetClient::removeLink ( uint lid )   [virtual]

Removes the link specified by the link identifier lid. It is removed from QDLClient and in the widget's text.

Reimplemented from QDLClient.

void QDLWidgetClient::requestLink ()   [slot]

Convenience function. Simply calls QDLClient::requestLink() with the client's widget as parent.

void QDLWidgetClient::setLink ( uint lid, const QDLLink & newLink )   [virtual]

Sets the link specified by the link identifier lid to newLink both in QDLClient and in the widget's text. If no link for lid currently exists, it is created and added to the widget's text.

Reimplemented from QDLClient.

QMenu * QDLWidgetClient::setupStandardContextMenu ( QMenu * context = 0 )

Automatically creates a standard Insert Link action in the QMenu specified by context. If context is 0, a QSoftMenuBar::menuFor is created.

The action is connected to QDLWidgetClient::requestLink().

QString QDLWidgetClient::text () const   [virtual protected]

Returns the text of the client's widget.

void QDLWidgetClient::verifyLinks ()   [virtual slot]

Verifies that all internal links of QDLClient exist in the widget's text. Any internal link that doesn't exist in the widget's text is removed.

Reimplemented from QDLClient.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7