Add files from zip
This commit is contained in:
237
doc/man/man3/QwtLegendData.3
Normal file
237
doc/man/man3/QwtLegendData.3
Normal file
@@ -0,0 +1,237 @@
|
||||
.TH "QwtLegendData" 3 "Sun Jul 18 2021" "Version 6.2.0" "Qwt User's Guide" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
QwtLegendData \- Attributes of an entry on a legend\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.PP
|
||||
\fC#include <qwt_legend_data\&.h>\fP
|
||||
.SS "Public Types"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "enum \fBMode\fP { \fBReadOnly\fP, \fBClickable\fP, \fBCheckable\fP }"
|
||||
.br
|
||||
.RI "Mode defining how a legend entry interacts\&. "
|
||||
.ti -1c
|
||||
.RI "enum \fBRole\fP { \fBModeRole\fP, \fBTitleRole\fP, \fBIconRole\fP, \fBUserRole\fP = 32 }"
|
||||
.br
|
||||
.RI "Identifier how to interpret a QVariant\&. "
|
||||
.in -1c
|
||||
.SS "Public Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "\fBQwtLegendData\fP ()"
|
||||
.br
|
||||
.RI "Constructor\&. "
|
||||
.ti -1c
|
||||
.RI "\fB~QwtLegendData\fP ()"
|
||||
.br
|
||||
.RI "Destructor\&. "
|
||||
.ti -1c
|
||||
.RI "void \fBsetValues\fP (const \fBQMap\fP< int, QVariant > &)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "const \fBQMap\fP< int, QVariant > & \fBvalues\fP () const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "void \fBsetValue\fP (int role, const QVariant &)"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "QVariant \fBvalue\fP (int role) const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "bool \fBhasRole\fP (int role) const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "bool \fBisValid\fP () const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "\fBQwtGraphic\fP \fBicon\fP () const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "\fBQwtText\fP \fBtitle\fP () const"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "\fBMode\fP \fBmode\fP () const"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Attributes of an entry on a legend\&.
|
||||
|
||||
\fBQwtLegendData\fP is an abstract container ( like QAbstractModel ) to exchange attributes, that are only known between to the plot item and the legend\&.
|
||||
.PP
|
||||
By overloading \fBQwtPlotItem::legendData()\fP any other set of attributes could be used, that can be handled by a modified ( or completely different ) implementation of a legend\&.
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBQwtLegend\fP, \fBQwtPlotLegendItem\fP
|
||||
.RE
|
||||
.PP
|
||||
\fBNote\fP
|
||||
.RS 4
|
||||
The stockchart example implements a legend as a tree with checkable items
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 36 of file qwt_legend_data\&.h\&.
|
||||
.SH "Member Enumeration Documentation"
|
||||
.PP
|
||||
.SS "enum \fBQwtLegendData::Mode\fP"
|
||||
|
||||
.PP
|
||||
Mode defining how a legend entry interacts\&.
|
||||
.PP
|
||||
\fBEnumerator\fP
|
||||
.in +1c
|
||||
.TP
|
||||
\fB\fIReadOnly \fP\fP
|
||||
The legend item is not interactive, like a label\&.
|
||||
.TP
|
||||
\fB\fIClickable \fP\fP
|
||||
The legend item is clickable, like a push button\&.
|
||||
.TP
|
||||
\fB\fICheckable \fP\fP
|
||||
The legend item is checkable, like a checkable button\&.
|
||||
.PP
|
||||
Definition at line 40 of file qwt_legend_data\&.h\&.
|
||||
.SH "Member Function Documentation"
|
||||
.PP
|
||||
.SS "bool QwtLegendData::hasRole (int role) const"
|
||||
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIrole\fP Attribute role
|
||||
.RE
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
True, when the internal map has an entry for role
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 51 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "\fBQwtGraphic\fP QwtLegendData::icon () const"
|
||||
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Value of the IconRole attribute
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 106 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "bool QwtLegendData::isValid () const"
|
||||
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
True, when the internal map is empty
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 82 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "\fBQwtLegendData::Mode\fP QwtLegendData::mode () const"
|
||||
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Value of the ModeRole attribute
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 120 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "void QwtLegendData::setValue (int role, const QVariant & data)"
|
||||
Set an attribute value
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIrole\fP Attribute role
|
||||
.br
|
||||
\fIdata\fP Attribute value
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBvalue()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 64 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "void QwtLegendData::setValues (const \fBQMap\fP< int, QVariant > & map)"
|
||||
Set the legend attributes
|
||||
.PP
|
||||
\fBQwtLegendData\fP actually is a \fBQMap<int, QVariant>\fP with some convenience interfaces
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fImap\fP Values
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBvalues()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 33 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "\fBQwtText\fP QwtLegendData::title () const"
|
||||
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Value of the TitleRole attribute
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 88 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "QVariant QwtLegendData::value (int role) const"
|
||||
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIrole\fP Attribute role
|
||||
.RE
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Attribute value for a specific role
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 73 of file qwt_legend_data\&.cpp\&.
|
||||
.SS "const \fBQMap\fP< int, QVariant > & QwtLegendData::values () const"
|
||||
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
Legend attributes
|
||||
.RE
|
||||
.PP
|
||||
\fBSee also\fP
|
||||
.RS 4
|
||||
\fBsetValues()\fP
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line 42 of file qwt_legend_data\&.cpp\&.
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|
||||
Reference in New Issue
Block a user