#include "CarlaStylePrivate.hpp"
#include <QtCore/qmath.h>
#include <QtCore/QStringBuilder>
#include <QtGui/QPainter>
#include <QtGui/QPainterPath>
#include <QtGui/QPixmapCache>
#include <QtWidgets/qdrawutil.h>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QScrollBar>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QSplitter>
#include <QtWidgets/QWizard>
#include <cstdio>
|
| int | qt_div_255 (int x) |
| QPixmap | styleCachePixmap (const QSize &size) |
| int | fontMetricsHorizontalAdvance (const QFontMetrics &fm, const QString &s) |
| int | calcBigLineSize (int radius) |
| static QPolygonF | calcLines (const QStyleOptionSlider *dial) |
| static QPointF | calcRadialPos (const QStyleOptionSlider *dial, qreal offset) |
| static QString | uniqueName (const QString &key, const QStyleOption *option, const QSize &size) |
| static void | drawDial (const QStyleOptionSlider *option, QPainter *painter) |
| static QColor | mergedColors (const QColor &colorA, const QColor &colorB, int factor=50) |
| static QPixmap | colorizedImage (const QString &fileName, const QColor &color, int rotation=0) |
| static QLinearGradient | qt_fusion_gradient (const QRect &rect, const QBrush &baseColor, Direction direction=TopDown) |
| static void | qt_fusion_draw_mdibutton (QPainter *painter, const QStyleOptionTitleBar *option, const QRect &tmp, bool hover, bool sunken) |
| void | printPalette (const QPalette &pal) |
◆ BEGIN_STYLE_PIXMAPCACHE
| #define BEGIN_STYLE_PIXMAPCACHE |
( |
| a | ) |
|
Value:
QPixmap internalPixmapCache; \
QImage imageCache; \
int txType = painter->deviceTransform().type() | painter->worldTransform().type(); \
bool doPixmapCache = txType <= QTransform::TxTranslate; \
painter->drawPixmap(
option->rect.topLeft(), internalPixmapCache); \
} else { \
if (doPixmapCache) { \
rect.setRect(0, 0,
option->rect.width(),
option->rect.height()); \
imageCache = QImage(
option->rect.size(), QImage::Format_ARGB32_Premultiplied); \
imageCache.fill(0); \
p =
new QPainter(&imageCache); \
}
#define PIXMAPCACHE_VAR_PREFIX
Definition CarlaStyle.cpp:76
static QString uniqueName(const QString &key, const QStyleOption *option, const QSize &size)
Definition CarlaStyle.cpp:271
uint8_t a
Definition Spc_Cpu.h:141
uch * p
Definition crypt.c:594
◆ END_STYLE_PIXMAPCACHE
| #define END_STYLE_PIXMAPCACHE |
Value: if (doPixmapCache) { \
internalPixmapCache = QPixmap::fromImage(imageCache); \
painter->drawPixmap(
option->rect.topLeft(), internalPixmapCache); \
QPixmapCache::insert(unique, internalPixmapCache); \
} \
}
◆ PAL
◆ PAL_PRINT
| #define PAL_PRINT |
( |
| ROLE | ) |
|
Value:{ \
QColor color1(pal.color(QPalette::Disabled, ROLE)); \
QColor color2(pal.color(QPalette::Active, ROLE)); \
QColor color3(pal.color(QPalette::Inactive, ROLE)); \
printf(
PAL ".setColor(QPalette::Disabled, " #ROLE
", QColor(%i, %i, %i));\n", color1.red(), color1.green(), color1.blue()); \
printf(
PAL ".setColor(QPalette::Active, " #ROLE
", QColor(%i, %i, %i));\n", color2.red(), color2.green(), color2.blue()); \
printf(
PAL ".setColor(QPalette::Inactive, " #ROLE
", QColor(%i, %i, %i));\n", color3.red(), color3.green(), color3.blue()); \
}
◆ PIXMAPCACHE_VAR_PREFIX
| #define PIXMAPCACHE_VAR_PREFIX & |
◆ QStyleOptionFrameV3
| #define QStyleOptionFrameV3 QStyleOptionFrame |
◆ QStyleOptionProgressBarV2
| #define QStyleOptionProgressBarV2 QStyleOptionProgressBar |
◆ Direction
| Enumerator |
|---|
| TopDown | |
| FromLeft | |
| BottomUp | |
| FromRight | |
◆ calcBigLineSize()
| int calcBigLineSize |
( |
int | radius | ) |
|
◆ calcLines()
| QPolygonF calcLines |
( |
const QStyleOptionSlider * | dial | ) |
|
|
static |
◆ calcRadialPos()
| QPointF calcRadialPos |
( |
const QStyleOptionSlider * | dial, |
|
|
qreal | offset ) |
|
static |
◆ colorizedImage()
| QPixmap colorizedImage |
( |
const QString & | fileName, |
|
|
const QColor & | color, |
|
|
int | rotation = 0 ) |
|
static |
◆ drawDial()
| void drawDial |
( |
const QStyleOptionSlider * | option, |
|
|
QPainter * | painter ) |
|
static |
◆ fontMetricsHorizontalAdvance()
| int fontMetricsHorizontalAdvance |
( |
const QFontMetrics & | fm, |
|
|
const QString & | s ) |
|
inline |
◆ mergedColors()
| QColor mergedColors |
( |
const QColor & | colorA, |
|
|
const QColor & | colorB, |
|
|
int | factor = 50 ) |
|
static |
◆ printPalette()
◆ qt_div_255()
◆ qt_fusion_draw_mdibutton()
| void qt_fusion_draw_mdibutton |
( |
QPainter * | painter, |
|
|
const QStyleOptionTitleBar * | option, |
|
|
const QRect & | tmp, |
|
|
bool | hover, |
|
|
bool | sunken ) |
|
static |
◆ qt_fusion_gradient()
◆ styleCachePixmap()
| QPixmap styleCachePixmap |
( |
const QSize & | size | ) |
|
|
inline |
◆ uniqueName()
| QString uniqueName |
( |
const QString & | key, |
|
|
const QStyleOption * | option, |
|
|
const QSize & | size ) |
|
static |
◆ groupBoxBottomMargin
◆ groupBoxTopMargin
◆ Q_PI
| const qreal Q_PI = qreal(3.14159265358979323846) |
|
static |
◆ qt_titlebar_context_help
Initial value: = {
"10 10 3 1",
" c None",
"# c #000000",
"+ c #444444",
" +####+ ",
" ### ### ",
" ## ## ",
" +##+ ",
" +## ",
" ## ",
" ## ",
" ",
" ## ",
" ## "}
◆ windowsItemFrame
◆ windowsItemHMargin
◆ windowsItemVMargin
◆ windowsRightBorder