41 Commits

Author SHA1 Message Date
Peter Hartmann
ec61c11ab6 progress bars: Introduce progress ring and refactor
Most of the code between rings and bars can be shared with a
common superclass QskProgressIndicator.

Resolves #98
2023-08-09 08:33:05 +02:00
Uwe Rathmann
785cb33739 QskArcNode supports borders now 2023-04-17 10:54:44 +02:00
Uwe Rathmann
45a1bc3564 QskArcNode is a QskShapeNode now.
The performance of the previous implementation was simply horrible,
when drawing an arc with a small span angle. The size of the corresponding full circle
is huge and the previous implementation always created an image/texture with
that size.

However the final implementation is supposed to create vertex lists
- like what the box renderer does. So this code will also not stay forever.
2023-04-12 12:19:26 +02:00
Uwe Rathmann
7ddae671e2 API of classes dealing with arcs improved 2023-04-11 13:04:10 +02:00
Uwe Rathmann
9ba8b8186c typo fixed 2023-04-06 10:15:03 +02:00
Uwe Rathmann
9e583166ff BSD-3-Clause license 2023-04-06 09:23:37 +02:00
Uwe Rathmann
9635c13181 using the section bits + QskPushButton::exclusive 2023-03-08 16:02:05 +01:00
Uwe Rathmann
484780a40e using "icon" instead of "graphic".
"icon" was not used to avoid confusing with QIcon,
but it is probably more confusing not to use the name that
is used by almost all toolkits.
2023-03-08 14:11:27 +01:00
Uwe Rathmann
a6bf60c9b4 upgraded to uncrustify 0.76.0 - still not happy with the C++ beautifier
situation, that requires way too much manual post processing
2023-02-28 15:49:42 +01:00
Rick Vogel
30363a5e41 refactoring 2023-01-09 15:11:22 +01:00
Rick Vogel
a5cf5acad9 iot storage page 2023-01-06 18:03:19 +01:00
Peter Hartmann
4bd294f72c IOT dashboard: Fix gradient of circular progress bar 2023-01-05 09:12:06 +01:00
Peter Hartmann
31f2d0c93a IOT dashboard: Make MenuBar buttons and allow switching 2023-01-05 09:12:06 +01:00
Peter Hartmann
8a91e3c54c IOT dashboard: Improve menu bar styling 2023-01-05 09:12:06 +01:00
Peter Hartmann
0db351872a IOT dashboard: Fix theming for light display 2022-12-20 16:41:49 +01:00
Peter Hartmann
3e91e83187 IOT dashboard: Use skinny shadows for light display 2022-12-20 16:41:49 +01:00
Peter Hartmann
22db20e9eb IOT dashboard: Fix rooms page theming
Resolves #231
2022-12-20 16:41:49 +01:00
Peter Hartmann
9ba2fdb2f2 IOT example: Make device buttons clickable 2022-12-20 16:41:49 +01:00
Peter Hartmann
1338c876fd IOT dashboard: Make temperature and humidity changeable with buttons 2022-12-20 16:41:49 +01:00
Uwe Rathmann
b140d1b30a QskGradientDirection introduced - no more classes derived from
QskGradient
2022-11-13 17:22:09 +01:00
Uwe Rathmann
ad67d035f3 new QskGradient 2022-10-31 14:42:08 +01:00
Uwe Rathmann
9336e60c33 minor adjustments 2022-10-26 17:02:06 +02:00
Uwe Rathmann
a52499a7fc unused member removed 2022-10-26 11:00:57 +02:00
Uwe Rathmann
d5f247a6f3 use QRgb values instead of strings ( slow initialization even warned by
clazy )
2022-10-26 10:50:11 +02:00
Uwe Rathmann
d9976527fd using setHGradient 2022-10-21 16:45:34 +02:00
Peter Hartmann
4216775891 IOT example: Use shadows from the system
... and not our own ones.

Resolves #201
2022-08-31 14:41:45 +02:00
Peter Hartmann
3e1ef84480 IOT dashboard: Improve rooms page 2022-08-03 08:23:20 +02:00
Peter Hartmann
ee4f47c0c8 IOT dashboard: Implement rooms page 2022-08-03 08:23:20 +02:00
Peter Hartmann
cfab871ad8 IOT dashboard: Move some classes around 2022-08-03 08:23:20 +02:00
Peter Hartmann
520bb0a429 IOT dashboard: Rename MainContent to DashboardPage 2022-08-03 08:23:20 +02:00
Uwe Rathmann
b5bc26eb63 using degrees for arcs ( not multiplied by 16, what QPainter wants ) 2021-12-02 17:15:41 +01:00
Peter Hartmann
927d2dd51c
Iot dashboard light intensity (#142)
* IOT dashboard: Make light dimmer use arc renderer

* use shadow

* add value text

* add warm and cold parts

* add knob

* handle input

* only move knob when drawing along the arc

* improve input handling

* add tickmarks

* add tickmarks node

* clean up a bit

* Update screenshot of IOT dashboard for github site
2021-11-19 15:02:57 +01:00
Peter Hartmann
26f1d1329a
Iot dashboard: Add own shadows (#135)
* remove current shadow implementation

* add our own shadow code
2021-10-31 11:16:03 +01:00
Peter Hartmann
b89621a3d4
Iot dashboard arc rendering (#134)
* add QskArcNode and QskArcRenderer

* IOT example: Use QskArcNode instead of own arc node

* move some functionality to the arc renderer

* add QskArcMetrics

* add methods to QskSkinlet

* remove circular bar graph node

We can now use updateArcNode() and don't need our own method.

* support linear gradients in the arc renderer

* clean up

* incorporate Uwe's changes

* add overloads for updateArcNode() when the angles are set dynamically

The angles don't always come from the style, so we need overloads
in QskSkinlet to set them dynamically.
2021-10-20 07:50:25 +02:00
Uwe Rathmann
2951e25de6 using QskGraphiclabel::panel 2021-08-26 15:24:13 +02:00
Uwe Rathmann
bd0c40b241 leftover code removed 2021-08-25 15:46:08 +02:00
Peter Hartmann
3a1a7c635c
Iot dashboard: Make circular progress bar a QskControl (#124)
* IOT example, circular progress bar: Use a pen instead of a brush

That way we don't have to draw two circles, and we can in addition
use a conical gradient.

* IOT example: Make circular progress bar a QskControl

... and internally use a QskPaintedNode for now. By doing this we
already have the API ready (similar to QskProgressBar) and can
swap the QskPaintedNode with an arc renderer at a later point in
time.
2021-08-24 08:46:26 +02:00
Uwe Rathmann
3181270afe layout code improved 2021-08-05 11:06:48 +02:00
Uwe Rathmann
9cb938b5e7 using subControl proxies + other improvements 2021-08-04 18:55:18 +02:00
Uwe Rathmann
923affe749 uncrustified 2021-08-04 09:31:16 +02:00
Uwe Rathmann
77503cb639 iot-dashboard -> iotdashboard 2021-06-04 11:55:10 +02:00