18#include <QtWidgets/QWidget>
20#include <QtGui/QPixmap>
21#include <QtGui/QPolygon>
22#include <QtGui/QRegion>
24#include <QtCore/QList>
48 bool read(
const QString &skinDirectory,
ReadMode rm, QString *errorMessage);
49 bool read(QTextStream &ts,
ReadMode rm, QString *errorMessage);
97 QString
prefix()
const {
return m_parameters.prefix;}
116 void flip(
bool open);
117 void updateSecondaryScreen();
119 void startPress(
int);
123 QList<QRegion> buttonRegions;
125 QPixmap skinImageDown;
126 QPixmap skinImageClosed;
130 QWidget *m_secondaryView =
nullptr;
133 bool buttonPressed =
false;
135 QTransform transform;
138 bool joydown =
false;
140 QTimer *t_parentmove;
141 int onjoyrelease = 0;
143 bool flipped_open =
true;
void mouseReleaseEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse release even...
void mousePressEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
void mouseMoveEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events ...
QWidget * secondaryView() const
void setSecondaryView(QWidget *v)
void skinKeyPressEvent(int code, const QString &text, bool autorep)
void setTransform(const QTransform &)
void skinKeyReleaseEvent(int code, const QString &text, bool autorep)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
QList< DeviceSkinButtonArea > buttonAreas
QString skinCursorFileName
bool read(QTextStream &ts, ReadMode rm, QString *errorMessage)
bool read(const QString &skinDirectory, ReadMode rm, QString *errorMessage)
QString skinImageDownFileName
bool hasSecondaryScreen() const
QString skinImageUpFileName
QSize secondaryScreenSize() const
QString skinImageClosedFileName
QList< int > toggleAreaList