mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00

- qt4->qt5 - in built qt5 6.1.5 because rhel7 is not upto date with qt5, removed findqwt.cmake - made a fix in qwt lib (qwt_plot_layout.h) to work with 5.15 and lower versions for qrect constr. - qt5 forms fixed, qt4 many hard coding forms switched to forms including qtabwidget, scrolls etc, fonts moved to forms - docking option enabled by default, removed option to disable docking feature from "Mode" - added qVersionResolve utility functions to handle compatibility before and after qt5.12 - qtplots (ian's code) takes in gain mode enable to set some settings within the class, with proper gain plot ticks - ensure gain plots have no zooming of z axis in 2d and y axis in 1d - removed placeholder text in qpalette in main window form as its not supportd until 5.12 (so using qt5.9 designer insted of qt5.15 to cope) - tab order Servers: - fixed some error messages that were empty for fail in funcs (mostly minor as if this error, major issues)
162 lines
3.3 KiB
Groff
162 lines
3.3 KiB
Groff
.TH "QwtArrowButton" 3 "Mon Jun 1 2020" "Version 6.1.5" "Qwt User's Guide" \" -*- nroff -*-
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
QwtArrowButton \- Arrow Button\&.
|
|
|
|
.SH SYNOPSIS
|
|
.br
|
|
.PP
|
|
.PP
|
|
\fC#include <qwt_arrow_button\&.h>\fP
|
|
.PP
|
|
Inherits QPushButton\&.
|
|
.SS "Public Member Functions"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "\fBQwtArrowButton\fP (int \fBnum\fP, Qt::ArrowType, QWidget *parent=NULL)"
|
|
.br
|
|
.ti -1c
|
|
.RI "virtual \fB~QwtArrowButton\fP ()"
|
|
.br
|
|
.RI "Destructor\&. "
|
|
.ti -1c
|
|
.RI "Qt::ArrowType \fBarrowType\fP () const"
|
|
.br
|
|
.RI "The direction of the arrows\&. "
|
|
.ti -1c
|
|
.RI "int \fBnum\fP () const"
|
|
.br
|
|
.RI "The number of arrows\&. "
|
|
.ti -1c
|
|
.RI "virtual QSize \fBsizeHint\fP () const"
|
|
.br
|
|
.ti -1c
|
|
.RI "virtual QSize \fBminimumSizeHint\fP () const"
|
|
.br
|
|
.RI "Return a minimum size hint\&. "
|
|
.in -1c
|
|
.SS "Protected Member Functions"
|
|
|
|
.in +1c
|
|
.ti -1c
|
|
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *event)"
|
|
.br
|
|
.ti -1c
|
|
.RI "virtual void \fBdrawButtonLabel\fP (QPainter *)"
|
|
.br
|
|
.RI "Draw the button label\&. "
|
|
.ti -1c
|
|
.RI "virtual void \fBdrawArrow\fP (QPainter *, const QRect &, Qt::ArrowType) const"
|
|
.br
|
|
.ti -1c
|
|
.RI "virtual QRect \fBlabelRect\fP () const"
|
|
.br
|
|
.ti -1c
|
|
.RI "virtual QSize \fBarrowSize\fP (Qt::ArrowType, const QSize &boundingSize) const"
|
|
.br
|
|
.ti -1c
|
|
.RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)"
|
|
.br
|
|
.RI "autoRepeat for the space keys "
|
|
.in -1c
|
|
.SH "Detailed Description"
|
|
.PP
|
|
Arrow Button\&.
|
|
|
|
A push button with one or more filled triangles on its front\&. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right\&.
|
|
.SH "Constructor & Destructor Documentation"
|
|
.PP
|
|
.SS "QwtArrowButton::QwtArrowButton (int num, Qt::ArrowType arrowType, QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
|
|
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fInum\fP Number of arrows
|
|
.br
|
|
\fIarrowType\fP see Qt::ArrowType in the Qt docs\&.
|
|
.br
|
|
\fIparent\fP Parent widget
|
|
.RE
|
|
.PP
|
|
|
|
.SH "Member Function Documentation"
|
|
.PP
|
|
.SS "QSize QwtArrowButton::arrowSize (Qt::ArrowType arrowType, const QSize & boundingSize) const\fC [protected]\fP, \fC [virtual]\fP"
|
|
Calculate the size for a arrow that fits into a rectangle of a given size
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIarrowType\fP Arrow type
|
|
.br
|
|
\fIboundingSize\fP Bounding size
|
|
.RE
|
|
.PP
|
|
\fBReturns\fP
|
|
.RS 4
|
|
Size of the arrow
|
|
.RE
|
|
.PP
|
|
|
|
.SS "void QwtArrowButton::drawArrow (QPainter * painter, const QRect & r, Qt::ArrowType arrowType) const\fC [protected]\fP, \fC [virtual]\fP"
|
|
Draw an arrow int a bounding rectangle
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIpainter\fP Painter
|
|
.br
|
|
\fIr\fP Rectangle where to paint the arrow
|
|
.br
|
|
\fIarrowType\fP Arrow type
|
|
.RE
|
|
.PP
|
|
|
|
.SS "void QwtArrowButton::drawButtonLabel (QPainter * painter)\fC [protected]\fP, \fC [virtual]\fP"
|
|
|
|
.PP
|
|
Draw the button label\&.
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIpainter\fP Painter
|
|
.RE
|
|
.PP
|
|
\fBSee also\fP
|
|
.RS 4
|
|
The Qt Manual for QPushButton
|
|
.RE
|
|
.PP
|
|
|
|
.SS "QRect QwtArrowButton::labelRect () const\fC [protected]\fP, \fC [virtual]\fP"
|
|
|
|
.PP
|
|
\fBReturns\fP
|
|
.RS 4
|
|
the bounding rectangle for the label
|
|
.RE
|
|
.PP
|
|
|
|
.SS "void QwtArrowButton::paintEvent (QPaintEvent * event)\fC [protected]\fP, \fC [virtual]\fP"
|
|
Paint event handler
|
|
.PP
|
|
\fBParameters\fP
|
|
.RS 4
|
|
\fIevent\fP Paint event
|
|
.RE
|
|
.PP
|
|
|
|
.SS "QSize QwtArrowButton::sizeHint () const\fC [virtual]\fP"
|
|
|
|
.PP
|
|
\fBReturns\fP
|
|
.RS 4
|
|
a size hint
|
|
.RE
|
|
.PP
|
|
|
|
|
|
.SH "Author"
|
|
.PP
|
|
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|