You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/doc/man/man3/tqassistantclient.3qt

144 lines
6.3 KiB

'\" t
.TH QAssistantClient 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QAssistantClient \- Means of using Qt Assistant as an application's help tool
.SH SYNOPSIS
\fC#include <ntqassistantclient.h>\fR
.PP
Inherits QObject.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQAssistantClient\fR ( const QString & path, QObject * parent = 0, const char * name = 0 )"
.br
.ti -1c
.BI "\fB~QAssistantClient\fR ()"
.br
.ti -1c
.BI "bool \fBisOpen\fR () const"
.br
.ti -1c
.BI "void \fBsetArguments\fR ( const QStringList & args )"
.br
.in -1c
.SS "Public Slots"
.in +1c
.ti -1c
.BI "virtual void \fBopenAssistant\fR ()"
.br
.ti -1c
.BI "virtual void \fBcloseAssistant\fR ()"
.br
.ti -1c
.BI "virtual void \fBshowPage\fR ( const QString & page )"
.br
.in -1c
.SS "Signals"
.in +1c
.ti -1c
.BI "void \fBassistantOpened\fR ()"
.br
.ti -1c
.BI "void \fBassistantClosed\fR ()"
.br
.ti -1c
.BI "void \fBerror\fR ( const QString & msg )"
.br
.in -1c
.SS "Properties"
.in +1c
.ti -1c
.BI "bool \fBopen\fR - whether Qt Assistant is open \fI(read " "only" ")\fR"
.br
.in -1c
.SH DESCRIPTION
The QAssistantClient class provides a means of using Qt Assistant as an application's help tool.
.PP
Using Qt Assistant is simple: Create a QAssistantClient instance, then call showPage() as often as necessary to show your help pages. When you call showPage(), Qt Assistant will be launched if it isn't already running.
.PP
The QAssistantClient instance can open (openAssistant()) or close (closeAssistant()) Qt Assistant whenever required. If Qt Assistant is open, isOpen() returns TRUE.
.PP
One QAssistantClient instance interacts with one Qt Assistant instance, so every time you call openAssistant(), showPage() or closeAssistant() they are applied to the particular Qt Assistant instance associated with the QAssistantClient.
.PP
When you call openAssistant() the assistantOpened() signal is emitted. Similarly when closeAssistant() is called, assistantClosed() is emitted. In either case, if an error occurs, error() is emitted.
.PP
This class is not included in the Qt library itself. To use it you must link against \fClibqassistantclient.a\fR (Unix) or \fCqassistantclient.lib\fR (Windows), which is built into \fCINSTALL/lib\fR if you built the Qt tools (\fCINSTALL\fR is the directory where Qt is installed). If you use qmake, then you can simply add the following line to your pro file:
.PP
.nf
.br
LIBS += -lqassistantclient
.br
.fi
.PP
See also "Adding Documentation to Qt Assistant" in the Qt Assistant manual.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QAssistantClient::QAssistantClient ( const QString & path, QObject * parent = 0, const char * name = 0 )"
Constructs an assistant client object. The \fIpath\fR specifies the path to the Qt Assistant executable. If \fIpath\fR is an empty string the system path (\fC%PATH%\fR or \fC$PATH\fR) is used.
.PP
The assistant client object is a child of \fIparent\fR and is called \fIname\fR.
.SH "QAssistantClient::~QAssistantClient ()"
Destroys the assistant client object and frees up all allocated resources.
.SH "void QAssistantClient::assistantClosed ()\fC [signal]\fR"
This signal is emitted when the connection to Qt Assistant is closed. This happens when the user exits Qt Assistant, or when an error in the server or client occurs, or if closeAssistant() is called.
.SH "void QAssistantClient::assistantOpened ()\fC [signal]\fR"
This signal is emitted when Qt Assistant is open and the client-server communication is set up.
.SH "void QAssistantClient::closeAssistant ()\fC [virtual slot]\fR"
Use this function to close Qt Assistant.
.PP
See also assistantClosed().
.SH "void QAssistantClient::error ( const QString & msg )\fC [signal]\fR"
This signal is emitted if Qt Assistant cannot be started or if an error occurs during the initialization of the connection between Qt Assistant and the calling application. The \fImsg\fR provides an explanation of the error.
.SH "bool QAssistantClient::isOpen () const"
Returns TRUE if Qt Assistant is open; otherwise returns FALSE. See the "open" property for details.
.SH "void QAssistantClient::openAssistant ()\fC [virtual slot]\fR"
This function opens Qt Assistant and sets up the client-server communiction between the application and Qt Assistant. If it is already open, this function does nothing. If an error occurs, error() is emitted.
.PP
See also assistantOpened().
.SH "void QAssistantClient::setArguments ( const QStringList & args )"
Sets the command line arguments used when Qt Assistant is started to \fIargs\fR.
.SH "void QAssistantClient::showPage ( const QString & page )\fC [virtual slot]\fR"
Call this function to make Qt Assistant show a particular \fIpage\fR. The \fIpage\fR is a filename (e.g. \fCmyhelpfile.html\fR). See "Adding Documentation to Qt Assistant" in the Qt Assistant manual for further information.
.PP
If Qt Assistant hasn't been opened yet, this function will do nothing. You can use isOpen() to determine whether Qt Assistant is up and running, or you can connect to the asssistantOpened() signal.
.PP
See also open and assistantOpened().
.PP
Example: helpsystem/mainwindow.cpp.
.SS "Property Documentation"
.SH "bool open"
This property holds whether Qt Assistant is open.
.PP
Get this property's value with isOpen().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqassistantclient.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive Qt documentation is provided in HTML format; it is
located at $QTDIR/doc/html and can be read using Qt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech.
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (tqassistantclient.3qt) and the Qt
version (3.3.8).